Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
samwhelp committed Feb 11, 2024
1 parent fb4979c commit 32e7a04
Show file tree
Hide file tree
Showing 16 changed files with 669 additions and 0 deletions.
75 changes: 75 additions & 0 deletions read/config/keybind.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,78 @@ parent: 設定


# 按鍵綁定


## 主題

* [設定檔](#設定檔)
* [系統操作](#系統操作)
* [開啟應用程式](#開啟應用程式)
* [視窗操作](#視窗操作)
* [工作空間](#工作空間)
* [桌面圖片](#桌面圖片)
* [螢幕截圖](#螢幕截圖)
* [音量控制](#音量控制)


## 設定檔

這篇的根據,是採用「[客製的設定](https://samwhelp.github.io/note-about-openbox/read/config/main.html)」,

請參考「[我的設定檔](https://github.com/samwhelp/note-about-openbox/tree/gh-pages/_demo/config/openbox-config/main/)」。


## 系統操作

| 主題 |
| --- |
| [系統操作](keybind/system-control) |
| [系統選單](keybind/system-menu) |


## 開啟應用程式

| 主題 |
| --- |
| [開啟 Terminal](keybind/application-launch-terminal) |
| [開啟 Rofi](keybind/application-launch-rofi) |
| [開啟常用的應用程式](keybind/application-launch-favorite) |
| [聚焦常用的應用程式](keybind/application-focus-fn) |


## 視窗操作

| 主題 |
| --- |
| [視窗基本操作](keybind/window-control) |
| [視窗聚焦切換](keybind/window-focus) |
| [視窗平鋪移動操作](keybind/window-tiling-move) |


## 工作空間

| 主題 |
| --- |
| [工作空間切換](keybind/workspace-switch) |
| [視窗移到指定工作空間](keybind/window-move-to-workspace) |


## 桌面圖片

| 主題 |
| --- |
| [桌面圖片](keybind/wallpaper-control) |


## 螢幕截圖

| 主題 |
| --- |
| [螢幕截圖](keybind/screenshot) |


## 音量控制

| 主題 |
| --- |
| [音量控制](keybind/volume-control) |
34 changes: 34 additions & 0 deletions read/config/keybind/application-focus-fn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
title: 聚焦應用程式 (常用的)
nav_order: 5014
has_children: false
parent: 按鍵綁定
grand_parent: 設定
---


# 聚焦應用程式 (常用的)


* $ man [wmctrl](http://manpages.ubuntu.com/manpages/jammy/en/man1/wmctrl.1.html)
* [openbox-focus-ctrl](https://github.com/samwhelp/note-about-openbox/blob/gh-pages/_demo/config/openbox-config/main/bin/openbox-focus-ctrl)
* [設定片段](https://github.com/samwhelp/note-about-openbox/blob/gh-pages/_demo/config/openbox-config/main/share/gen/openbox-gen-rc/Section/Keybind/ApplicationFocusFn.php#L3-L26)


| 按鍵組合 | 功能 | 執行指令 |
| ----------------- | -------------- | ------------ |
| `Win + F1` | 開啟或聚焦檔案管理器 | `pcmanfm-qt` 或是 `wmctrl -x -a pcmanfm-qt` |
| `Win + F2` | 開啟或聚焦文字編輯器 | `atom` 或是 `wmctrl -x -a atom` |
| `Win + F3` | 開啟或聚焦啟網頁瀏覽器 | `firefox` 或是 `wmctrl -x -a firefox` |
| `Win + F4` | 開啟或聚焦終端機 | `sakura` 或是 `wmctrl -x -a sakura` |


* [設定片段](https://github.com/samwhelp/note-about-openbox/blob/gh-pages/_demo/config/openbox-config/main/share/gen/openbox-gen-rc/Section/Keybind/ApplicationFocusFn.php#L31-L54)


| 按鍵組合 | 功能 | 執行指令 |
| ----------------- | -------------- | ------------ |
| `Shift + F1` | 開啟或聚焦檔案管理器 | `thunar` 或是 `wmctrl -x -a thunar` |
| `Shift + F2` | 開啟或聚焦文字編輯器 | `mousepad` 或是 `wmctrl -x -a mousepad` |
| `Shift + F3` | 開啟或聚焦網頁瀏覽器 | `firefox` 或是 `wmctrl -x -a firefox` |
| `Shift + F4` | 開啟或聚焦終端機 | `xfce4-terminal` 或是 `wmctrl -x -a xfce4-terminal` |
19 changes: 19 additions & 0 deletions read/config/keybind/application-launch-favorite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: 開啟應用程式 (常用的)
nav_order: 5013
has_children: false
parent: 按鍵綁定
grand_parent: 設定
---


# 開啟應用程式 (常用的)

* [設定片段](https://github.com/samwhelp/note-about-openbox/tree/gh-pages/_demo/config/openbox-config/main/share/gen/openbox-gen-rc/Section/Keybind/ApplicationLaunchFavorite.php#L3)

| 按鍵組合 | 功能 | 執行指令 |
| ----------------- | -------------- | ------------ |
| `Alt + Shift + f` | 開啟檔案管理器 | `pcmanfm-qt` |
| `Alt + Shift + g` | 開啟檔案管理器 | `thunar` |
| `Alt + Shift + e` | 開啟文字編輯器 | `mousepad` |
| `Alt + Shift + b` | 開啟網頁瀏覽器 | `firefox` |
19 changes: 19 additions & 0 deletions read/config/keybind/application-launch-rofi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: 開啟應用程式 (Rofi)
nav_order: 5011
has_children: false
parent: 按鍵綁定
grand_parent: 設定
---


# 開啟應用程式 (Rofi)

* [設定片段](https://github.com/samwhelp/note-about-openbox/tree/gh-pages/_demo/config/openbox-config/main/share/gen/openbox-gen-rc/Section/Keybind/ApplicationLaunchRofi.php#L14)


| 按鍵組合 | 功能 | 執行指令 |
| ----------------- | ------------------------------ | ------------------------------- |
| `Alt + Shift + d` | 開啟 Rofi (可用應用程式列表) | `rofi -show drun -show-icons` |
| `Alt + Shift + w` | 開啟 Rofi (已經開啟的視窗列表) | `rofi -show window -show-icons` |
| `Alt + Shift + r` | 開啟 Rofi (可用指令列表) | `rofi -show run` |
26 changes: 26 additions & 0 deletions read/config/keybind/application-launch-terminal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: 開啟應用程式 (Terminal)
nav_order: 5010
has_children: false
parent: 按鍵綁定
grand_parent: 設定
---


# 開啟應用程式 (Terminal)

* [設定片段](https://github.com/samwhelp/note-about-openbox/tree/gh-pages/_demo/config/openbox-config/main/share/gen/openbox-gen-rc/Section/Keybind/ApplicationLaunchTerminal.php#L16)


| 按鍵組合 | 功能 | 執行指令 |
| ----------------- | ------------- | --------------------------- |
| `Alt + Enter` | 開啟 Terminal | `sakura -m` |
| `Alt + Shift + a` | 開啟 Terminal | `sakura -m` |
| `Alt + Ctrl + a` | 開啟 Terminal | `xfce4-terminal --maximize` |
| `Alt + Shift + t` | 開啟 Terminal | `xterm` |
| `Alt + Ctrl + t` | 開啟 Terminal | `urxvt` |


| 按鍵組合 | 功能 | 執行指令 |
| ----------------- | ------------------------- | ---------------------------- |
| `Alt + Shift + y` | 開啟 Terminal (Drop Down) | `xfce4-terminal --drop-down` |
17 changes: 17 additions & 0 deletions read/config/keybind/screenshot.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: 螢幕截圖
nav_order: 5051
has_children: false
parent: 按鍵綁定
grand_parent: 設定
---


# 螢幕截圖

* [設定片段](https://github.com/samwhelp/note-about-openbox/tree/gh-pages/_demo/config/openbox-config/main/share/gen/openbox-gen-rc/Section/Keybind/Screenshot.php)

| 按鍵組合 | 功能 | 執行指令 |
| ------------- | -------------------- | ---------- |
| `Print` | 螢幕截圖 | `scrot` |
| `Alt + Print` | 選取螢幕畫面區塊截圖 | `scrot -s` |
50 changes: 50 additions & 0 deletions read/config/keybind/system-control.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
title: 系統操作
nav_order: 5001
has_children: false
parent: 按鍵綁定
grand_parent: 設定
---


# 系統操作


## 重新載入設定

* [設定片段](https://github.com/samwhelp/note-about-openbox/blob/gh-pages/_demo/config/openbox-config/main/share/gen/openbox-gen-rc/Section/Keybind/SystemExit.php#L34-L36)

| 按鍵組合 | 功能 | 執行指令 |
| ----------------- | ------------ | -------------------- |
| `Alt + Shift + c` | 重新載入設定 | `Reconfigure` (openbox 內建) |


## 登出

* [設定片段](https://github.com/samwhelp/note-about-openbox/blob/gh-pages/_demo/config/openbox-config/main/share/gen/openbox-gen-rc/Section/Keybind/SystemExit.php#L24-L26)

| 按鍵組合 | 功能 | 執行指令 |
| ----------------- | ------------ | -------------------- |
| `Alt + Shift + x` | 登出 | `Exit` (openbox 內建) |


## 關機

* [設定片段](https://github.com/samwhelp/note-about-openbox/blob/gh-pages/_demo/config/openbox-config/main/share/gen/openbox-gen-rc/Section/Keybind/SystemExit.php#L4-L12)

| 按鍵組合 | 功能 | 執行指令 |
| ----------------- | ------------ | -------------------- |
| `Alt + Shift + z` | Show Exit Panel | `obsession-logout` |


## 切換「顯示桌面」

* [設定片段](https://github.com/samwhelp/note-about-openbox/tree/gh-pages/_demo/config/openbox-config/main/share/gen/openbox-gen-rc/Section/Keybind/SystemToggleShowDesktop.php)

| 按鍵組合 | 功能 | 執行指令 |
| ----------------- | ------------ | -------------------- |
| `Win + d` | 顯示「桌面操作選單」 | `ToggleShowDesktop` (openbox 內建) |

> 也可以在「桌面」使用「滑鼠左鍵」,反覆按下,就會切換「顯示桌面」。
* [設定片段](https://github.com/samwhelp/note-about-openbox/tree/gh-pages/_demo/config/openbox-config/main/share/gen/openbox-gen-rc/Section/Mousebind/Root.php#L7)
43 changes: 43 additions & 0 deletions read/config/keybind/system-menu.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
title: 系統選單
nav_order: 5002
has_children: false
parent: 按鍵綁定
grand_parent: 設定
---


# 系統選單


## 顯示「視窗操作選單」

* [設定片段](https://github.com/samwhelp/note-about-openbox/tree/gh-pages/_demo/config/openbox-config/main/share/gen/openbox-gen-rc/Section/Keybind/MenuClient.php)

| 按鍵組合 | 功能 | 執行指令 |
| ----------------- | ------------ | -------------------- |
| `Alt + Space` | 顯示「視窗操作選單」 | `client-menu` (openbox 內建) |

> 也可以在「視窗標題列」使用「滑鼠右鍵」,就會顯示「視窗操作選單」。

## 顯示「桌面操作選單」

* [設定片段](https://github.com/samwhelp/note-about-openbox/tree/gh-pages/_demo/config/openbox-config/main/share/gen/openbox-gen-rc/Section/Keybind/MenuRoot.php)

| 按鍵組合 | 功能 | 執行指令 |
| ----------------- | ------------ | -------------------- |
| `Win + Space` | 顯示「主要功能選單」 | `root-menu` (openbox 內建) |

> 也可以在「桌面」使用「滑鼠右鍵」,就會顯示「主要功能選單」。

## 顯示「工作空間操作選單」

* [設定片段](https://github.com/samwhelp/note-about-openbox/tree/gh-pages/_demo/config/openbox-config/main/share/gen/openbox-gen-rc/Section/Keybind/MenuClientList.php)

| 按鍵組合 | 功能 | 執行指令 |
| ----------------- | ------------ | -------------------- |
| `Win + c` | 顯示「桌面操作選單」 | `client-list-combined-menu` (openbox 內建) |

> 也可以在「桌面」使用「滑鼠中鍵」,就會顯示「工作空間操作選單」。
28 changes: 28 additions & 0 deletions read/config/keybind/volume-control.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
title: 音量控制
nav_order: 5052
has_children: false
parent: 按鍵綁定
grand_parent: 設定
---


# 音量控制

* [設定片段](https://github.com/samwhelp/note-about-openbox/tree/gh-pages/_demo/config/openbox-config/main/share/gen/openbox-gen-rc/Section/Keybind/Volume.php)

| 按鍵組合 | 功能 | 執行指令 |
| ----------------- | ---------------- | ------------------------------------------- |
| `Alt + Shift + v` | 開啟音量控制面板 | `mate-volume-control` |
| `Alt + m` | 音量切換成靜音 | `amixer -q -D pulse sset Master toggle` |
| `Alt + Shift + <` | 減小音量 | `amixer -q -D pulse sset Master 5%- unmute` |
| `Alt + Shift + >` | 增加音量 | `amixer -q -D pulse sset Master 5%+ unmute` |
| `Alt + Ctrl + ,` | 緩慢地減小音量 | `amixer -q -D pulse sset Master 1%- unmute` |
| `Alt + Ctrl + .` | 緩慢地增加音量 | `amixer -q -D pulse sset Master 1%+ unmute` |


| 按鍵組合 | 功能 | 執行指令 |
| ---------------------- | -------------- | ------------------------------------------- |
| `XF86AudioMute` | 音量切換成靜音 | `amixer -q -D pulse sset Master toggle` |
| `XF86AudioLowerVolume` | 減小音量 | `amixer -q -D pulse sset Master 5%- unmute` |
| `XF86AudioRaiseVolume` | 增加音量 | `amixer -q -D pulse sset Master 5%+ unmute` |
22 changes: 22 additions & 0 deletions read/config/keybind/wallpaper-control.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
title: 桌面圖片
nav_order: 5050
has_children: false
parent: 按鍵綁定
grand_parent: 設定
---


# 桌面圖片

* [設定片段](https://github.com/samwhelp/note-about-openbox/tree/gh-pages/_demo/config/openbox-config/main/share/gen/openbox-gen-rc/Section/Keybind/Wallpaper.php#L3)

| 按鍵組合 | 功能 | 執行指令 |
| ---------------- | -------------------- | ------------------------------------------------ |
| `Alt + w` | 隨機更換新的桌面圖片 | `feh --bg-fill --randomize ~/Pictures/Wallpaper` |
| `Alt + Ctrl + w` | 更換成預設的桌面圖片 | `feh --bg-fill ~/Pictures/Wallpaper/default.jpg` |


## 參考連結

* Arch Wiki / [Feh](https://wiki.archlinux.org/title/Feh)
Loading

0 comments on commit 32e7a04

Please sign in to comment.