#
# Initial test configuration for systemwide irexec
service.
#
# Note that the system-wide service is useful only in
corner-cases.
# Most scenarios are better off with a session service as
described in the
# Configuration Guide. However, note that both can also be
combined.
#
# Also note that the system-wide service runs without a
terminal. To
# check the output generated use something like
# 'journalctl -b0 /usr/bin/irexec'. This service just
echoes some keys
# commonly available.
#
begin
button = halt
prog = irexec
config = sudo shutdown -h now
end
begin
button = reboot
prog = irexec
config = sudo shutdown -r now
end
begin
button = play
prog = irexec
config = mpc play
end
begin
button = stop
prog = irexec
config = mpc stop
end
begin
button = prev
prog = irexec
config = mpc prev
end
begin
button = next
prog = irexec
config = mpc next;mpc play
end
begin
button = vol_up
prog = irexec
config = mpc volume +10
end
begin
button = vol_down
prog = irexec
config = mpc volume -10
end
|