Example Salmon Usage

Salmon in Four Panel Mode
 
Four Panel Mode. Four Panel Mode.
 
$ salmon read :bluemarble
 
In global salmon.cfg:
 
:bluemarble
 
# The lines will be processed first so the -phasecalc
# option will be placed in panel number 4. Use panel=n
# on the lines to control the -phasecalc placement.
# The device= lines could have color1, color2 and
# color3 set to display the mount status in color
# instead of question mark, down or up arrows.
 
magnify=4
foreground=white
audiocmd=ogg123 -q
pixmap=32
cmdfile=$HOME/share/commands
 
phasecalc
 
line=setting=|Alarm|Clock|   # Defaults to line=display
line=daily=7:45_sound=23
line=alarm=7:55 14/12/8_sound=23
line=timer=999 0:0:05_sound=35
line=timer=0 01:10:03_sound=10
line=display_setting=|Salmon|_command=:midnight
  # Command in personal -cmdfile
 
line=device=/mnt/alice_setting=|Alice:/|_command=detach
line=device=/mnt/betty_setting=|Betty:/|_command=detach
line=device=/mnt/carol_setting=|Carol:/|_command=detach
line=device=/mnt/debra_setting=|Debra:/|_command=detach
line=device=/mnt/janet_setting=|Janet:/|_command=detach
line=device=/cdrom_setting=|CDRom|_command=detach
 
line=display_setting=|Salmon|_command=~midnight
  # Command in personal salmon.cfg
line=ostype
line=osversion
line=format=UTC%l:%M|%p|%Z
line=uphours
line=powerstate_critical=10_warning=30_color1=black\
  _color2=black_color3=black
 
 
$ salmon read ~thesplits
 
In personal salmon.cfg:
 
:thesplits
 
# The default magnify=2
# applies to each panel
 
foreground=0x87ceff
position=-128+0
 
line=setting=|CPU0|
line=user=1
line=nice=1
line=system=1
line=interrupt=1
line=idle=1
 
line=setting=|CPU1|
line=user=2
line=nice=2
line=system=2
line=interrupt=2
line=idle=2
 
# split=0 is superfluous
line=setting=|Total|
line=user=0
line=nice=0
line=system=0
line=interrupt
line=idle
 
line=load1
line=load5
line=load15
line=processes
line=moonphase
line=uphours

 

Salmon in Four Panel Mode
 
Four Panel Mode. Four Panel Mode.
 
$ salmon read :fourpanel
 
In global salmon.cfg:
 
:fourpanel
 
position=-64-0
magnify=2   # this is the default
foreground=black
background=white
 
line=display_setting=|Salmon|_command=~midnight
line=ostype
line=osversion
line=format=UTC%l:%M|%p|%Z
line=uphours
line=powerstate_critical=10_warning=30
 
line=user
line=nice
line=system
line=interrupt
line=idle
line=processes
 
line=hostname
line=network
line=timer_sound=1_color=green
line=alarm_sound=2_color=blue_command=echo Yes it is
line=daily_sound=3_color=purple_command=echo "No it isn't"
line=elapsed_color=red
 
line=load1
line=load5
line=load15
line=share
line=buffer
line=cache
 
$ salmon read ~clock
 
In personal salmon.cfg:
 
:clock
 
line=linenum=1_panel=1_color=green_setting=|Today|is|\
  _command=./salmon read 1,lines
line=linenum=2_panel=1_color=green_format=|%A|\
  _setting=60   # Babble once an hour
line=linenum=3_panel=1_color=green_format=|the|%e--|of|
  _setting=:babble   # Babble as directed
line=linenum=4_panel=1_color=green_format=|%B|\
  _command=flite -voice slt "I'm going out to lunch"
  # Babble when clicked
line=linenum=5_panel=1_color=green_format=|%Y|\
  _command=:midnight   # Click command
 
line=linenum=1_panel=2_color=0x87ceff_format=|It's|%l:%M:%S|
line=linenum=2_panel=2_color=0x87ceff_format=|%p|%Z|
line=linenum=4_panel=2_color=0x87ceff_thermal=0\
  _warning=50_critical=90
line=linenum=3_panel=2_color=0x87ceff_uphours
line=linenum=5_panel=2_color=0x87ceff_powerstate\
  _critical=20_warning=40
 
line=linenum=1_panel=4_color=red_alarm_sound=23\
  _command=echo "Please try this at home kiddies."
line=linenum=2_panel=4_color=red_alarm=21:00 15/02/18\
  _sound=24_setting=13:00   # Second timeout
line=linenum=3_panel=4_color=red_daily=10:00_setting=13:00\
  _command=flite -voice slt -t "I'm going out to lunch"
line=linenum=4_panel=4_color=red_daily_sound=26
line=linenum=5_panel=4_color=red_timer_setting=0 0:5:0\
  _sound=11_setting=0 0:8:0   # Second timeout
line=linenum=6_panel=4_color=red_elapsed_sound=12
 
audiocmd=ogg123 -q
position=-64-0
cmdfile=/usr/home/user/share/commands
phasecalc   # Fills panel 3, color is foreground
foreground=gold
background=blue
talker=espeak

 

Salmon Calendar in Four Panel Mode
 
Four Panel Mode.
$ salmon -foreground=lightskyblue -line=calendar_linenum=3_color=yellow_panel=1_setting=4

* * o * *