[bugfix] dwm autostart script should be copied instead symlinked

This commit is contained in:
Klesh Wong 2020-09-21 11:38:47 +08:00
parent 15ca77c7a9
commit 99fab93c75
3 changed files with 22 additions and 23 deletions

0
dunst/config/launch.sh Normal file → Executable file
View File

View File

@ -34,29 +34,26 @@ pgrep -x ibus-daemon || ibus-daemon -drx &
nitrogen --restore
# start password manager
pgrep -x keepassxc || keepassxc &
#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 browser
pgrep -x chromium || chromium &
#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
if which 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
#if which 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

View File

@ -87,6 +87,8 @@ EOT
# config dwm
lnsf $DIR/config/dwm/autostart $XDG_CONFIG_HOME/dwm/autostart
[[ -L $XDG_CONFIG_HOME/dwm/autostart ]] && rm $XDG_CONFIG_HOME/dwm/autostart
mkdir -p $DIR/config/dwm
cp $DIR/config/dwm/autostart $XDG_CONFIG_HOME/dwm/autostart
lnsf $DIR/config/dwm/dwmbar $XDG_CONFIG_HOME/dwm/dwmbar
lnsf $DIR/config/autorandr/postswitch $XDG_CONFIG_HOME/autorandr/postswitch