summaryrefslogtreecommitdiff
path: root/home/config/hypr/scripts.d
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-11-03 13:26:33 -0500
committerFreya Murphy <freya@freyacat.org>2024-11-03 13:26:33 -0500
commit529d46c909630aba3ab595f3237dfa0a182b6486 (patch)
tree3481f34d2011fb37db98ecc04be9f2d5e0cce9f1 /home/config/hypr/scripts.d
parentrefactor home packages, update nvim config (diff)
downloaddotfiles-guix-529d46c909630aba3ab595f3237dfa0a182b6486.tar.gz
dotfiles-guix-529d46c909630aba3ab595f3237dfa0a182b6486.tar.bz2
dotfiles-guix-529d46c909630aba3ab595f3237dfa0a182b6486.zip
librewolf => firefox, fix xdg-portals
Diffstat (limited to 'home/config/hypr/scripts.d')
-rwxr-xr-xhome/config/hypr/scripts.d/autostart.sh10
-rwxr-xr-xhome/config/hypr/scripts.d/systemd.sh16
2 files changed, 10 insertions, 16 deletions
diff --git a/home/config/hypr/scripts.d/autostart.sh b/home/config/hypr/scripts.d/autostart.sh
index 30eac54..1c487b0 100755
--- a/home/config/hypr/scripts.d/autostart.sh
+++ b/home/config/hypr/scripts.d/autostart.sh
@@ -15,3 +15,13 @@ gtk-launch thunderbird &
hyprpaper &
hypridle &
+
+sleep 0.5
+killall -e xdg-desktop-portal-hyprland
+killall xdg-desktop-portal-gtk
+killall xdk-desktop-portal
+sleep 0.5
+$GUIX_PROFILE/libexec/xdg-desktop-portal-gtk &
+$GUIX_PROFILE/libexec/xdg-desktop-portal-hyprland &
+sleep 2
+$GUIX_PROFILE/libexec/xdg-desktop-portal &
diff --git a/home/config/hypr/scripts.d/systemd.sh b/home/config/hypr/scripts.d/systemd.sh
deleted file mode 100755
index 32b5528..0000000
--- a/home/config/hypr/scripts.d/systemd.sh
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-systemctl --user set-environment XDG_CURRENT_DESKTOP=Hyprland
-systemctl --user import-environment DISPLAY \
- WAYLAND_DISPLAY \
- XDG_CURRENT_DESKTOP \
- GTK_THEME \
- QT_QPA_PLATFORMTHEME
-
-
-hash dbus-update-activation-environment 2>/dev/null && \
- dbus-update-activation-environment --systemd DISPLAY \
- XDG_CURRENT_DESKTOP=Hyprland \
- WAYLAND_DISPLAY \
- GTK_THEME \
- QT_QPA_PLATFORMTHEME