Created
February 23, 2017 17:16
-
-
Save theo-m/92ff4725e0ea20c256322a167db94f65 to your computer and use it in GitHub Desktop.
Dots
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conky.config = { | |
alignment = 'bottom_middle', | |
background = true, | |
border_outer_margin = 25, | |
border_width = 1, | |
cpu_avg_samples = 2, | |
default_color = white, | |
default_outline_color = '#555', | |
draw_borders = false, | |
draw_graph_borders = true, | |
draw_outline = false, | |
draw_shades = true, | |
double_buffer = true, | |
extra_newline = false, | |
font = 'Roboto Mono:size=10', | |
gap_x = 0, | |
gap_y = 75, | |
no_buffers = true, | |
out_to_console = false, | |
out_to_stderr = false, | |
own_window = true, | |
own_window_class = 'Conky', | |
own_window_transparent = false, | |
own_window_argb_visual = false, | |
own_window_argb_value = 150, | |
own_window_colour = "#333", | |
own_window_type = "override", | |
own_window_hints = 'below', | |
short_units = true, | |
stippled_borders = 0, | |
update_interval = 3, | |
uppercase = false, | |
use_xft = true, | |
use_spacer = 'none', | |
show_graph_scale = false, | |
show_graph_range = false, | |
} | |
conky.text = [[ | |
${alignc}${exec /home/theo/bin/win-info | tail -n 1} | |
${alignc}${color grey}${font FontAwesome:size=12} ${font}${exec amixer -c 0 get Master | grep -Po "Mono: Playback .* \[\K\w+"}:${exec amixer -c 0 get Master | grep -Po "Mono: Playback \d+ \[\K\d{2}"}% | |
${font FontAwesome:size=12} ${font}${color grey}${time %d/%m} ${font FontAwesome:size=12} ${font}$color${time %H:%M} ${offset 80} ${alignr}$color${color grey}${exec head -n 3 /tmp/theo/weather | tail -n 1 | grep -Po '[ a-zA-Z+ ]+$' | cut -c 2-} ${font FontAwesome:size=12}${font} | |
${font FontAwesome:size=12} ${font}${color}${battery} ${alignr}$color${wireless_essid} ${wireless_bitrate}${font FontAwesome:size=12}${font} | |
${color grey}CPU: $color$cpu%${color grey}${alignr}RAM: $color$memperc% | |
${alignc}${color #eee}${top cpu 1} ${top name 1} ${top mem 1} | |
${alignc}${color #ccc}${top cpu 2} ${top name 2} ${top mem 2} | |
${alignc}${color #aaa}${top cpu 3} ${top name 3} ${top mem 3} | |
${alignc}${color #888}${top cpu 4} ${top name 4} ${top mem 4} | |
${alignc}${color grey}${font FontAwesome:size=12}${font}: ${color}${exec /home/theo/bin/win-info | head -n 1 | wc -w} | |
]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo $1 | |
curl -s wttr.in/$1 > /tmp/theo/weather |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
blob=$(i3-msg -t get_tree) | |
# sort -u to get unique names | |
windows=$(echo $blob | grep -Po "\"window_properties\":({.+?})" | grep -Po "class\":\"(.+?)\"" | cut -c9- | rev | cut -c2- | rev | sed -e 's/$/\n/') | |
music=$(i3-msg -t get_tree | grep -Po "spotify\",\"title\":\"(.+?)\"" | cut -c18- | grep -Po "[^\"].*[^\"]") | |
echo $windows | |
echo $music | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment