diff options
author | Ryan Schanzenbacher <ryan@rschanz.org> | 2024-10-19 20:53:35 -0400 |
---|---|---|
committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2024-10-19 20:53:35 -0400 |
commit | bde398cb8c3dd49ec9d726ef9bef8e6c99766c46 (patch) | |
tree | 34fa1713a0ddbbb661e39f5225d197f962125698 /home-config/hypr/autostart.sh | |
parent | 260a2e3d681bea7a71596a8db244a3bc9d096bbc (diff) |
got portals working again for screensharing
Diffstat (limited to 'home-config/hypr/autostart.sh')
-rwxr-xr-x | home-config/hypr/autostart.sh | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/home-config/hypr/autostart.sh b/home-config/hypr/autostart.sh index 6e64202..77ebae8 100755 --- a/home-config/hypr/autostart.sh +++ b/home-config/hypr/autostart.sh | |||
@@ -14,6 +14,20 @@ swayidle -w timeout 300 'swaylock --screenshots --clock --indicator --grace 3 -- | |||
14 | 14 | ||
15 | syncthing serve --no-browser & | 15 | syncthing serve --no-browser & |
16 | 16 | ||
17 | wl-clip-persist -c regular & | 17 | # Kill any orphans of this |
18 | killall wl-clip-persist | ||
19 | wl-clip-persist -c regular --reconnect-tries 5 & | ||
18 | 20 | ||
19 | kanshi -c ~/.config/hypr/kanshi.conf | 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 & | ||