From Burly Lizard, 1 Year ago, written in Plain Text.
  1. #begin
  2.  
  3. begin
  4.     remote = 100TS035
  5.     prog   = irexec
  6. #       prog   = irxevent
  7.     button = HILFE
  8.     repeat = 4
  9. #       config = /usr/local/bin/monitorpowerbutton.sh
  10.     config = xset -q | grep blanking | sed 's/prefer//' | sed 's/allow//' | aosd_cat  -p 7 --x-offset=-10 --y-offset=-1140 --font="bitstream bold 34" --fore-color="#06ffd0" --transparency=1 --fade-full=200
  11.     config = if [ $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 ]; then (/usr/local/bin/monitor2.sh on); fi
  12. #       config = /usr/local/bin/monitor2.sh off
  13. end
  14.  
  15. begin
  16.     remote = 100TS035
  17.     prog   = irexec
  18.     button = EXT
  19. #    config = if [ $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 1 ]; then (killall -9 vdr-sxfe &) ; fi
  20. #    config = if [ $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 ]; then (xfce4-session-logout && xdotool mousemove 796 534 &) ; fi
  21. #    config = if [ $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a "$XDG_SESSION_DESKTOP" = "i3" ]; then ( xdotool mousemove 1587 12 && i3-nagbar -t warning -m 'Vous avez appuyé sur la touche exit. Voulez vous vraimment quitter la session i3? Cela finira votre session X.' -b 'Oui, quitter i3' 'i3-msg exit') else ( sh ~/check_vdr.sh & ) ; fi
  22.     config = sh ~/check_vdr.sh &
  23.     config = if [ $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 ]; then (xdotool mousemove 924 534 &) ; fi # Arrêt du système
  24.     config = if [ $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 ]; then (xdotool mousemove 680 534 &) ; fi # Déconnection de la session en cours
  25.     config = if [ $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 ]; then (xdotool  mousemove 936 723 && xdotool click 1 &) ; fi
  26. #   config = if [ "$XDG_SESSION_DESKTOP" = "XFCE" ]; then (xfce4-session-logout && xdotool mousemove 796 534 &) ; fi # Redémarrage  du système
  27. #   config = if [ "$XDG_SESSION_DESKTOP" = "xfce" ]; then xte "keydown Alt_L" "key F4" "keyup Alt_L" & xte 'mousemove 804 520'
  28. #   config = xte "keydown Alt_L" "key F4" "keyup Alt_L" & xte 'mousemove 904 520'
  29. #   config = if [ "$DESKTOP_SESSION" = "LXDE" ]; then (xdotool mousemove 804 508 && lxde-logout &) ; fi # Arrêt du système
  30. #   config = if [ $(ps -eo cmd | grep -c ^xfce4-session-logout) -ne 0 ]; then (xdotool  mousemove 936 723 && xdotool click 1 &) ; fi
  31. #   config = xdotool key alt+F4
  32.  
  33. end
  34.  
  35. begin
  36.     remote = 100TS035
  37.         prog   = irexec
  38.         button = RED
  39. #       config = if [ $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^audacious) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 ]; then (echo Vlc | osd_cat -A center -p middle -f -*-*-bold-*-*-*-48-120-*-*-*-*-*-* -c#00FFCC -d 1 -s 8 -l 2 && vlc); fi
  40.         config = if [ $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^audacious) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (echo Vlc | aosd_cat  -p 7 --x-offset=-10 --y-offset=-500 --font="bitstream bold 46" --fore-color="#8f2222" --transparency=1 --fade-full=2000 && vlc); fi
  41.         mode   = vlc &
  42. end
  43. begin
  44.     remote = 100TS035
  45.         prog   = irexec
  46.         button = YELLOW
  47. #       config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 ]; then (echo Totem | osd_cat -A center -p middle -f -*-*-bold-*-*-*-48-120-*-*-*-*-*-* -c#00FFCC -d 1 -s 8 -l 2 && totem); fi
  48.         config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (echo Audacious | aosd_cat  -p 7 --x-offset=-10 --y-offset=-500 --font="bitstream bold 46" --fore-color="yellow" --transparency=1 --fade-full=2000 && audacious &); fi
  49.         mode   = audacious &
  50. end
  51.  
  52. # Clique gauche la sourie
  53. begin
  54.    remote = 100TS035
  55.         prog   = irexec
  56.         button = GREEN
  57. #       config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 1 ]; then (xte 'mousemove 220 320' & xte 'mouseclick 1' & xte 'mouseclick 1' &); fi
  58. #   config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (echo SMplayer | aosd_cat  -p 7 --x-offset=-10 --y-offset=-500 --font="bitstream bold 46" --fore-color="brown" --transparency=1 --fade-full=2000 && bash -c 'smplayer ' &); fi
  59.     config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (echo "MPV Player" | aosd_cat  -p 7 --x-offset=-10 --y-offset=-500 --font="bitstream bold 46" --fore-color="brown" --transparency=1 --fade-full=2000 && bash -c 'mpv --profile=pseudo-gui -- ' &); fi
  60.         repeat = 0
  61. end
  62.  
  63. begin
  64.     remote = 100TS035
  65.     prog   = irexec
  66.     button = BLUE
  67. #     config = xte "sleep 3" "str salut" "key Return" "sleep 3" "str ca va?" "key Return" "sleep 3" "str oui et toi?" "key Return" "sleep 3" "str Cool ca marche ( tous cela avec ma télécommande ) ^^" "key Return"
  68. #     config = Button 5 10 20 CurrentWindow
  69.     config = if [ $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then ( echo VDR X-Fronted | aosd_cat  -p 7 --x-offset=-10 --y-offset=-500 --font="bitstream bold 46" --fore-color="#8f2222" --transparency=1 --fade-full=2000 && vdr-sxfe xvdr://0.0.0.0 &); fi
  70. end
  71.  
  72. begin
  73.     remote = 100TS035
  74.         prog   = irexec
  75.         button = TV/RADIO
  76.     config = if [ $(ps -eo cmd | grep -c ^banshee$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 1 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (gg=`xdotool search --onlyvisible --name "VDR - 0.0.0.0"`; xdotool windowactivate --sync $gg; xdotool click --window $gg --repeat 1 1; sleep 3; xdotool mousemove 3 3); elif [ $(ps -eo cmd | grep -c ^xine) -eq 1 ]; then (xx=`xdotool search --onlyvisible --name "xine: xvdr://0.0.0.0"`; xdotool windowactivate --sync $xx; xdotool click --window $xx --repeat 2 1; sleep 2; xdotool mousemove 3 3); fi
  77.  
  78. # ; xdotool mousemove --window $gg 300 300; xdotool click --window $gg --repeat 2 1); fi
  79. # ; xdotool windowsize $gg 100% 100%); fi
  80. #   config = if [ $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 ]; then (mocp && xte "keydown Shift_L" "key 5" "keyup Shift_L" && (echo mocp | osd_cat -A center -p middle -f -*-*-bold-*-*-*-48-120-*-*-*-*-*-* -c#00FFCC -d 1 -s 8 -l 2)); fi
  81. #   config = if [ $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 ]; then (mocp && xte "keydown Shift_L" "key 5" "keyup Shift_L" && (echo mocp | aosd_cat  -p 7 --x-offset=-10 --y-offset=-500 --font="bitstream bold 46" --fore-color="#8ff2ef" --transparency=1 --fade-full=2000)); fi
  82. #   xdotool mousemove --window $gg 80 90; xdotool click --repeat 2 1); fi
  83. #   xdotool mousemove --polar 45 300
  84. #   xdotool mousemove --window $gg 60 60
  85. #   mode   = mocp &
  86. end
  87.  
  88. begin
  89.     remote = 100TS035
  90.         prog   = irexec
  91.         button = MENU
  92.         config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 ]; then (echo "MOCP Music Player" | aosd_cat  -p 7 --x-offset=-10 --y-offset=-500 --font="bitstream bold 46" --fore-color="#8f2222" --transparency=1 --fade-full=2000 && mocp; mocp --play &); fi
  93. end
  94.  
  95. # Augmenter la luminosité
  96. begin
  97.     remote = 100TS035
  98.         prog   = irexec
  99.         button = CHECK
  100.         config = (echo "Zoom +" | aosd_cat  -p 7 --x-offset=-10 --y-offset=-500 --font="bitstream bold 46" --fore-color="#4158BC" --transparency=1 --fade-full=500) && /home/kadiro/zoom.sh + &
  101. #       config = if [ $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 ]; then (mocp && xte "keydown Shift_L" "key 5" "keyup Shift_L" && (echo mocp | osd_cat -A center -p middle -f -*-*-bold-*-*-*-48-120-*-*-*-*-*-* -c#00FFCC -d 1 -s 8 -l 2)); fi
  102. #       config = if [ $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (eject -T && (echo "Placer un CD ou DVD sur le tiroir" | aosd_cat  -p 7 --x-offset=-10 --y-offset=-500 --font="bitstream bold 46" --fore-color="#8ff2ef" --transparency=1 --fade-full=2000)); fi
  103. end
  104.  
  105. # Diminuer la luminosité
  106. begin
  107.     remote = 100TS035
  108.         prog   = irexec
  109.         button = TXT
  110. #     config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (echo "MPV Player" | aosd_cat  -p 7 --x-offset=-10 --y-offset=-500 --font="bitstream bold 46" --fore-color="brown" --transparency=1 --fade-full=2000 && bash -c 'mpv --profile=pseudo-gui dvb:// ' &); fi
  111.         config = (echo "Zoom -" | aosd_cat  -p 7 --x-offset=-10 --y-offset=-500 --font="bitstream bold 46" --fore-color="#B168BC" --transparency=1 --fade-full=500) & /home/kadiro/zoom.sh - &
  112. end
  113. begin
  114.     remote = 100TS035
  115.         prog   = irexec
  116.         button = A/B
  117. #       config = if [ $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 ]; then (mocp && xte "keydown Shift_L" "key 5" "keyup Shift_L" && (echo mocp | osd_cat -A center -p middle -f -*-*-bold-*-*-*-48-120-*-*-*-*-*-* -c#00FFCC -d 1 -s 8 -l 2)); fi
  118. #       config = /home/kadiro/internet.sh
  119.         config = /home/kadiro/record.sh
  120. #       config = killall -9 ffmpeg
  121. #       config = /home/kadiro/windetect.sh
  122. end
  123.  
  124. begin
  125.     remote = 100TS035
  126.         prog   = irexec
  127.         button = STOP
  128.         config = if [ $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (/home/kadiro/cpu.sh); fi
  129. end
  130.  
  131. begin
  132.     remote = 100TS035
  133.         prog   = irexec
  134.         button = MUTE
  135. #       config = if [ $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 ]; then (/home/kadiro/mixosd mute &); fi
  136.         config = if [ $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (/home/kadiro/mixer mute &); fi
  137. #       mode   = mocp &
  138. end
  139.  
  140. # Bouger le curseur de la sourie vers le haut
  141. #begin
  142. #    remote = 100TS035
  143. #       prog   = irexec
  144. #       button = POWER
  145. #       config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 ]; then (xte 'mousemove 790 520' && xfce4-session-logout &); fi
  146. #       repeat = 1
  147. #end
  148.  
  149. # Bouger le curseur de la sourie vers la droite
  150. begin
  151.     remote = 100TS035
  152.         prog   = irexec
  153.         button = RIGHT
  154. #     config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 ]; then (xte 'mousermove 32 0' &); fi
  155. #     config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 ]; then (echo `(pactl list sinks | grep "Volume : 0:")| awk '{print $3}'` | osd_cat -A center -p middle --font='-adobe-helvetica-bold-*-*-*-50-*-*-*-*-*-*-*' -c#00FFCC -d 1 -s 8 -l 2 && pactl set-sink-volume 0 -- +10% &); fi
  156. #     config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 ]; then (/home/kadiro/mixosd up &); fi
  157.     config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (/home/kadiro/mixer up &); fi
  158.         repeat = 1
  159. end
  160.  
  161. # Bouger le curseur de la sourie vers la gauche
  162. begin
  163.     remote = 100TS035
  164.         prog   = irexec
  165.         button = LEFT
  166. #       config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 ]; then (xte 'mousermove -32 0' &); fi
  167. #     config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 ]; then (echo `(pactl list sinks | grep "Volume : 0:")| awk '{print $3}'` | osd_cat -A center -p middle --font='-adobe-helvetica-bold-*-*-*-50-*-*-*-*-*-*-*' -c#00FFCC -d 1 -s 8 -l 2 && pactl set-sink-volume 0 -- -10% &); fi
  168. #       config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 ]; then (/home/kadiro/mixosd down &); fi
  169.         config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (/home/kadiro/mixer down &); fi
  170.         repeat = 1
  171. end
  172.  
  173. # Bouger le curseur de la sourie vers le haut
  174. begin
  175.     remote = 100TS035
  176.         prog   = irexec
  177.         button = UP
  178.         config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (xte 'mousermove 0 -32' &); fi
  179.         repeat = 1
  180. end
  181.  
  182. # Bouger le curseur de la sourie vers le bas
  183. begin
  184.     remote = 100TS035
  185.         prog   = irexec
  186.         button = DOWN
  187.         config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (xte 'mousermove 0 32' &); fi
  188.         repeat = 1
  189. end
  190.  
  191. # Clique gauche la sourie
  192. begin
  193.     remote = 100TS035
  194.         prog   = irexec
  195.         button = OK
  196.         config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (xte 'mouseclick 1' &); fi
  197.         repeat = 1
  198. end
  199.  
  200. # Appuyer sur la touche ESC
  201. begin
  202.     remote = 100TS035
  203.         prog   = irexec
  204.         button = EPG
  205. #       config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 ]; then (echo VlcTube pour youtube | osd_cat -A center -p middle -f -*-*-bold-*-*-*-48-120-*-*-*-*-*-* -c#00FFCC -d 1 -s 8 -l 2 && /home/kadiro/.gnome2/nautilus-scripts/VlcTube &); fi
  206.         config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (echo VlcTube pour youtube | aosd_cat  -p 7 --x-offset=-10 --y-offset=-500 --font="bitstream bold 46" --fore-color="#8ff2ef" --transparency=1 --fade-full=2000 && /home/kadiro/vtube.sh &); fi
  207. #    repeat = 3
  208. end
  209.  
  210. # Appuyer sur la touche Ctrl+1
  211. begin
  212.     remote = 100TS035
  213.         prog   = irexec
  214.         button = INFO
  215. #       config = echo -e "\u2665"
  216. #       config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (cat /dev/urandom| tr -dc '0-9a-zA-Z!@#$%^&*_+-'|head -c 1 &); fi
  217.         config = if [ $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then ( echo "Xine Frontend" | aosd_cat  -p 7 --x-offset=-10 --y-offset=-500 --font="bitstream bold 46" --fore-color="#8f2222" --transparency=1 --fade-full=2000 && xine --no-logo -g xvdr://0.0.0.0 &); fi
  218. end
  219.  
  220. # Appuyer sur la touche Ctrl+1
  221. begin
  222.     remote = 100TS035
  223.         prog   = irexec
  224.         button = BACK
  225.         config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 1 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (xte 'keydown Control_L' 'key 0xffb1' 'keyup Control_L' &); fi
  226. end
  227.  
  228. # Appuyer sur la touche num 1
  229. begin
  230.     remote = 100TS035
  231.         prog   = irexec
  232.         button = 1
  233.         config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (xte 'key 0xffb1' &); fi
  234. end
  235.  
  236. # Appuyer sur la touche num 2
  237. begin
  238.     remote = 100TS035
  239.         prog   = irexec
  240.         button = 2
  241.         config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (xte 'key 0xffb2' &); fi
  242. end
  243.  
  244. # Appuyer sur la touche num 3
  245. begin
  246.     remote = 100TS035
  247.         prog   = irexec
  248.         button = 3
  249.         config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (xte 'key 0xffb3' &); fi
  250. end
  251.  
  252. # Appuyer sur la touche num 4
  253. begin
  254.     remote = 100TS035
  255.         prog   = irexec
  256.         button = 4
  257.         config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (xte 'key 0xffb4' &); fi
  258. end
  259.  
  260. # Appuyer sur la touche num 5
  261. begin
  262.     remote = 100TS035
  263.         prog   = irexec
  264.         button = 5
  265.         config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (xte 'key 0xffb5' &); fi
  266. end
  267.  
  268. # Appuyer sur la touche num 6
  269. begin
  270.     remote = 100TS035
  271.         prog   = irexec
  272.         button = 6
  273.         config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (xte 'key 0xffb6' &); fi
  274. end
  275.  
  276. # Appuyer sur la touche num 7
  277. begin
  278.     remote = 100TS035
  279.         prog   = irexec
  280.         button = 7
  281.         config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (xte 'key 0xffb7' &); fi
  282. end
  283.  
  284. # Appuyer sur la touche num 8
  285. begin
  286.     remote = 100TS035
  287.         prog   = irexec
  288.         button = 8
  289.         config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (xte 'key 0xffb8' &); fi
  290. end
  291.  
  292. # Appuyer sur la touche num 9
  293. begin
  294.     remote = 100TS035
  295.         prog   = irexec
  296.         button = 9
  297.         config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (xte 'key 0xffb9' &); fi
  298. end
  299.  
  300. # Appuyer sur la touche num 0
  301. begin
  302.     remote = 100TS035
  303.         prog   = irexec
  304.         button = 0
  305.         config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (xte 'key 0xffb0' &); fi
  306. end
  307.  
  308. # Télécommande IRIS4000
  309. begin
  310.     remote = IRIS4000
  311.         prog   = irexec
  312.         button = KEY_LEFT
  313. #    config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 1 ]; then (xte 'mousermove -32 0' &); fi
  314.        config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (/home/kadiro/mixer down &); fi
  315.         repeat = 2
  316. end
  317.  
  318. begin
  319.     remote = IRIS4000
  320.         prog   = irexec
  321.         button = KEY_RIGHT
  322. #       config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 1 ]; then (xte 'mousermove 32 0' &); fi
  323.     config = if [ $(ps -eo cmd | grep -c ^audacious$) -eq 0 -a $(ps -eo cmd | grep -c ^vlc) -eq 0 -a $(ps -eo cmd | grep -c ^xine) -eq 0 -a $(ps -eo cmd | grep -c ^/usr/bin/vlc) -eq 0 -a $(ps -eo cmd | grep -c ^mocp) -eq 0 -a $(ps -eo cmd | grep -c ^vdr-sxfe) -eq 0 -a $(ps -eo cmd | grep -c ^smplayer) -eq 0 -a $(ps -eo cmd | grep -c ^mpv) -eq 0 ]; then (/home/kadiro/mixer up &); fi
  324.         repeat = 2
  325. end
  326.  
  327. begin
  328.     remote = IRIS4000
  329.         prog   = irexec
  330.         button = KEY_VOLUMEDOWN
  331.         config = echo `(pactl list sinks | grep "Volume : 0:")| awk '{print $3}'` | osd_cat -A center -p middle --font='-adobe-helvetica-bold-*-*-*-50-*-*-*-*-*-*-*' -c#00FFCC -d 1 -s 8 -l 2 && pactl set-sink-volume 0 -- -10% &
  332.         repeat = 2
  333. end
  334.  
  335. begin
  336.     remote = IRIS4000
  337.         prog   = irexec
  338.         button = KEY_VOLUMEUP
  339.         config = echo `(pactl list sinks | grep "Volume : 0:")| awk '{print $3}'` | osd_cat -A center -p middle --font='-adobe-helvetica-bold-*-*-*-50-*-*-*-*-*-*-*' -c#00FFCC -d 1 -s 8 -l 2 && pactl set-sink-volume 0 -- +10% &
  340.         repeat = 2
  341. end
  342.  
  343. begin
  344.     remote = IRIS4000
  345.         prog   = irexec
  346.         button = KEY_UP
  347.         config = xte 'mousermove 0 -32' &
  348.         repeat = 1
  349. end
  350.  
  351. begin
  352.     remote = IRIS4000
  353.         prog   = irexec
  354.         button = KEY_DOWN
  355.         config = xte 'mousermove 0 32' &
  356.         repeat = 1
  357. end
  358.  
  359. include ~/.lircrc.vlc
  360. include ~/.lircrc.mpv
  361. include ~/.lircrc.audacious
  362. include ~/.lircrc.mocp
  363. #include ~/.lircrc.smplayer
  364. #include ~/.lircrc.banshee
  365. #include ~/.lircrc.mplayer
  366. #include ~/.lircrc.totem
  367. #include ~/.lircrc.kaffeine
  368.  
  369. #end mocp
  370.  
captcha