diff options
| author | ProsperousPotato <ProsperousPotato@users.noreply.github.com> | 2024-08-27 15:35:25 +0000 |
|---|---|---|
| committer | ProsperousPotato <ProsperousPotato@users.noreply.github.com> | 2025-03-31 18:31:28 +0100 |
| commit | 16bd06387bb05008d7176bec542ac52315cf367b (patch) | |
| tree | 5ed031dd798b7bd20a1ea206568ecb8baacbd977 /config.h | |
| parent | f1d700307223a557337d2f50cdf5cc6b5cc92778 (diff) | |
resize floating windows from nearest corner
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -72,7 +72,6 @@ static const Layout layouts[] = { static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; static const char *termcmd[] = { TERMINAL, NULL }; -static const char *cmdprintscreen[] = { "scrot", "~/Pictures/%Y-%m.jpg", NULL }; static const char *volumeup[] = { "amixer", "sset", "Master", "5%+", NULL }; static const char *volumedown[] = { "amixer", "sset", "Master", "5%-", NULL }; static const char *volumetoggle[] = { "amixer", "sset", "Master", "toggle", NULL }; @@ -126,17 +125,17 @@ static const Key keys[] = { { MODKEY|ShiftMask, XK_j, rotatestack, {.i = +1 } }, { MODKEY|ShiftMask, XK_k, rotatestack, {.i = -1 } }, { MODKEY|ShiftMask, XK_m, spawn, {.v = (const char*[]){ TERMINAL, "-e", "neomutt", NULL } }}, - { ControlMask|ShiftMask, XK_Escape, spawn, {.v = (const char*[]){ TERMINAL, "-e", "htop", NULL } }}, + { MODKEY|ShiftMask, XK_h, spawn, {.v = (const char*[]){ TERMINAL, "-e", "htop", NULL } }}, { MODKEY|ShiftMask, XK_e, spawn, {.v = (const char*[]){ TERMINAL, "-e", "lfub", NULL } }}, - { MODKEY, XK_Print, spawn, {.v = cmdprintscreen } }, - { 0, XF86XK_AudioRaiseVolume, spawn, {.v = volumeup } }, - { 0, XF86XK_AudioLowerVolume, spawn, {.v = volumedown } }, + { MODKEY, XK_Print, spawn, SHCMD("scrot -q 100 ~/Pictures/%Y-%m.jpg") }, { MODKEY, XK_Up, spawn, {.v = volumeup } }, { MODKEY, XK_Down, spawn, {.v = volumedown } }, { MODKEY, XK_Right, spawn, {.v = fasterbrightnessup } }, { MODKEY, XK_Left, spawn, {.v = fasterbrightnessdown } }, { MODKEY|ControlMask, XK_Right, spawn, {.v = brightnessup } }, { MODKEY|ControlMask, XK_Left, spawn, {.v = brightnessdown } }, + { 0, XF86XK_AudioRaiseVolume, spawn, {.v = volumeup } }, + { 0, XF86XK_AudioLowerVolume, spawn, {.v = volumedown } }, { 0, XF86XK_AudioMute, spawn, {.v = volumetoggle } }, { 0, XF86XK_MonBrightnessUp, spawn, {.v = fasterbrightnessup } }, { 0, XF86XK_MonBrightnessDown, spawn, {.v = fasterbrightnessdown } }, |
