Fix Windows XP cursor discovery across libXcursor, GTK, Qt, XWayland, and Snap apps

This commit is contained in:
Carsten
2026-11-27 21:19:19 +01:00
parent 697b7daff5
commit 2cfdfb8d19
3 changed files with 15 additions and 0 deletions
+7
View File
@@ -10,6 +10,13 @@ source = ~/.config/hypr/monitors.conf
# Active XP Visual Style (borders, rounding, hyprbars)
source = ~/.config/hypr/theme.conf
# Cursor Environment (Hyprcursor + XCursor + Snap/XWayland)
env = HYPRCURSOR_THEME,standard-with-shadow
env = HYPRCURSOR_SIZE,24
env = XCURSOR_THEME,standard-with-shadow
env = XCURSOR_SIZE,24
env = XCURSOR_PATH,/home/carsten/.icons:/home/carsten/.local/share/icons:/usr/local/share/icons:/usr/share/icons:/usr/share/pixmaps
# Autostart
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP DCONF_PROFILE GTK_THEME GTK2_RC_FILES QT_QPA_PLATFORMTHEME XCURSOR_THEME XCURSOR_SIZE HYPRCURSOR_THEME HYPRCURSOR_SIZE
exec-once = systemctl --user restart xdg-desktop-portal xdg-desktop-portal-hyprland xdg-desktop-portal-gtk
+7
View File
@@ -24,6 +24,13 @@ sudo cp -a "${REPO_DIR}/assets/fonts/truetype/wintc" /usr/local/share/fonts/true
sudo cp -a "${REPO_DIR}/assets/icons/luna" /usr/local/share/icons/
sudo cp -a "${REPO_DIR}/assets/icons/standard-with-shadow" /usr/local/share/icons/
sudo cp -a "${REPO_DIR}/assets/icons/standard-no-shadow" /usr/local/share/icons/
# Expose XP cursors & icons in /usr/share/icons for libXcursor, XWayland, and Snap apps (GNOME stays on Yaru)
sudo ln -sfn /usr/local/share/icons/standard-with-shadow /usr/share/icons/standard-with-shadow
sudo ln -sfn /usr/local/share/icons/standard-no-shadow /usr/share/icons/standard-no-shadow
sudo ln -sfn /usr/local/share/icons/luna /usr/share/icons/luna
mkdir -p "${HOME}/.local/share/icons"
ln -sfn /usr/local/share/icons/standard-with-shadow "${HOME}/.local/share/icons/standard-with-shadow"
ln -sfn /usr/local/share/icons/standard-no-shadow "${HOME}/.local/share/icons/standard-no-shadow"
sudo cp -a "${REPO_DIR}/assets/sounds/Windows XP Default" /usr/local/share/sounds/
sudo cp -a "${REPO_DIR}/assets/themes/." /usr/local/share/themes/
sudo cp -a "${REPO_DIR}/assets/wintc/." /usr/local/share/wintc/
+1
View File
@@ -12,6 +12,7 @@ export GTK_THEME="${XP_THEME_NAME:-Windows XP style (Blue)}"
export GTK2_RC_FILES="/home/carsten/.config/hypr/gtk-2.0/gtkrc"
export XCURSOR_THEME="${XP_CURSOR_THEME:-standard-with-shadow}"
export XCURSOR_SIZE="${XP_CURSOR_SIZE:-24}"
export XCURSOR_PATH="$HOME/.icons:$HOME/.local/share/icons:/usr/local/share/icons:/usr/share/icons:/usr/share/pixmaps"
export HYPRCURSOR_THEME="${XP_CURSOR_THEME:-standard-with-shadow}"
export HYPRCURSOR_SIZE="${XP_CURSOR_SIZE:-24}"
export QT_QPA_PLATFORM="wayland;xcb"