starting daemons as systemd units from now on

dev-docs
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 border_width 2
bspc config window_gap 5 bspc config window_gap 5
bspc config split_ratio 0.6
bspc config borderless_monocle true bspc config borderless_monocle true
bspc config gapless_monocle true bspc config gapless_monocle true
bspc config focus_follows_pointer true bspc config focus_follows_pointer true
@ -33,14 +32,5 @@ bspc rule -a Emacs state=tiled
wmname LG3D wmname LG3D
# AUTOSTART # # AUTOSTART #
[[ ! $(pidof -x sxhkd) ]] && sxhkd &
[[ ! $(pidof -x picom) ]] && picom --experimental-backends &
[[ ! $(pidof -x dunst) ]] && dunst &
feh --bg-fill ~/Pictures/Wallpapers/dracula.png 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 & [[ ! $(pidof -x cloud-drive-daemon) ]] && synology-drive &

View File

@ -6,8 +6,6 @@ killall -q polybar
# Wait until the processes have been shut down # Wait until the processes have been shut down
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
while ! pgrep -x bspwm >/dev/null; do sleep 1; done
# Launch Polybar # Launch Polybar
for m in $(polybar --list-monitors | cut -d":" -f1); do for m in $(polybar --list-monitors | cut -d":" -f1); do
# MONITOR=$m polybar --reload top -c ~/.config/polybar/config.ini & # MONITOR=$m polybar --reload top -c ~/.config/polybar/config.ini &

View File

@ -12,7 +12,7 @@ super + d
# make sxhkd reload its configuration files: # make sxhkd reload its configuration files:
alt + shift + c alt + shift + c
pkill -USR1 -x sxhkd; notify-send 'sxhkd' 'Reloaded config' systemctl --user reload sxhkd.service
# Show help # Show help
super + h super + h

View File

@ -3,11 +3,11 @@ USE_POWERLINE="true"
SAVEHIST=1000 SAVEHIST=1000
HISTFILE=$XDG_CONFIG_HOME/zsh/.zsh_history HISTFILE=$XDG_CONFIG_HOME/zsh/.zsh_history
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then # if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
cbonsai -lp -t 0.005 -m "Welcome back" # cbonsai -lp -t 0.005 -m "Welcome back"
sleep 2 # sleep 2
startx &>/dev/null # startx &>/dev/null
fi # fi
if [ -d "$HOME/bin" ]; then if [ -d "$HOME/bin" ]; then
export PATH="$HOME/bin:$PATH" 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 [[ $(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 exec bspwm