nixrice/misc/.local/bin/startw
2024-12-11 15:06:14 -05:00

28 lines
609 B
Bash
Executable file

#!/usr/bin/env sh
# Start script for hyprland
# Restart wallpaper daemon synchronously
swww kill
pkill fcitx5
# Start daemons that can turn on asynchronously
(
foot --server &
systemctl --user restart network-manager-applet
pkill emacs; emacs --daemon
) &
# Rearrange monitors
hyprmonitors auto
systemctl --user restart hyprland-autoname-workspaces
swww-daemon &
fcitx5 &
waybar &
# Sometimes the monitor config does not want to apply properly on the first
# go. I then have to reload the configuration to make sure that the monitors
# are actually in their intended place.
hyprctl reload