Updates
This commit is contained in:
parent
e03fd1873c
commit
98f9c6905b
4
.settings/eww-monitor.sh
Executable file
4
.settings/eww-monitor.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# screen=0
|
||||||
|
screen=$(hyprctl activewindow -j | jq '.monitor')
|
||||||
|
echo $screen
|
@ -101,7 +101,6 @@
|
|||||||
;; ** Windows *************************************************************************
|
;; ** Windows *************************************************************************
|
||||||
|
|
||||||
(defwindow close
|
(defwindow close
|
||||||
:monitor 0
|
|
||||||
:geometry (geometry :x "455px"
|
:geometry (geometry :x "455px"
|
||||||
:y "-7px"
|
:y "-7px"
|
||||||
:width "44px"
|
:width "44px"
|
||||||
@ -112,7 +111,6 @@
|
|||||||
(close))
|
(close))
|
||||||
|
|
||||||
(defwindow ml4wlauncher
|
(defwindow ml4wlauncher
|
||||||
:monitor 0
|
|
||||||
:geometry (geometry :x "5px"
|
:geometry (geometry :x "5px"
|
||||||
:y "5px"
|
:y "5px"
|
||||||
:width "480px"
|
:width "480px"
|
||||||
@ -124,7 +122,6 @@
|
|||||||
|
|
||||||
;; resources
|
;; resources
|
||||||
(defwindow resources
|
(defwindow resources
|
||||||
:monitor 0
|
|
||||||
:geometry (geometry :x "5px"
|
:geometry (geometry :x "5px"
|
||||||
:y "140px"
|
:y "140px"
|
||||||
:width "480px"
|
:width "480px"
|
||||||
@ -136,7 +133,6 @@
|
|||||||
|
|
||||||
;; powermenu
|
;; powermenu
|
||||||
(defwindow logout
|
(defwindow logout
|
||||||
:monitor 0
|
|
||||||
:geometry (geometry :x "5px"
|
:geometry (geometry :x "5px"
|
||||||
:y "318px"
|
:y "318px"
|
||||||
:width "80px"
|
:width "80px"
|
||||||
@ -147,7 +143,6 @@
|
|||||||
(logout))
|
(logout))
|
||||||
|
|
||||||
(defwindow suspend
|
(defwindow suspend
|
||||||
:monitor 0
|
|
||||||
:geometry (geometry :x "102px"
|
:geometry (geometry :x "102px"
|
||||||
:y "318px"
|
:y "318px"
|
||||||
:width "80px"
|
:width "80px"
|
||||||
@ -158,7 +153,6 @@
|
|||||||
(suspend))
|
(suspend))
|
||||||
|
|
||||||
(defwindow lock
|
(defwindow lock
|
||||||
:monitor 0
|
|
||||||
:geometry (geometry :x "204px"
|
:geometry (geometry :x "204px"
|
||||||
:y "318px"
|
:y "318px"
|
||||||
:width "80px"
|
:width "80px"
|
||||||
@ -169,7 +163,6 @@
|
|||||||
(lock))
|
(lock))
|
||||||
|
|
||||||
(defwindow reboot
|
(defwindow reboot
|
||||||
:monitor 0
|
|
||||||
:geometry (geometry :x "305px"
|
:geometry (geometry :x "305px"
|
||||||
:y "318px"
|
:y "318px"
|
||||||
:width "80px"
|
:width "80px"
|
||||||
@ -180,7 +173,6 @@
|
|||||||
(reboot))
|
(reboot))
|
||||||
|
|
||||||
(defwindow shutdown
|
(defwindow shutdown
|
||||||
:monitor 0
|
|
||||||
:geometry (geometry :x "405px"
|
:geometry (geometry :x "405px"
|
||||||
:y "318px"
|
:y "318px"
|
||||||
:width "80px"
|
:width "80px"
|
||||||
|
@ -8,10 +8,20 @@ if [[ ! `pidof eww` ]]; then
|
|||||||
sleep 0.5
|
sleep 0.5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
sc=$($HOME/dotfiles/.settings/eww-monitor.sh)
|
||||||
if [[ ! -f "$FILE" ]]; then
|
if [[ ! -f "$FILE" ]]; then
|
||||||
touch "$FILE"
|
touch "$FILE"
|
||||||
${EWW} --config "$CFG" open-many ml4wlauncher resources logout suspend lock reboot shutdown close
|
echo ":: Opening on Monitor $sc"
|
||||||
|
${EWW} --config "$CFG" open ml4wlauncher --screen $sc
|
||||||
|
${EWW} --config "$CFG" open resources --screen $sc
|
||||||
|
${EWW} --config "$CFG" open logout --screen $sc
|
||||||
|
${EWW} --config "$CFG" open suspend --screen $sc
|
||||||
|
${EWW} --config "$CFG" open lock --screen $sc
|
||||||
|
${EWW} --config "$CFG" open reboot --screen $sc
|
||||||
|
${EWW} --config "$CFG" open shutdown --screen $sc
|
||||||
|
${EWW} --config "$CFG" open close --screen $sc
|
||||||
else
|
else
|
||||||
${EWW} --config "$CFG" close resources ml4wlauncher logout suspend lock reboot shutdown close
|
${EWW} --config "$CFG" close resources ml4wlauncher logout suspend lock reboot shutdown close
|
||||||
|
echo ":: Closing widgets"
|
||||||
rm "$FILE"
|
rm "$FILE"
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue
Block a user