From 19a7dd6dee65ed23cc7828d7404296ad6609dd26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Wed, 15 Oct 2025 07:34:23 +0200 Subject: [PATCH] xsession: add startx argument, lupan-set-theme: use pkill, shell: try eza before exa --- shell/.config/shellconfig/aliases.sh | 5 ++++- shell/.profile | 2 +- xsession/bin/lupan-set-theme | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/shell/.config/shellconfig/aliases.sh b/shell/.config/shellconfig/aliases.sh index 19c2d14..0dd61dd 100644 --- a/shell/.config/shellconfig/aliases.sh +++ b/shell/.config/shellconfig/aliases.sh @@ -13,7 +13,10 @@ if alias r > /dev/null; then unalias r fi -if which exa > /dev/null; then +if which eza > /dev/null; then + alias ls='eza --icons' + alias tree='eza --tree --icons' +elif which exa > /dev/null; then alias ls='exa --icons' alias tree='exa --tree --icons' fi diff --git a/shell/.profile b/shell/.profile index 214519b..bcdb218 100644 --- a/shell/.profile +++ b/shell/.profile @@ -36,7 +36,7 @@ if [ -z "$DISPLAY" -a -z "$WAYLAND_DISPLAY" -a "$(tty)" = /dev/tty1 ]; 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 + exec /usr/bin/startx ~/.xsession elif which Hyprland > /dev/null && [ -d ~/.config/hypr ]; then exec Hyprland elif which river > /dev/null && [ -d ~/.config/river ]; then diff --git a/xsession/bin/lupan-set-theme b/xsession/bin/lupan-set-theme index fefbce3..85c83df 100755 --- a/xsession/bin/lupan-set-theme +++ b/xsession/bin/lupan-set-theme @@ -21,7 +21,7 @@ else exit 1 fi -killall -USR1 dwm +pkill -USR1 '^dwm$' XRES=$(readlink -e ~/.Xresources) if [ -n "$XRES" ]; then @@ -31,7 +31,7 @@ if [ -n "$XRES" ]; then sed -i 's/^#define THEME_DARK/#undef THEME_DARK/' "$XRES" fi xrdb -merge "$XRES" - killall -USR1 st + pkill -USR1 '^st$' fi # Alacritty