2022-06-26 12:42:49 +00:00
|
|
|
{ config, lib, pkgs, user, ... }:
|
|
|
|
|
2022-07-07 13:33:38 +00:00
|
|
|
let
|
|
|
|
cfg = config.xsession.windowManager.i3;
|
|
|
|
font.name = "DejaVu Sans Mono";
|
|
|
|
font.size = 12.0;
|
|
|
|
in
|
2022-06-26 12:42:49 +00:00
|
|
|
{
|
2022-06-27 05:50:07 +00:00
|
|
|
imports = [
|
|
|
|
./i3status-rust.nix
|
|
|
|
];
|
|
|
|
|
2022-07-10 19:00:33 +00:00
|
|
|
home.file = {
|
|
|
|
workspaces = {
|
|
|
|
source = ./workspaces;
|
|
|
|
target = ".config/i3/workspaces";
|
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
wallpapers = {
|
|
|
|
source = ./wallpapers;
|
|
|
|
target = ".config/i3/wallpapers";
|
|
|
|
recursive = true;
|
|
|
|
};
|
2022-06-28 15:05:14 +00:00
|
|
|
};
|
|
|
|
|
2022-06-26 12:42:49 +00:00
|
|
|
xsession.windowManager.i3 = {
|
|
|
|
enable = true;
|
2022-06-28 15:05:14 +00:00
|
|
|
|
2022-06-26 12:42:49 +00:00
|
|
|
config = {
|
|
|
|
modifier = "Mod4";
|
|
|
|
terminal = "${pkgs.kitty}/bin/kitty";
|
|
|
|
|
|
|
|
fonts = {
|
2022-07-07 13:33:38 +00:00
|
|
|
names = [ font.name ];
|
|
|
|
size = font.size;
|
2022-06-26 12:42:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
window = {
|
|
|
|
titlebar = false;
|
|
|
|
border = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
floating = {
|
|
|
|
titlebar = false;
|
|
|
|
border = 0;
|
|
|
|
};
|
|
|
|
|
2022-06-27 16:42:10 +00:00
|
|
|
menu = "${pkgs.rofi}/bin/rofi -show drun";
|
|
|
|
|
2022-06-26 12:42:49 +00:00
|
|
|
bars = [{
|
|
|
|
mode = "hide";
|
|
|
|
position = "top";
|
|
|
|
statusCommand = "${pkgs.i3status-rust}/bin/i3status-rs ~/.config/i3status-rust/config-default.toml";
|
|
|
|
|
|
|
|
fonts = {
|
2022-07-07 13:33:38 +00:00
|
|
|
names = [ font.name ];
|
2023-06-20 11:27:32 +00:00
|
|
|
size = font.size * 1.1;
|
2022-06-26 12:42:49 +00:00
|
|
|
};
|
|
|
|
}];
|
2022-06-26 19:13:00 +00:00
|
|
|
|
|
|
|
defaultWorkspace = "workspace number 1";
|
|
|
|
|
2022-07-07 13:33:38 +00:00
|
|
|
keybindings = lib.mkOptionDefault {
|
|
|
|
"${cfg.config.modifier}+Shift+o" = "exec xdg-open \"zoommtg://zoom.us/join?action=join&confno=4861587170&pwd=ZVk3aHphcWppY21ONjZOMVh6STN6dz09\"";
|
2022-09-12 07:10:55 +00:00
|
|
|
"${cfg.config.modifier}+Shift+s" = "exec flameshot gui";
|
2022-07-07 13:33:38 +00:00
|
|
|
};
|
|
|
|
|
2022-06-26 19:13:00 +00:00
|
|
|
startup = [
|
2022-06-28 15:05:14 +00:00
|
|
|
{ command = "i3-msg 'workspace 1; append_layout ~/.config/i3/workspaces/workspace-1.json'"; }
|
|
|
|
{ command = "i3-msg 'workspace 2; append_layout ~/.config/i3/workspaces/workspace-2.json'"; }
|
|
|
|
{ command = "i3-msg 'workspace 4; append_layout ~/.config/i3/workspaces/workspace-4.json'"; }
|
|
|
|
{ command = "i3-msg 'workspace 5; append_layout ~/.config/i3/workspaces/workspace-5.json'"; }
|
|
|
|
{ command = "kitty"; notification = false; }
|
|
|
|
{ command = "firefox"; notification = false; }
|
2022-06-29 06:07:08 +00:00
|
|
|
{ command = "element-desktop"; notification = false; }
|
2022-06-28 15:05:14 +00:00
|
|
|
{ command = "keepassxc"; notification = false; }
|
|
|
|
{ command = "nextcloud"; notification = false; }
|
|
|
|
{ command = "thunderbird"; notification = false; }
|
2022-06-26 19:13:00 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
assigns = {
|
2022-07-07 13:33:38 +00:00
|
|
|
"6" = [{ class = "^\.zoom $"; }];
|
2022-06-26 19:13:00 +00:00
|
|
|
};
|
2022-06-26 12:42:49 +00:00
|
|
|
};
|
|
|
|
};
|
2022-06-26 17:02:56 +00:00
|
|
|
|
2022-10-24 13:54:44 +00:00
|
|
|
services = {
|
|
|
|
betterlockscreen = {
|
|
|
|
enable = true;
|
|
|
|
arguments = [ "--update /home/mandlm/.config/i3/wallpapers/nix-wallpaper-dracula.png" ];
|
|
|
|
};
|
2022-07-26 16:31:18 +00:00
|
|
|
|
2022-10-24 13:54:44 +00:00
|
|
|
flameshot = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
General = {
|
|
|
|
showStartupLaunchMessage = false;
|
|
|
|
};
|
2022-09-12 07:10:55 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-10-24 13:54:44 +00:00
|
|
|
unclutter.enable = true;
|
2022-10-24 14:18:52 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2022-10-24 13:54:44 +00:00
|
|
|
};
|
2022-06-26 12:42:49 +00:00
|
|
|
}
|