diff --git a/.config/ntfy/.env.example b/.config/ntfy/.env.example new file mode 100644 index 0000000..115b18d --- /dev/null +++ b/.config/ntfy/.env.example @@ -0,0 +1,2 @@ +NTFY_USER=USER +NTFY_PASSWORD=PASS diff --git a/.config/ntfy/.gitignore b/.config/ntfy/.gitignore new file mode 100644 index 0000000..4c49bd7 --- /dev/null +++ b/.config/ntfy/.gitignore @@ -0,0 +1 @@ +.env diff --git a/.config/ntfy/client.yml b/.config/ntfy/client.yml new file mode 100644 index 0000000..e05e16c --- /dev/null +++ b/.config/ntfy/client.yml @@ -0,0 +1,4 @@ +default-host: https://ntfy.woopwoopserver.com +subscribe: +- topic: services_monitoring + command: 'notify-send -u critical "$topic" "$t\n$m"' diff --git a/.config/sway/config b/.config/sway/config index 8077a45..1875d1e 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -168,6 +168,9 @@ bindsym --to-code --locked XF86AudioPrev exec playerctl previous # special key to take a screenshot with grim bindsym --to-code $mod+Shift+s exec grim -g "$(slurp)" - | wl-copy +# subscribe to ntfy notifications +exec ~/Scripts/ntfy/ntfy_subscribe.sh & + # try to make DP-2 monitor primary for xwayland apps exec xrandr --output DP-2 --primary exec_always sleep 10s && xrandr --output DP-2 --primary