]> Freerunner's - dotfiles.git/commitdiff
hypr: move env declarations into their own fragment
authorAndre Ramnitz <tux.rising@gmail.com>
Tue, 29 Apr 2025 11:45:47 +0000 (13:45 +0200)
committerAndre Ramnitz <tux.rising@gmail.com>
Tue, 29 Apr 2025 11:45:47 +0000 (13:45 +0200)
dot-config/hypr/fragments/env.conf [new file with mode: 0644]
dot-config/hypr/hyprland.conf

diff --git a/dot-config/hypr/fragments/env.conf b/dot-config/hypr/fragments/env.conf
new file mode 100644 (file)
index 0000000..efc6c27
--- /dev/null
@@ -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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
index a4291d23df8b7cb6f0071e16387c3e4575d1b49a..440179dd6a7ba881a43dfd7a38a4b957ff97c8d1 100644 (file)
@@ -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