Files
dotfiles/deprecated/hypr/scripts/startup
2023-12-04 09:44:54 +08:00

37 lines
810 B
Bash
Executable File

#!/bin/bash
SCRIPTSDIR=$HOME/.config/hypr/scripts
# Kill already running process
_ps=(waybar mako)
for _prs in "${_ps[@]}"; do
if [[ $(pidof ${_prs}) ]]; then
killall -9 ${_prs}
fi
done
# Apply themes
${SCRIPTSDIR}/gtkthemes &
# Lauch notification daemon (mako)
${SCRIPTSDIR}/notifications &
# Lauch statusbar (waybar)
${SCRIPTSDIR}/statusbar &
# Start swhkd
# ${SCRIPTSDIR}hotkeys &
# Start mpd
# exec mpd &
# A hack to stop wifi from being rfkilled when lid switch
sudo setkeycodes e057 240 e058 240
# kmonad $HOME/.config/hypr/kmonad/tkl.kbd &
kmonad $HOME/.config/hypr/kmonad/lappy.kbd &
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock EXEC:"${SCRIPTSDIR}/shellevents ${SCRIPTSDIR}/submaps.sh",nofork &
# systemctl --user enable --now opentabletdriver.service