From f42963bb22b7744462b24ec8326c0db4a10a94b8 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Fri, 4 Mar 2022 21:26:11 -0300 Subject: [PATCH] Add keybindings for desktop only (with #else directive) --- config.def.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/config.def.h b/config.def.h index 0f9bcb5..26da304 100644 --- a/config.def.h +++ b/config.def.h @@ -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") }, };