home-config/hypr/scripts/autostart.sh

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