Update dot_config/polybar/custom_modules.ini
Add dot_config/polybar/scripts/executable_beep.sh Add dot_config/polybar/scripts/executable_colors.sh Add dot_config/polybar/scripts/executable_colors.sh.base Add dot_config/polybar/scripts/executable_launch_polybar Add dot_config/polybar/scripts/executable_michurin Add dot_config/polybar/scripts/executable_polybar_bluetooth_speaker.sh Add dot_config/polybar/scripts/executable_polybar_custom_time.sh Add dot_config/polybar/scripts/executable_polybar_dunst_indicator.sh Add dot_config/polybar/scripts/executable_polybar_healthbar.sh Add dot_config/polybar/scripts/executable_polybar_michurin.py Add dot_config/polybar/scripts/executable_polybar_net_indicator.sh Add dot_config/polybar/scripts/executable_polybar_net_speed.sh Add dot_config/polybar/scripts/executable_polybar_redshift_indicator.sh Add dot_config/polybar/scripts/executable_polybar_wifibar.sh Add dot_config/polybar/scripts/executable_refresh_wpg_wallpapers Add dot_config/polybar/scripts/executable_regkernel Add dot_config/polybar/scripts/executable_setbg Add dot_config/polybar/scripts/executable_theme.sh Add dot_config/polybar/scripts/executable_transmission_indicator.sh Add dot_config/polybar/scripts/executable_tresorit_indicator.sh
This commit is contained in:
parent
134cd852d4
commit
3ff2e6e742
21 changed files with 6609 additions and 17 deletions
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Transmission indicator for polybar.
|
||||
#
|
||||
# THIS DOESN'T CURRENTLY WORK
|
||||
#
|
||||
# Author: machaerus
|
||||
# https://gitlab.com/machaerus
|
||||
|
||||
source colors.sh
|
||||
|
||||
transmission_indicator() {
|
||||
|
||||
TSTATUS=$(tresorit-cli status | head -1 | grep -oE '[^ ]+$')
|
||||
[ "$TSTATUS" = "running" ] && RUNNING=1 || RUNNING=0
|
||||
|
||||
if [ "$RUNNING" -eq 1 ]; then
|
||||
TTRANSFERS=$(tresorit-cli transfers | grep syncing | wc -l)
|
||||
[ "$TTRANSFERS" -gt 0 ] && echo "$bright_yellow$RESET" || echo "$bright_green$RESET"
|
||||
else
|
||||
echo "$bright_red$RESET"
|
||||
fi
|
||||
}
|
||||
|
||||
transmission_indicator
|
Loading…
Add table
Add a link
Reference in a new issue