default to dwm on X11

This commit is contained in:
2026-06-29 21:35:28 +02:00
parent 8cd6442acd
commit d740ab9621
2 changed files with 16 additions and 6 deletions

View File

@@ -40,12 +40,22 @@ export GOBIN=~/.local/bin
# start X or Hyprland at login
if [ -z "$DISPLAY" -a -z "$WAYLAND_DISPLAY" -a "$(tty)" = /dev/tty1 ]; then
if which niri > /dev/null; then
if which /usr/bin/sx > /dev/null; then
exec /usr/bin/sx ~/.xsession
elif which /usr/bin/startx > /dev/null; then
exec /usr/bin/startx ~/.xsession
elif which niri > /dev/null; then
exec niri
if which river argen > /dev/null; then
export XKB_DEFAULT_LAYOUT=pl
exec river -c 'argen'
elif which river kwm stdout-clock > /dev/null; then
export XKB_DEFAULT_LAYOUT=pl
exec river -c 'stdout-clock | kwm'
elif which /usr/bin/sx > /dev/null; then
elif which river rill > /dev/null; then
export XKB_DEFAULT_LAYOUT=pl
exec river -c rill
if which /usr/bin/sx > /dev/null; then
exec /usr/bin/sx ~/.xsession
elif which /usr/bin/startx > /dev/null; then
exec /usr/bin/startx ~/.xsession