begin
  prog   = gxine
  button = power
  repeat = 0
  config = exit();
end

# play first item in playlist
begin
  prog   = gxine
  button = 0
  repeat = 0
  config = playlist_play(0);
end

# play second item in playlist
begin
  prog   = gxine
  button = 1
  repeat = 0
  config = playlist_play(1);
end

# etc.
begin
  prog   = gxine
  button = 2
  repeat = 0
  config = playlist_play(2);
end

begin
  prog   = gxine
  button = 3
  repeat = 0
  config = playlist_play(3);
end

begin
  prog   = gxine
  button = 4
  repeat = 0
  config = playlist_play(4);
end

begin
  prog   = gxine
  button = 5
  repeat = 0
  config = playlist_play(5);
end

begin
  prog   = gxine
  button = 6
  repeat = 0
  config = playlist_play(6);
end

begin
  prog   = gxine
  button = 7
  repeat = 0
  config = playlist_play(7);
end

begin
  prog   = gxine
  button = 8
  repeat = 0
  config = playlist_play(8);
end

begin
  prog   = gxine
  button = 9
  repeat = 0
  config = playlist_play(9);
end

# increase volume by 5%
begin
  prog   = gxine
  button = f.fwd
  repeat = 0
  config = ao_volume.v += 5;
end

# decrease volume by 5%
begin
  prog   = gxine
  button = rew
  repeat = 0
  config = ao_volume.v -= 5;
end

# arrow keys
begin
  prog   = gxine
  button = left_arrow
  repeat = 0
  config = input_left();
end

begin
  prog   = gxine
  button = right_arrow
  repeat = 0
  config = input_right();
end

begin
  prog   = gxine
  button = down_arrow
  repeat = 0
  config = input_down();
end

begin
  prog   = gxine
  button = up_arrow
  repeat = 0
  config = input_up();
end

# play preceding playlist item
begin
  prog   = gxine
  button = yellow
  repeat = 0
  config = playlist_play(playlist_get_item()-1);
end

# play following playlist item
begin
  prog   = gxine
  button = blue
  repeat = 0
  config = playlist_play(playlist_get_item()+1);
end

# Select/OK button
begin
  prog   = gxine
  button = ok
  repeat = 0
  config = input_select();
end

# main menu
begin
  prog   = gxine
  button = i_inf
  repeat = 0
  config = input_menu1();
end

# toggle full-screen mode
begin
  prog   = gxine
  button = dbl.arrow
  repeat = 0
  config = vo_fullscreen.toggle();
end

begin
  prog   = gxine
  button = pause
  repeat = 0
  config = pause();
end

begin
  prog   = gxine
  button = play
  repeat = 0
  config = play();
end

# slow down playback
begin
  prog   = gxine
  button = slow
  repeat = 0
  config = --av_speed.v;
end

# normal speed
begin
  prog   = gxine
  button = c
  repeat = 0
  config = av_speed.v = 3;
end

begin
  prog   = gxine
  button = stop
  repeat = 0
  config = stop();
end

