Skip to content

Commit

Permalink
comment out the legacy screenshot stuffs
Browse files Browse the repository at this point in the history
  • Loading branch information
sodiboo committed Sep 17, 2024
1 parent c504bbc commit ad6245c
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions niri.mod.nix
Original file line number Diff line number Diff line change
Expand Up @@ -100,18 +100,16 @@

binds = with config.lib.niri.actions; let
sh = spawn "sh" "-c";

screenshot-area-script = pkgs.writeShellScript "screenshot-area" ''
grim -o $(niri msg --json focused-output | jq -r .name) - | swayimg --config=info.mode=off --fullscreen - &
SWAYIMG=$!
niri msg action do-screen-transition -d 1200
sleep 1.2
grim -g "$(slurp)" - | wl-copy -t image/png
niri msg action do-screen-transition
kill $SWAYIMG
'';

screenshot-area = spawn "${screenshot-area-script}";
# screenshot-area-script = pkgs.writeShellScript "screenshot-area" ''
# grim -o $(niri msg --json focused-output | jq -r .name) - | swayimg --config=info.mode=off --fullscreen - &
# SWAYIMG=$!
# niri msg action do-screen-transition -d 1200
# sleep 1.2
# grim -g "$(slurp)" - | wl-copy -t image/png
# niri msg action do-screen-transition
# kill $SWAYIMG
# '';
# screenshot-area = spawn "${screenshot-area-script}";
in
lib.attrsets.mergeAttrsList [
{
Expand Down

0 comments on commit ad6245c

Please sign in to comment.