Update scripts to check if using wayland or x11

- game launch/exit script's picom disable/enable
  and xfce power manager presentation mode only
  apply when running dwm
- GPU profile switching with nvidia-settings only
  works when running x11
This commit is contained in:
Sravan Balaji
2024-09-04 20:14:10 -04:00
parent c4b75ed1c8
commit e3b86d708f
4 changed files with 68 additions and 24 deletions

View File

@@ -1,6 +1,9 @@
#!/usr/bin/env bash
/home/sravan/.scripts/picom.sh --on &
if [ $XDG_SESSION_DESKTOP == "dwm" ]; then
/home/sravan/.scripts/picom.sh --on &
/usr/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s false &
fi
/home/sravan/.scripts/dunst.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 &