Skip to content

Commit

Permalink
sxhkd: Added dwm keybinds for extended mice buttons, documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
microsounds committed Dec 3, 2024
1 parent e704b1a commit 263d0df
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .config/sxhkd/mouse
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## ~/.config/sxhkd/mouse: extended mouse keybinds

# generic office mouse w/ 3+ buttons
# generic logitech mouse w/ 3+ buttons
# left scroll right
# [4]
# ^
Expand All @@ -11,10 +11,14 @@
# [8] <- left side keys
# [9]

# dwm: enable monacle mode on focused client
button2
xdotool key Super_L+space

# dwm: switch focused client to another monitor
button{6,7}
button{9,8}
xdotool key Shift_L+Super_L+{comma,period}

# chromium: switch tabs
button{8,9}
xdotool key {_,Shift_L+}Control_L+Tab
#button{9,8}
# xdotool key {_,Shift_L+}Control_L+Tab
11 changes: 11 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ At the X server level, keybinds are handled by a mix of ~~`xkb`~~, `dwm`, `sxhkd
| --: | --: | :-- |
| float window<sup>[toggle]</sup> | monocle window<sup>[toggle]</sup> | space |
| set as master window<sup>[toggle]</sup> | terminal | return |
| move window to previous monitor | focus previous monitor | , |
| move window to next monitor | focus next monitor | . |
| | launcher | p |
| | file manager | e |
| | ssh-add<sup>[toggle]</sup> | backspace |
Expand Down Expand Up @@ -293,6 +295,15 @@ At the X server level, keybinds are handled by a mix of ~~`xkb`~~, `dwm`, `sxhkd
| task manager | | delete |
| syslog | | insert |

**Special** mouse keybinds with extended button layouts.
* _This is for generic mice with more than 3 keys, usually with left/right switches on the scroll wheel._

| action | key |
| --: | :-- |
| monocle window<sup>[toggle]</sup> | middle click |
| move window to previous monitor | middle click left |
| move window to next monitor | middle click right |

### Generic 74-key Chromebook layout
Search key is `Super_L`, most missing keys are hidden behind `Right Alt` layer.
Power key has been remapped to `delete` for better usability.
Expand Down

0 comments on commit 263d0df

Please sign in to comment.