2026-11-09 22:50:51 +02:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
# Direct evdev handling for the 2720 Flip side volume rocker.
|
|
|
|
|
|
|
|
|
|
description="Bananarchy side volume keys"
|
|
|
|
|
|
|
|
|
|
command="/usr/bin/bananarchy-volume-keys"
|
|
|
|
|
command_background=true
|
|
|
|
|
pidfile="/run/bananarchy-volume-keys.pid"
|
|
|
|
|
|
|
|
|
|
depend() {
|
|
|
|
|
need udev
|
|
|
|
|
after udev-settle
|
|
|
|
|
}
|
2026-11-11 14:20:42 +02:00
|
|
|
|
|
|
|
|
start() {
|
|
|
|
|
if [ "$(cat /usr/share/bananarchy/lid-profile 2>/dev/null)" != "flip" ]; then
|
|
|
|
|
ebegin "Skipping side volume keys (not a flip device)"
|
|
|
|
|
eend 0
|
|
|
|
|
return 0
|
|
|
|
|
fi
|
|
|
|
|
default_start
|
|
|
|
|
}
|