From 582c7ad0569e4bc52a86b38e9a51f07f41842e15 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 2 Sep 2024 17:36:35 +0800 Subject: init hyprland scripts --- freezeapp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'freezeapp') 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 -- cgit v1.2.3