home-config/hypr/autostart.sh

f4b1d571ae0d6527fd933baadc64e9d67cd56456 · 950 B · 34 lines raw

1 #!/usr/bin/env bash
2
3 waybar &
4
5 mako &
6
7 #swaybg -i ~/.config/hypr/Wallpapers/above-clouds.jpg &
8
9 nice -n13 swww init &
10
11 #~/.config/hypr/wallpaper-daemon.sh &
12 wpaperd -d &
13
14 swayidle -w timeout 300 'swaylock --screenshots --clock --indicator --grace 3 --fade-in 1 --effect-blur 7x5 --effect-greyscale' timeout 600 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep 'swaylock -f -c 000000' &
15
16 syncthing serve --no-browser &
17
18 # Kill any orphans of this
19 killall wl-clip-persist
20 wl-clip-persist -c regular --reconnect-tries 5 &
21
22 kanshi -c ~/.config/hypr/kanshi.conf &
23
24 # Start the portals
25
26 sleep 0.5
27 killall -e xdg-desktop-portal-hyprland
28 killall xdg-desktop-portal-gtk
29 killall xdk-desktop-portal
30
31 ~/.nix-profile/libexec/xdg-desktop-portal-hyprland &
32 ~/.nix-profile/libexec/xdg-desktop-portal-gtk &
33 sleep 2
34 XDG_DESKTOP_PORTAL_DIR="/home/ryan/.nix-profile/share/xdg-desktop-portal/portals" ~/.nix-profile/libexec/xdg-desktop-portal &