dotfiles/fluxbox/keys

116 lines
3.2 KiB
Text
Raw Normal View History

2022-01-14 05:00:14 +00:00
# click on the desktop to get menus
OnDesktop Mouse1 :HideMenus
OnDesktop Mouse2 :WorkspaceMenu
OnDesktop Mouse3 :RootMenu
# scroll on the desktop to change workspaces
OnDesktop Mouse4 :PrevWorkspace
OnDesktop Mouse5 :NextWorkspace
# scroll on the toolbar to change current window
OnToolbar Mouse4 :PrevWindow {static groups} (iconhidden=no)
OnToolbar Mouse5 :NextWindow {static groups} (iconhidden=no)
# alt + left/right click to move/resize a window
OnWindowBorder Move1 :StartMoving
OnLeftGrip Move1 :StartResizing bottomleft
OnRightGrip Move1 :StartResizing bottomright
# alt + middle click to lower the window
OnWindow Mod1 Mouse2 :Lower
# control-click a window's titlebar and drag to attach windows
OnTitlebar Control Mouse1 :StartTabbing
OnTitlebar Mouse4 :Shade
OnTitlebar Mouse5 :Shade
# double click on the titlebar to shade
OnTitlebar Double Mouse1 :Maximize
# left click on the titlebar to move the window
OnTitlebar Mouse1 :MacroCmd {Raise} {Focus} {ActivateTab}
OnTitlebar Move1 :StartMoving
# middle click on the titlebar to lower
OnTitlebar Mouse2 :Shade
# right click on the titlebar for a menu of options
OnTitlebar Mouse3 :WindowMenu
# alt-tab
Mod1 Tab :NextWindow {static groups} (workspace=[current])
Mod1 Shift Tab :PrevWindow {static groups} (workspace=[current])
# cycle through tabs in the current window
Mod4 Tab :NextTab
Mod4 Shift Tab :PrevTab
# go to a specific tab in the current window
Mod4 1 :Tab 1
Mod4 2 :Tab 2
Mod4 3 :Tab 3
Mod4 4 :Tab 4
Mod4 5 :Tab 5
Mod4 6 :Tab 6
Mod4 7 :Tab 7
Mod4 8 :Tab 8
Mod4 9 :Tab 9
# open a terminal
Mod4 slash :Exec alacritty
# center active window
Mod4 c :MacroCmd {ResizeTo 60% 100%} {MoveTo 20% 0%}
Mod4 Shift c :MacroCmd {ResizeTo 60% 60%} {MoveTo 20% 20%}
# quarter tiling
Mod4 h :MacroCmd {ResizeTo 50% 100%} {MoveTo 0% 0%}
Mod4 j :MacroCmd {ResizeTo 100% 50%} {MoveTo 0% 50%}
Mod4 k :MacroCmd {ResizeTo 100% 50%} {MoveTo 0% 0%}
Mod4 l :MacroCmd {ResizeTo 50% 100%} {MoveTo 50% 0%}
Mod4 q :MacroCmd {ResizeTo 50% 50%} {MoveTo 0% 0%}
Mod4 w :MacroCmd {ResizeTo 50% 50%} {MoveTo 0% 50%}
Mod4 o :MacroCmd {ResizeTo 50% 50%} {MoveTo 50% 50%}
Mod4 p :MacroCmd {ResizeTo 50% 50%} {MoveTo 50% 0%}
# open a dialog to run programs
Mod1 space :Exec /home/nilix/bin/9/dmenu_exe
# volume settings, using common keycodes
# if these don't work, use xev to find out your real keycodes
123 :Exec ~/src/zenUtils/xtraKeys.sh v u
122 :Exec ~/src/zenUtils/xtraKeys.sh v d
121 :Exec ~/src/zenUtils/xtraKeys.sh v m
198 :Exec ~/src/zenUtils/xtraKeys.sh v mm
232 :Exec ~/src/zenUtils/xtraKeys.sh b d
233 :Exec ~/src/zenUtils/xtraKeys.sh b u
# current window commands
Mod4 d :Close
Mod4 Shift d :Kill
Mod4 i :Minimize
Mod4 m :Maximize
Mod4 f :Fullscreen
Mod4 s :Stick
Mod4 u :Deiconify
OnWindow Mod4 Mouse1 :StartMoving
OnWindow Mod4 Mouse3 :MacroCmd {Raise} {Focus} {StartResizing}
# open the window menu
# Mod4 space :WindowMenu
# change to previous/next workspace
Mod4 Left :PrevWorkspace
Mod4 Right :NextWorkspace
# send the current window and follow it to previous/next workspace
Mod4 Shift Left :TakeToPrevWorkspace
Mod4 Shift Right :TakeToNextWorkspace
# lock screen
Mod4 Escape :Exec slock
# zenUtils
Control Mod1 BackSpace :Exec sudo ~/src/zenUtils/logout.sh -p
Mod4 F1 :Exec ~/src/zenUtils/nmtuiWin.sh