diff options
Diffstat (limited to 'core/modules/kiosk-common')
3 files changed, 42 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 79f08e3d..263ff855 100755 --- a/core/modules/kiosk-common/data/opt/openslx/scripts/kiosk-launch +++ b/core/modules/kiosk-common/data/opt/openslx/scripts/kiosk-launch @@ -7,6 +7,8 @@ export PATH="$PATH:/opt/openslx/sbin:/opt/openslx/bin" [ -z "$SLX_BROWSER_URL" ] && exit 1 +. /opt/openslx/bin/slx-tools + # disable power management features xset s off xset -dpms @@ -17,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 # |