# # Key and button bindings for Ion # bindings{ set_mod "Control+Mod1" kpress "T", "exec", "xterm" set_mod "Control" kpress "Escape", "query_exec" set_mod "Mod1" kpress "Tab", "switch_next" set_mod "Mod1" submap "O" { kpress "V", "split_horiz" kpress "L", "split_vert" kpress "F4", "destroy_frame" } set_mod "Control+Mod1" kpress "Left", "goto_left" kpress "Right", "goto_right" kpress "Up", "goto_above" kpress "Down", "goto_below" set_mod "Mod1" kpress "F2", "maximize_vert" set_mod "Control" kpress "F2", "maximize_horiz" set_mod "Mod1" kpress "F4", "closedestroy" set_mod "Mod1" kpress "F7", "query_attachclient" set_mod "Mod1" kpress "F8", "resize_vert" set_mod "Control" kpress "F8", "resize_horiz" set_mod "Mod1" kpress "1", "switch_ws_nth", 0 kpress "2", "switch_ws_nth", 1 kpress "3", "switch_ws_nth", 2 kpress "4", "switch_ws_nth", 3 kpress "5", "switch_ws_nth", 4 kpress "6", "switch_ws_nth", 5 kpress "7", "switch_ws_nth", 6 kpress "8", "switch_ws_nth", 7 kpress "9", "switch_ws_nth", 8 kpress "0", "switch_ws_nth", 9 kpress "G", "query_gotoclient" submap "K" { set_mod "AnyModifier" kpress "P", "switch_prev" kpress "K", "goto_previous" kpress "C", "kill" kpress "1", "switch_nth", 0 kpress "2", "switch_nth", 1 kpress "3", "switch_nth", 2 kpress "4", "switch_nth", 3 kpress "5", "switch_nth", 4 kpress "6", "switch_nth", 5 kpress "7", "switch_nth", 6 kpress "8", "switch_nth", 7 kpress "9", "switch_nth", 8 kpress "0", "switch_nth", 9 } set_mod "" kpress "F1", "query_runwith", "Manual page:", "ion-man" kpress "Mod1+F1", "exec", "ion-man ion" kpress "F2", "exec", "xterm" kpress "F3", "query_exec" kpress "Mod1+F3", "query_function" kpress "F4", "query_runwith", "SSH to:", "ion-ssh" kpress "F5", "query_runfile", "Edit file:", "ion-edit" kpress "F6", "query_runfile", "View file:", "ion-view" kpress "F9", "query_workspace" kpress "Mod1+F9", "query_workspace_with" kpress "F11", "query_yesno", "Restart Ion (y/n)?", "restart" kpress "F12", "query_yesno", "Exit Ion (y/n)?", "exit" mdrag "Button3", "p_resize" } tab_bindings{ mclick "Button1", "switch_tab" mdrag "Button1", "p_tabdrag" mdrag "Button3", "p_resize" } input_bindings{ set_mod "Control" kpress "F", "forward" kpress "B", "back" kpress "E", "eol" kpress "A", "bol" kpress "Z", "bskip_word" kpress "X", "skip_word" kpress "D", "delete" kpress "H", "backspace" kpress "J", "kill_to_eol" kpress "Y", "kill_line" kpress "W", "kill_word" kpress "O", "bkill_word" kpress "U", "scrollup" kpress "V", "scrolldown" kpress "P", "history_prev" kpress "N", "history_next" kpress "M", "finish" kpress "C", "cancel" submap "K" { set_mod "AnyModifier" kpress "B", "set_mark" kpress "Y", "cut" kpress "K", "copy" kpress "C", "paste" } set_mod "" kpress "Return", "finish" kpress "Delete", "delete" kpress "BackSpace", "backspace" kpress "Home", "bol" kpress "End", "eol" kpress "Tab", "complete" kpress "Up", "history_prev" kpress "Down", "history_next" kpress "Right", "forward" kpress "Left", "back" kpress "Escape", "cancel" kpress "Page_Up", "scrollup" kpress "Page_Down", "scrolldown" mclick "Button2", "paste" } moveres_bindings{ set_mod "AnyModifier" kpress "Escape", "cancel_resize" kpress "Return", "end_resize" kpress "S", "grow" kpress "M", "shrink" }