summaryrefslogtreecommitdiff
path: root/freezeapp
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-09-02 17:36:35 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-09-02 17:36:35 +0800
commit582c7ad0569e4bc52a86b38e9a51f07f41842e15 (patch)
tree49bd07d6e6cfc85ee9d825ead224fbaed98160b4 /freezeapp
parent4bafe49e51237da9f4f92c935912426d3661cc11 (diff)
init hyprland scripts
Diffstat (limited to 'freezeapp')
-rwxr-xr-xfreezeapp12
1 files changed, 4 insertions, 8 deletions
diff --git a/freezeapp b/freezeapp
index 7974a3f..199023f 100755
--- a/freezeapp
+++ b/freezeapp
@@ -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