From 3a1715c393dca543f25ffd3ba5e1ca17df13b49d Mon Sep 17 00:00:00 2001 From: afonsofrancof Date: Fri, 19 May 2023 12:33:24 +0100 Subject: [PATCH] [MINOR] changed xmobar to have less redundant info --- .config/xmobar/scripts/battery.sh | 28 ++++++++++++++-------------- .config/xmobar/scripts/disk.sh | 2 +- .config/xmobar/xmobarrc0 | 11 ++--------- 3 files changed, 17 insertions(+), 24 deletions(-) diff --git a/.config/xmobar/scripts/battery.sh b/.config/xmobar/scripts/battery.sh index 14e1e2d..3e3df64 100755 --- a/.config/xmobar/scripts/battery.sh +++ b/.config/xmobar/scripts/battery.sh @@ -9,55 +9,55 @@ if [ $batLevel -le 20 ]; then if [ $charging == "on-line" ]; then - echo "󰂆 " + echo "󰂆 $batLevel%" else - echo "󰁻 " + echo "󰁻 $batLevel%" fi elif [ $batLevel -le 30 ]; then if [ $charging == "on-line" ]; then - echo "󰂇 " + echo "󰂇 $batLevel%" else - echo "󰁼 " + echo "󰁼 $batLevel%" fi elif [ $batLevel -le 40 ]; then if [ $charging == "on-line" ]; then - echo "󰂈 " + echo "󰂈 $batLevel%" else - echo "󰁽 " + echo "󰁽 $batLevel%" fi elif [ $batLevel -le 60 ]; then if [ $charging == "on-line" ]; then - echo "󰂉 " + echo "󰂉 $batLevel%" else - echo "󰁿 " + echo "󰁿 $batLevel%" fi elif [ $batLevel -le 80 ]; then if [ $charging == "on-line" ]; then - echo "󰂊 " + echo "󰂊 $batLevel%" else - echo "󰂁 " + echo "󰂁 $batLevel%" fi elif [ $batLevel -le 95 ]; then if [ $charging == "on-line" ]; then - echo "󰂋 " + echo "󰂋 $batLevel%" else - echo "󰂂 " + echo "󰂂 $batLevel%" fi else if [ $charging == "on-line" ]; then - echo "󰂅 " + echo "󰂅 $batLevel%" else - echo "󰁹 " + echo "󰁹 $batLevel%" fi fi diff --git a/.config/xmobar/scripts/disk.sh b/.config/xmobar/scripts/disk.sh index 7000c04..bc4969f 100755 --- a/.config/xmobar/scripts/disk.sh +++ b/.config/xmobar/scripts/disk.sh @@ -1,3 +1,3 @@ #!/bin/sh freespace=$(btrfs fi usage / | grep -Po 'Free \(estimated\):.*' | awk '{print $3}') -echo ": $freespace" +echo " $freespace" diff --git a/.config/xmobar/xmobarrc0 b/.config/xmobar/xmobarrc0 index a154e7e..888dbde 100644 --- a/.config/xmobar/xmobarrc0 +++ b/.config/xmobar/xmobarrc0 @@ -15,7 +15,7 @@ Config {font = "Ubuntu bold 10" -- an integer for the percentage width, so 100 would be 100%. -- an integer for the minimum pixel height for xmobar, so 24 would force a height of at least 24 pixels. -- NOTE: The height should be the same as the trayer (system tray) height. - , position = TopSize L 100 40 + , position = TopSize L 100 36 , lowerOnStart = True , hideOnStart = False , allDesktops = True @@ -55,17 +55,10 @@ Config {font = "Ubuntu bold 10" \ \ \%disk%\ \ \ - \|\ - \ \ - \ \ - \%network%\ - \ \ - \%bluetooth%\ - \ \ - \%volume%\ \ \ \%battery%\ \ \ + \ \ \|\ \%trayerpad%" }