comparison default.config.h @ 15:9d6b34ed3a09

featured useful combinations for laptop users (commented)
author Atarwn Gard <a@qwa.su>
date Wed, 15 Oct 2025 08:28:40 +0500
parents 9a4656899644
children 7a779983be56
comparison
equal deleted inserted replaced
14:9a4656899644 15:9d6b34ed3a09
38 "-nf", col_fg, 38 "-nf", col_fg,
39 "-sb", col_sel, 39 "-sb", col_sel,
40 "-sf", col_border_focused, 40 "-sf", col_border_focused,
41 NULL 41 NULL
42 }; 42 };
43 static const char *scrotcmd[] = { "scrot", NULL }; 43 // static const char *upbrightness[] = { "brightnessctl", "set", "10%+", NULL };
44 // static const char *downbrightness[] = { "brightnessctl", "set", "10%-", NULL };
45 // static const char *incvol[] = {"wpctl", "set-volume", "@DEFAULT_AUDIO_SINK@", "5%+", NULL};
46 // static const char *decvol[] = {"wpctl", "set-volume", "@DEFAULT_AUDIO_SINK@", "5%-", NULL};
47 // static const char *mutevol[] = {"wpctl", "set-mute", "@DEFAULT_AUDIO_SINK@", "toggle", NULL};
48 static const char *scrotcmd[] = { "/bin/sh", "-c", "scrot ~/Pictures/Screenshots/$(date +%Y.%m.%d_%H.%M).png", NULL };
49 // static const char *scrotselcmd[] = { "/bin/sh", "-c", "scrot -s ~/Pictures/Screenshots/$(date +%Y.%m.%d_%H.%M).png", NULL };
44 50
45 // Key bindings 51 // Key bindings
46 static Key keys[] = { 52 static Key keys[] = {
47 /* modifier key function argument */ 53 /* modifier key function argument */
48 { MOD, XK_a, enter_overlay, {0} }, 54 { MOD, XK_a, enter_overlay, {0} },
49 { MOD, XK_Return, spawn, {.v = termcmd} }, 55 { MOD, XK_Return, spawn, {.v = termcmd} },
50 { MOD, XK_p, spawn, {.v = menucmd} }, 56 { MOD, XK_p, spawn, {.v = menucmd} },
57 // { 0, XF86XK_MonBrightnessUp, spawn, {.v = upbrightness } },
58 // { 0, XF86XK_MonBrightnessDown, spawn, {.v = downbrightness } },
59 // { 0, XF86XK_AudioLowerVolume, spawn, {.v = decvol} },
60 // { 0, XF86XK_AudioRaiseVolume, spawn, {.v = incvol} },
61 // { 0, XF86XK_AudioMute, spawn, {.v = mutevol} },
51 { 0, XK_Print, spawn, {.v = scrotcmd} }, 62 { 0, XK_Print, spawn, {.v = scrotcmd} },
63 // { 0|ShiftMask, XK_Print, spawn, {.v = scrotselcmd} },
52 { MOD, XK_q, killclient, {0} }, 64 { MOD, XK_q, killclient, {0} },
53 { MOD, XK_f, toggle_fullscreen, {0} }, 65 { MOD, XK_f, toggle_fullscreen, {0} },
54 { MOD, XK_Tab, cycle_focus, {0} }, 66 { MOD, XK_Tab, cycle_focus, {0} },
55 { MOD|ShiftMask, XK_Tab, cycle_focus_backward, {0} }, 67 { MOD|ShiftMask, XK_Tab, cycle_focus_backward, {0} },
56 { MOD|ShiftMask, XK_q, quit, {0} }, 68 { MOD|ShiftMask, XK_q, quit, {0} },