fix: made hyprpaper configuration usable

This commit is contained in:
Zhongheng Liu 2024-08-09 16:49:31 +08:00
commit a3dc31db18
4 changed files with 16 additions and 9 deletions

View file

@ -16,6 +16,7 @@
# You can also split up your configuration and import pieces of it here: # You can also split up your configuration and import pieces of it here:
#./swaywm.nix #./swaywm.nix
./hyprland.nix ./hyprland.nix
./hyprpaper.nix
./shells ./shells
./variables.nix ./variables.nix
]; ];

View file

@ -16,13 +16,19 @@
# Whether to enable XWayland # Whether to enable XWayland
xwayland.enable = true; xwayland.enable = true;
settings = { settings = {
misc = {
disable_hyprland_logo = true;
disable_splash_rendering = true;
font_family = "monospace";
};
"$mod" = "SUPER"; "$mod" = "SUPER";
bind = [ bind = [
"$mod, Q, killactive"
"$mod, D, exec, ${pkgs.fuzzel}/bin/fuzzel" "$mod, D, exec, ${pkgs.fuzzel}/bin/fuzzel"
# firefox quickstart # firefox quickstart
"$mod, F, exec, ${pkgs.firefox}/bin/firefox" "$mod, F, exec, ${pkgs.firefox}/bin/firefox"
# foot terminal # foot terminal
"$mod, Return, exec, ${pkgs.foot}/bin/foot -f 'BlexMono Nerd Font:size=16' zsh" "$mod, Return, exec, ${pkgs.foot}/bin/foot -f 'BlexMono Nerd Font:size=16' zsh"
] ++ ( ] ++ (
# workspaces # workspaces
# binds $mod + [shift +] {1..10} to [move to] workspace {1..10} # binds $mod + [shift +] {1..10} to [move to] workspace {1..10}

View file

@ -6,7 +6,7 @@
ipc = "on"; ipc = "on";
splash = false; splash = false;
preload = [ config.myWallPaperPathString ]; preload = [ config.myWallPaperPathString ];
wallpapaer = ",${config.myWallPaperPathString}"; wallpaper = [ ",${config.myWallPaperPathString}" ];
}; };
}; };
} }

View file

@ -1,10 +1,10 @@
{pkgs, config, lib, ...}: {pkgs, config, lib, ...}:
{ {
options = with lib; with types; { options = with lib; with types; {
myWallPaperPathString = { type = str; }; myWallPaperPathString = mkOption { type = str; };
myUserName = { type = str; }; myUserName = mkOption { type = str; };
myDisplayName = { type = str; }; myDisplayName = mkOption { type = str; };
myEmail = { type = str; }; myEmail = mkOption { type = str; };
}; };
config = rec { config = rec {
myUserName = "stvnliu"; myUserName = "stvnliu";