diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2025-03-31 12:16:47 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2025-03-31 12:16:47 -0400 |
commit | 4ccdb6fb1f53bc6c799ece8c2f03a0fede093acd (patch) | |
tree | 9d3a73a81547fff442263c28bdfd9d1e98895d5d /.local/bin/quitapp | |
parent | f4c4550e327d9090c82a735d39d104d0bedb602d (diff) |
config cleanup
Diffstat (limited to '.local/bin/quitapp')
-rwxr-xr-x | .local/bin/quitapp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/.local/bin/quitapp b/.local/bin/quitapp deleted file mode 100755 index 60a8644..0000000 --- a/.local/bin/quitapp +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -active_window="$(xdotool getwindowfocus)" -active_class=$(xprop -id "$active_window" WM_CLASS | awk '{print $4}') - -if [ "$active_class" = '"firefox"' ]; then - xdotool windowclose "$active_window" -else - kill -15 "$(xdotool getwindowfocus getwindowpid)" -fi - |