Compare commits
5 Commits
81eb0045f4
...
fd7095bbe7
Author | SHA1 | Date | |
---|---|---|---|
fd7095bbe7 | |||
8d33d629c7 | |||
c7db575f3b | |||
ea81d83137 | |||
edf8967c10 |
@ -55,9 +55,9 @@
|
||||
};
|
||||
|
||||
fonts.fonts = with pkgs; [
|
||||
(nerdfonts.override { fonts = [ "DejaVuSansMono" "FiraCode" ]; })
|
||||
font-awesome
|
||||
(nerdfonts.override { fonts = [ "DejaVuSansMono" "NerdFontsSymbolsOnly" ]; })
|
||||
dejavu_fonts
|
||||
fira-code
|
||||
];
|
||||
|
||||
hardware = {
|
||||
|
@ -9,7 +9,7 @@ in
|
||||
enable = true;
|
||||
theme = theme_name;
|
||||
font = {
|
||||
name = "FiraCode Nerd Font Mono";
|
||||
name = "FiraCode";
|
||||
};
|
||||
settings = {
|
||||
tab_bar_style = "powerline";
|
||||
|
@ -49,6 +49,7 @@ lsp_status.config({
|
||||
current_function = false,
|
||||
show_filename = false,
|
||||
diagnostics = true,
|
||||
status_symbol = "",
|
||||
})
|
||||
lsp_status.register_progress()
|
||||
|
||||
|
@ -2,10 +2,13 @@
|
||||
let
|
||||
font.name = "DejaVu Sans Mono";
|
||||
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
|
||||
{
|
||||
imports = [
|
||||
./i3status-rust.nix
|
||||
./dunst.nix
|
||||
];
|
||||
|
||||
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 = {
|
||||
enable = true;
|
||||
|
||||
@ -59,7 +73,7 @@ in
|
||||
|
||||
seat = {
|
||||
"*" = {
|
||||
hide_cursor = "1000";
|
||||
hide_cursor = "5000";
|
||||
};
|
||||
};
|
||||
|
||||
@ -89,7 +103,7 @@ in
|
||||
in
|
||||
lib.mkOptionDefault {
|
||||
"${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 = {
|
||||
|
34
home-manager/sway/dunst.nix
Normal file
34
home-manager/sway/dunst.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user