aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/KillActiveProcess.sh
blob: 2bc108f20ce243cede41235bf700d6236e32fbc5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env 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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage