refactor(greetd): separate configs a bit

This commit is contained in:
matt1432 2023-10-19 22:32:44 -04:00
parent eae724d603
commit a98fd6bdbd
3 changed files with 41 additions and 39 deletions

View file

@ -8,11 +8,7 @@
hyprBin = "${hyprland.packages.x86_64-linux.default}/bin"; hyprBin = "${hyprland.packages.x86_64-linux.default}/bin";
gset = pkgs.gsettings-desktop-schemas; gset = pkgs.gsettings-desktop-schemas;
css = pkgs.writeText "style.css" '' css = pkgs.writeText "style.css" ''${builtins.readFile ./style.css}'';
window {
background-color: rgba(0, 0, 0, 0);
}
'';
paperConf = pkgs.writeText "hyprpaper.conf" '' paperConf = pkgs.writeText "hyprpaper.conf" ''
preload = ${pkgs.dracula-theme}/wallpapers/waves.png preload = ${pkgs.dracula-theme}/wallpapers/waves.png
@ -22,40 +18,7 @@
hyprConf = pkgs.writeText "greetd-hypr-config" '' hyprConf = pkgs.writeText "greetd-hypr-config" ''
exec-once = hyprpaper --config ${paperConf} exec-once = hyprpaper --config ${paperConf}
input { ${builtins.readFile ./hyprland.conf}
kb_layout = ca
kb_variant = multix
kb_model =
kb_options =
kb_rules =
follow_mouse = 1
touchpad {
natural_scroll = yes
}
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
}
env = XCURSOR_SIZE,24
exec-once=hyprctl setcursor Dracula-cursors 24
misc {
disable_hyprland_logo = true
disable_splash_rendering = true
vfr = true
}
general {
border_size = 0
}
decoration {
blur {
enabled = false
}
drop_shadow = false
}
# FIXME: kb doesn't work # FIXME: kb doesn't work
env = XDG_DATA_DIRS, ${gset}/share/gsettings-schemas/${gset.name}:${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}:$XDG_DATA_DIRS env = XDG_DATA_DIRS, ${gset}/share/gsettings-schemas/${gset.name}:${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}:$XDG_DATA_DIRS

View file

@ -0,0 +1,36 @@
input {
kb_layout = ca
kb_variant = multix
kb_model =
kb_options =
kb_rules =
follow_mouse = 1
touchpad {
natural_scroll = yes
}
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
}
env = XCURSOR_SIZE,24
exec-once=hyprctl setcursor Dracula-cursors 24
misc {
disable_hyprland_logo = true
disable_splash_rendering = true
vfr = true
}
general {
border_size = 0
}
decoration {
blur {
enabled = false
}
drop_shadow = false
}

3
modules/greetd/style.css Normal file
View file

@ -0,0 +1,3 @@
window {
background-color: rgba(0, 0, 0, 0);
}