summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorAndrew <saintruler@gmail.com>2020-06-10 12:07:44 +0400
committerAndrew <saintruler@gmail.com>2020-06-10 12:07:44 +0400
commit995a9d10c8d11b8468154bcd9e5d5adb841a5658 (patch)
treeee00131b18b7263987e7e0f59c52c371820d0a4c /config.h
parent4ec34b1db282069e51f507a3e734ea79d540c3be (diff)
Added shortcuts for brightness and touchpad toggle
Diffstat (limited to 'config.h')
-rw-r--r--config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/config.h b/config.h
index 15cc956..f293d12 100644
--- a/config.h
+++ b/config.h
@@ -122,6 +122,14 @@ static Key keys[] = {
{ 0, XF86XK_AudioLowerVolume, spawn, SHCMD("pamixer --allow-boost -d 5; pkill -RTMIN+9 dwmblocks") },
{ 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("pamixer --allow-boost -i 5; pkill -RTMIN+9 dwmblocks") },
+ // Brightness control
+ { 0, XF86XK_MonBrightnessUp, spawn, SHCMD("xbacklight -inc 5") },
+ { 0, XF86XK_MonBrightnessDown, spawn, SHCMD("xbacklight -dec 5") },
+
+ // Touchpad notifications
+ { 0, XF86XK_TouchpadOff, spawn, SHCMD("notify-send 'Touchpad turned off'") },
+ { 0, XF86XK_TouchpadOn, spawn, SHCMD("notify-send 'Touchpad turned on'") },
+
// Screenshot of chosen area
{ 0, XK_Print, spawn, SHCMD("maim -u -s -m 1 | xclip -selection clipboard -t image/png") },
{ 0|ShiftMask, XK_Print, spawn, SHCMD("maim -u -s -m 1 | tee ~/Pictures/Screenshot_$(date +$s.png)") },