[bugfix] autostart not working
This commit is contained in:
parent
4bd7cf3a53
commit
73d27e65d5
|
@ -13,49 +13,23 @@ $HOME/.config/dwm/statusbar
|
||||||
xset s off
|
xset s off
|
||||||
xset dpms 300 300 300
|
xset dpms 300 300 300
|
||||||
killall xss-lock
|
killall xss-lock
|
||||||
xss-lock (which slock) &
|
xss-lock $(which slock) &
|
||||||
|
|
||||||
# start network applet
|
# start network applet
|
||||||
pgrep -x nm-applet || nm-applet &
|
pgrep -x nm-applet || nm-applet &
|
||||||
|
|
||||||
# start bluetooth applet
|
# start bluetooth applet
|
||||||
if which blueman-applet
|
which blueman-applet && ! pgrep -x blueman-applet || blueman-applet &
|
||||||
pgrep -x blueman-applet || blueman-applet &
|
|
||||||
end
|
|
||||||
|
|
||||||
# start screenshot tool
|
# start screenshot tool
|
||||||
if which flameshot
|
which flameshot && ! pgrep -x flameshot && flameshot &
|
||||||
pgrep -x flameshot || flameshot &
|
|
||||||
end
|
|
||||||
|
|
||||||
# start input method
|
# start input method
|
||||||
#pgrep -x fcitx || fcitx &
|
|
||||||
pgrep -x ibus-daemon || ibus-daemon -drx &
|
pgrep -x ibus-daemon || ibus-daemon -drx &
|
||||||
|
|
||||||
# restart wallpaper
|
# restart wallpaper
|
||||||
nitrogen --restore
|
nitrogen --restore
|
||||||
|
|
||||||
# start password manager
|
|
||||||
#pgrep -x keepassxc || keepassxc &
|
|
||||||
|
|
||||||
# start a terminal with tmux
|
|
||||||
#if not xdotool search --onlyvisible --class term && not xdotool search --onlyvisible --class Alacritty
|
|
||||||
#if tmux has-session -t 0
|
|
||||||
#st -c term -n autostart -e tmux a -t 0 &
|
|
||||||
##alacritty --class autostart,term -e tmux a -t 0 &
|
|
||||||
#else
|
|
||||||
#st -c term -n autostart -e tmux new -s 0 &
|
|
||||||
##alacritty --class autostart,term -e tmux new -s 0 &
|
|
||||||
#end
|
|
||||||
#end
|
|
||||||
|
|
||||||
# start nextcloud
|
# start nextcloud
|
||||||
#if which nextcloud
|
pgrep -x nextcloud || nextcloud &
|
||||||
#if not pgrep -x nextcloud
|
|
||||||
#nextcloud &
|
|
||||||
#while not xdotool search --onlyvisible --name Nextcloud
|
|
||||||
#sleep 0.5
|
|
||||||
#end
|
|
||||||
#xdotool windowclose (xdotool search --onlyvisible --name Nextcloud)
|
|
||||||
#end
|
|
||||||
#end
|
|
||||||
|
|
|
@ -115,8 +115,9 @@ start() {
|
||||||
}
|
}
|
||||||
|
|
||||||
restart() {
|
restart() {
|
||||||
pkill -f 'dwmbar loop'
|
FP=$(readlink -f $0)
|
||||||
$0 loop &
|
pkill -f "$FP loop"
|
||||||
|
$FP loop &
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$1" = "loop" ]; then
|
if [ "$1" = "loop" ]; then
|
||||||
|
|
|
@ -82,5 +82,5 @@ EOT
|
||||||
[[ -L $XDG_CONFIG_HOME/dwm/autostart ]] && rm $XDG_CONFIG_HOME/dwm/autostart
|
[[ -L $XDG_CONFIG_HOME/dwm/autostart ]] && rm $XDG_CONFIG_HOME/dwm/autostart
|
||||||
mkdir -p $XDG_CONFIG_HOME/dwm
|
mkdir -p $XDG_CONFIG_HOME/dwm
|
||||||
cp $DIR/config/dwm/autostart $XDG_CONFIG_HOME/dwm/autostart
|
cp $DIR/config/dwm/autostart $XDG_CONFIG_HOME/dwm/autostart
|
||||||
lnsf $DIR/config/dwm/dwmbar $XDG_CONFIG_HOME/dwm/dwmbar
|
lnsf $DIR/config/dwm/statusbar $XDG_CONFIG_HOME/dwm/statusbar
|
||||||
lnsf $DIR/config/autorandr/postswitch $XDG_CONFIG_HOME/autorandr/postswitch
|
lnsf $DIR/config/autorandr/postswitch $XDG_CONFIG_HOME/autorandr/postswitch
|
||||||
|
|
Loading…
Reference in New Issue
Block a user