From 7cd4ca313c5346d818c25cb492e8fae020b9c456 Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Mon, 6 Jan 2025 21:19:20 +0000 Subject: [PATCH] format --- home/sway.nix | 6 ++++-- home/terminals.nix | 23 +++++++++++++---------- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/home/sway.nix b/home/sway.nix index cf44128..ec5d08f 100644 --- a/home/sway.nix +++ b/home/sway.nix @@ -101,8 +101,10 @@ in "Print" = ''exec ${pkgs.writeScript "bad-screenshot" '' grim -g "$(swaymsg -t get_tree | jq -r '.. | .nodes? | .[]? | . as $parent | .nodes[] | select(.pid? and .visible?) | "\($parent.rect.x + .deco_rect.x),\($parent.rect.y + .deco_rect.y) \(.rect.width)x\(.rect.height + .deco_rect.height)"' | slurp -r -o)" "$(xdg-user-dir PICTURES)/Screenshot/$(date +'%F %H-%M-%S-%N_screenshot.png')" ''}''; - "Shift+Print" = ''exec grim -g "$(slurp -d)" "$(xdg-user-dir PICTURES)/Screenshot/$(date +'%F %H-%M-%S-%N_screenshot.png')"''; - "Mod1+Print" = ''exec grim "$(xdg-user-dir PICTURES)/Screenshot/$(date +'%F %H-%M-%S-%N_screenshot.png')"''; + "Shift+Print" = + ''exec grim -g "$(slurp -d)" "$(xdg-user-dir PICTURES)/Screenshot/$(date +'%F %H-%M-%S-%N_screenshot.png')"''; + "Mod1+Print" = + ''exec grim "$(xdg-user-dir PICTURES)/Screenshot/$(date +'%F %H-%M-%S-%N_screenshot.png')"''; } // extraGotoBindings // extraMoveBindings diff --git a/home/terminals.nix b/home/terminals.nix index 805ed54..1302faf 100644 --- a/home/terminals.nix +++ b/home/terminals.nix @@ -91,16 +91,19 @@ in programs.kitty = { enable = true; inherit font; - settings = { - update_check_interval = 0; - close_on_child_death = true; - confirm_os_window_close = 2; - enable_audio_bell = 0; - clipboard_control = false; - scrollback_lines = 32768; - touch_scroll_multiplier = 4; - term = "kitty"; - } // (numberedColors "color" "#" 0 colors.normal) // (numberedColors "color" "#" 8 colors.bright); + settings = + { + update_check_interval = 0; + close_on_child_death = true; + confirm_os_window_close = 2; + enable_audio_bell = 0; + clipboard_control = false; + scrollback_lines = 32768; + touch_scroll_multiplier = 4; + term = "kitty"; + } + // (numberedColors "color" "#" 0 colors.normal) + // (numberedColors "color" "#" 8 colors.bright); extraConfig = '' symbol_map U+e000-U+f8ff,U+f0000-U+f2000 Symbols Nerd Font Mono '';