diff --git a/dotfiles/.xinitrc b/dotfiles/.xinitrc index 952c640..8f3560d 100644 --- a/dotfiles/.xinitrc +++ b/dotfiles/.xinitrc @@ -1,17 +1,17 @@ # Night light -redshift -P -O 2750 & +redshift -P -O 2750 &> /dev/null & # Disable mouse acceleration xset m 0 0 # Restore wallpaper -nitrogen --restore & +nitrogen --restore 2> /dev/null & # Run dwmblocks dwmblocks & # Launch dunst -dunst & +dunst 2> /dev/null & # Launch clipboard daemon clipmenud & @@ -32,7 +32,7 @@ picom & ~/.local/bin/sound & # For screenshots -flameshot & +#flameshot & if [[ -v LAPTOP ]]; then # Enable automatic fan control diff --git a/dotfiles/.zprofile b/dotfiles/.zprofile index 079ec53..13a2daf 100644 --- a/dotfiles/.zprofile +++ b/dotfiles/.zprofile @@ -12,6 +12,10 @@ if grep -q "i5" /proc/cpuinfo; then export LAPTOP="" fi -if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then - exec startx +if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then + if [ -v LAPTOP ]; then + exec startx &> /dev/null + else + exec startx + fi fi