diff options
| author | Ja.KooLit <85185940+JaKooLit@users.noreply.github.com> | 2024-06-11 04:15:57 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-11 04:15:57 +0900 |
| commit | 22b85572e891b874011893f62d4eaf94f20486df (patch) | |
| tree | 3452d4164a8964cd85fe57de2bd128baeb0ee2ff /config/hypr/scripts/KillActiveProcess.sh | |
| parent | c4ee8142bf7e8d89602cb7712da10888a54d438b (diff) | |
| parent | ed21639feebd8e3b6a6a4c2a59686f777b9688b9 (diff) | |
Merge pull request #338 from JaKooLit/development
Development to Main including pre-release
Diffstat (limited to 'config/hypr/scripts/KillActiveProcess.sh')
| -rwxr-xr-x | config/hypr/scripts/KillActiveProcess.sh | 11 |
1 files changed, 11 insertions, 0 deletions
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 |
