Compare commits

..

No commits in common. "35c1d07e4983b5d87a483cc2e3df629e3f6cb417" and "c972ff1e191bb48e6c07091d65591ab4e6f8e811" have entirely different histories.

6 changed files with 75 additions and 62 deletions

View file

@ -14,7 +14,6 @@
./swaync.nix ./swaync.nix
./vscode.nix ./vscode.nix
./waybar.nix ./waybar.nix
./wlogout.nix
./zsh.nix ./zsh.nix
# keep-sorted end # keep-sorted end
]; ];

View file

@ -16,8 +16,6 @@
name = "adwaita-dark"; name = "adwaita-dark";
}; };
services.wpaperd.enable = true;
programs.niri.settings = { programs.niri.settings = {
outputs = { outputs = {
"BOE 0x0A3B Unknown" = { "BOE 0x0A3B Unknown" = {
@ -55,10 +53,10 @@
from = pink_dark; from = pink_dark;
to = pink_light; to = pink_light;
}; };
gap-size = 8; gap-size = 10;
in in
{ {
background-color = "transparent"; background-color = "#000000";
gaps = gap-size; gaps = gap-size;
border = { border = {
enable = true; enable = true;

View file

@ -2,16 +2,12 @@
{ pkgs, config, ... }: { pkgs, config, ... }:
{ {
config = { config = {
stylix.targets.swaylock = {
enable = true;
useWallpaper = true;
};
programs.swaylock = { programs.swaylock = {
enable = true; enable = true;
package = pkgs.swaylock-effects; package = pkgs.swaylock-effects;
# https://github.com/jirutka/swaylock-effects/blob/master/swaylock.1.scd # https://github.com/jirutka/swaylock-effects/blob/master/swaylock.1.scd
settings = { settings = {
screenshot = false; screenshot = true;
effect-blur = "9x9"; effect-blur = "9x9";
effect-vignette = "0.2:0.2"; effect-vignette = "0.2:0.2";
fade-in = 0.5; fade-in = 0.5;
@ -23,6 +19,37 @@
ignore-empty-password = true; ignore-empty-password = true;
grace = 3.5; grace = 3.5;
indicator-thickness = 20; indicator-thickness = 20;
# https://github.com/catppuccin/swaylock/blob/main/themes/mocha.conf
color = "1e1e2e";
bs-hl-color = "f5e0dc";
caps-lock-bs-hl-color = "f5e0dc";
caps-lock-key-hl-color = "a6e3a1";
inside-color = "00000000";
inside-clear-color = "00000000";
inside-caps-lock-color = "00000000";
inside-ver-color = "00000000";
inside-wrong-color = "00000000";
key-hl-color = "a6e3a1";
layout-bg-color = "00000000";
layout-border-color = "00000000";
layout-text-color = "cdd6f4";
line-color = "00000000";
line-clear-color = "00000000";
line-caps-lock-color = "00000000";
line-ver-color = "00000000";
line-wrong-color = "00000000";
ring-color = "b4befe";
ring-clear-color = "f5e0dc";
ring-caps-lock-color = "fab387";
ring-ver-color = "89b4fa";
ring-wrong-color = "eba0ac";
separator-color = "00000000";
text-color = "cdd6f4";
text-clear-color = "f5e0dc";
text-caps-lock-color = "fab387";
text-ver-color = "89b4fa";
text-wrong-color = "eba0ac";
}; };
}; };

View file

@ -38,7 +38,7 @@
#"image" #"image"
"group/status-infos" "group/status-infos"
"group/system-tray" "group/system-tray"
"custom/wlogout" "group/group-power"
]; ];
"group/system-tray" = { "group/system-tray" = {
@ -57,7 +57,6 @@
orientation = "inherit"; orientation = "inherit";
modules = [ modules = [
"battery" "battery"
"custom/weather"
"temperature" "temperature"
"cpu" "cpu"
"memory" "memory"
@ -164,7 +163,7 @@
}; };
backlight = { backlight = {
device = "intel_backlight"; device = "intel_backlight";
format = "{percent}% "; format = "{percent}% ";
on-scroll-down = "light -U 1"; on-scroll-down = "light -U 1";
on-scroll-up = "light -A 1"; on-scroll-up = "light -A 1";
}; };
@ -175,14 +174,46 @@
disk = { disk = {
format = "{free}/{total}"; format = "{free}/{total}";
}; };
"custom/wlogout" = { "group/group-power" = {
format = " "; "orientation" = "inherit";
tooltip = false; "drawer" = {
on-click = "wlogout"; "transition-duration" = 500;
"children-class" = "not-power";
"transition-left-to-right" = false;
};
"modules" = [
"custom/power" # First element is the "group leader" and won't ever be hidden
"custom/quit"
"custom/lock"
"custom/reboot"
];
};
"custom/quit" = {
"format" = "󰗼 ";
"tooltip" = false;
"on-click" = "niri msg action quit";
min-width = 20;
};
"custom/lock" = {
"format" = "󰍁 ";
"tooltip" = false;
"on-click" = "${lib.getBin config.programs.swaylock.package}/bin/swaylock";
min-width = 20;
};
"custom/reboot" = {
"format" = "󰜉 ";
"tooltip" = false;
"on-click" = "systemctl reboot";
min-width = 20;
};
"custom/power" = {
"format" = " ";
"tooltip" = false;
"on-click" = "systemctl shutdown";
min-width = 20; min-width = 20;
}; };
idle_inhibitor = { idle_inhibitor = {
format = "{icon} "; format = "{icon}";
format-icons = { format-icons = {
activated = ""; activated = "";
deactivated = ""; deactivated = "";
@ -216,7 +247,7 @@
}; };
}; };
memory = { memory = {
format = "{}% "; format = "{}% ";
}; };
power-profiles-daemon = { power-profiles-daemon = {
format = "{icon}"; format = "{icon}";
@ -277,13 +308,6 @@
on-click-right = "${swaync-client} --toggle-dnd --skip-wait"; on-click-right = "${swaync-client} --toggle-dnd --skip-wait";
escape = true; escape = true;
}; };
"custom/weather" = {
format = "{}°";
tooltip = true;
interval = 3600;
exec = "${lib.getBin pkgs.wttrbar}/bin/wttrbar --nerd";
return-type = "json";
};
}; };
}; };
}; };

View file

@ -1,34 +0,0 @@
{
config.programs.wlogout = {
enable = true;
style = ''
* {
/*background-image: none;*/
box-shadow: none;
}
window {
background-color: rgba(30, 30, 46, 0.90);
}
button {
border-radius: 0;
border-color: #cba6f7;
text-decoration-color: #cdd6f4;
color: #cdd6f4;
background-color: #181825;
border-style: solid;
border-width: 1px;
background-repeat: no-repeat;
background-position: center;
background-size: 25%;
}
button:focus, button:active, button:hover {
/* 20% Overlay 2, 80% mantle */
background-color: rgb(48, 50, 66);
outline-style: none;
}
'';
};
}

View file

@ -1,9 +1,8 @@
{ pkgs, config, ... }: { pkgs, ... }:
{ {
stylix = { stylix = {
enable = true; enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml"; base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
image = config.lib.stylix.pixel "base00";
polarity = "dark"; polarity = "dark";
targets = { targets = {
gnome.enable = false; gnome.enable = false;