X-Git-Url: http://pileus.org/git/?p=wmpus;a=blobdiff_plain;f=wm-wmii.c;h=ea631242abfed36d5568910bce14734283f8ee1a;hp=06b71f67694830210204c2a374b23dd23c8d6f03;hb=43cb9b7de22dac5864d73321ec974bb937a217ff;hpb=776ac6910ee9db701c1cfe2ab234ae5fb96ce9db diff --git a/wm-wmii.c b/wm-wmii.c index 06b71f6..ea63124 100644 --- a/wm-wmii.c +++ b/wm-wmii.c @@ -739,6 +739,7 @@ int wm_handle_key(win_t *win, Key_t key, mod_t mod, ptr_t ptr) #endif if (key == key_f5) return wm_update(), 1; if (key == key_f6) return print_txt(), 1; + if (key == 'q') return sys_exit(), 1; } /* Floating layer */ @@ -902,7 +903,7 @@ void wm_init(win_t *root) wm->tags = list_insert(NULL, wm->tag); Key_t keys_e[] = {key_enter, key_focus}; - Key_t keys_s[] = {'h', 'j', 'k', 'l', ' ', + Key_t keys_s[] = {'h', 'j', 'k', 'l', 'q', ' ', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'}; Key_t keys_m[] = {'h', 'j', 'k', 'l', 'd', 's', 'm', 't', ' ', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',