From 8dba18c23f31d2a4eb678a6f42cbd90d6c11cd8d Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Sat, 30 Dec 2023 23:22:30 -0500 Subject: [PATCH] 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 --- .scripts/game_exit.sh | 10 +++++----- .scripts/game_launch.sh | 10 +++++----- README.org | 20 ++++++++++---------- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.scripts/game_exit.sh b/.scripts/game_exit.sh index 9836eff..918515f 100755 --- a/.scripts/game_exit.sh +++ b/.scripts/game_exit.sh @@ -1,6 +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 +/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 849fd6a..bcc01b2 100755 --- a/.scripts/game_launch.sh +++ b/.scripts/game_launch.sh @@ -1,6 +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 +/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 1c32d82..f31aaf7 100644 --- a/README.org +++ b/README.org @@ -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* #+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 +/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 & #+END_SRC *** 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* #+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 +/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 *** PlayStation 5 (DualSense) to Xbox 360 Controller Button Mapping