From f9bc4b160805a10ac3e82d562baf19d7ffb6e8ad Mon Sep 17 00:00:00 2001 From: clsty Date: Sun, 9 Nov 2025 02:15:02 +0800 Subject: [PATCH] Fix dist-fedora setups.sh from modify repo --- dots-extra/fedora/hypr/hyprland/execs.conf | 30 ++++++++++++++++++++++ sdata/dist-fedora/install-setups.sh | 3 --- sdata/subcmd-install/3.files-legacy.sh | 3 +++ 3 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 dots-extra/fedora/hypr/hyprland/execs.conf diff --git a/dots-extra/fedora/hypr/hyprland/execs.conf b/dots-extra/fedora/hypr/hyprland/execs.conf new file mode 100644 index 000000000..6228b1a2b --- /dev/null +++ b/dots-extra/fedora/hypr/hyprland/execs.conf @@ -0,0 +1,30 @@ +# Bar, wallpaper +exec-once = ~/.config/hypr/hyprland/scripts/start_geoclue_agent.sh +exec-once = qs -c $qsConfig & + +# Input method +# exec-once = fcitx5 + +# Core components (authentication, lock screen, notification daemon) +exec-once = gnome-keyring-daemon --start --components=secrets +exec-once = hypridle +exec-once = dbus-update-activation-environment --all +exec-once = sleep 1 && dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP # Some fix idk +exec-once = hyprpm reload + +# Audio +exec-once = easyeffects --gapplication-service + +# Clipboard: history +# exec-once = wl-paste --watch cliphist store & +exec-once = wl-paste --type text --watch bash -c 'cliphist store && qs -c $qsConfig ipc call cliphistService update' +exec-once = wl-paste --type image --watch bash -c 'cliphist store && qs -c $qsConfig ipc call cliphistService update' + +# Cursor +exec-once = hyprctl setcursor Bibata-Modern-Classic 24 + +# Fix dock pinned apps not launching properly (https://github.com/end-4/dots-hyprland/issues/2200) +exec-once = sleep 3.5 && hyprctl reload && sleep 0.5 && touch ~/.config/quickshell/ii/shell.qml + +# For fedora to setup polkit +exec-once = /usr/libexec/kf6/polkit-kde-authentication-agent-1 diff --git a/sdata/dist-fedora/install-setups.sh b/sdata/dist-fedora/install-setups.sh index ba1e2349a..6364ca3f5 100644 --- a/sdata/dist-fedora/install-setups.sh +++ b/sdata/dist-fedora/install-setups.sh @@ -17,6 +17,3 @@ v sudo systemctl enable bluetooth --now v gsettings set org.gnome.desktop.interface font-name 'Rubik 11' v gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' v kwriteconfig6 --file kdeglobals --group KDE --key widgetStyle Darkly -v bash -c "echo exec-once = /usr/libexec/kf6/polkit-kde-authentication-agent-1 | - sudo tee -a ${REPO_ROOT}/dots/.config/hypr/custom/execs.conf" -# TODO: This will modify Git repo itself which should be avoided, however it makes sense that this may be needed. Need to improve this in future. \ No newline at end of file diff --git a/sdata/subcmd-install/3.files-legacy.sh b/sdata/subcmd-install/3.files-legacy.sh index 6f67f0a16..6b950ccd1 100644 --- a/sdata/subcmd-install/3.files-legacy.sh +++ b/sdata/subcmd-install/3.files-legacy.sh @@ -59,6 +59,9 @@ case $SKIP_HYPRLAND in true) sleep 0;; *) warning_rsync_delete; v rsync -av --delete "${arg_excludes[@]}" dots/.config/hypr/ "$XDG_CONFIG_HOME"/hypr/ + if [ "$OS_DISTRO_ID" = "fedora" ];then + v rsync -av "${REPO_ROOT}/dots-extra/fedora/hypr/hyprland/execs.conf" "$XDG_CONFIG_HOME/hypr/hyprland/execs.conf" + fi # When hypr/custom does not exist, we assume that it's the firstrun. if [ -d "$XDG_CONFIG_HOME/hypr/custom" ];then ii_firstrun=false;else ii_firstrun=true;fi t="$XDG_CONFIG_HOME/hypr/hyprland.conf"