adding some tweaks so eww is different on desktop

This commit is contained in:
Chris Cochrun 2023-05-26 16:22:14 -05:00
parent cbc30ff9a5
commit 95ca496310
4 changed files with 21 additions and 7 deletions

View file

@ -363,14 +363,14 @@
:windowtype "dock" :windowtype "dock"
(bar_layout)) (bar_layout))
(defwindow bar1 (defwindow bar1
:monitor 1 :monitor 0
:exclusive true :exclusive true
:geometry (geometry :geometry (geometry
:x "15px" :x "15px"
:y "10px" :y "10px"
:width "80%" :width "80%"
:height "30px" :height "30px"
:anchor "bottom center") :anchor "top center")
:stacking "fg" :stacking "fg"
:windowtype "dock" :windowtype "dock"
(bar_layout)) (bar_layout))

View file

@ -2,4 +2,4 @@
disk_usage=$(df -h | rg /dev/nvme0n1p2 | awk '{print $4}' | head -n 1) disk_usage=$(df -h | rg /dev/nvme0n1p2 | awk '{print $4}' | head -n 1)
echo "󰋊 $disk_usage " echo "$disk_usage "

View file

@ -2,14 +2,25 @@
string=$(eww windows) string=$(eww windows)
windows=($string) windows=($string)
host=$(hostname)
for i in "${windows[@]}" for i in "${windows[@]}"
do do
if [[ $i = '*bar0' ]]; then if [[ "$host" = kaladin ]]; then
eww close bar0 if [[ $i = '*bar1' ]]; then
return eww close bar1
return
else
eww open bar1
fi
else else
eww open bar0 if [[ $i = '*bar0' ]]; then
eww close bar0
return
else
eww open bar0
fi
fi fi
done done

3
scripts/plasma-disk.sh Normal file
View file

@ -0,0 +1,3 @@
#!/bin/sh
echo "󰋊 $(disk)"