mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-04-11 06:02:28 +00:00
Make hyprland-monitord start eww windows with systemd
This commit is contained in:
parent
fbc693674d
commit
bcff64f0fc
3 changed files with 10 additions and 4 deletions
|
@ -5,4 +5,5 @@ MONITOR_ID="$1"
|
||||||
MONITOR_NAME="$2"
|
MONITOR_NAME="$2"
|
||||||
MONITOR_DESCRIPTION="$3"
|
MONITOR_DESCRIPTION="$3"
|
||||||
|
|
||||||
eww open bar1
|
systemctl --user start eww-window@bar1.service
|
||||||
|
#eww open bar1
|
||||||
|
|
|
@ -9,11 +9,15 @@ if [ "$MONITORS_AMT" -lt 1 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$MONITORS_AMT" -eq 2 ]; then
|
if [ "$MONITORS_AMT" -eq 2 ]; then
|
||||||
eww open bar1
|
systemctl --user start eww-window@bar1.service
|
||||||
|
#eww open bar1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$MONITORS_AMT" -eq 1 ]; then
|
if [ "$MONITORS_AMT" -eq 1 ]; then
|
||||||
eww active-windows | grep "bar1" && eww close bar1
|
if eww active-windows | grep "bar1"; then
|
||||||
|
systemctl --user stop eww-window@bar1.service
|
||||||
|
#eww close bar1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$MONITORS_AMT" -gt 2 ]; then
|
if [ "$MONITORS_AMT" -gt 2 ]; then
|
||||||
|
|
|
@ -3,4 +3,5 @@ set -euo pipefail
|
||||||
|
|
||||||
MONITOR_NAME="$1"
|
MONITOR_NAME="$1"
|
||||||
|
|
||||||
eww close bar1
|
systemctl --user stop eww-window@bar1.service
|
||||||
|
# eww close bar1
|
||||||
|
|
Loading…
Add table
Reference in a new issue