From 99ac3dc9cf22fdeeba028f15dc0d285b23507c8a Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 2 May 2023 20:18:46 +0200 Subject: [PATCH] home/terminal: init with blackbox --- users/max/home.nix | 1 + users/max/home/terminal/default.nix | 16 +++++++++++++++ users/max/home/terminal/keymap.nix | 32 +++++++++++++++++++++++++++++ users/max/home/terminal/theme.nix | 27 ++++++++++++++++++++++++ 4 files changed, 76 insertions(+) create mode 100644 users/max/home/terminal/default.nix create mode 100644 users/max/home/terminal/keymap.nix create mode 100644 users/max/home/terminal/theme.nix diff --git a/users/max/home.nix b/users/max/home.nix index e319963..f206dad 100644 --- a/users/max/home.nix +++ b/users/max/home.nix @@ -16,6 +16,7 @@ let optionalDesktopModule = lib.optional (systemProfile == "desktop") { imports = [ ./home/dconf + ./home/terminal ]; # other files home.file.templates-directory = import ./home/templates.nix meta; diff --git a/users/max/home/terminal/default.nix b/users/max/home/terminal/default.nix new file mode 100644 index 0000000..09ce04e --- /dev/null +++ b/users/max/home/terminal/default.nix @@ -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"; + }; + }; +} \ No newline at end of file diff --git a/users/max/home/terminal/keymap.nix b/users/max/home/terminal/keymap.nix new file mode 100644 index 0000000..4d6aa2a --- /dev/null +++ b/users/max/home/terminal/keymap.nix @@ -0,0 +1,32 @@ +{ + home.file.".local/share/blackbox/user-keymap.json".text = builtins.toJSON { + keymap = { + "win.copy" = [ "c" ]; + "win.paste" = [ "v" ]; + "win.new_tab" = [ "s" ]; + + "app.focus-next-tab" = [ "Tab" ]; + "app.focus-previous-tab" = [ "Tab" ]; + "app.new-window" = [ "n" ]; + "win.close-tab" = [ "w" ]; + "win.edit_preferences" = [ "comma" ]; + "win.fullscreen" = [ "F11" ]; + "win.search" = [ "f" ]; + "win.show-help-overlay" = [ "question" ]; + "win.switch-headerbar-mode" = [ "h" ]; + "win.switch-tab-1" = [ "1" ]; + "win.switch-tab-2" = [ "2" ]; + "win.switch-tab-3" = [ "3" ]; + "win.switch-tab-4" = [ "4" ]; + "win.switch-tab-5" = [ "5" ]; + "win.switch-tab-6" = [ "6" ]; + "win.switch-tab-7" = [ "7" ]; + "win.switch-tab-8" = [ "8" ]; + "win.switch-tab-9" = [ "9" ]; + "win.switch-tab-last" = [ "0" ]; + "win.zoom-default" = [ "parenright" ]; + "win.zoom-in" = [ "plus" ]; + "win.zoom-out" = [ "minus" ]; + }; + }; +} diff --git a/users/max/home/terminal/theme.nix b/users/max/home/terminal/theme.nix new file mode 100644 index 0000000..5376289 --- /dev/null +++ b/users/max/home/terminal/theme.nix @@ -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" + ]; + }; +}