From 8c037b2dfe1b3159eb9e75f0e237ab0285f1daa7 Mon Sep 17 00:00:00 2001 From: FelixKratz Date: Fri, 10 Sep 2021 12:20:08 +0200 Subject: [PATCH] small changes to the default rc --- plugins/network_graph.sh | 14 -------------- sketchybarrc | 17 ++++++----------- 2 files changed, 6 insertions(+), 25 deletions(-) diff --git a/plugins/network_graph.sh b/plugins/network_graph.sh index 32be37c..b6b9d78 100755 --- a/plugins/network_graph.sh +++ b/plugins/network_graph.sh @@ -7,17 +7,3 @@ UP=$(echo $UPDOWN | awk "{ print \$2 }" | cut -f1 -d ".") sketchybar -m push network_down $(echo $UPDOWN | awk "{ print \$1 / (1.0 * $MAX_DOWN) }") sketchybar -m push network_up $(echo $UPDOWN | awk "{ print \$2 / (1.0 * $MAX_UP) }") - -DOWN_STR="" -UP_STR="" -if [ "$DOWN" -lt "1000" ]; then - DOWN_STR="$DOWN kbps" -else - DOWN_STR=$(echo "scale=2; $DOWN" | bc -l)" Mbps" -fi -if [ "$UP" -lt "1000" ]; then - UP_STR="$UP kbps" -else - UP_STR=$(echo "scale=2; $UP" | bc -l)" Mbps" -fi -sketchybar -m set network_label label " $DOWN_STR 祝 $UP_STR" diff --git a/sketchybarrc b/sketchybarrc index 84d6318..5efcfaa 100755 --- a/sketchybarrc +++ b/sketchybarrc @@ -103,8 +103,7 @@ sketchybar -m batch --set relax associated_display=2 \ sketchybar -m batch --default label_padding_left=2 \ icon_padding_right=2 \ icon_padding_left=6 \ - label_padding_right=6 \ - label_padding_left=0 + label_padding_right=6 ############## LEFT ITEMS ############## @@ -118,7 +117,7 @@ sketchybar -m batch --set space_separator icon= \ sketchybar -m add item gitNotifications left sketchybar -m batch --set gitNotifications associated_space=1 \ - update_freq=100 \ + update_freq=300 \ icon_font="Hack Nerd Font:Bold:18.0" \ icon= \ script="~/.config/sketchybar/plugins/gitNotifications.sh" \ @@ -140,19 +139,15 @@ sketchybar -m batch --set topmem associated_space=1 \ update_freq=15 \ script="~/.config/sketchybar/plugins/topmem.sh" -sketchybar -m add item network_label left -sketchybar -m set network_label associated_space 3 -sketchybar -m set network_label lazy on - ############## RIGHT ITEMS ############## sketchybar -m add item clock right -sketchybar -m set clock update_freq 20 +sketchybar -m set clock update_freq 10 sketchybar -m set clock script "~/.config/sketchybar/plugins/clock.sh" sketchybar -m add item mailIndicator right sketchybar -m batch --set mailIndicator associated_space=1,2,3 \ - update_freq=15 \ + update_freq=30 \ script="~/.config/sketchybar/plugins/mailIndicator.sh" \ icon_font="Hack Nerd Font:Bold:20.0" \ icon= \ @@ -168,7 +163,7 @@ sketchybar -m batch --set caffeinate associated_space=4 \ # Creating Graphs sketchybar -m add component graph cpu_user right 200 nospace sketchybar -m batch --set cpu_user graph_color=0xffffffff \ - update_freq=1 \ + update_freq=2 \ associated_space=1 \ label_padding_left=0 \ icon= \ @@ -191,7 +186,7 @@ sketchybar -m add component graph network_down right 200 nospace sketchybar -m batch --set network_down associated_space=3 \ label_padding_left=0 \ icon= \ - update_freq=1 \ + update_freq=2 \ graph_color=0xffffffff \ script="~/.config/sketchybar/plugins/network_graph.sh" \ lazy=on