1
0
Fork 0

Configure kitty more sanily

This commit is contained in:
Malte Brandy 2020-05-20 00:02:50 +02:00
parent 74b9a1f730
commit fd9207dca6
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
4 changed files with 44 additions and 55 deletions

View file

@ -136,7 +136,6 @@ in {
PATH =
"$HOME/.cargo/bin:/etc/profiles/per-user/${config.home.username}/bin:$HOME/.nix-profile/bin:$PATH";
BROWSER = "${pkgs.firefox}/bin/firefox";
TERMINAL = config.m-0.terminal;
EMAIL = me.mail;
SUDO_ASKPASS = let
print-pw = pkgs.writeShellScriptBin "print-pw"

View file

@ -4,11 +4,8 @@ let
inherit (import ../../lib) colors;
in {
imports =
[ ./rofi.nix ./ssh-agent.nix ./sleep-nag.nix ./kitty.nix ./wallpaper.nix ./gnome.nix ];
m-0 = {
terminal = "${desktop-pkgs.terminal}/bin/terminal";
colors = colors;
};
[ ./ssh-agent.nix ./sleep-nag.nix ./kitty.nix ./wallpaper.nix ./gnome.nix ];
m-0.colors = colors;
home = {
packages = builtins.attrValues desktop-pkgs;
file.".zprofile".text = ''

View file

@ -3,52 +3,54 @@ let
my-lib = import ../../lib;
inherit (my-lib) colors;
in {
xdg.configFile."kitty/kitty.conf".text = ''
font_size 10.5
home.sessionVariables.TERMINAL = "${pkgs.kitty}/bin/kitty";
programs.kitty = {
enable = true;
keybindings = {
"ctrl+shift+v" = "paste_from_clipboard";
"ctrl+plus" = "change_font_size all +1.0";
"ctrl+minus" = "change_font_size all -1.0";
};
settings = {
font_size = "10.5";
foreground ${colors.foreground}
background ${colors.background}
background_opacity 0.9
foreground = colors.foreground;
background = colors.background;
background_opacity = "0.9";
selection_foreground ${colors.background}
selection_background ${colors.foreground}
selection_foreground = colors.background;
selection_background = colors.foreground;
color0 ${colors.black}
color8 ${colors.brightBlack}
#: black
# black
color0 = colors.black;
color8 = colors.brightBlack;
color1 ${colors.red}
color9 ${colors.brightRed}
#: red
# red
color1 = colors.red;
color9 = colors.brightRed;
color2 ${colors.green}
color10 ${colors.brightGreen}
#: green
# green
color2 = colors.green;
color10 = colors.brightGreen;
color3 ${colors.yellow}
color11 ${colors.brightYellow}
#: yellow
# yellow
color3 = colors.yellow;
color11 = colors.brightYellow;
color4 ${colors.blue}
color12 ${colors.brightBlue}
#: blue
# blue
color4 = colors.blue;
color12 = colors.brightBlue;
color5 ${colors.magenta}
color13 ${colors.brightMagenta}
#: magenta
# magenta
color5 = colors.magenta;
color13 = colors.brightMagenta;
color6 ${colors.cyan}
color14 ${colors.brightCyan}
#: cyan
# cyan
color6 = colors.cyan;
color14 = colors.brightCyan;
color7 ${colors.white}
color15 ${colors.brightWhite}
term xterm-256color
map ctrl+shift+v paste_from_clipboard
map ctrl+y paste_from_selection
map ctrl+plus change_font_size all +1.0
map ctrl+minus change_font_size all -1.0
'';
color7 = colors.white;
color15 = colors.brightWhite;
};
};
}

View file

@ -50,18 +50,9 @@ in rec {
ssh ag-forward lpr -r "$@"
'';
};
urxvt = pkgs.rxvt_unicode-with-plugins;
terminal = pkgs.writeShellScriptBin "terminal" ''
shift
${pkgs.kitty}/bin/kitty "$@"
'';
desktop-pkgs = {
inherit urxvt terminal;
inherit (pkgs)
kitty lm_sensors sway swaylock swayidle xwayland rofi dmenu xdg_utils
gnome-themes-extra gnome-themes-standard libnotify mako wofi;
inherit (pkgs.gnomeExtensions)
appindicator arc-menu sound-output-device-chooser system-monitor;
inherit (pkgs) lm_sensors xwayland dmenu xdg_utils libnotify;
inherit (pkgs.gnomeExtensions) appindicator system-monitor;
inherit (pkgs.gnome3)
dconf dconf-editor gnome-tweaks gnome-shell-extensions adwaita-icon-theme
gnome-session;