Add Hyprland helper scripts

This commit is contained in:
agryphus 2024-03-18 16:45:10 -04:00
parent 9fd2f2405a
commit d056fa9f36
2 changed files with 165 additions and 0 deletions

29
misc/.local/bin/startw Executable file
View file

@ -0,0 +1,29 @@
#!/usr/bin/env sh
# Start script for hyprland
# Restart wallpaper daemon synchronously
swww kill
# Start daemons that can turn on asynchronously
(
foot --server &
systemctl --user restart network-manager-applet
pkill fcitx5; fcitx5 &
emacs --daemon
) &
ags &
# Rearrange monitors
hyprmonitors auto
systemctl --user restart hyprland-autoname-workspaces
# Set default workspace per monitor
# hyprctl dispatch focusmonitor 1; hyprctl dispatch exec 'hyprdwm goto 1'
# hyprctl dispatch focusmonitor +1; hyprctl dispatch exec 'hyprdwm goto 1'
# hyprctl dispatch focusmonitor +1; hyprctl dispatch exec 'hyprdwm goto 1'
# hyprctl dispatch focusmonitor 0
sleep 3
swww init