fix(swaybg): fix swaybg service

This commit is contained in:
Artur Manuel 2025-01-30 01:15:23 +00:00
commit d757d6b432
5 changed files with 36 additions and 36 deletions

39
flake.lock generated
View file

@ -28,11 +28,11 @@
"nixpkgs": ["nixpkgs"] "nixpkgs": ["nixpkgs"]
}, },
"locked": { "locked": {
"lastModified": 1737038063, "lastModified": 1738148035,
"narHash": "sha256-rMEuiK69MDhjz1JgbaeQ9mBDXMJ2/P8vmOYRbFndXsk=", "narHash": "sha256-KYOATYEwaKysL3HdHdS5kbQMXvzS4iPJzJrML+3TKAo=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "bf0abfde48f469c256f2b0f481c6281ff04a5db2", "rev": "18d0a984cc2bc82cf61df19523a34ad463aa7f54",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -374,11 +374,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1737885589, "lastModified": 1738142207,
"narHash": "sha256-Zf0hSrtzaM1DEz8//+Xs51k/wdSajticVrATqDrfQjg=", "narHash": "sha256-NGqpVVxNAHwIicXpgaVqJEJWeyqzoQJ9oc8lnK9+WC4=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "852ff1d9e153d8875a83602e03fdef8a63f0ecf8", "rev": "9d3ae807ebd2981d593cddd0080856873139aa40",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -615,11 +615,11 @@
"nvf": "nvf" "nvf": "nvf"
}, },
"locked": { "locked": {
"lastModified": 1737843787, "lastModified": 1738191670,
"narHash": "sha256-yaKvNCce9DXpKprTyGHJ6awL6RClPvUkMuNPgqWs5lE=", "narHash": "sha256-9FdrtLQvXKKsWwu1jLQrV0UnC54+9HBkfs1h2a8XlcM=",
"ref": "master", "ref": "master",
"rev": "759b991556e9dae56b40816f1a55014bf50bbc9b", "rev": "dbc066fed939618282f1f079ddc5b4d5e89c39a7",
"revCount": 19, "revCount": 20,
"type": "git", "type": "git",
"url": "https://codeberg.org/amadaluzia/painless-neovim.git" "url": "https://codeberg.org/amadaluzia/painless-neovim.git"
}, },
@ -636,11 +636,11 @@
"parts": "parts" "parts": "parts"
}, },
"locked": { "locked": {
"lastModified": 1738081671, "lastModified": 1738101653,
"narHash": "sha256-LqtxGoX3ncH1cfq1E0ZG8M1Rjdv42EOE/eYAS6rs3TE=", "narHash": "sha256-c5AsUms0/xj9ucFqchn8EhITRHWEyTLcmCanbY4wDgM=",
"ref": "main", "ref": "main",
"rev": "0c281f506d32502127ca04b4aa762ca61eb12201", "rev": "322949b010ecc8e6a1d3ab3784758aca26f0e0ab",
"revCount": 86, "revCount": 88,
"type": "git", "type": "git",
"url": "https://codeberg.org/amadaluzia/pankomacs.git" "url": "https://codeberg.org/amadaluzia/pankomacs.git"
}, },
@ -3444,15 +3444,16 @@
"systems": "systems_3" "systems": "systems_3"
}, },
"locked": { "locked": {
"lastModified": 1733570646, "lastModified": 1738194066,
"narHash": "sha256-pZwvuOMtelkLmcG+dbedSlFaTomf3SNtYrPfZN41lXY=", "narHash": "sha256-9Ln3yGBnYSHUN6PHuqmxykcPzlCMgwfLFHkN0qQwONk=",
"owner": "notashelf", "owner": "amadaluzia",
"repo": "wallpkgs", "repo": "wallpkgs",
"rev": "e5a34ff48313b6ae38ac72da02f889ed8985d76b", "rev": "dda2f7e4e32e508a827accc32920ccc8182ac401",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "notashelf", "owner": "amadaluzia",
"ref": "nord",
"repo": "wallpkgs", "repo": "wallpkgs",
"type": "github" "type": "github"
} }

View file

@ -33,8 +33,9 @@
}; };
wallpkgs = { wallpkgs = {
type = "github"; type = "github";
owner = "notashelf"; owner = "amadaluzia";
repo = "wallpkgs"; repo = "wallpkgs";
ref = "nord";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
pankomacs = { pankomacs = {

View file

@ -22,7 +22,7 @@
programs = { programs = {
swaybg = { swaybg = {
enable = true; enable = true;
wallpaper = "${inputs.wallpkgs.packages.${pkgs.system}.nature}/share/wallpapers/nature/07.jpg"; wallpaper = inputs.wallpkgs.wallpapers.nord-03.path;
}; };
libvirt.enable = true; libvirt.enable = true;
direnv.enable = true; direnv.enable = true;

View file

@ -16,38 +16,38 @@ $base0E: #b48ead;
$base0F: #5e81ac; $base0F: #5e81ac;
* { * {
all: unset; all: unset;
font-size: 18px; font-size: 15px;
color: $base06; color: $base06;
} }
window#waybar { window#waybar {
background: $base00; background: $base00;
} }
tooltip { tooltip {
background: $base01; background: $base01;
} }
.modules-left, .modules-left,
.modules-right { .modules-right {
background: $base01; background: $base01;
padding: 0px 12px; padding: 0px 8px;
} }
.modules-center { .modules-center {
background: $base01; background: $base01;
} }
#workspaces button { #workspaces button {
padding: 8px 16px; padding: 6px 12px;
transition: 0.2s; transition: 0.2s;
} }
#workspaces button:hover { #workspaces button:hover {
padding: 8px 28px; padding: 6px 22px;
} }
#workspaces button.focused { #workspaces button.focused {
background: $base02; background: $base02;
} }

View file

@ -35,10 +35,8 @@ in {
after = ["graphical-session-pre.target"]; after = ["graphical-session-pre.target"];
partOf = ["graphical-session.target"]; partOf = ["graphical-session.target"];
script = lib.getExe' cfg.package "swaybg";
scriptArgs = "-i ${cfg.wallpaper} -m ${cfg.mode}";
serviceConfig = { serviceConfig = {
ExecStart = "${lib.getExe' cfg.package "swaybg"} -i ${cfg.wallpaper} -m ${cfg.mode}";
Restart = "always"; Restart = "always";
RestartSec = "5"; RestartSec = "5";
}; };