home/terminal: init with blackbox

This commit is contained in:
Max Headroom 2023-05-02 20:18:46 +02:00
parent 28bf7ba98c
commit 99ac3dc9cf
4 changed files with 76 additions and 0 deletions

View file

@ -16,6 +16,7 @@ let
optionalDesktopModule = lib.optional (systemProfile == "desktop") { optionalDesktopModule = lib.optional (systemProfile == "desktop") {
imports = [ imports = [
./home/dconf ./home/dconf
./home/terminal
]; ];
# other files # other files
home.file.templates-directory = import ./home/templates.nix meta; home.file.templates-directory = import ./home/templates.nix meta;

View file

@ -0,0 +1,16 @@
{ lib, ... }:
{
imports = [
./theme.nix
./keymap.nix
];
dconf.settings = {
"com/raggesilver/BlackBox" = {
font = "Terminus Bold 12";
terminal-padding = lib.hm.gvariant.mkTuple (map lib.hm.gvariant.mkUint32 [ 1 1 1 1 ]);
floating-controls = true;
theme-dark = "Custom";
};
};
}

View file

@ -0,0 +1,32 @@
{
home.file.".local/share/blackbox/user-keymap.json".text = builtins.toJSON {
keymap = {
"win.copy" = [ "<Alt>c" ];
"win.paste" = [ "<Alt>v" ];
"win.new_tab" = [ "<Shift><Alt>s" ];
"app.focus-next-tab" = [ "<Control>Tab" ];
"app.focus-previous-tab" = [ "<Shift><Control>Tab" ];
"app.new-window" = [ "<Shift><Control>n" ];
"win.close-tab" = [ "<Shift><Control>w" ];
"win.edit_preferences" = [ "<Control>comma" ];
"win.fullscreen" = [ "F11" ];
"win.search" = [ "<Shift><Control>f" ];
"win.show-help-overlay" = [ "<Shift><Control>question" ];
"win.switch-headerbar-mode" = [ "<Shift><Control>h" ];
"win.switch-tab-1" = [ "<Alt>1" ];
"win.switch-tab-2" = [ "<Alt>2" ];
"win.switch-tab-3" = [ "<Alt>3" ];
"win.switch-tab-4" = [ "<Alt>4" ];
"win.switch-tab-5" = [ "<Alt>5" ];
"win.switch-tab-6" = [ "<Alt>6" ];
"win.switch-tab-7" = [ "<Alt>7" ];
"win.switch-tab-8" = [ "<Alt>8" ];
"win.switch-tab-9" = [ "<Alt>9" ];
"win.switch-tab-last" = [ "<Alt>0" ];
"win.zoom-default" = [ "<Shift><Control>parenright" ];
"win.zoom-in" = [ "<Shift><Control>plus" ];
"win.zoom-out" = [ "<Control>minus" ];
};
};
}

View file

@ -0,0 +1,27 @@
{
home.file.".local/share/blackbox/schemes/custom.json".text = builtins.toJSON {
name = "Custom";
comment = "Custom";
use-theme-colors = false;
foreground-color = "#F8F8F2";
background-color = "#1A1A1A";
palette = [
"#272822"
"#F92672"
"#A6E22E"
"#F4BF75"
"#66D9EF"
"#AE81FF"
"#A1EFE4"
"#F8F8F2"
"#75715E"
"#F92672"
"#A6E22E"
"#F4BF75"
"#66D9EF"
"#AE81FF"
"#A1EFE4"
"#F9F8F5"
];
};
}