xsession: add startx argument, lupan-set-theme: use pkill
This commit is contained in:
@@ -36,7 +36,7 @@ if [ -z "$DISPLAY" -a -z "$WAYLAND_DISPLAY" -a "$(tty)" = /dev/tty1 ]; then
|
|||||||
if which /usr/bin/sx > /dev/null; then
|
if 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
|
exec /usr/bin/startx ~/.xsession
|
||||||
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
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
killall -USR1 dwm
|
pkill -USR1 '^dwm$'
|
||||||
|
|
||||||
XRES=$(readlink -e ~/.Xresources)
|
XRES=$(readlink -e ~/.Xresources)
|
||||||
if [ -n "$XRES" ]; then
|
if [ -n "$XRES" ]; then
|
||||||
@@ -31,7 +31,7 @@ if [ -n "$XRES" ]; then
|
|||||||
sed -i 's/^#define THEME_DARK/#undef THEME_DARK/' "$XRES"
|
sed -i 's/^#define THEME_DARK/#undef THEME_DARK/' "$XRES"
|
||||||
fi
|
fi
|
||||||
xrdb -merge "$XRES"
|
xrdb -merge "$XRES"
|
||||||
killall -USR1 st
|
pkill -USR1 '^st$'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Alacritty
|
# Alacritty
|
||||||
|
|||||||
Reference in New Issue
Block a user