From aa7beb9d88ece969103b86063cd7559fb293b6c2 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Fri, 7 Jun 2024 16:33:38 +0900 Subject: Waybar CSS styles clean up Added Kill active window --- config/hypr/scripts/KillActiveProcess.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 config/hypr/scripts/KillActiveProcess.sh (limited to 'config/hypr/scripts/KillActiveProcess.sh') diff --git a/config/hypr/scripts/KillActiveProcess.sh b/config/hypr/scripts/KillActiveProcess.sh new file mode 100755 index 00000000..bee146d7 --- /dev/null +++ b/config/hypr/scripts/KillActiveProcess.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## + +# Copied from Discord post. Thanks to @Zorg + + +# Get id of an active window +active_pid=$(hyprctl activewindow | grep -o 'pid: [0-9]*' | cut -d' ' -f2) + +# Close active window +kill $active_pid \ No newline at end of file -- cgit v1.2.3