Add dwm default hotkeys

This commit is contained in:
Camille TJHOA 2016-01-13 00:47:02 +01:00
parent 2a66bf9e27
commit e5009495d8
2 changed files with 90 additions and 0 deletions

90
usr/dwm_01.ini Normal file
View file

@ -0,0 +1,90 @@
; bug.n - tiling window management
; @version 9.0.0
; Sample config file with most of the default dwm config
Config_fontColor_#1=Gray;White;Gray;White;Gray;White;White;Black;808080
;{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
;
;{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
;
;{ MODKEY, XK_b, togglebar, {0} },
Config_hotkey=#b::Monitor_toggleBar()
;{ MODKEY, XK_j, focusstack, {.i = +1 } },
Config_hotkey=#j::View_activateWindow(0, +1)
;{ MODKEY, XK_k, focusstack, {.i = -1 } },
Config_hotkey=#k::View_activateWindow(0, -1)
;{ MODKEY, XK_i, incnmaster, {.i = +1 } },
Config_hotkey=#i::View_shuffleWindow(0, +1)
;{ MODKEY, XK_d, incnmaster, {.i = -1 } },
Config_hotkey=#d::View_shuffleWindow(0, -1)
;{ MODKEY, XK_h, setmfact, {.f = -0.05} },
Config_hotkey=#h::View_setLayoutProperty("MFactor", 0, -0.05)
;{ MODKEY, XK_l, setmfact, {.f = +0.05} },
Config_hotkey=#l::View_setLayoutProperty("MFactor", 0, +0.05)
;{ MODKEY, XK_Return, zoom, {0} },
Config_hotkey=#Enter::Manager_maximizeWindow()
;{ MODKEY, XK_Tab, view, {0} },
;
;{ MODKEY|ShiftMask, XK_c, killclient, {0} },
Config_hotkey=#+c::Manager_closeWindow()
;{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
Config_hotkey=#t::View_setLayout(1)
;{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
Config_hotkey=#f::View_setLayout(3)
;{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
Config_hotkey=#m::View_setLayout(2)
;{ MODKEY, XK_space, setlayout, {0} },
Config_hotkey=#Space::View_setLayout(-1)
;{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
Config_hotkey=#+Space::View_toggleFloatingWindow()
;{ MODKEY, XK_0, view, {.ui = ~0 } },
;
;{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
Config_hotkey=#+0::Monitor_setWindowTag(10)
;{ MODKEY, XK_comma, focusmon, {.i = -1 } },
Config_hotkey=#,::Manager_activateMonitor(0, -1)
;{ MODKEY, XK_period, focusmon, {.i = +1 } },
Config_hotkey=#.::Manager_activateMonitor(0, +1)
;{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
Config_hotkey=#+,::Manager_setWindowMonitor(0, -1)
;{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
Config_hotkey=#+.::Manager_setWindowMonitor(0, +1)
;TAGKEYS( XK_1, 0)
Config_hotkey=#0::Monitor_activateView(0)
Config_hotkey=#+0::Monitor_setWindowTag(0)
Config_hotkey=#^+0::Monitor_toggleWindowTag(0)
;TAGKEYS( XK_2, 1)
Config_hotkey=#1::Monitor_activateView(1)
Config_hotkey=#+1::Monitor_setWindowTag(1)
Config_hotkey=#^+1::Monitor_toggleWindowTag(1)
;TAGKEYS( XK_3, 2)
Config_hotkey=#2::Monitor_activateView(2)
Config_hotkey=#+2::Monitor_setWindowTag(2)
Config_hotkey=#^+2::Monitor_toggleWindowTag(2)
;TAGKEYS( XK_4, 3)
Config_hotkey=#3::Monitor_activateView(3)
Config_hotkey=#+3::Monitor_setWindowTag(3)
Config_hotkey=#^+3::Monitor_toggleWindowTag(3)
;TAGKEYS( XK_5, 4)
Config_hotkey=#4::Monitor_activateView(4)
Config_hotkey=#+4::Monitor_setWindowTag(4)
Config_hotkey=#^+4::Monitor_toggleWindowTag(4)
;TAGKEYS( XK_6, 5)
Config_hotkey=#5::Monitor_activateView(5)
Config_hotkey=#+5::Monitor_setWindowTag(5)
Config_hotkey=#^+5::Monitor_toggleWindowTag(5)
;TAGKEYS( XK_7, 6)
Config_hotkey=#6::Monitor_activateView(6)
Config_hotkey=#+6::Monitor_setWindowTag(6)
Config_hotkey=#^+6::Monitor_toggleWindowTag(6)
;TAGKEYS( XK_8, 7)
Config_hotkey=#7::Monitor_activateView(7)
Config_hotkey=#+7::Monitor_setWindowTag(7)
Config_hotkey=#^+7::Monitor_toggleWindowTag(7)
;TAGKEYS( XK_9, 8)
Config_hotkey=#8::Monitor_activateView(8)
Config_hotkey=#+8::Monitor_setWindowTag(8)
Config_hotkey=#^+8::Monitor_toggleWindowTag(8)
;{ MODKEY|ShiftMask, XK_q, quit, {0} },
Config_hotkey=#+q::ExitApp

BIN
usr/dwm_01.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 KiB