[xinitrc] clean up

This commit is contained in:
Afonso Franco 2024-06-08 18:12:27 +01:00
parent de6e78ab66
commit ed10acc2fe
Signed by: afonso
SSH key fingerprint: SHA256:PQTRDHPH3yALEGtHXnXBp3Orfcn21pK20t0tS1kHg54

View file

@ -32,22 +32,15 @@ if [ -d /etc/X11/xinit/xinitrc.d ] ; then
fi fi
setxkbmap -layout us,pt setxkbmap -layout us,pt
setxkbmap -option grp:win_space_toggle setxkbmap -option grp:alt_space_toggle
setxkbmap -option caps:escape setxkbmap -option caps:escape
xset r rate 300 50 xset r rate 300 40
xrandr --output DP-0 --primary --mode 2560x1440 --left-of HDMI-0 --output HDMI-0 --mode 1920x1080
dunst &
if ! pgrep -f /usr/bin/easyeffects; then #gpu_mode=$(/usr/bin/envycontrol -q)
exec /usr/bin/easyeffects --gapplication-service & #if [ "$gpu_mode" = "nvidia" ]; then
notify-send 'easyeffects daemon started' #xrandr --setprovideroutputsource modesetting NVIDIA-0
fi #xrandr --auto
#fi
gpu_mode=$(/usr/bin/envycontrol -q)
if [ "$gpu_mode" = "nvidia" ]; then
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
fi
exec /home/afonso/.local/bin/xmonad exec /home/afonso/.local/bin/xmonad