summaryrefslogtreecommitdiffstats
path: root/dot-lircrc.example
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2022-05-30 19:40:31 +0900
committerSlávek Banko <slavek.banko@axis.cz>2022-05-30 21:55:12 +0200
commit9d7329284fd42187092c829ae6ed030561002776 (patch)
tree1d53503d17938eca725caee7ff783fccf52ca509 /dot-lircrc.example
parentfac82f62f156c76cb4b23c313111283b30a778b5 (diff)
downloadtderadio-9d732928.tar.gz
tderadio-9d732928.zip
Standardize folder structure.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit d95a4fea540b371fa86493d069fdbd54f33c5b40)
Diffstat (limited to 'dot-lircrc.example')
-rw-r--r--dot-lircrc.example221
1 files changed, 221 insertions, 0 deletions
diff --git a/dot-lircrc.example b/dot-lircrc.example
new file mode 100644
index 0000000..73176c4
--- /dev/null
+++ b/dot-lircrc.example
@@ -0,0 +1,221 @@
+begin
+ flags = startup_mode
+ mode = TV-off
+end
+
+
+begin TV-off
+
+ begin
+ button = RESERVED
+ repeat = 0
+ prog = irexec
+ config = if xset q | grep "DPMS is Enabled" > /dev/null ; then xset -dpms; else xset dpms force off; fi
+ end
+
+ begin
+ prog = tderadio
+ config = eventmap
+ end
+
+ begin
+ button = TV
+ repeat = 0
+ prog = irexec
+ config = xset -dpms && sleep 1 && tvtime &
+ end
+
+ begin
+ button = TV
+ mode = TV-on
+ flags = quit
+ end
+
+end TV-off
+
+
+
+begin TV-on
+
+
+# The following defines most of the common buttons found on a remote and
+# what commads they would map to inside tvtime.
+
+begin
+ prog = irexec
+ button = SOURCE
+ config = tvtime-command TOGGLE_INPUT
+end
+
+#begin
+# prog = irexec
+# button = DISPLAY
+# config = tvtime-command DISPLAY_INFO
+# repeat = 1
+#end
+
+begin
+ prog = irexec
+ button = FULL_SCREEN
+ config = tvtime-command TOGGLE_FULLSCREEN
+end
+
+#begin
+# prog = irexec
+# button = CC
+# config = tvtime-command TOGGLE_CC
+#end
+
+begin
+ prog = irexec
+ button = MUTE
+ config = tvtime-command TOGGLE_MUTE
+end
+
+# Menu navigation.
+begin
+ prog = irexec
+ button = CH+
+ config = tvtime-command UP
+ repeat = 0
+end
+begin
+ prog = irexec
+ button = CH-
+ config = tvtime-command DOWN
+ repeat = 0
+end
+begin
+ prog = irexec
+ button = VOL+
+ config = tvtime-command RIGHT
+ config = tvtime-command RIGHT
+ repeat = 1
+end
+
+begin
+ prog = irexec
+ button = VOL-
+ config = tvtime-command LEFT
+ config = tvtime-command LEFT
+ repeat = 1
+end
+
+#begin
+# prog = irexec
+# button = RECALL
+# config = tvtime-command CHANNEL_JUMP
+# repeat = 1
+#end
+
+begin
+ prog = irexec
+ button = 1
+ config = tvtime-command CHANNEL_1
+end
+begin
+ prog = irexec
+ button = 2
+ config = tvtime-command CHANNEL_2
+end
+begin
+ prog = irexec
+ button = 3
+ config = tvtime-command CHANNEL_3
+end
+begin
+ prog = irexec
+ button = 4
+ config = tvtime-command CHANNEL_4
+end
+begin
+ prog = irexec
+ button = 5
+ config = tvtime-command CHANNEL_5
+end
+begin
+ prog = irexec
+ button = 6
+ config = tvtime-command CHANNEL_6
+end
+begin
+ prog = irexec
+ button = 7
+ config = tvtime-command CHANNEL_7
+end
+begin
+ prog = irexec
+ button = 8
+ config = tvtime-command CHANNEL_8
+end
+begin
+ prog = irexec
+ button = 9
+ config = tvtime-command CHANNEL_9
+end
+begin
+ prog = irexec
+ button = 0
+ config = tvtime-command CHANNEL_0
+end
+
+#begin
+# prog = irexec
+# button = ENTER
+# config = tvtime-command ENTER
+#end
+
+
+ begin
+ prog = irexec
+ button = RESERVED
+ config = tvtime-command QUIT
+ end
+
+ begin
+ prog = irexec
+ button = MINIMIZE
+ config = tvtime-command QUIT
+ end
+
+ begin
+ prog = irexec
+ button = RADIO
+ config = tvtime-command QUIT
+ end
+
+ begin
+ prog = irexec
+ button = TV
+ config = tvtime-command QUIT
+ end
+
+ begin
+ button = RESERVED
+ mode = TV-off
+ flags = quit
+ end
+
+ begin
+ button = TV
+ mode = TV-off
+ flags = quit
+ end
+
+
+ begin
+ button = MINIMIZE
+ mode = TV-off
+ flags = quit
+ end
+
+
+ begin
+ button = RADIO
+ mode = TV-off
+ flags = quit
+ end
+
+
+end TV-on
+