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"
(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))

View file

@ -2,4 +2,4 @@
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)
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

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

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