diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2024-09-02 17:36:35 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2024-09-02 17:36:35 +0800 |
| commit | 582c7ad0569e4bc52a86b38e9a51f07f41842e15 (patch) | |
| tree | 49bd07d6e6cfc85ee9d825ead224fbaed98160b4 /freezeapp | |
| parent | 4bafe49e51237da9f4f92c935912426d3661cc11 (diff) | |
init hyprland scripts
Diffstat (limited to 'freezeapp')
| -rwxr-xr-x | freezeapp | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -1,6 +1,5 @@ #!/bin/bash -# Define the function to get the list of running GUI applications running_gui_apps() { applications=() @@ -23,21 +22,18 @@ running_gui_apps() { done - # sort result list and remove duplicates readarray -t applications < <(printf '%s\0' "${applications[@]}" | sort -z | xargs -0n1 | uniq) printf '%s\n' "${applications[@]}" } -# Call the function to get the list of running GUI applications apps=$(running_gui_apps) -# Replace newline characters with spaces using tr apps=$(echo "$apps" | tr '\n' ' ') -# Use killall with the -STOP option and the modified apps variable to stop the applications # killall -STOP $apps -killall -TERM picom #killall -STOP picom -killall -STOP polybar -killall -STOP runtransani.sh +# killall -TERM picom #killall -STOP picom +killall -STOP waybar +# killall -STOP polybar +# killall -STOP runtransani.sh #killall -STOP Xorg |
