refactor: simplify options
This commit is contained in:
1 parent
216f2cca81
commit
690766ac3f
3 files changed
+46
-52
No files matched your search
+13
-13
@@ -1,22 +1,22 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
config = lib.mkIf config.nix-leonhard.graphical.enable {
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
themeFile = "tokyo_night_night";
|
||||
font = {
|
||||
package = pkgs.nerd-fonts.jetbrains-mono;
|
||||
name = "JetBrainsMono NF";
|
||||
size = 14;
|
||||
};
|
||||
keybindings = {
|
||||
"ctrl+alt+enter" = "launch --cwd=current";
|
||||
};
|
||||
programs.kitty = {
|
||||
enable = config.nix-leonhard.graphical.enable;
|
||||
themeFile = "tokyo_night_night";
|
||||
font = {
|
||||
package = pkgs.nerd-fonts.jetbrains-mono;
|
||||
name = "JetBrainsMono NF";
|
||||
size = 14;
|
||||
};
|
||||
keybindings = {
|
||||
"ctrl+alt+enter" = "launch --cwd=current";
|
||||
};
|
||||
settings = {
|
||||
hide_window_decorations = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
+2
-5
@@ -1,12 +1,9 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
config = lib.mkIf config.nix-leonhard.graphical.enable {
|
||||
wayland.windowManager.niri = {
|
||||
enable = true;
|
||||
};
|
||||
wayland.windowManager.niri = {
|
||||
enable = config.nix-leonhard.graphical.enable;
|
||||
};
|
||||
}
|
||||
+31
-34
@@ -1,44 +1,41 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
config = lib.mkIf config.nix-leonhard.graphical.enable {
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
theme = ./tokyonight.rasi;
|
||||
settings = {
|
||||
modi = [
|
||||
"drun"
|
||||
"window"
|
||||
"run"
|
||||
];
|
||||
font = "JetBrainsMono Nerd Font 11";
|
||||
icon-theme = "Papirus-Dark";
|
||||
show-icons = true;
|
||||
terminal = "kitty";
|
||||
drun-display-format = "{icon} {name}";
|
||||
location = 0;
|
||||
disable-history = false;
|
||||
sidebar-mode = false;
|
||||
display-drun = " ";
|
||||
display-run = " ";
|
||||
display-window = " ";
|
||||
programs.rofi = {
|
||||
enable = config.nix-leonhard.graphical.enable;
|
||||
theme = ./tokyonight.rasi;
|
||||
settings = {
|
||||
modi = [
|
||||
"drun"
|
||||
"window"
|
||||
"run"
|
||||
];
|
||||
font = "JetBrainsMono Nerd Font 11";
|
||||
icon-theme = "Papirus-Dark";
|
||||
show-icons = true;
|
||||
terminal = "kitty";
|
||||
drun-display-format = "{icon} {name}";
|
||||
location = 0;
|
||||
disable-history = false;
|
||||
sidebar-mode = false;
|
||||
display-drun = " ";
|
||||
display-run = " ";
|
||||
display-window = " ";
|
||||
|
||||
kb-row-up = "Up,Control+k";
|
||||
kb-row-left = "Left,Control+h";
|
||||
kb-row-right = "Right,Control+l";
|
||||
kb-row-down = "Down,Control+j";
|
||||
kb-row-up = "Up,Control+k";
|
||||
kb-row-left = "Left,Control+h";
|
||||
kb-row-right = "Right,Control+l";
|
||||
kb-row-down = "Down,Control+j";
|
||||
|
||||
kb-accept-entry = "Return";
|
||||
# remove clashing keybinds
|
||||
kb-remove-to-eol = "";
|
||||
kb-move-char-back = "Control+b";
|
||||
kb-remove-char-back = "BackSpace";
|
||||
kb-move-char-forward = "Control+f";
|
||||
kb-mode-complete = "Control+o";
|
||||
};
|
||||
kb-accept-entry = "Return";
|
||||
# remove clashing keybinds
|
||||
kb-remove-to-eol = "";
|
||||
kb-move-char-back = "Control+b";
|
||||
kb-remove-char-back = "BackSpace";
|
||||
kb-move-char-forward = "Control+f";
|
||||
kb-mode-complete = "Control+o";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user