Skip to content

Instantly share code, notes, and snippets.

@wilson
Created April 1, 2025 19:59
Show Gist options
  • Save wilson/dd1d50ff413529de6d1e5d355263a5df to your computer and use it in GitHub Desktop.
Save wilson/dd1d50ff413529de6d1e5d355263a5df to your computer and use it in GitHub Desktop.
# ~/.lircrc for Squeezelite
# Based on Slim Devices Squeezebox3 remote
# Volume controls
begin
remote = Slim_Devices_Squeezebox3
button = KEY_VOLUMEDOWN
repeat = 1
prog = squeezelite
config = voldown
end
begin
remote = Slim_Devices_Squeezebox3
button = KEY_VOLUMEUP
repeat = 1
prog = squeezelite
config = volup
end
# Playback controls
begin
remote = Slim_Devices_Squeezebox3
button = KEY_PLAY
repeat = 0
prog = squeezelite
config = play
end
begin
remote = Slim_Devices_Squeezebox3
button = KEY_PAUSE
repeat = 0
prog = squeezelite
config = pause
end
begin
remote = Slim_Devices_Squeezebox3
button = KEY_FORWARD
repeat = 1
prog = squeezelite
config = fwd
end
begin
remote = Slim_Devices_Squeezebox3
button = KEY_REWIND
repeat = 1
prog = squeezelite
config = rew
end
# Power control
begin
remote = Slim_Devices_Squeezebox3
button = KEY_POWER
repeat = 0
prog = squeezelite
config = power
end
# Mute control
begin
remote = Slim_Devices_Squeezebox3
button = KEY_BRIGHTNESS_CYCLE
repeat = 0
prog = squeezelite
config = muting
end
# Alternative using the KEY_MUTE button if available
begin
remote = Slim_Devices_Squeezebox3
button = KEY_MUTE
repeat = 0
prog = squeezelite
config = muting
end
# Presets
begin
remote = Slim_Devices_Squeezebox3
button = KEY_1
repeat = 0
prog = squeezelite
config = preset_1
end
begin
remote = Slim_Devices_Squeezebox3
button = KEY_2
repeat = 0
prog = squeezelite
config = preset_2
end
begin
remote = Slim_Devices_Squeezebox3
button = KEY_3
repeat = 0
prog = squeezelite
config = preset_3
end
begin
remote = Slim_Devices_Squeezebox3
button = KEY_4
repeat = 0
prog = squeezelite
config = preset_4
end
begin
remote = Slim_Devices_Squeezebox3
button = KEY_5
repeat = 0
prog = squeezelite
config = preset_5
end
begin
remote = Slim_Devices_Squeezebox3
button = KEY_6
repeat = 0
prog = squeezelite
config = preset_6
end
# Additional buttons that could be used with irexec for custom actions
# These are setup to display a message rather than change functionality
begin
remote = Slim_Devices_Squeezebox3
button = KEY_SHUFFLE
repeat = 0
prog = irexec
config = echo "Shuffle button pressed - not implemented in Squeezelite"
end
begin
remote = Slim_Devices_Squeezebox3
button = KEY_MEDIA_REPEAT
repeat = 0
prog = irexec
config = echo "Repeat button pressed - not implemented in Squeezelite"
end
begin
remote = Slim_Devices_Squeezebox3
button = KEY_FAVORITES
repeat = 0
prog = irexec
config = echo "Favorites button pressed - not implemented in Squeezelite"
end
begin
remote = Slim_Devices_Squeezebox3
button = KEY_SEARCH
repeat = 0
prog = irexec
config = echo "Search button pressed - not implemented in Squeezelite"
end
begin
remote = Slim_Devices_Squeezebox3
button = KEY_UP
repeat = 0
prog = irexec
config = echo "Up button pressed - not implemented in Squeezelite"
end
begin
remote = Slim_Devices_Squeezebox3
button = KEY_DOWN
repeat = 0
prog = irexec
config = echo "Down button pressed - not implemented in Squeezelite"
end
begin
remote = Slim_Devices_Squeezebox3
button = KEY_LEFT
repeat = 0
prog = irexec
config = echo "Left button pressed - not implemented in Squeezelite"
end
begin
remote = Slim_Devices_Squeezebox3
button = KEY_RIGHT
repeat = 0
prog = irexec
config = echo "Right button pressed - not implemented in Squeezelite"
end
begin
remote = Slim_Devices_Squeezebox3
button = KEY_HOME
repeat = 0
prog = irexec
config = echo "Home button pressed - not implemented in Squeezelite"
end
begin
remote = Slim_Devices_Squeezebox3
button = KEY_TITLE
repeat = 0
prog = irexec
config = echo "Now Playing button pressed - not implemented in Squeezelite"
end
begin
remote = Slim_Devices_Squeezebox3
button = KEY_TEXT
repeat = 0
prog = irexec
config = echo "Size button pressed - not implemented in Squeezelite"
end
begin
remote = Slim_Devices_Squeezebox3
button = KEY_SLEEP
repeat = 0
prog = irexec
config = echo "Sleep button pressed - not implemented in Squeezelite"
end
begin
remote = Slim_Devices_Squeezebox3
button = KEY_INSERT
repeat = 0
prog = irexec
config = echo "Add button pressed - not implemented in Squeezelite"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment