Compare commits

...

5 Commits

5 changed files with 54 additions and 5 deletions

View File

@ -55,9 +55,9 @@
}; };
fonts.fonts = with pkgs; [ fonts.fonts = with pkgs; [
(nerdfonts.override { fonts = [ "DejaVuSansMono" "FiraCode" ]; }) (nerdfonts.override { fonts = [ "DejaVuSansMono" "NerdFontsSymbolsOnly" ]; })
font-awesome
dejavu_fonts dejavu_fonts
fira-code
]; ];
hardware = { hardware = {

View File

@ -9,7 +9,7 @@ in
enable = true; enable = true;
theme = theme_name; theme = theme_name;
font = { font = {
name = "FiraCode Nerd Font Mono"; name = "FiraCode";
}; };
settings = { settings = {
tab_bar_style = "powerline"; tab_bar_style = "powerline";

View File

@ -49,6 +49,7 @@ lsp_status.config({
current_function = false, current_function = false,
show_filename = false, show_filename = false,
diagnostics = true, diagnostics = true,
status_symbol = "",
}) })
lsp_status.register_progress() lsp_status.register_progress()

View File

@ -2,10 +2,13 @@
let let
font.name = "DejaVu Sans Mono"; font.name = "DejaVu Sans Mono";
font.size = 12.0; font.size = 12.0;
lock_command = "${pkgs.swaylock-fancy}/bin/swaylock-fancy --daemonize --show-failed-attempts --ignore-empty-password";
swaymsg = "${pkgs.sway}/bin/swaymsg";
in in
{ {
imports = [ imports = [
./i3status-rust.nix ./i3status-rust.nix
./dunst.nix
]; ];
home.packages = with pkgs; [ home.packages = with pkgs; [
@ -38,6 +41,17 @@ in
}; };
}; };
services.swayidle = {
enable = true;
events = [
{ event = "before-sleep"; command = lock_command; }
];
timeouts = [
{ timeout = 300; command = "${swaymsg} output '*' power off"; resumeCommand = "${swaymsg} output '*' power on"; }
{ timeout = 900; command = lock_command; }
];
};
wayland.windowManager.sway = { wayland.windowManager.sway = {
enable = true; enable = true;
@ -59,7 +73,7 @@ in
seat = { seat = {
"*" = { "*" = {
hide_cursor = "1000"; hide_cursor = "5000";
}; };
}; };
@ -89,7 +103,7 @@ in
in in
lib.mkOptionDefault { lib.mkOptionDefault {
"${modifier}+Shift+o" = "exec xdg-open \"zoommtg://zoom.us/join?action=join&confno=4861587170&pwd=ZVk3aHphcWppY21ONjZOMVh6STN6dz09\""; "${modifier}+Shift+o" = "exec xdg-open \"zoommtg://zoom.us/join?action=join&confno=4861587170&pwd=ZVk3aHphcWppY21ONjZOMVh6STN6dz09\"";
"${modifier}+l" = "exec swaylock-fancy"; "${modifier}+l" = "exec ${lock_command}";
}; };
assigns = { assigns = {

View File

@ -0,0 +1,34 @@
{ config, lib, pkgs, user, ... }:
{
services.dunst = {
enable = true;
settings = {
global = {
follow = "keyboard";
font = "DejaVu Sans Mono 11";
frame_width = 1;
};
urgency_low = {
frame_color = "#268bd2";
foreground = "#eee8d5";
background = "#002b36";
timeout = 4;
};
urgency_normal = {
frame_color = "#859900";
foreground = "#eee8d5";
background = "#002b36";
timeout = 6;
};
urgency_critical = {
frame_color = "#dc322f";
foreground = "#eee8d5";
background = "#002b36";
timeout = 8;
};
};
};
}