From dfa762d46ef58755385f876878750a962cc24010 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Wed, 1 May 2024 10:21:28 -0400 Subject: [PATCH] feat(satty): setup config file --- modules/hyprland/packages.nix | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/modules/hyprland/packages.nix b/modules/hyprland/packages.nix index 0363c26..4290e3f 100644 --- a/modules/hyprland/packages.nix +++ b/modules/hyprland/packages.nix @@ -5,6 +5,7 @@ ... }: let inherit (lib) makeLibraryPath optionalString; + inherit (pkgs.writers) writeTOML; inherit (config.vars) mainUser; flakeDir = config.environment.variables.FLAKE; in { @@ -28,6 +29,19 @@ in { "kiorc".source = symlink "${configDir}/kiorc"; "mimeapps.list".source = symlink "${configDir}/mimeapps.list"; "neofetch".source = symlink "${configDir}/neofetch"; + + "satty/config.toml".source = writeTOML "satty.toml" { + general = { + early-exit = true; + copy-command = "wl-copy"; + initial-tool = "crop"; + output-filename = "${config.home.homeDirectory}/Pictures/Screenshots/screen-%d-%m-%Y_%H:%M:%S.png"; + }; + + font = { + family = "Ubuntu Mono"; + }; + }; }; }) ]; @@ -69,7 +83,7 @@ in { ]; text = '' screen=$(hyprctl monitors -j | jq -r '.[] | select(.focused == true).name') - exec grim -o "$screen" - | satty -f - --output-filename "/home/matt/Pictures/Screenshots/screenshot-$(date --iso-8601=seconds).png" + exec grim -o "$screen" - | satty -f - ''; }) @@ -134,7 +148,7 @@ in { "$mainMod, V, exec, ags -t win-clipboard" " , Print, exec, screenshot" - "$mainMod, Print, exec, grim -g \"$(slurp)\" - | satty -f - --output-filename \"screenshot-$(date --iso-8601=seconds)\"" + "$mainMod, Print, exec, grim -g \"$(slurp)\" - | satty -f -" "$mainMod SHIFT, C, exec, wl-color-picker" "$mainMod, T, togglespecialworkspace, thunder"