Update dot_config/polybar/scripts/executable_polybar_bluetooth_speaker.sh
Update dot_config/polybar/scripts/executable_polybar_custom_time.sh Update dot_config/polybar/scripts/executable_polybar_dunst_indicator.sh Update dot_config/polybar/scripts/executable_polybar_healthbar.sh Update dot_config/polybar/scripts/executable_polybar_net_indicator.sh Update dot_config/polybar/scripts/executable_polybar_net_speed.sh Update dot_config/polybar/scripts/executable_polybar_redshift_indicator.sh Update dot_config/polybar/scripts/executable_polybar_wifibar.sh
This commit is contained in:
parent
8b2408dafd
commit
fd95dd8b8f
8 changed files with 15 additions and 10 deletions
|
@ -7,7 +7,7 @@
|
||||||
# Author: machaerus
|
# Author: machaerus
|
||||||
# https://gitlab.com/machaerus
|
# https://gitlab.com/machaerus
|
||||||
|
|
||||||
source colors.sh
|
source ~/.config/polybar/scripts/colors.sh
|
||||||
|
|
||||||
bluetooth_speaker() {
|
bluetooth_speaker() {
|
||||||
BT_DEVICE="1C:E6:1D:EF:0A:76"
|
BT_DEVICE="1C:E6:1D:EF:0A:76"
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# Author: machaerus
|
# Author: machaerus
|
||||||
# https://gitlab.com/machaerus
|
# https://gitlab.com/machaerus
|
||||||
|
|
||||||
source colors.sh
|
source ~/.config/polybar/scripts/colors.sh
|
||||||
|
|
||||||
custom_time() {
|
custom_time() {
|
||||||
WEEKDAY=$(date +%A)
|
WEEKDAY=$(date +%A)
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# Author: machaerus
|
# Author: machaerus
|
||||||
# https://gitlab.com/machaerus
|
# https://gitlab.com/machaerus
|
||||||
|
|
||||||
source colors.sh
|
source ~/.config/polybar/scripts/colors.sh
|
||||||
|
|
||||||
dunst_notifications() {
|
dunst_notifications() {
|
||||||
dunst_enabled=$(dunstctl is-paused)
|
dunst_enabled=$(dunstctl is-paused)
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
# Original idea for calculating the battery % is not mine, unfortunately
|
# Original idea for calculating the battery % is not mine, unfortunately
|
||||||
# I don't remember the source.
|
# I don't remember the source.
|
||||||
|
|
||||||
source colors.sh
|
source ~/.config/polybar/scripts/colors.sh
|
||||||
|
|
||||||
healthbar_print() {
|
healthbar_print() {
|
||||||
|
|
||||||
|
@ -50,6 +50,11 @@ healthbar_print() {
|
||||||
battery_max=$(("$battery_max_0 + $battery_max_1"))
|
battery_max=$(("$battery_max_0 + $battery_max_1"))
|
||||||
|
|
||||||
battery_percent=$(("$battery_level * 100"))
|
battery_percent=$(("$battery_level * 100"))
|
||||||
|
|
||||||
|
if [ "$battery_max" -eq "0" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
battery_percent=$(("$battery_percent / $battery_max"))
|
battery_percent=$(("$battery_percent / $battery_max"))
|
||||||
|
|
||||||
# notify-send "Battery below 90%"
|
# notify-send "Battery below 90%"
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
# Author: machaerus
|
# Author: machaerus
|
||||||
# https://gitlab.com/machaerus
|
# https://gitlab.com/machaerus
|
||||||
|
|
||||||
source colors.sh
|
source ~/.config/polybar/scripts/colors.sh
|
||||||
|
|
||||||
net_print() {
|
net_print() {
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# Author: machaerus
|
# Author: machaerus
|
||||||
# https://gitlab.com/machaerus
|
# https://gitlab.com/machaerus
|
||||||
|
|
||||||
source colors.sh
|
source ~/.config/polybar/scripts/colors.sh
|
||||||
|
|
||||||
net_speed() {
|
net_speed() {
|
||||||
UP_NETSPEED=$(awk '{if(l1){printf "%6.1f", ($10-l2)/1024} else{l1=$2; l2=$10;}}' <(grep wlan0 /proc/net/dev) <(sleep 1; grep wlan0 /proc/net/dev))
|
UP_NETSPEED=$(awk '{if(l1){printf "%6.1f", ($10-l2)/1024} else{l1=$2; l2=$10;}}' <(grep wlan0 /proc/net/dev) <(sleep 1; grep wlan0 /proc/net/dev))
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
# Author: machaerus
|
# Author: machaerus
|
||||||
# https://gitlab.com/machaerus
|
# https://gitlab.com/machaerus
|
||||||
|
|
||||||
source colors.sh
|
source ~/.config/polybar/scripts/colors.sh
|
||||||
|
|
||||||
dunst_notifications() {
|
dunst_notifications() {
|
||||||
dunst_enabled=$(dunstctl is-paused)
|
dunst_enabled=$(dunstctl is-paused)
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# Author: machaerus
|
# Author: machaerus
|
||||||
# https://gitlab.com/machaerus
|
# https://gitlab.com/machaerus
|
||||||
|
|
||||||
source colors.sh
|
source ~/.config/polybar/scripts/colors.sh
|
||||||
|
|
||||||
manabar_print() {
|
manabar_print() {
|
||||||
ESSID=$(iwconfig wlan0 | grep ESSID | cut -d: -f2 | xargs)
|
ESSID=$(iwconfig wlan0 | grep ESSID | cut -d: -f2 | xargs)
|
||||||
|
|
Loading…
Reference in a new issue