Skip to content

Instantly share code, notes, and snippets.

@wavebeem
Created February 15, 2011 02:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wavebeem/827024 to your computer and use it in GitHub Desktop.
Save wavebeem/827024 to your computer and use it in GitHub Desktop.
update_interval 1
#out_to_x no
out_to_console yes
temperature_unit fahrenheit
#temperature_unit celsius
TEXT
${uptime_short}\
::: ${mem}\
::: ${mixer}%${if_mixer_mute} (M)${endif}\
::: ${time %A ~ %Y.%m.%d ~ %H:%M}
#!/bin/bash
text2_color='\\#d3caaa\\'
sep2_color='\\#545143\\'
text_color='\\'"$text2_color"
sep_color='\\'"$sep2_color"
#sep_chars=":::"
#sep_chars="::"
#sep_chars=":"
#sep_chars="-:-"
#sep_chars="||"
#sep_chars="|"
sep_chars="..."
#sep_chars=".."
#sep_chars="."
end_chars="<"
spacing=" "
# Mix in colors
sep="${sep_color}${spacing}${sep_chars}${spacing}${text_color}"
sep2="${sep2_color}${spacing}${sep_chars}${spacing}${text2_color}"
end="${sep_color}${spacing}${end_chars}${text_color}"
left_bar="\
\${mpd_status}\
$sep root=\${fs_free /}\
$sep home=\${fs_free /home}\
$sep data=\${fs_free /data}\
$end\
"
#\${if_mpd_playing}\${mpd_title} $sep \${mpd_status} $sep \${else}\${endif}\
right_bar="\
\${uptime_short}\
$sep \${mem}\
$sep \${mixer}%\${if_mixer_mute} (Muted)\${endif}\
$sep \${time %A $sep2 %Y.%m.%d $sep2 %H:%M}\
$end\
"
# Finish mixing in colors
left_bar="${text_color}${left_bar}"
right_bar="${text_color}${right_bar}"
Show() {
screen="$1"
text="$2"
conky -t "$2" |
while read -r line; do
wmfs -s "$screen" "$line"
done &
}
# These become jobs 1 and 2
Show 0 "$right_bar"
Show 1 "$left_bar"
Quit() {
kill %1
kill %2
}
trap INT Quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment