From c61b43e1a2af0bc3e23e9b7f9e90f4a44ee5c8d3 Mon Sep 17 00:00:00 2001 From: Moritz Date: Fri, 27 Aug 2021 19:12:11 +0200 Subject: [PATCH] starting daemons as systemd units from now on --- .config/bspwm/bspwmrc | 10 ---------- .config/polybar/launch.sh | 2 -- .config/sxhkd/sxhkdrc | 2 +- .config/zsh/.zshrc | 10 +++++----- .xinitrc | 3 +++ 5 files changed, 9 insertions(+), 18 deletions(-) diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index f5f6e43..1feff05 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -12,7 +12,6 @@ fi bspc config border_width 2 bspc config window_gap 5 -bspc config split_ratio 0.6 bspc config borderless_monocle true bspc config gapless_monocle true bspc config focus_follows_pointer true @@ -33,14 +32,5 @@ bspc rule -a Emacs state=tiled wmname LG3D # AUTOSTART # -[[ ! $(pidof -x sxhkd) ]] && sxhkd & -[[ ! $(pidof -x picom) ]] && picom --experimental-backends & -[[ ! $(pidof -x dunst) ]] && dunst & - feh --bg-fill ~/Pictures/Wallpapers/dracula.png - -[[ ! $(pidof -x kdeconnectd) ]] && /usr/lib/kdeconnectd & -kdeconnect-cli --refresh && kdeconnect-cli -l >/dev/null - -sh ~/.config/polybar/launch.sh & [[ ! $(pidof -x cloud-drive-daemon) ]] && synology-drive & diff --git a/.config/polybar/launch.sh b/.config/polybar/launch.sh index 05c77a5..4893216 100755 --- a/.config/polybar/launch.sh +++ b/.config/polybar/launch.sh @@ -6,8 +6,6 @@ killall -q polybar # Wait until the processes have been shut down while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done -while ! pgrep -x bspwm >/dev/null; do sleep 1; done - # Launch Polybar for m in $(polybar --list-monitors | cut -d":" -f1); do # MONITOR=$m polybar --reload top -c ~/.config/polybar/config.ini & diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index db4d94f..36f3628 100755 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -12,7 +12,7 @@ super + d # make sxhkd reload its configuration files: alt + shift + c - pkill -USR1 -x sxhkd; notify-send 'sxhkd' 'Reloaded config' + systemctl --user reload sxhkd.service # Show help super + h diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 0eba844..b352ec1 100755 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -3,11 +3,11 @@ USE_POWERLINE="true" SAVEHIST=1000 HISTFILE=$XDG_CONFIG_HOME/zsh/.zsh_history -if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then - cbonsai -lp -t 0.005 -m "Welcome back" - sleep 2 - startx &>/dev/null -fi +# if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then +# cbonsai -lp -t 0.005 -m "Welcome back" +# sleep 2 +# startx &>/dev/null +# fi if [ -d "$HOME/bin" ]; then export PATH="$HOME/bin:$PATH" diff --git a/.xinitrc b/.xinitrc index da4ff26..631a60b 100755 --- a/.xinitrc +++ b/.xinitrc @@ -12,4 +12,7 @@ xsetroot -cursor_name left_ptr [[ $(uname -n) == *"desktop"* ]] && xrandr --output HDMI-0 --primary --output HDMI-1 --left-of HDMI-0 +systemctl --user set-environment DISPLAY=:0 +systemctl --user --no-block start xsession.target + exec bspwm