Files
Dotfiles/roles/hypr/files/scripts/logout.sh
2024-04-02 00:59:42 +02:00

7 lines
212 B
Bash
Executable File

#!/bin/bash
HYPRCMDS=$(hyprctl -j clients | jq -j '.[] | "dispatch closewindow address:\(.address); "')
hyprctl --batch "$HYPRCMDS" >> /tmp/hypr/cexit.log 2>&1
hyprctl dispatch exit >> /tmp/hypr/cexit.log 2>&1