Add custom service to watch monitor updates

This commit is contained in:
ItsDrike 2024-10-13 21:56:51 +02:00
parent d2f808f469
commit b0ca57ac4a
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
5 changed files with 136 additions and 0 deletions

View file

@ -0,0 +1,8 @@
#!/bin/bash
set -euo pipefail
MONITOR_ID="$1"
MONITOR_NAME="$2"
MONITOR_DESCRIPTION="$3"
eww open bar1

View file

@ -0,0 +1,6 @@
#!/bin/bash
set -euo pipefail
MONITOR_NAME="$1"
eww close bar1

View file

@ -0,0 +1,10 @@
[Unit]
Description="Daemon watching for Hyprland monitor updates"
PartOf=graphical-session.target
[Service]
ExecStart=%h/.local/bin/scripts/gui/hyprland/hyprland-monitord
Restart=on-failure
[Install]
WantedBy=wayland-session.target

View file

@ -0,0 +1 @@
/home/itsdrike/.config/systemd/user/hyprland-monitord.service