# HG changeset patch # User Atarwn Gard # Date 1760498920 -18000 # Node ID 9d6b34ed3a0905b9c52292b93ab3c0bf01595aaf # Parent 9a4656899644bb27f961bfdd8c18304628b5673b featured useful combinations for laptop users (commented) diff -r 9a4656899644 -r 9d6b34ed3a09 default.config.h --- a/default.config.h Tue Oct 14 18:20:13 2025 +0500 +++ b/default.config.h Wed Oct 15 08:28:40 2025 +0500 @@ -40,7 +40,13 @@ "-sf", col_border_focused, NULL }; -static const char *scrotcmd[] = { "scrot", NULL }; +// static const char *upbrightness[] = { "brightnessctl", "set", "10%+", NULL }; +// static const char *downbrightness[] = { "brightnessctl", "set", "10%-", NULL }; +// static const char *incvol[] = {"wpctl", "set-volume", "@DEFAULT_AUDIO_SINK@", "5%+", NULL}; +// static const char *decvol[] = {"wpctl", "set-volume", "@DEFAULT_AUDIO_SINK@", "5%-", NULL}; +// static const char *mutevol[] = {"wpctl", "set-mute", "@DEFAULT_AUDIO_SINK@", "toggle", NULL}; +static const char *scrotcmd[] = { "/bin/sh", "-c", "scrot ~/Pictures/Screenshots/$(date +%Y.%m.%d_%H.%M).png", NULL }; +// static const char *scrotselcmd[] = { "/bin/sh", "-c", "scrot -s ~/Pictures/Screenshots/$(date +%Y.%m.%d_%H.%M).png", NULL }; // Key bindings static Key keys[] = { @@ -48,7 +54,13 @@ { MOD, XK_a, enter_overlay, {0} }, { MOD, XK_Return, spawn, {.v = termcmd} }, { MOD, XK_p, spawn, {.v = menucmd} }, + // { 0, XF86XK_MonBrightnessUp, spawn, {.v = upbrightness } }, + // { 0, XF86XK_MonBrightnessDown, spawn, {.v = downbrightness } }, + // { 0, XF86XK_AudioLowerVolume, spawn, {.v = decvol} }, + // { 0, XF86XK_AudioRaiseVolume, spawn, {.v = incvol} }, + // { 0, XF86XK_AudioMute, spawn, {.v = mutevol} }, { 0, XK_Print, spawn, {.v = scrotcmd} }, + // { 0|ShiftMask, XK_Print, spawn, {.v = scrotselcmd} }, { MOD, XK_q, killclient, {0} }, { MOD, XK_f, toggle_fullscreen, {0} }, { MOD, XK_Tab, cycle_focus, {0} },