diff --git a/.scripts/cpu-gpu.sh b/.scripts/cpu-gpu.sh index 4ec0d4f..da8456c 100755 --- a/.scripts/cpu-gpu.sh +++ b/.scripts/cpu-gpu.sh @@ -102,46 +102,46 @@ main() { rofi_graphics_menu ;; --graphics-query) - current_graphics=$(pkexec system76-power graphics) + current_graphics=$(system76-power graphics) notify-send "System76-Power Graphics" "$current_graphics" ;; --graphics-compute) notify-send "System76-Power Graphics" "Switching to Compute Graphics..." - pkexec system76-power graphics compute + system76-power graphics compute notify-send -u critical -t 0 "System76-Power Graphics" "Please reboot computer to switch graphics" ;; --graphics-hybrid) notify-send "System76-Power Graphics" "Switching to Hybrid Graphics..." - pkexec system76-power graphics hybrid + system76-power graphics hybrid notify-send -u critical -t 0 "System76-Power Graphics" "Please reboot computer to switch graphics" ;; --graphics-integrated) notify-send "System76-Power Graphics" "Switching to Integrated Graphics..." - pkexec system76-power graphics integrated + system76-power graphics integrated notify-send -u critical -t 0 "System76-Power Graphics" "Please reboot computer to switch graphics" ;; --graphics-nvidia) notify-send "System76-Power Graphics" "Switching to Nvidia Graphics..." - pkexec system76-power graphics nvidia + system76-power graphics nvidia notify-send -u critical -t 0 "System76-Power Graphics" "Please reboot computer to switch graphics" ;; --rofi-cpu-profile) rofi_cpu_profile_menu ;; --cpu-profile-query) - current_profile=$(pkexec system76-power profile) + current_profile=$(system76-power profile) notify-send "System76-Power CPU Profile" "$current_profile" ;; --cpu-profile-battery) - pkexec system76-power profile battery + system76-power profile battery notify-send "System76-Power CPU Profile" "Switched to Battery Profile" ;; --cpu-profile-balanced) - pkexec system76-power profile balanced + system76-power profile balanced notify-send "System76-Power CPU Profile" "Switched to Balanced Profile" ;; --cpu-profile-performance) - pkexec system76-power profile performance + system76-power profile performance notify-send "System76-Power CPU Profile" "Switched to Performance Profile" ;; --rofi-gpu-profile) diff --git a/.scripts/game_exit.sh b/.scripts/game_exit.sh index 4aa0437..9836eff 100755 --- a/.scripts/game_exit.sh +++ b/.scripts/game_exit.sh @@ -1,4 +1,6 @@ #!/bin/bash +/home/sravan/.scripts/picom.sh --on /home/sravan/.scripts/deadd.sh --unpause +/home/sravan/.scripts/cpu-gpu.sh --cpu-profile-balanced /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..849fd6a 100755 --- a/.scripts/game_launch.sh +++ b/.scripts/game_launch.sh @@ -1,5 +1,6 @@ #!/bin/bash /home/sravan/.scripts/picom.sh --off +/home/sravan/.scripts/cpu-gpu.sh --cpu-profile-performance /home/sravan/.scripts/cpu-gpu.sh --gpu-profile-performance /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/README.org b/README.org index 2d03d38..1c32d82 100644 --- a/README.org +++ b/README.org @@ -7832,6 +7832,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 --cpu-profile-performance /home/sravan/.scripts/cpu-gpu.sh --gpu-profile-performance /home/sravan/.scripts/deadd.sh --pause /usr/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s true @@ -7842,7 +7843,9 @@ 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/picom.sh --on /home/sravan/.scripts/deadd.sh --unpause +/home/sravan/.scripts/cpu-gpu.sh --cpu-profile-balanced /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 @@ -9249,46 +9252,46 @@ main() { rofi_graphics_menu ;; --graphics-query) - current_graphics=$(pkexec system76-power graphics) + current_graphics=$(system76-power graphics) notify-send "System76-Power Graphics" "$current_graphics" ;; --graphics-compute) notify-send "System76-Power Graphics" "Switching to Compute Graphics..." - pkexec system76-power graphics compute + system76-power graphics compute notify-send -u critical -t 0 "System76-Power Graphics" "Please reboot computer to switch graphics" ;; --graphics-hybrid) notify-send "System76-Power Graphics" "Switching to Hybrid Graphics..." - pkexec system76-power graphics hybrid + system76-power graphics hybrid notify-send -u critical -t 0 "System76-Power Graphics" "Please reboot computer to switch graphics" ;; --graphics-integrated) notify-send "System76-Power Graphics" "Switching to Integrated Graphics..." - pkexec system76-power graphics integrated + system76-power graphics integrated notify-send -u critical -t 0 "System76-Power Graphics" "Please reboot computer to switch graphics" ;; --graphics-nvidia) notify-send "System76-Power Graphics" "Switching to Nvidia Graphics..." - pkexec system76-power graphics nvidia + system76-power graphics nvidia notify-send -u critical -t 0 "System76-Power Graphics" "Please reboot computer to switch graphics" ;; --rofi-cpu-profile) rofi_cpu_profile_menu ;; --cpu-profile-query) - current_profile=$(pkexec system76-power profile) + current_profile=$(system76-power profile) notify-send "System76-Power CPU Profile" "$current_profile" ;; --cpu-profile-battery) - pkexec system76-power profile battery + system76-power profile battery notify-send "System76-Power CPU Profile" "Switched to Battery Profile" ;; --cpu-profile-balanced) - pkexec system76-power profile balanced + system76-power profile balanced notify-send "System76-Power CPU Profile" "Switched to Balanced Profile" ;; --cpu-profile-performance) - pkexec system76-power profile performance + system76-power profile performance notify-send "System76-Power CPU Profile" "Switched to Performance Profile" ;; --rofi-gpu-profile)