diff options
author | Simon Rettberg | 2021-03-22 09:56:23 +0100 |
---|---|---|
committer | Simon Rettberg | 2021-03-22 09:59:10 +0100 |
commit | 9da7e4739a3ad25c1ffdae940cf5b6568c5a978c (patch) | |
tree | effdc8ae89ea77f0cc7460e557493454ce3c1e4f /core/modules/kiosk-common | |
parent | [xorg] Remove deprecated intel module, add qxl module (diff) | |
download | mltk-9da7e4739a3ad25c1ffdae940cf5b6568c5a978c.tar.gz mltk-9da7e4739a3ad25c1ffdae940cf5b6568c5a978c.tar.xz mltk-9da7e4739a3ad25c1ffdae940cf5b6568c5a978c.zip |
[kiosk-common/kiosk-chromium] Support multimedia keys
Closes #3792
Diffstat (limited to 'core/modules/kiosk-common')
3 files changed, 40 insertions, 0 deletions
diff --git a/core/modules/kiosk-common/data/opt/openslx/lightdm/xbindkeys-kiosk-interactive.rc b/core/modules/kiosk-common/data/opt/openslx/lightdm/xbindkeys-kiosk-interactive.rc new file mode 100644 index 00000000..70e197a1 --- /dev/null +++ b/core/modules/kiosk-common/data/opt/openslx/lightdm/xbindkeys-kiosk-interactive.rc @@ -0,0 +1,8 @@ + "pactl set-sink-volume @DEFAULT_SINK@ +1000" + XF86AudioRaiseVolume + "pactl set-sink-volume @DEFAULT_SINK@ -1000" + XF86AudioLowerVolume + "pactl set-sink-mute @DEFAULT_SINK@ toggle" + XF86AudioMute + "pactl set-source-mute @DEFAULT_SOURCE@ toggle" + XF86AudioMicMute diff --git a/core/modules/kiosk-common/data/opt/openslx/lightdm/xbindkeys-kiosk.rc b/core/modules/kiosk-common/data/opt/openslx/lightdm/xbindkeys-kiosk.rc new file mode 100644 index 00000000..4f9e7cf5 --- /dev/null +++ b/core/modules/kiosk-common/data/opt/openslx/lightdm/xbindkeys-kiosk.rc @@ -0,0 +1,24 @@ + "true" + Control+d + "true" + Control+t + "true" + Control+s + "true" + Control+n + "true" + Control+j + "true" + Control+p + "true" + Control+h + "true" + Control+Shift+o + "pactl set-sink-volume @DEFAULT_SINK@ +1000" + XF86AudioRaiseVolume + "pactl set-sink-volume @DEFAULT_SINK@ -1000" + XF86AudioLowerVolume + "pactl set-sink-mute @DEFAULT_SINK@ toggle" + XF86AudioMute + "pactl set-source-mute @DEFAULT_SOURCE@ toggle" + XF86AudioMicMute diff --git a/core/modules/kiosk-common/data/opt/openslx/scripts/kiosk-launch b/core/modules/kiosk-common/data/opt/openslx/scripts/kiosk-launch index 8525d2f2..263ff855 100755 --- a/core/modules/kiosk-common/data/opt/openslx/scripts/kiosk-launch +++ b/core/modules/kiosk-common/data/opt/openslx/scripts/kiosk-launch @@ -19,6 +19,14 @@ openbox --config-file "/etc/xdg/openbox/rc.xml.kiosk" & # move the mouse away xdotool mousemove 20000 20000 +if [ -z "$SLX_BROWSER_INTERACTIVE" ]; then + # swallow keyboard shortcuts of chromium + xbindkeys -f /opt/openslx/lightdm/xbindkeys-kiosk.rc & +else + # volume controls only + xbindkeys -f /opt/openslx/lightdm/xbindkeys-kiosk-interactive.rc & +fi + # Remember list of jobs running the background, so we can clean up # any mess left around by failed attempts below # |