From 6237543c62c76a430395ee4258420ea5e4156ced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Fri, 9 Aug 2024 01:41:01 -0300 Subject: [PATCH] sway: replace swappy with satty --- user/sway/default.nix | 3 ++- user/sway/sway-binds.nix | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/user/sway/default.nix b/user/sway/default.nix index 9fcf2a0..6b495d2 100644 --- a/user/sway/default.nix +++ b/user/sway/default.nix @@ -145,7 +145,8 @@ in wl-crosshair grim - swappy + satty + xdg-user-dirs (tesseract5.override { enableLanguages = [ "eng" diff --git a/user/sway/sway-binds.nix b/user/sway/sway-binds.nix index 7b33cd0..cd0ac9a 100644 --- a/user/sway/sway-binds.nix +++ b/user/sway/sway-binds.nix @@ -170,7 +170,9 @@ let "${mod}+c" = "exec ${pkgs.color_picker}/bin/color_picker"; "${mod}+Return" = "exec ${terminal}"; "${mod}+Ctrl+Return" = "exec thunar"; - "${mod}+Shift+s" = "exec grim - | swappy -f -"; + "${mod}+Shift+s" = '' + exec grim - | satty --filename - --fullscreen --output-filename "$(xdg-user-dir PICTURES)"/Screenshots/satty-$(date '+%Y%m%d-%H:%M:%S').png + ''; "${mod}+Ctrl+v" = "exec wl-paste | tesseract -l por - - | wl-copy"; "${mod}+k" = "exec showkeys"; "${mod}+Alt+x" = "exec pkill wl-crosshair || exec wl-crosshair";