diff --git a/eww/eww.yuck b/eww/eww.yuck index ea144d0..633b372 100644 --- a/eww/eww.yuck +++ b/eww/eww.yuck @@ -363,14 +363,14 @@ :windowtype "dock" (bar_layout)) (defwindow bar1 - :monitor 1 + :monitor 0 :exclusive true :geometry (geometry :x "15px" :y "10px" :width "80%" :height "30px" - :anchor "bottom center") + :anchor "top center") :stacking "fg" :windowtype "dock" (bar_layout)) diff --git a/scripts/disk b/scripts/disk index 6bd1f83..cdd638a 100755 --- a/scripts/disk +++ b/scripts/disk @@ -2,4 +2,4 @@ disk_usage=$(df -h | rg /dev/nvme0n1p2 | awk '{print $4}' | head -n 1) -echo "󰋊 $disk_usage " +echo "$disk_usage " diff --git a/scripts/eww.sh b/scripts/eww.sh index 9418bd3..2c71bcd 100755 --- a/scripts/eww.sh +++ b/scripts/eww.sh @@ -2,14 +2,25 @@ string=$(eww windows) windows=($string) +host=$(hostname) + for i in "${windows[@]}" do - if [[ $i = '*bar0' ]]; then - eww close bar0 - return + if [[ "$host" = kaladin ]]; then + if [[ $i = '*bar1' ]]; then + eww close bar1 + return + else + eww open bar1 + fi else - eww open bar0 + if [[ $i = '*bar0' ]]; then + eww close bar0 + return + else + eww open bar0 + fi fi done diff --git a/scripts/plasma-disk.sh b/scripts/plasma-disk.sh new file mode 100644 index 0000000..c0368f1 --- /dev/null +++ b/scripts/plasma-disk.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "󰋊 $(disk)"