dotfiles/.config/hypr/scripts/autostart.sh

18 lines
626 B
Bash
Executable file

#!/bin/sh
# This script is launched on every hyprland startup
# Please note that it is intended for desktop related programs ONLY, as it will be called every time you reload the desktop
# If you want to add your own applications you may rather want to use exec-once in the environment.conf file
hyprpaper &
albert &
# mako &
systemctl --user start hyprpolkitagent &
# Launch waybar depending on the last status
waybar_status=~/.config/hypr/status/waybar
if [ "$(cat $waybar_status)" == "on" ]; then
waybar &
elif [ "$(cat $waybar_status)" != "off" ]; then
hyprctl notify 0 3000 0 Failed to retrieve waybar status
fi