Skip to content
Snippets Groups Projects
Commit 5d87ce5a authored by CALIN Alexis's avatar CALIN Alexis
Browse files

added webcam shortcut

parent 53db17c8
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,7 @@ static const Rule rules[] = { ...@@ -28,6 +28,7 @@ static const Rule rules[] = {
*/ */
/* class instance title tags mask isfloating monitor */ /* class instance title tags mask isfloating monitor */
{ "Gimp", NULL, NULL, 0, 1, -1 }, { "Gimp", NULL, NULL, 0, 1, -1 },
{ "webcam", NULL, NULL, 0, 1, -1 },
}; };
/* layout(s) */ /* layout(s) */
...@@ -100,9 +101,12 @@ static Key keys[] = { ...@@ -100,9 +101,12 @@ static Key keys[] = {
{ 0, XF86XK_AudioMute, spawn, SHCMD("amixer set Master toggle") }, { 0, XF86XK_AudioMute, spawn, SHCMD("amixer set Master toggle") },
{ 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("amixer -D default sset Master Playback 10%+") }, { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("amixer -D default sset Master Playback 10%+") },
{ 0, XF86XK_AudioLowerVolume, spawn, SHCMD("amixer -D default sset Master Playback 10%-") }, { 0, XF86XK_AudioLowerVolume, spawn, SHCMD("amixer -D default sset Master Playback 10%-") },
{ 0, XF86XK_AudioMicMute, spawn, SHCMD("pactl set-source-mute @DEFAULT_SOURCE@ toggle") },
{ 0, XF86XK_MonBrightnessUp, spawn, {.v = (const char*[]){ "xbacklight", "-inc", "15", NULL } } }, { 0, XF86XK_MonBrightnessUp, spawn, {.v = (const char*[]){ "xbacklight", "-inc", "15", NULL } } },
{ 0, XF86XK_MonBrightnessDown, spawn, {.v = (const char*[]){ "xbacklight", "-dec", "15", NULL } } }, { 0, XF86XK_MonBrightnessDown, spawn, {.v = (const char*[]){ "xbacklight", "-dec", "15", NULL } } },
{ 0, XF86XK_ScreenSaver, spawn, SHCMD("slock & xset dpms force off") },
{ 0, XF86XK_Sleep, spawn, {.v = (const char*[]){ "systemctl", "suspend", NULL } } }, { 0, XF86XK_Sleep, spawn, {.v = (const char*[]){ "systemctl", "suspend", NULL } } },
{ 0, XF86XK_WebCam, spawn, SHCMD("mpv --untimed --no-cache --no-osc --no-input-default-bindings --profile=low-latency --input-conf=/dev/null --title=webcam $(ls /dev/video[0,2,4,6,8] | tail -n 1)") },
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment