123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405 |
- # -*- mode: conf-space -*-
- begin
- flags = startup_mode
- mode = main
- end
- begin
- prog = irexec
- button = KEY_GREEN
- button = KEY_MODE
- config = osd-text
- flags = quit
- end
- ######## MAIN MODE #############################################
- begin main
- begin
- prog = irexec
- button = KEY_POWER
- mode = tv
- config = osd-text "mode: tv" ; toggle-tvtime &
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_SCREEN
- mode = mouse
- config = osd-text "mode: mouse"
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_MODE
- mode = mouse
- config = osd-text "mode: mouse"
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_RED
- config = xterm -e alsamixer &
- flags = quit
- end
- # OSD sleep
- begin
- prog = irexec
- button = KEY_5
- config = osd-sleep
- repeat = 1
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_0
- config = osd-sleep 0
- repeat = 1
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_1
- config = osd-sleep +1
- repeat = 1
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_7
- config = osd-sleep -1
- repeat = 1
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_2
- config = osd-sleep +3
- repeat = 1
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_8
- config = osd-sleep -3
- repeat = 1
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_3
- config = osd-sleep +10
- repeat = 1
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_9
- config = osd-sleep -10
- repeat = 1
- flags = quit
- end
- # EMMS control
- begin
- prog = irexec
- button = KEY_PLAYPAUSE
- config = emacsclient -s server-emms --eval '(emms-pause)'
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_GREEN
- button = KEY_RECORD
- config = emacsclient -s server-emms --eval '(emms-previous)'
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_GREEN
- button = KEY_STOP
- config = emacsclient -s server-emms --eval '(emms-next)'
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_RECORD
- config = emacsclient -s server-emms --eval '(al/emms-seek-backward 10)'
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_STOP
- config = emacsclient -s server-emms --eval '(al/emms-seek-forward 10)'
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_OK
- config = emacsclient -s server-emms --eval '(al/emms-mpv-show-progress)'
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_ZOOM
- config = emacsclient -s server-emms --eval '(al/emms-mpv-toggle-fullscreen)'
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_VOLUMEDOWN
- config = emacsclient -s server-emms --eval '(al/emms-seek-backward 60)'
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_VOLUMEUP
- config = emacsclient -s server-emms --eval '(al/emms-seek-forward 60)'
- flags = quit
- end
- # Volume control
- begin
- prog = irexec
- button = KEY_MUTE
- config = osd-sound sset Master toggle
- end
- begin
- prog = irexec
- button = KEY_CHANNELUP
- repeat = 1
- config = osd-sound sset Master 3%+
- end
- begin
- prog = irexec
- button = KEY_CHANNELDOWN
- repeat = 1
- config = osd-sound sset Master 3%-
- end
- end main
- ######## MOUSE MODE ############################################
- begin mouse
- begin
- prog = irexec
- button = KEY_SCREEN
- mode = main
- config = osd-text "mode: main"
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_MODE
- mode = tv
- config = osd-text "mode: tv"
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_CHANNELUP
- repeat = 1
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_CHANNELDOWN
- repeat = 1
- flags = quit
- end
- end mouse
- ######## TV MODE ###############################################
- begin tv
- begin
- prog = irexec
- button = KEY_POWER
- mode = main
- config = osd-text "mode: main" ; tvtime-command QUIT
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_MODE
- mode = main
- config = osd-text "mode: main"
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_OK
- config = tvtime-command DISPLAY_INFO
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_SCREEN
- config = tvtime-command TOGGLE_ASPECT
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_VOLUMEUP
- config = tvtime-command CHANNEL_UP
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_VOLUMEDOWN
- config = tvtime-command CHANNEL_DOWN
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_1
- config = tvtime-command CHANNEL_1
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_2
- config = tvtime-command CHANNEL_2
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_3
- config = tvtime-command CHANNEL_3
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_4
- config = tvtime-command CHANNEL_4
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_5
- config = tvtime-command CHANNEL_5
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_6
- config = tvtime-command CHANNEL_6
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_7
- config = tvtime-command CHANNEL_7
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_8
- config = tvtime-command CHANNEL_8
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_9
- config = tvtime-command CHANNEL_9
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_0
- config = tvtime-command CHANNEL_0
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_ZOOM
- config = tvtime-command TOGGLE_FULLSCREEN
- flags = quit
- end
- begin
- prog = irexec
- button = KEY_AGAIN
- config = tvtime-command CHANNEL_PREV
- flags = quit
- end
- # Volume control
- begin
- prog = irexec
- button = KEY_MUTE
- config = osd-sound sset Line toggle
- end
- begin
- prog = irexec
- button = KEY_CHANNELUP
- repeat = 1
- config = osd-sound sset Line 3%+
- end
- begin
- prog = irexec
- button = KEY_CHANNELDOWN
- repeat = 1
- config = osd-sound sset Line 3%-
- end
- end tv
- ######## GLOBAL KEYS ###########################################
- begin
- prog = irexec
- button = KEY_INFO
- config = toggle-osd-clock &
- end
- begin
- prog = irexec
- button = KEY_TEXT
- config = stumpish -e al/toggle-root < /dev/null
- end
- begin
- prog = irexec
- button = KEY_VIDEO
- button = KEY_VIDEO
- config = sudo chvt 11
- config = sudo chvt 7
- end
- # space, escape and 'q' keys
- begin
- prog = irexec
- button = KEY_GREEN
- button = KEY_CAMERA
- config = xdotool key q
- flags = quit
- end
- begin
- prog = irexec
- # freeze key
- button = KEY_CAMERA
- config = xdotool key space
- flags = quit
- end
- begin
- prog = irexec
- # tv key
- button = KEY_TUNER
- config = xdotool key Escape
- flags = quit
- end
|