# # PWM keybindings # # Menus opening set_mod "" kbind "Menu", "menu", "root_menu" kbind "Mod1+Menu", "menu", "attach_menu" kbind "Control+Menu", "menu", "detach_menu" kbind "Mod4+Menu", "menu", "frame_cwin_menu" kbind "Shift+Menu", "menu", "goto_menu" # Bind global operations to Mod1+key set_mod "Mod1" kbind "Tab", "circulateraise", 1 kbind "Shift+Tab", "circulateraise", -1 kbind "F1", "switch_ws_num", 0 kbind "F2", "switch_ws_num", 1 kbind "F3", "switch_ws_num", 2 kbind "F4", "switch_ws_num", 3 kbind "F5", "switch_ws_num", 4 kbind "F6", "switch_ws_num", 5 kbind "F7", "switch_ws_num", 6 kbind "F8", "switch_ws_num", 7 kbind "F9", "switch_ws_num", 8 kbind "F10", "switch_ws_num", 9 kbind "Up", "raise" kbind "Down", "lower" kbind "Right", "switch_rot", 1 kbind "Left", "switch_rot", -1 kbind "T", "toggle_dock" kbind "E", "exec", "command -n -g 60x1+157+280" kbind "M", "exec", "xwit -root -warp 0 600" kbind "Return", "kb_moveres" # Commands set_mod "Mod1" kbind "Shift+E", "exec", "/usr/local/bin/execute" kbind "Shift+M", "exec", "launch mail" kbind "Shift+N", "exec", "launch news" kbind "Shift+W", "exec", "launch navigator" kbind "Shift+I", "exec", "launch irc" kbind "Shift+Q", "exec", "launch icq" kbind "Shift+Y", "exec", "launch radio" kbind "Shift+X", "exec", "launch switchterm" # Windows manipulations set_mod "Mod4" kbind "W", "close" kbind "X", "kill" kbind "S", "toggle_shade" kbind "Z", "toggle_stick" kbind "V", "toggle_maximize", 1 kbind "H", "toggle_maximize", 2 kbind "M", "toggle_maximize", 3 kbind "T", "toggle_tagged" kbind "A", "attach_tagged" kbind "J", "join_tagged" kbind "B", "toggle_tab" kbind "D", "toggle_decor" # Special : APM mode ! set_mod "Mod4" kbind "Return", "exec", "apm -s" kbind "BackSpace", "exec", "apm -S" # Switching between tabs in same frame set_mod "Mod4" kbind "Right", "switch_rot", 1 kbind "Left", "switch_rot", -1 kbind "Up", "raise" kbind "Down", "lower" kbind "F1", "switch_nth", 0 kbind "F2", "switch_nth", 1 kbind "F3", "switch_nth", 2 kbind "F4", "switch_nth", 3 kbind "F5", "switch_nth", 4 kbind "F6", "switch_nth", 5 kbind "F7", "switch_nth", 6 kbind "F8", "switch_nth", 7 kbind "F9", "switch_nth", 8 kbind "F10", "switch_nth", 9 # Moving frames directly to a specific workspace set_mod "Mod4" kbind "Mod1+F1", "move_to_ws", 0 kbind "Mod1+F2", "move_to_ws", 1 kbind "Mod1+F3", "move_to_ws", 2 kbind "Mod1+F4", "move_to_ws", 3 kbind "Mod1+F5", "move_to_ws", 4 kbind "Mod1+F6", "move_to_ws", 5 kbind "Mod1+F7", "move_to_ws", 6 kbind "Mod1+F8", "move_to_ws", 7 kbind "Mod1+F9", "move_to_ws", 8 kbind "Mod1+F10", "move_to_ws", 9 # Menu navigation set_mod "" kbind_menu "Down", "menu_next" kbind_menu "n", "menu_next" kbind_menu "Up", "menu_prev" kbind_menu "p", "menu_prev" kbind_menu "Right", "menu_entersub" kbind_menu "space", "menu_entersub" kbind_menu "Left", "menu_leavesub" kbind_menu "b", "menu_leavesub" kbind_menu "Return", "menu_execute" kbind_menu "Escape", "menu_close" kbind_menu "Z", "menu_keep" # Keyboard move and resize set_mod "" kbind_moveres "Escape","kb_moveres_cancel" kbind_moveres "Return","kb_moveres_end" set_mod "" kbind_moveres "Right", "kb_move_stepped", 0x01 kbind_moveres "Left", "kb_move_stepped", 0x02 kbind_moveres "Down", "kb_move_stepped", 0x10 kbind_moveres "Up", "kb_move_stepped", 0x20 set_mod "Mod1" kbind_moveres "Right", "kb_resize_stepped", 0x01 kbind_moveres "Left", "kb_resize_stepped", 0x05 kbind_moveres "Down", "kb_resize_stepped", 0x10 kbind_moveres "Up", "kb_resize_stepped", 0x50 set_mod "Shift" kbind_moveres "Right", "kb_move", 0x01 kbind_moveres "Left", "kb_move", 0x02 kbind_moveres "Down", "kb_move", 0x10 kbind_moveres "Up", "kb_move", 0x20 set_mod "Mod1+Shift" kbind_moveres "Right", "kb_resize", 0x01 kbind_moveres "Left", "kb_resize", 0x05 kbind_moveres "Down", "kb_resize", 0x10 kbind_moveres "Up", "kb_resize", 0x50 set_mod ""