Add keybindings for desktop only (with #else directive)

This commit is contained in:
Santiago Lo Coco 2022-03-04 21:26:11 -03:00
parent 19c2871d21
commit f42963bb22
1 changed files with 5 additions and 4 deletions

View File

@ -234,17 +234,18 @@ static Key keys[] = {
{ 0, XF86XK_AudioLowerVolume, spawn, SHCMD("pulsemixer --change-volume -1; sigdwmblocks 2") },
{ 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("pulsemixer --change-volume +1; sigdwmblocks 2") },
{ 0, XF86XK_AudioMute, spawn, SHCMD("pulsemixer --toggle-mute; sigdwmblocks 2") },
{ 0, XF86XK_HomePage, spawn, SHCMD("pcmanfm") },
{ 0, XF86XK_Tools, spawn, SHCMD("pkill imwheel && imwheel -b 45") },
{ 0, XF86XK_AudioStop, spawn, SHCMD("dunstctl set-paused toggle; sigdwmblocks 6") },
#ifdef LAPTOP
{ 0, XF86XK_MonBrightnessDown, spawn, SHCMD("xbacklight -dec 5") },
{ 0, XF86XK_MonBrightnessUp, spawn, SHCMD("xbacklight -inc 5") },
{ 0, XF86XK_KbdBrightnessDown, spawn, SHCMD("brightnessctl --device='smc::kbd_backlight' set 20%-") },
{ 0, XF86XK_KbdBrightnessUp, spawn, SHCMD("brightnessctl --device='smc::kbd_backlight' set +20%") },
#else
{ 0, XF86XK_HomePage, spawn, SHCMD("pcmanfm") },
{ 0, XF86XK_Tools, spawn, SHCMD("pkill imwheel && imwheel -b 45") },
{ 0, XF86XK_AudioStop, spawn, SHCMD("dunstctl set-paused toggle; sigdwmblocks 6") },
{ 0, XK_Print, spawn, SHCMD("$HOME/.local/bin/screenshot") },
#endif
{ MODKEY|ShiftMask, XK_m, spawn, SHCMD("noisetorch; $TERMINAL -e \"alsamixer\"") },
{ 0, XK_Print, spawn, SHCMD("$HOME/.local/bin/screenshot") },
{ MODKEY, XK_v, spawn, SHCMD("clipmenu") },
};