Add extra theming settings to hyprland config
This commit is contained in:
parent
5c9854c665
commit
ad0780915c
|
@ -1,20 +1,19 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
let cursorSize = 24;
|
let
|
||||||
|
themeName = config.gtk.theme.name;
|
||||||
|
cursorName = config.gtk.cursorTheme.name;
|
||||||
|
cursorSize = "24";
|
||||||
in ''
|
in ''
|
||||||
source = ./extra.conf
|
source = ./extra.conf
|
||||||
monitor=,preferred,auto,auto
|
monitor=,preferred,auto,auto
|
||||||
|
|
||||||
exec-once = hyprctl setcursor ${config.gtk.cursorTheme.name} ${
|
|
||||||
toString cursorSize
|
|
||||||
}
|
|
||||||
|
|
||||||
env = XDG_CURRENT_DESKTOP=Hyprland
|
env = XDG_CURRENT_DESKTOP=Hyprland
|
||||||
env = XDG_SESSION_TYPE=wayland
|
env = XDG_SESSION_TYPE=wayland
|
||||||
env = XDG_SESSION_DESKTOP=Hyprland
|
env = XDG_SESSION_DESKTOP=Hyprland
|
||||||
env = GDK_BACKEND=wayland,x11
|
env = GDK_BACKEND=wayland,x11
|
||||||
env = GTK_THEME,${config.gtk.theme.name}
|
env = GTK_THEME,${themeName}
|
||||||
env = XCURSOR_THEME,${config.gtk.cursorTheme.name}
|
env = XCURSOR_THEME,${cursorName}
|
||||||
env = XCURSOR_SIZE,${toString cursorSize}
|
env = XCURSOR_SIZE,${cursorSize}
|
||||||
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
|
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
|
||||||
env = QT_QPA_PLATFORM,wayland
|
env = QT_QPA_PLATFORM,wayland
|
||||||
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
|
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
|
||||||
|
@ -22,6 +21,10 @@ in ''
|
||||||
env = DOOMLOCALDIR=${config.home.sessionVariables.DOOMLOCALDIR};
|
env = DOOMLOCALDIR=${config.home.sessionVariables.DOOMLOCALDIR};
|
||||||
env = DOOMPROFILELOADFILE=${config.home.sessionVariables.DOOMPROFILELOADFILE};
|
env = DOOMPROFILELOADFILE=${config.home.sessionVariables.DOOMPROFILELOADFILE};
|
||||||
|
|
||||||
|
exec-once = hyprctl setcursor ${cursorName} ${cursorSize}
|
||||||
|
exec-once = dbus-update-activation-environment --systemd --all
|
||||||
|
exec-once = systemctl --user import-environment WAYLAND_DISPLAY QT_QPA_PLATFORMTHEME
|
||||||
|
|
||||||
misc {
|
misc {
|
||||||
disable_autoreload = true
|
disable_autoreload = true
|
||||||
vrr = 2
|
vrr = 2
|
||||||
|
|
Loading…
Reference in a new issue