diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ae4a755..dd0ace3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,6 +6,7 @@ repos: - id: end-of-file-fixer - id: check-yaml - id: check-added-large-files + exclude_types: ["png"] - repo: https://github.com/kamadorueda/alejandra rev: 3.0.0 hooks: diff --git a/users/alejandro/sway/keybindings.nix b/users/alejandro/sway/keybindings.nix index 3393ea0..a44a68e 100644 --- a/users/alejandro/sway/keybindings.nix +++ b/users/alejandro/sway/keybindings.nix @@ -60,7 +60,7 @@ in { "${cfg.modifier}+c" = "kill"; "${cfg.modifier}+p" = "exec ${cfg.menu}"; "${cfg.modifier}+z" = "reload"; - "${cfg.modifier}+x" = "exec swaylock -i ${config.home.homeDirectory}/wallpaper.png"; + "${cfg.modifier}+x" = "exec swaylock -i ${config.home.homeDirectory}/dotfiles/users/alejandro/sway/wallpaper.png"; # Volume control "XF86AudioRaiseVolume" = " exec 'pamixer --increase 5'"; diff --git a/users/alejandro/sway/sway.nix b/users/alejandro/sway/sway.nix index 92865c2..fde2be6 100644 --- a/users/alejandro/sway/sway.nix +++ b/users/alejandro/sway/sway.nix @@ -2,7 +2,9 @@ config, pkgs, ... -}: { +}: let + wallpaper = "${config.home.homeDirectory}/dotfiles/users/alejandro/sway/wallpaper.png"; +in { imports = [ ./keybindings.nix ./waybar.nix @@ -24,7 +26,7 @@ timeouts = [ { timeout = 300; - command = "${pkgs.swaylock}/bin/swaylock -i ${config.home.homeDirectory}/wallpaper.png"; + command = "${pkgs.swaylock}/bin/swaylock -i ${wallpaper}"; } { timeout = 600; @@ -84,7 +86,7 @@ focus.followMouse = false; output = { - "*".bg = "${config.home.homeDirectory}/wallpaper.png fill"; + "*".bg = "${wallpaper} fill"; "eDP-1".scale = "1"; "Unknown ASUS VG24V 0x00007AAC" = { diff --git a/users/alejandro/sway/wallpaper.png b/users/alejandro/sway/wallpaper.png new file mode 100644 index 0000000..3d21149 Binary files /dev/null and b/users/alejandro/sway/wallpaper.png differ