63 lines
1.4 KiB
Fish
Executable File
63 lines
1.4 KiB
Fish
Executable File
#!/usr/bin/env fish
|
|
|
|
# start compositor daemon
|
|
$HOME/.config/picom/launch.sh
|
|
|
|
# start desktop notification daemon
|
|
$HOME/.config/dunst/launch.sh
|
|
|
|
# start dwmbar daemon
|
|
$HOME/.config/dwm/dwmbar
|
|
|
|
# setup screen locker
|
|
killall xss-lock
|
|
xss-lock --ignore-sleep (which slock) &
|
|
|
|
# start network applet
|
|
pgrep -x nm-applet || nm-applet &
|
|
|
|
# start bluetooth applet
|
|
if which blueman-applet
|
|
pgrep -x blueman-applet || blueman-applet &
|
|
end
|
|
|
|
# start screenshot tool
|
|
if which flameshot
|
|
pgrep -x flameshot || flameshot &
|
|
end
|
|
|
|
# start input method
|
|
#pgrep -x fcitx || fcitx &
|
|
pgrep -x ibus-daemon || ibus-daemon -drx &
|
|
|
|
# restart wallpaper
|
|
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 browser
|
|
pgrep -x chromium || chromium &
|
|
|
|
# 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
|