default to dwm on X11
This commit is contained in:
@@ -40,15 +40,21 @@ export GOBIN=~/.local/bin
|
|||||||
|
|
||||||
# start X or Hyprland at login
|
# start X or Hyprland at login
|
||||||
if [ -z "$DISPLAY" -a -z "$WAYLAND_DISPLAY" -a "$(tty)" = /dev/tty1 ]; then
|
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 niri
|
|
||||||
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
|
|
||||||
exec /usr/bin/sx ~/.xsession
|
exec /usr/bin/sx ~/.xsession
|
||||||
elif which /usr/bin/startx > /dev/null; then
|
elif which /usr/bin/startx > /dev/null; then
|
||||||
exec /usr/bin/startx ~/.xsession
|
exec /usr/bin/startx ~/.xsession
|
||||||
|
elif which niri > /dev/null; then
|
||||||
|
exec niri
|
||||||
|
elif 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 river rill > /dev/null; then
|
||||||
|
export XKB_DEFAULT_LAYOUT=pl
|
||||||
|
exec river -c rill
|
||||||
elif which Hyprland > /dev/null && [ -d ~/.config/hypr ]; then
|
elif which Hyprland > /dev/null && [ -d ~/.config/hypr ]; then
|
||||||
exec Hyprland
|
exec Hyprland
|
||||||
elif which river > /dev/null && [ -d ~/.config/river ]; then
|
elif which river > /dev/null && [ -d ~/.config/river ]; then
|
||||||
|
|||||||
@@ -30,16 +30,16 @@ xsetroot -cursor_name left_ptr
|
|||||||
|
|
||||||
picom -b -I 1 -O 1 -e 1 --no-fading-openclose --backend glx || compton -b --no-fading-openclose
|
picom -b -I 1 -O 1 -e 1 --no-fading-openclose --backend glx || compton -b --no-fading-openclose
|
||||||
|
|
||||||
if which awesome > /dev/null; then
|
|
||||||
exec awesome
|
|
||||||
fi
|
|
||||||
|
|
||||||
if which dwm > /dev/null; then
|
if which dwm > /dev/null; then
|
||||||
dunst &
|
dunst &
|
||||||
lupan-clock &
|
lupan-clock &
|
||||||
exec dwm
|
exec dwm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if which awesome > /dev/null; then
|
||||||
|
exec awesome
|
||||||
|
fi
|
||||||
|
|
||||||
if which dk > /dev/null; then
|
if which dk > /dev/null; then
|
||||||
for m in $(polybar --list-monitors | cut -d: -f1); do
|
for m in $(polybar --list-monitors | cut -d: -f1); do
|
||||||
MONITOR=$m polybar --reload bar &
|
MONITOR=$m polybar --reload bar &
|
||||||
|
|||||||
Reference in New Issue
Block a user