diff options
| author | Ja.KooLit <jimmielovejay@gmail.com> | 2023-12-16 12:05:40 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-16 12:05:40 +0900 |
| commit | acaf626cc626da41969a1a2fc59556900ac12d19 (patch) | |
| tree | ad01741356dabd4b386619eaf5e3ae3fef0634f8 /config/hypr/scripts | |
| parent | 88348f4a9f634c4a9ac4226124f202f3c6a404f8 (diff) | |
| parent | aa9a6ebfbb2f99f1301a1276dae3ea119a338ee9 (diff) | |
Merge pull request #74 from JaKooLit/Development
Development
Diffstat (limited to 'config/hypr/scripts')
| -rwxr-xr-x | config/hypr/scripts/AppAutoClose.sh | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/config/hypr/scripts/AppAutoClose.sh b/config/hypr/scripts/AppAutoClose.sh deleted file mode 100755 index 32a6d735..00000000 --- a/config/hypr/scripts/AppAutoClose.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -# Variables: put the process names you want to auto close here. Make sure to add "" and inside the () -processes=("pavucontrol") - -# Loop through each process name -while true; do - active_window=$(hyprctl activewindow | grep class | awk '{print $2}') - - # Loop through each process name in the array - for process in "${processes[@]}"; do - if [ "$active_window" == "$process" ]; then - # If the active window matches the process, mark it as active - process_active=true - else - # If not, mark it as inactive and try to kill the process - process_active=false - pkill "$process" - fi - done - - sleep 5 -done |
