starting daemons as systemd units from now on

This commit is contained in:
Moritz Böhme 2021-08-27 19:12:11 +02:00
parent e57d467a51
commit c61b43e1a2
5 changed files with 9 additions and 18 deletions

View file

@ -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 &

View file

@ -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 &

View file

@ -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

View file

@ -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"

View file

@ -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