mirror of
https://codeberg.org/frosty/dotfiles.git
synced 2024-09-19 03:37:10 -04:00
add some xrandr checks for nvidia-related stuff, and change dbus run command
This commit is contained in:
parent
4a51e02919
commit
4711ad2416
16
.xinitrc
16
.xinitrc
|
@ -1,5 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
if $(xrandr --listproviders | grep 'NVIDIA'); then
|
||||
xrandr --setprovideroutputsource modesetting NVIDIA-0
|
||||
xrandr --auto
|
||||
xrandr --dpi 96
|
||||
|
@ -9,25 +10,14 @@ xrandr \
|
|||
|
||||
export __NV_PRIME_RENDER_OFFLOAD=1
|
||||
export __GLX_VENDOR_LIBRARY_NAME="nvidia"
|
||||
fi
|
||||
|
||||
[ -f "$XDG_DATA_HOME/wallpaper" ] && xwallpaper --zoom "$XDG_DATA_HOME/wallpaper" &
|
||||
xrdb -merge "$HOME/.Xresources"
|
||||
|
||||
pipewire &
|
||||
pipewire-pulse &
|
||||
wireplumber &
|
||||
|
||||
dunst &
|
||||
picom &
|
||||
udiskie &
|
||||
mpd --no-daemon &
|
||||
|
||||
runsvdir "$SVDIR" &
|
||||
modbot -x &
|
||||
|
||||
while :; do
|
||||
if command -v dbus-launch >/dev/null; then
|
||||
dbus-launch --sh-syntax --exit-with-session dwm
|
||||
elif command -v dbus-run-session >/dev/null; then
|
||||
dbus-run-session dwm
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue