home-config/hypr/autostart.sh

9f740aa87254a6449f5b6c49b10a0598c70733cf · 936 B · 33 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
13 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' &
14
15 syncthing serve --no-browser &
16
17 # Kill any orphans of this
18 killall wl-clip-persist
19 wl-clip-persist -c regular --reconnect-tries 5 &
20
21 kanshi -c ~/.config/hypr/kanshi.conf &
22
23 # Start the portals
24
25 sleep 0.5
26 killall -e xdg-desktop-portal-hyprland
27 killall xdg-desktop-portal-gtk
28 killall xdk-desktop-portal
29
30 ~/.nix-profile/libexec/xdg-desktop-portal-hyprland &
31 ~/.nix-profile/libexec/xdg-desktop-portal-gtk &
32 sleep 2
33 XDG_DESKTOP_PORTAL_DIR="/home/ryan/.nix-profile/share/xdg-desktop-portal/portals" ~/.nix-profile/libexec/xdg-desktop-portal &