Attachment 'macbook_lircrc_example.txt'

Download

   1 begin
   2   flags = startup_mode
   3   mode = irexec
   4 end
   5 
   6 #change modes with menu
   7 begin irexec
   8 
   9   begin
  10   prog = irexec
  11   remote = APPLE_REMOTE
  12   button = KEY_N
  13   mode = totem
  14   config = show.sh Totem && totem &
  15   repeat = 0
  16   end
  17 
  18   begin
  19   prog = irexec
  20   remote = APPLE_REMOTE
  21   button = KEY_P
  22   config = show.sh Presentation
  23   mode = openoffice
  24   repeat = 0
  25   end
  26 
  27   begin
  28   prog = irexec
  29   remote = APPLE_REMOTE
  30   button = KEY_PP
  31   mode = snackAmp
  32   config = show.sh snackAmp && snackAmp &
  33   repeat = 0
  34   end
  35 
  36   begin
  37   prog = irexec
  38   remote = APPLE_REMOTE
  39   button = KEY_MENU
  40   config = show.sh "Menu\nleft=presentation\nright=Totem\nplay=snackAmp"
  41   repeat = 0
  42   end
  43 
  44   begin
  45   prog = irexec
  46   remote = APPLE_REMOTE
  47   button = KEY_VU
  48   config = amixer set Master 8+ &>/dev/null && show_volume.sh
  49   repeat = 1
  50   end
  51     
  52   begin
  53   prog = irexec
  54   remote = APPLE_REMOTE
  55   button = KEY_VD
  56   config = amixer set Master 8- &>/dev/null && show_volume.sh
  57   repeat = 1
  58   end
  59 
  60 end irexec
  61     
  62 
  63 #totem config
  64 
  65 begin totem
  66     
  67     begin
  68     prog = Totem
  69     remote = APPLE_REMOTE
  70     button = KEY_PP
  71     config = play
  72     config = pause
  73     repeat = 0
  74     end
  75     
  76     begin
  77     prog = Totem
  78     remote = APPLE_REMOTE
  79     button = KEY_N
  80     config = seek_forward
  81     repeat = 1
  82     end
  83     
  84     begin
  85     prog = Totem
  86     remote = APPLE_REMOTE
  87     button = KEY_P
  88     config = seek_backward
  89     repeat = 1
  90     end
  91     
  92     begin
  93     prog = irexec
  94     remote = APPLE_REMOTE
  95     button = KEY_VU
  96     config = amixer set Master 8+ &>/dev/null && show_volume.sh
  97     repeat = 1
  98     end
  99     
 100     begin
 101     prog = irexec
 102     remote = APPLE_REMOTE
 103     button = KEY_VD
 104     config = amixer set Master 8- &>/dev/null && show_volume.sh
 105     repeat = 1
 106     end
 107 
 108     #change modes with menu
 109     begin
 110     prog = irexec
 111     remote = APPLE_REMOTE
 112     button = KEY_MENU
 113     config = show.sh "Menu\nleft=presentation\nright=Totem\nplay=snackAmp"
 114     mode = irexec
 115     repeat = 0
 116     end
 117 
 118 end totem
 119 
 120 #xmms config
 121 
 122 begin xmms
 123     
 124     begin
 125     prog = xmms
 126     remote = APPLE_REMOTE
 127     button = KEY_PP
 128     config = PLAY
 129     config = PAUSE
 130     repeat = 0
 131     end
 132     
 133     begin
 134     prog = xmms
 135     remote = APPLE_REMOTE
 136     button = KEY_N
 137     config = NEXT
 138     repeat = 0
 139     end
 140     
 141     begin
 142     prog = xmms
 143     remote = APPLE_REMOTE
 144     button = KEY_P
 145     config = PREV
 146     repeat = 0
 147     end
 148     
 149     begin
 150     prog = irexec
 151     remote = APPLE_REMOTE
 152     button = KEY_VU
 153     config = amixer set Master 8+ &>/dev/null && show_volume.sh
 154     repeat = 1
 155     end
 156     
 157     begin
 158     prog = irexec
 159     remote = APPLE_REMOTE
 160     button = KEY_VD
 161     config = amixer set Master 8- &>/dev/null && show_volume.sh
 162     repeat = 1
 163     end
 164 
 165     #change modes with menu
 166     begin
 167     prog = irexec
 168     remote = APPLE_REMOTE
 169     button = KEY_MENU
 170     config = show.sh "Menu\nleft=presentation\nright=Totem\nplay=snackAmp"
 171     mode = irexec
 172     repeat = 0
 173     end
 174 
 175 end xmms
 176 
 177 #snackamp config
 178 
 179 begin snackAmp
 180 
 181     begin
 182     prog = snackAmp
 183     remote = APPLE_REMOTE
 184     button = KEY_PP
 185     config = play
 186     repeat = 0
 187     end
 188     
 189     begin
 190     prog = snackAmp
 191     remote = APPLE_REMOTE
 192     button = KEY_N
 193     config = fastforward
 194     repeat = 1
 195     end
 196     
 197     begin
 198     prog = snackAmp
 199     remote = APPLE_REMOTE
 200     button = KEY_P
 201     config = rewind
 202     repeat = 1
 203     end
 204     
 205     begin
 206     prog = irexec
 207     remote = APPLE_REMOTE
 208     button = KEY_VU
 209     config = amixer set Master 8+ &>/dev/null && show_volume.sh
 210     repeat = 1
 211     end
 212     
 213     begin
 214     prog = irexec
 215     remote = APPLE_REMOTE
 216     button = KEY_VD
 217     config = amixer set Master 8- &>/dev/null && show_volume.sh
 218     repeat = 1
 219     end
 220 
 221     #change modes with menu
 222     begin
 223     prog = irexec
 224     remote = APPLE_REMOTE
 225     button = KEY_MENU
 226     config = show.sh "Menu\nleft=presentation\nright=Totem\nplay=snackAmp"
 227     mode = irexec
 228     repeat = 0
 229     end
 230 
 231 end snackAmp
 232 
 233 #openoffice presentation
 234 
 235 begin openoffice
 236 
 237 begin
 238 prog = irxevent
 239 remote = APPLE_REMOTE
 240 button = KEY_PP
 241 config = Key F5 CurrentWindow
 242 config = Key Escape CurrentWindow
 243 repeat = 0
 244 end
 245 
 246 begin
 247 prog = irexec
 248 remote = APPLE_REMOTE
 249 button = KEY_MENU
 250 config = show.sh "Menu\nleft=presentation\nright=Totem\nplay=snackAmp"
 251 mode = irexec
 252 repeat = 0
 253 end
 254 
 255 begin
 256 prog = irxevent
 257 remote = APPLE_REMOTE
 258 button = KEY_N
 259 config = Key BackSpace CurrentWindow
 260 repeat = 1
 261 end
 262 
 263 begin
 264 prog = irxevent
 265 remote = APPLE_REMOTE
 266 button = KEY_P
 267 config = Key space CurrentWindow
 268 repeat = 1
 269 end
 270 
 271 begin
 272 prog = irxevent
 273 remote = APPLE_REMOTE
 274 button = KEY_VU
 275 config = Key ctrl-plus CurrentWindow
 276 repeat = 0
 277 end
 278 
 279 begin
 280 prog = irxevent
 281 remote = APPLE_REMOTE
 282 button = KEY_VD
 283 config = Key ctrl-minus CurrentWindow
 284 repeat = 0
 285 end
 286 
 287 end openoffice

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2007-12-02 01:30:25, 4.6 KB) [[attachment:macbook_lircrc_example.txt]]
  • [get | view] (2009-12-13 01:07:44, 3.7 KB) [[attachment:pc]]
  • [get | view] (2007-12-02 01:34:12, 0.1 KB) [[attachment:show.sh]]
  • [get | view] (2007-12-02 11:48:36, 0.2 KB) [[attachment:show_volume.sh]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.