diff --git a/.config/betterlockscreenrc b/.config/betterlockscreenrc index a2e61f6..5a9d993 100644 --- a/.config/betterlockscreenrc +++ b/.config/betterlockscreenrc @@ -32,10 +32,10 @@ modifcolor=ff5555ff bgcolor=282a36ff prelock() { - /home/sravan/.scripts/deadd.sh --pause + # /home/sravan/.scripts/deadd.sh --pause } # custom postlock postlock() { - /home/sravan/.scripts/deadd.sh --unpause + # /home/sravan/.scripts/deadd.sh --unpause } diff --git a/.scripts/backup.sh b/.scripts/backup.sh index b78d5bf..c3b3edb 100755 --- a/.scripts/backup.sh +++ b/.scripts/backup.sh @@ -15,9 +15,9 @@ rofi_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then - main "--$option" && killall rofi + main "--$option" && pkill rofi fi } diff --git a/.scripts/brightness.sh b/.scripts/brightness.sh index e33aea8..ea555ef 100755 --- a/.scripts/brightness.sh +++ b/.scripts/brightness.sh @@ -21,7 +21,7 @@ rofi_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then main "--$option" && main "--rofi" fi diff --git a/.scripts/control-center.sh b/.scripts/control-center.sh index 112509a..059546d 100755 --- a/.scripts/control-center.sh +++ b/.scripts/control-center.sh @@ -29,7 +29,7 @@ rofi_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then main "--$option" && main "--rofi" fi diff --git a/.scripts/cpu-gpu.sh b/.scripts/cpu-gpu.sh index 497f786..cc03dae 100755 --- a/.scripts/cpu-gpu.sh +++ b/.scripts/cpu-gpu.sh @@ -22,7 +22,7 @@ rofi_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then main "--$option" && main "--rofi" fi @@ -42,7 +42,7 @@ rofi_cpu_profile_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then main "--$option" && main "--rofi-cpu-profile" fi @@ -63,7 +63,7 @@ rofi_graphics_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then main "--$option" && main "--rofi-graphics" fi @@ -83,7 +83,7 @@ rofi_gpu_profile_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then main "--$option" && main "--rofi-gpu-profile" fi diff --git a/.scripts/deadd.sh b/.scripts/deadd.sh index 2c25d7d..d1556cd 100755 --- a/.scripts/deadd.sh +++ b/.scripts/deadd.sh @@ -35,7 +35,7 @@ rofi_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then main "--$option" && main "--rofi" fi @@ -59,7 +59,7 @@ main() { ;; --on) if [ $(is_running) -eq '1' ]; then - killall deadd-notificat + pkill deadd-notificat fi /usr/bin/notify-send.py a --hint \ @@ -72,7 +72,7 @@ main() { notify-send "Turning Deadd OFF" if [ $(is_running) -eq '1' ]; then - killall deadd-notificat + pkill deadd-notificat fi ;; --toggle-center) diff --git a/.scripts/dunst.sh b/.scripts/dunst.sh index bebbf60..450d324 100755 --- a/.scripts/dunst.sh +++ b/.scripts/dunst.sh @@ -37,7 +37,7 @@ rofi_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then main "--$option" && main "--rofi" fi @@ -80,7 +80,7 @@ main() { cfr=$(xgetres dunst.critical-frame) if [ $(is_running) -eq '1' ]; then - killall dunst + pkill dunst fi # Start Dunst @@ -107,7 +107,7 @@ main() { notify-send "Turning Dunst OFF" if [ $(is_running) -eq '1' ]; then - killall dunst + pkill dunst fi ;; --context) diff --git a/.scripts/game_exit.sh b/.scripts/game_exit.sh index 4aa0437..7d3f338 100755 --- a/.scripts/game_exit.sh +++ b/.scripts/game_exit.sh @@ -1,4 +1,4 @@ #!/bin/bash -/home/sravan/.scripts/deadd.sh --unpause +# /home/sravan/.scripts/deadd.sh --unpause /home/sravan/.scripts/cpu-gpu.sh --gpu-profile-adaptive /usr/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s false diff --git a/.scripts/game_launch.sh b/.scripts/game_launch.sh index 69e68f8..882ad1a 100755 --- a/.scripts/game_launch.sh +++ b/.scripts/game_launch.sh @@ -1,5 +1,5 @@ #!/bin/bash /home/sravan/.scripts/picom.sh --off /home/sravan/.scripts/cpu-gpu.sh --gpu-profile-performance -/home/sravan/.scripts/deadd.sh --pause +# /home/sravan/.scripts/deadd.sh --pause /usr/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s true diff --git a/.scripts/gaming.sh b/.scripts/gaming.sh index fd1455e..1b97c69 100755 --- a/.scripts/gaming.sh +++ b/.scripts/gaming.sh @@ -22,9 +22,9 @@ rofi_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then - main "--$option" && killall rofi + main "--$option" && pkill rofi fi } diff --git a/.scripts/pactl.sh b/.scripts/pactl.sh index 87a4d7e..f813a9f 100755 --- a/.scripts/pactl.sh +++ b/.scripts/pactl.sh @@ -23,7 +23,7 @@ rofi_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then main "--$option" && main "--rofi" fi diff --git a/.scripts/picom.sh b/.scripts/picom.sh index b110e18..75c9ebf 100755 --- a/.scripts/picom.sh +++ b/.scripts/picom.sh @@ -28,7 +28,7 @@ rofi_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then main "--$option" && main "--rofi" fi @@ -52,7 +52,7 @@ main() { ;; --on) if [ $(is_running) -eq '1' ]; then - killall picom + pkill picom fi picom --config /home/sravan/.config/picom/picom.conf -b @@ -61,7 +61,7 @@ main() { ;; --off) if [ $(is_running) -eq '1' ]; then - killall picom + pkill picom fi notify-send "Turning Picom OFF" diff --git a/.scripts/playerctl.sh b/.scripts/playerctl.sh index be710d0..43bd105 100755 --- a/.scripts/playerctl.sh +++ b/.scripts/playerctl.sh @@ -23,7 +23,7 @@ rofi_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then main "--$option" && main "--rofi" fi diff --git a/.scripts/session.sh b/.scripts/session.sh index 0de0a20..5417ad5 100755 --- a/.scripts/session.sh +++ b/.scripts/session.sh @@ -26,9 +26,9 @@ rofi_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then - main "--$option" && killall rofi + main "--$option" && pkill rofi fi } diff --git a/.scripts/startup.sh b/.scripts/startup.sh index 25d9c7f..208a555 100755 --- a/.scripts/startup.sh +++ b/.scripts/startup.sh @@ -1,7 +1,7 @@ #!/bin/bash declare -a startup_array=(\ # Background Processes - "bash /home/sravan/.scripts/deadd.sh --on" \ # Deadd Notification Center + # "bash /home/sravan/.scripts/deadd.sh --on" \ # Deadd Notification Center "bash /home/sravan/.scripts/picom.sh --on" \ # Picom Compositor "/usr/bin/greenclip daemon" \ # Greenclip Clipboard Manager "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1" \ # GNOME Polkit Authentication Agent @@ -12,13 +12,13 @@ declare -a startup_array=(\ declare -a kill_startup_array=(\ # Background Processes - "killall deadd-notificat" \ # Deadd Notification Center - "killall picom" \ # Picom Compositor - "killall greenclip" \ # Greenclip Clipboard Manager - "killall polkit" \ # GNOME Polkit Authentication Agent - "killall xss-lock" \ # Session Lock Utility - "killall kdeconnectd" \ # KDE Connect Daemon - "killall redshift" \ # Redshift Blue Light Filter + # "pkill deadd-notificat" \ # Deadd Notification Center + "pkill picom" \ # Picom Compositor + "pkill greenclip" \ # Greenclip Clipboard Manager + "pkill polkit" \ # GNOME Polkit Authentication Agent + "pkill xss-lock" \ # Session Lock Utility + "pkill kdeconnectd" \ # KDE Connect Daemon + "pkill redshift" \ # Redshift Blue Light Filter ) declare -a delay_array=(\ @@ -40,15 +40,15 @@ declare -a delay_array=(\ declare -a kill_delay_array=(\ # System Tray Applications - "killall redshift" \ # Redshift Blue Light Filter - "killall blueman-applet" \ # Blueman Bluetooth Manager - "killall nm-applet" \ # Network Manager Applet - "killall kdeconnect-indicator" \ # KDE Connect Indicator - "killall flameshot" \ # Flameshot Screenshot Tool - "killall xfce4-power-manager" \ # XFCE4 Power Manager - "killall udiskie" \ # Udiskie - "killall openrgb" \ # OpenRGB - "killall syncthing-gtk" \ # Syncthing GTK + "pkill redshift" \ # Redshift Blue Light Filter + "pkill blueman-applet" \ # Blueman Bluetooth Manager + "pkill nm-applet" \ # Network Manager Applet + "pkill kdeconnect-indicator" \ # KDE Connect Indicator + "pkill flameshot" \ # Flameshot Screenshot Tool + "pkill xfce4-power-manager" \ # XFCE4 Power Manager + "pkill udiskie" \ # Udiskie + "pkill openrgb" \ # OpenRGB + "pkill syncthing-gtk" \ # Syncthing GTK ) help_menu() { @@ -75,7 +75,7 @@ rofi_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then main "--$option" && main "--rofi" fi diff --git a/README.org b/README.org index 680a04f..5e1ed30 100644 --- a/README.org +++ b/README.org @@ -882,7 +882,7 @@ rofi_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then main "--$option" && main "--rofi" fi @@ -925,7 +925,7 @@ main() { cfr=$(xgetres dunst.critical-frame) if [ $(is_running) -eq '1' ]; then - killall dunst + pkill dunst fi # Start Dunst @@ -952,7 +952,7 @@ main() { notify-send "Turning Dunst OFF" if [ $(is_running) -eq '1' ]; then - killall dunst + pkill dunst fi ;; --context) @@ -1417,7 +1417,7 @@ rofi_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then main "--$option" && main "--rofi" fi @@ -1441,7 +1441,7 @@ main() { ;; --on) if [ $(is_running) -eq '1' ]; then - killall deadd-notificat + pkill deadd-notificat fi /usr/bin/notify-send.py a --hint \ @@ -1454,7 +1454,7 @@ main() { notify-send "Turning Deadd OFF" if [ $(is_running) -eq '1' ]; then - killall deadd-notificat + pkill deadd-notificat fi ;; --toggle-center) @@ -2975,7 +2975,7 @@ rofi_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then main "--$option" && main "--rofi" fi @@ -2999,7 +2999,7 @@ main() { ;; --on) if [ $(is_running) -eq '1' ]; then - killall picom + pkill picom fi picom --config /home/sravan/.config/picom/picom.conf -b @@ -3008,7 +3008,7 @@ main() { ;; --off) if [ $(is_running) -eq '1' ]; then - killall picom + pkill picom fi notify-send "Turning Picom OFF" @@ -3150,7 +3150,7 @@ bgcolor=282a36ff #+BEGIN_SRC conf :tangle .config/betterlockscreenrc prelock() { - /home/sravan/.scripts/deadd.sh --pause + # /home/sravan/.scripts/deadd.sh --pause } #+END_SRC @@ -3159,7 +3159,7 @@ prelock() { #+BEGIN_SRC conf :tangle .config/betterlockscreenrc # custom postlock postlock() { - /home/sravan/.scripts/deadd.sh --unpause + # /home/sravan/.scripts/deadd.sh --unpause } #+END_SRC @@ -7289,7 +7289,7 @@ These are scripts that should be run from Lutris when launching or exiting a gam #+BEGIN_SRC shell :shebang #!/bin/bash :tangle .scripts/game_launch.sh /home/sravan/.scripts/picom.sh --off /home/sravan/.scripts/cpu-gpu.sh --gpu-profile-performance -/home/sravan/.scripts/deadd.sh --pause +# /home/sravan/.scripts/deadd.sh --pause /usr/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s true #+END_SRC @@ -7298,7 +7298,7 @@ These are scripts that should be run from Lutris when launching or exiting a gam *Preferences > System options > Post-exit script* #+BEGIN_SRC shell :shebang #!/bin/bash :tangle .scripts/game_exit.sh -/home/sravan/.scripts/deadd.sh --unpause +# /home/sravan/.scripts/deadd.sh --unpause /home/sravan/.scripts/cpu-gpu.sh --gpu-profile-adaptive /usr/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s false #+END_SRC @@ -7511,9 +7511,9 @@ rofi_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then - main "--$option" && killall rofi + main "--$option" && pkill rofi fi } @@ -8104,7 +8104,7 @@ Xcursor.size: CURSOR_SIZE #+BEGIN_SRC shell :shebang #!/bin/bash :tangle .scripts/startup.sh declare -a startup_array=(\ # Background Processes - "bash /home/sravan/.scripts/deadd.sh --on" \ # Deadd Notification Center + # "bash /home/sravan/.scripts/deadd.sh --on" \ # Deadd Notification Center "bash /home/sravan/.scripts/picom.sh --on" \ # Picom Compositor "/usr/bin/greenclip daemon" \ # Greenclip Clipboard Manager "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1" \ # GNOME Polkit Authentication Agent @@ -8115,13 +8115,13 @@ declare -a startup_array=(\ declare -a kill_startup_array=(\ # Background Processes - "killall deadd-notificat" \ # Deadd Notification Center - "killall picom" \ # Picom Compositor - "killall greenclip" \ # Greenclip Clipboard Manager - "killall polkit" \ # GNOME Polkit Authentication Agent - "killall xss-lock" \ # Session Lock Utility - "killall kdeconnectd" \ # KDE Connect Daemon - "killall redshift" \ # Redshift Blue Light Filter + # "pkill deadd-notificat" \ # Deadd Notification Center + "pkill picom" \ # Picom Compositor + "pkill greenclip" \ # Greenclip Clipboard Manager + "pkill polkit" \ # GNOME Polkit Authentication Agent + "pkill xss-lock" \ # Session Lock Utility + "pkill kdeconnectd" \ # KDE Connect Daemon + "pkill redshift" \ # Redshift Blue Light Filter ) declare -a delay_array=(\ @@ -8143,15 +8143,15 @@ declare -a delay_array=(\ declare -a kill_delay_array=(\ # System Tray Applications - "killall redshift" \ # Redshift Blue Light Filter - "killall blueman-applet" \ # Blueman Bluetooth Manager - "killall nm-applet" \ # Network Manager Applet - "killall kdeconnect-indicator" \ # KDE Connect Indicator - "killall flameshot" \ # Flameshot Screenshot Tool - "killall xfce4-power-manager" \ # XFCE4 Power Manager - "killall udiskie" \ # Udiskie - "killall openrgb" \ # OpenRGB - "killall syncthing-gtk" \ # Syncthing GTK + "pkill redshift" \ # Redshift Blue Light Filter + "pkill blueman-applet" \ # Blueman Bluetooth Manager + "pkill nm-applet" \ # Network Manager Applet + "pkill kdeconnect-indicator" \ # KDE Connect Indicator + "pkill flameshot" \ # Flameshot Screenshot Tool + "pkill xfce4-power-manager" \ # XFCE4 Power Manager + "pkill udiskie" \ # Udiskie + "pkill openrgb" \ # OpenRGB + "pkill syncthing-gtk" \ # Syncthing GTK ) help_menu() { @@ -8178,7 +8178,7 @@ rofi_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then main "--$option" && main "--rofi" fi @@ -8276,7 +8276,7 @@ rofi_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then main "--$option" && main "--rofi" fi @@ -8340,7 +8340,7 @@ rofi_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then main "--$option" && main "--rofi" fi @@ -8402,7 +8402,7 @@ rofi_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then main "--$option" && main "--rofi" fi @@ -8474,7 +8474,7 @@ rofi_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then main "--$option" && main "--rofi" fi @@ -8494,7 +8494,7 @@ rofi_cpu_profile_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then main "--$option" && main "--rofi-cpu-profile" fi @@ -8515,7 +8515,7 @@ rofi_graphics_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then main "--$option" && main "--rofi-graphics" fi @@ -8535,7 +8535,7 @@ rofi_gpu_profile_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then main "--$option" && main "--rofi-gpu-profile" fi @@ -8651,9 +8651,9 @@ rofi_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then - main "--$option" && killall rofi + main "--$option" && pkill rofi fi } @@ -8715,9 +8715,9 @@ rofi_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then - main "--$option" && killall rofi + main "--$option" && pkill rofi fi } @@ -8801,7 +8801,7 @@ rofi_menu() { option=$(printf '%s\n' "${choice}" | awk '{print $NF}') if [[ "$option" == "quit" ]]; then - killall rofi + pkill rofi elif [[ "$option" != "back" ]]; then main "--$option" && main "--rofi" fi