Lockscreen custom

This commit is contained in:
Filippo Berto 2021-06-20 21:41:54 +02:00
parent b3fdc5f573
commit e080d5b9b8
10 changed files with 134 additions and 49 deletions

View file

@ -1,9 +1,12 @@
{ pkgs, ... }:
let rofi_dmenu = "${pkgs.rofi} -dmenu";
firefox = "${pkgs.firefox}/bin/firefox";
dmenu = "${pkgs.dmenu}/bin/dmenu";
in {
home.packages = with pkgs; [ dunst nerdfonts ];
let
rofi_dmenu = "${pkgs.rofi} -dmenu";
firefox = "${pkgs.firefox}/bin/firefox";
dmenu = "${pkgs.dmenu}/bin/dmenu";
palette = pkgs.extra.palette.toRGBHex pkgs.extra.colorPalette;
in
{
home.packages = with pkgs; [ dunst extra.font.normal.package ];
services.dunst = {
enable = true;
iconTheme = {
@ -13,7 +16,7 @@ in {
settings = {
global = {
monitor = 0;
follow = "keyboard";
follow = "mouse";
geometry = "300x6-20+50";
indicate_hidden = "yes";
shrink = "yes";
@ -23,12 +26,12 @@ in {
padding = 8;
horizontal_padding = 8;
frame_width = 2;
frame_color = "#2E3440";
separator_color = "#404859";
frame_color = palette.normal.black;
separator_color = palette.normal.blue;
sort = "yes";
idle_threshold = 120;
font = "FuraCode Nerd Font Mono 10";
font = "${pkgs.extra.font.normal.name} 10";
line_height = 0;
markup = "full";
format = "<b>%s</b>\\n%b";
@ -58,27 +61,27 @@ in {
mouse_right_click = "close_all";
};
urgency_low = {
background = "#2E3440";
foreground = "#D8DEE9";
background = palette.primary.background;
foreground = palette.primary.foreground;
timeout = 10;
};
urgency_normal = {
background = "#2E3440";
foreground = "#D8DEE9";
background = palette.primary.background;
foreground = palette.primary.foreground;
timeout = 10;
};
urgency_critical = {
background = "#2E3440";
foreground = "#D8DEE9";
frame_color = "#ff0000";
background = palette.primary.background;
foreground = palette.primary.foreground;
frame_color = palette.bright.red;
timeout = 0;
};
shortcuts = {
shortcuts = {
close = "ctrl+space";
close_all = "ctrl+shift+space";
history = "ctrl+backslash";
context = "ctrl+shift+period";
};
};
};
};
}