From b6359b0a6118e63e74aea2d0692563cca8acbf0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Tue, 20 May 2025 11:07:54 +0200 Subject: [PATCH] replace hacksaw/shotgun with maim --- nix/configurations/tungsten/home/programs.nix | 2 -- nix/configurations/vanadium/home/programs.nix | 3 +-- nix/configurations/vanadium/home/xmonad/xmonad.hs | 6 +++--- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/nix/configurations/tungsten/home/programs.nix b/nix/configurations/tungsten/home/programs.nix index c74f53fc..d0b37625 100644 --- a/nix/configurations/tungsten/home/programs.nix +++ b/nix/configurations/tungsten/home/programs.nix @@ -91,8 +91,6 @@ in { pkgs.dmenu pkgs.xclip pkgs.playerctl # talk to playerctld - pkgs.hacksaw - pkgs.shotgun pkgs.xscreensaver # talk to xscreensaver pkgs.xcolor diff --git a/nix/configurations/vanadium/home/programs.nix b/nix/configurations/vanadium/home/programs.nix index b3178b13..ef965cd9 100644 --- a/nix/configurations/vanadium/home/programs.nix +++ b/nix/configurations/vanadium/home/programs.nix @@ -78,8 +78,7 @@ in { pkgs.dmenu pkgs.xclip pkgs.playerctl # talk to playerctld - pkgs.hacksaw - pkgs.shotgun + pkgs.maim pkgs.xscreensaver # talk to xscreensaver pkgs.xcolor diff --git a/nix/configurations/vanadium/home/xmonad/xmonad.hs b/nix/configurations/vanadium/home/xmonad/xmonad.hs index e65d2fe1..aa6eba3c 100644 --- a/nix/configurations/vanadium/home/xmonad/xmonad.hs +++ b/nix/configurations/vanadium/home/xmonad/xmonad.hs @@ -188,9 +188,9 @@ main = xmonad -- Screenshots ++ (let - fullscreen = "shotgun -s - | xclip -in -selection clipboard -t image/png" - withSelection = "shotgun -g $(hacksaw -c \"#875fff\" -g 3) - | xclip -in -selection clipboard -t image/png" - toFloat = "shotgun -g $(hacksaw -c \"#875fff\" -g 3) - | feh --auto-zoom -" + fullscreen = "maim | xclip -in -selection clipboard" + withSelection = "maim -s -b 5 -o | xclip -in -selection clipboard -t image/png" + toFloat = "maim -s -b 5 -o | feh --auto-zoom -" in [ ((0, xK_Print), spawn fullscreen ) , ((superMask .|. shiftMask, xK_3 ), spawn fullscreen )