begin prog = irexec button = Display config = if [ $(ps -eo cmd | grep -c '^kaffeine') -eq 0 ]; then (kaffeine -f --geometry 1920x1080+1440+0 && dcop kaffeine KaffeineIface playDvb &); fi end begin prog = irexec button = Audio config = if [ $(ps -eo cmd | grep -c ^/usr/bin/rhythmbox$) -eq 0 ]; then (rhythmbox && rhythmbox-client --play &); fi end begin prog = irexec button = Source config = if [ $(ps -eo cmd | grep -c ^/usr/bin/rhythmbox$) -eq 0 ] && [ $(ps -eo cmd | grep -c '^kaffeine') -eq 0 ]; then (shutdown -h now &); fi end begin prog = irexec button = Vol_Up config = aumix -v+5 & end begin prog = irexec button = Vol_Down config = aumix -v-5 & end #begin # prog = irxevent # button = Play # config = Key KP_Enter CurrentWindow #end #begin # prog = irxevent # button = Source # config = Key Alt-Tab RootWindow #end #begin # prog = irxevent # button = Left # config = Key Left CurrentWindow #end #begin # prog = irxevent # button = Right # config = Key Right CurrentWindow #end #begin # prog = irxevent # button = Up # config = Key Up CurrentWindow #end #begin # prog = irxevent # button = Down # config = Key Down CurrentWindow #end include ~/.lircrc.kaffeine include ~/.lircrc.rhythmbox