Conky improvements
843d85c44a5a333a364994a6260cd5a848dc18ec
1 parent
60c495f0
.conkyrc
+1 -1
| 6 | 6 | short_units = true, |
|
| 7 | 7 | pad_percents = 2, |
|
| 8 | 8 | use_spacer = "left" |
|
| 9 | 9 | } |
|
| 10 | 10 | conky.text = [[ |
|
| 11 | - | +@fg=1;/+@fg=0; ${fs_free /} +@fg=1;/home+@fg=0; ${fs_free /home} +@fg=1;RAM+@fg=0; $memavail +@fg=1;CPU+@fg=0; ${cpu}% +@fg=1;↓+@fg=0; ${downspeed eno1} |
|
| 11 | + | +@fn=1;${execi 60 conky-sync-status}+@fn=0; +@fg=1;/+@fg=0; ${fs_free /} +@fg=1;/home+@fg=0; ${fs_free /home} +@fg=1;RAM+@fg=0; $memavail +@fg=1;CPU+@fg=0; ${cpu}% +@fg=1;↓+@fg=0; ${downspeed eno1} |
|
| 12 | 12 | ]] |
.spectrwm.conf
+1 -1
| 8 | 8 | ||
| 9 | 9 | # BAR |
|
| 10 | 10 | ||
| 11 | 11 | bar_border_width = 8 |
|
| 12 | 12 | bar_border[1] = rgb:00/00/00 |
|
| 13 | - | bar_font_color[1] = rgb:bb/bb/bb, rgb:66/66/66, rgb:33/33/33, maroon |
|
| 13 | + | bar_font_color[1] = rgb:bb/bb/bb, rgb:66/66/66, rgb:33/33/33, maroon, aquamarine |
|
| 14 | 14 | bar_font = monospace:size=10,fallback:size=10 |
|
| 15 | 15 | bar_action = spectrwm-status |
|
| 16 | 16 | bar_delay = 1 |
|
| 17 | 17 | bar_action_expand = 1 |
|
| 18 | 18 | bar_justify = left |
bin/xmobar-sync-status
+12 -16
| 1 | 1 | #!/bin/sh |
|
| 2 | 2 | ||
| 3 | 3 | REMOTE=share |
|
| 4 | 4 | ||
| 5 | - | while :; do |
|
| 6 | - | status="$(systemctl --user is-active share-sync)" |
|
| 5 | + | status="$(systemctl --user is-active share-sync)" |
|
| 7 | 6 | ||
| 8 | - | case "$status" in |
|
| 9 | - | "active") |
|
| 10 | - | ping -c1 -w5 $REMOTE 1>/dev/null 2>/dev/null |
|
| 7 | + | case "$status" in |
|
| 8 | + | "active") |
|
| 9 | + | ping -c1 -w5 $REMOTE 1>/dev/null 2>/dev/null |
|
| 11 | 10 | ||
| 12 | - | if [ $? -eq 0 ]; then |
|
| 13 | - | echo "<fc=aquamarine>✔</fc>" |
|
| 14 | - | else |
|
| 15 | - | echo "<fc=maroon>!</fc>" |
|
| 16 | - | fi ;; |
|
| 11 | + | if [ $? -eq 0 ]; then |
|
| 12 | + | echo "+@fg=4;✔+@fg=0;" |
|
| 13 | + | else |
|
| 14 | + | echo "+@fg=3;!+@fg=0;" |
|
| 15 | + | fi ;; |
|
| 17 | 16 | ||
| 18 | - | *) |
|
| 19 | - | echo "<fc=maroon>✘</fc>" ;; |
|
| 20 | - | esac |
|
| 21 | - | ||
| 22 | - | sleep 5 |
|
| 23 | - | done |
|
| 17 | + | *) |
|
| 18 | + | echo "+@fg=3;✘+@fg=0;" ;; |
|
| 19 | + | esac |