stow_dotfiles/hyprland/.config/hypr/scripts/KillActiveProcess.sh
Matthieu Fortin (CPC/CCP) e281b79c5c hyprland config
2024-09-18 11:56:48 -04:00

11 lines
265 B
Bash
Executable file

#!/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"