Fix Picom Issue with Game Scripts

- Previously, picom would not turn back on after exiting a game
- Resolved this by running all game launch / exit script commands
  in the background so they persist even after the script itself
  exits
This commit is contained in:
Sravan Balaji
2023-12-30 23:22:30 -05:00
parent 1d11ae101e
commit 8dba18c23f
3 changed files with 20 additions and 20 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
/home/sravan/.scripts/picom.sh --on /home/sravan/.scripts/picom.sh --on &
/home/sravan/.scripts/deadd.sh --unpause /home/sravan/.scripts/deadd.sh --unpause &
/home/sravan/.scripts/cpu-gpu.sh --cpu-profile-balanced /home/sravan/.scripts/cpu-gpu.sh --cpu-profile-balanced &
/home/sravan/.scripts/cpu-gpu.sh --gpu-profile-adaptive /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 /usr/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s false &

View File

@@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
/home/sravan/.scripts/picom.sh --off /home/sravan/.scripts/picom.sh --off &
/home/sravan/.scripts/cpu-gpu.sh --cpu-profile-performance /home/sravan/.scripts/cpu-gpu.sh --cpu-profile-performance &
/home/sravan/.scripts/cpu-gpu.sh --gpu-profile-performance /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 /usr/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s true &

View File

@@ -7831,11 +7831,11 @@ These are scripts that should be run from Lutris when launching or exiting a gam
*Preferences > System options > Pre-launch script* *Preferences > System options > Pre-launch script*
#+BEGIN_SRC shell :shebang #!/bin/bash :tangle .scripts/game_launch.sh #+BEGIN_SRC shell :shebang #!/bin/bash :tangle .scripts/game_launch.sh
/home/sravan/.scripts/picom.sh --off /home/sravan/.scripts/picom.sh --off &
/home/sravan/.scripts/cpu-gpu.sh --cpu-profile-performance /home/sravan/.scripts/cpu-gpu.sh --cpu-profile-performance &
/home/sravan/.scripts/cpu-gpu.sh --gpu-profile-performance /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 /usr/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s true &
#+END_SRC #+END_SRC
*** Post-Exit Script *** Post-Exit Script
@@ -7843,11 +7843,11 @@ These are scripts that should be run from Lutris when launching or exiting a gam
*Preferences > System options > Post-exit script* *Preferences > System options > Post-exit script*
#+BEGIN_SRC shell :shebang #!/bin/bash :tangle .scripts/game_exit.sh #+BEGIN_SRC shell :shebang #!/bin/bash :tangle .scripts/game_exit.sh
/home/sravan/.scripts/picom.sh --on /home/sravan/.scripts/picom.sh --on &
/home/sravan/.scripts/deadd.sh --unpause /home/sravan/.scripts/deadd.sh --unpause &
/home/sravan/.scripts/cpu-gpu.sh --cpu-profile-balanced /home/sravan/.scripts/cpu-gpu.sh --cpu-profile-balanced &
/home/sravan/.scripts/cpu-gpu.sh --gpu-profile-adaptive /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 /usr/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s false &
#+END_SRC #+END_SRC
*** PlayStation 5 (DualSense) to Xbox 360 Controller Button Mapping *** PlayStation 5 (DualSense) to Xbox 360 Controller Button Mapping