From 89721f2c44636fc1c1bfe1ea8c10ad6c7091911e Mon Sep 17 00:00:00 2001 From: Andre Ramnitz Date: Tue, 29 Apr 2025 13:45:47 +0200 Subject: [PATCH] hypr: move env declarations into their own fragment --- dot-config/hypr/fragments/env.conf | 65 ++++++++++++++++++++++++++++++ dot-config/hypr/hyprland.conf | 33 +-------------- 2 files changed, 66 insertions(+), 32 deletions(-) create mode 100644 dot-config/hypr/fragments/env.conf diff --git a/dot-config/hypr/fragments/env.conf b/dot-config/hypr/fragments/env.conf new file mode 100644 index 00000000..efc6c275 --- /dev/null +++ b/dot-config/hypr/fragments/env.conf @@ -0,0 +1,65 @@ +# xdg stuff +env = AMD_VULKAN_ICD=RADV +env = XDG_CURRENT_DESKTOP,Hyprland +env = XDG_SESSION_DESKTOP,Hyprland +env = XDG_SESSION_TYPE,wayland + +# prefer wayland +env = QT_QPA_PLATFORM,wayland;xcb +env = QT_QPA_PLATFORMTHEME,kde +env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1 +env = GDK_BACKEND,wayland,x11,* +env = GTK_USE_PORTAL,1 +env = MOZ_ENABLE_WAYLAND,1 +env = SDL_VIDEODRIVER,wayland # remove or set to x11 for games providing older versions of SDL + +# tweak swww +env = SWWW_TRANSITION_FPS,60 +env = SWWW_TRANSITION_STEP,2 + +# necessary for hi-dpi displays: +#env = GDK_SCALE=1 # scaling XWayland clients +#env = QT_AUTO_SCREEN_SCALE_FACTOR,1 + +# set cursor +env = XCURSOR_THEME,Bibata_Spirit +env = XCURSOR_SIZE,40 +env = HYPRCURSOR_THEME,Bibata_Spirit +env = HYPRCURSOR_SIZE,40 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dot-config/hypr/hyprland.conf b/dot-config/hypr/hyprland.conf index a4291d23..440179dd 100644 --- a/dot-config/hypr/hyprland.conf +++ b/dot-config/hypr/hyprland.conf @@ -19,48 +19,16 @@ xwayland { } # See https://wiki.hyprland.org/Configuring/Keywords/ for more -env = AMD_VULKAN_ICD=RADV -env = XDG_CURRENT_DESKTOP,Hyprland -env = XDG_SESSION_DESKTOP,Hyprland -env = XDG_SESSION_TYPE,wayland exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec-once = sunsetr # exec-shutdown = setenv WAYLAND_DISPLAY= XDG_SESSION_TYPE= XDG_CURRENT_DESKTOP= -# Some default env vars. -env = QT_QPA_PLATFORM,wayland;xcb -env = QT_QPA_PLATFORMTHEME,kde -env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1 - -env = GDK_BACKEND,wayland,x11,* -env = GTK_USE_PORTAL,1 - -env = MOZ_ENABLE_WAYLAND,1 -env = SDL_VIDEODRIVER,wayland # remove or set to x11 for games providing older versions of SDL - -# tweak swww -env = SWWW_TRANSITION_FPS,60 -env = SWWW_TRANSITION_STEP,2 - -# probably necessary for hi-dpi displays: -#env = GDK_SCALE=1 # scaling XWayland clients -#env = QT_AUTO_SCREEN_SCALE_FACTOR,1 - -# set cursor -env = XCURSOR_THEME,Bibata_Spirit -env = XCURSOR_SIZE,40 -# env = HYPRCURSOR_THEME,Bibata_Spirit -# env = HYPRCURSOR_SIZE,40 - # Execute your favorite apps at launch exec-once = ~/.config/hypr/scripts/startup.sh exec-once = hypridle exec-once = hyprpm enable hyprbars exec-once = hyprpaper -# Source a file (multi-file configs) -# source = ~/.config/hypr/myColors.conf - # For all categories, see https://wiki.hyprland.org/Configuring/Variables/ input { kb_layout = us,de @@ -235,6 +203,7 @@ plugin { } source=./fragments/animations.conf +source=./fragments/env.conf source=./fragments/keybinds.conf source=./fragments/windowrules.conf source=./fragments/workspacerules.conf -- 2.51.2