Move HM modules

This commit is contained in:
Filippo Berto 2023-07-19 10:42:09 +01:00
parent 5db76d0fed
commit 3cf0004b78
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
110 changed files with 403 additions and 564 deletions

84
modules/hm/terminator.nix Normal file
View file

@ -0,0 +1,84 @@
{ pkgs, ... }:
with pkgs.lib.nix-rice;
let
strPalette = palette.toRgbHex {
inherit (pkgs.rice.colorPalette) normal bright dark;
inherit (pkgs.rice.colorPalette.primary) background foreground;
};
opacity = toString pkgs.rice.opacity;
font = pkgs.rice.font.monospace;
colorString = normal: bright:
builtins.concatStringsSep ":" [
normal.black
normal.red
normal.green
normal.yellow
normal.blue
normal.magenta
normal.cyan
normal.white
bright.black
bright.red
bright.green
bright.yellow
bright.blue
bright.magenta
bright.cyan
bright.white
];
in
{
home.packages = [ pkgs.terminator ];
xdg.configFile."terminator/config".text = with strPalette; ''
[global_config]
scroll_tabbar = True
enabled_plugins = ActivityWatch, LaunchpadCodeURLHandler, APTURLHandler, LaunchpadBugURLHandler
suppress_multiple_term_dialog = True
always_split_with_profile = True
[keybindings]
help = None
[profiles]
[[default]]
visible_bell = True
background_color = "${background}"
background_darkness = ${opacity}
background_type = transparent
cursor_color = "${foreground}"
font = ${font.name} weight=450 ${toString font.size}
foreground_color = "${foreground}"
show_titlebar = False
scrollbar_position = hidden
scrollback_lines = 10000
palette = "${colorString normal bright}"
use_system_font = False
[[Light presentation]]
visible_bell = True
background_color = "${foreground}"
cursor_color = "${background}"
font = ${font.name} weight=450 20
foreground_color = "${background}"
show_titlebar = False
palette = "${colorString dark normal}"
use_system_font = False
[[Dark presentation]]
visible_bell = True
background_color = "${background}"
cursor_color = "${foreground}"
font = ${font.name} weight=450 20
foreground_color = "${foreground}"
show_titlebar = False
palette = "${colorString normal bright}"
use_system_font = False
[layouts]
[[default]]
[[[child1]]]
parent = window0
type = Terminal
profile = default
[[[window0]]]
parent = ""
type = Window
[plugins]
'';
}