Screenshots on hyprland on nixos

Just curious about what others are using for screenshots on nixos/hyprland.

I was hoping for something in nixpks already, but… :person_shrugging:

I used to use flameshot, but that seems to be a no go.

I know hyprshot, and grimshot are alts, but I have not been able to get them going.

Thank you!

2 Likes

I like Shotman a lot: https://git.sr.ht/~whynothugo/shotman

1 Like

I’ll give it a go. I had also tried out sway-contrib.grimshot as well. I didn’t realize it didn’t require sway.

@brnix i faced the same issue yesterday, but with Sway. You should definitely try GitHub - jtheoof/swappy: A Wayland native snapshot editing tool, inspired by Snappy on macOS, you only need to get the packages grim, swappy and slurp, and then the command grim -g "$(slurp)" - | swappy -f - (Just bind that to a keybinding for example).

I have to say that I even like it better than flameshot.

2 Likes

This is exactly what I was looking for!

I’ve been using these on sway:

              ## Screenshot
              "Print" = "exec ${grimshot} --notify save screen $(${xdg-user-dir} PICTURES)/$(TZ=utc date +'screenshot_%Y-%m-%d-%H%M%S.%3N.png')"; # All visible outputs
              "Shift+Print" = "exec ${grimshot} --notify save area $(${xdg-user-dir} PICTURES)/$(TZ=utc date +'screenshot_%Y-%m-%d-%H%M%S.%3N.png')"; # Manually select a region
              "Alt+Print" = "exec ${grimshot} --notify save active $(${xdg-user-dir} PICTURES)/$(TZ=utc date +'screenshot_%Y-%m-%d-%H%M%S.%3N.png')"; # Currently active window
              "Shift+Alt+Print" = "exec ${grimshot} --notify save window $(${xdg-user-dir} PICTURES)/$(TZ=utc date +'screenshot_%Y-%m-%d-%H%M%S.%3N.png')"; # Manually select a window
              "Ctrl+Print" = "exec ${grimshot} --notify copy screen";
              "Ctrl+Shift+Print" = "exec ${grimshot} --notify copy area";
              "Ctrl+Alt+Print" = "exec ${grimshot} --notify copy active";
              "Ctrl+Shift+Alt+Print" = "exec ${grimshot} --notify copy window";
              ## Screen recording
              "${modifier}+Print" = "exec wayrecorder --notify screen";
              "${modifier}+Shift+Print" = "exec wayrecorder --notify --input area";
              "${modifier}+Alt+Print" = "exec wayrecorder --notify --input active";
              "${modifier}+Shift+Alt+Print" = "exec wayrecorder --notify --input window";
              "${modifier}+Ctrl+Print" = "exec wayrecorder --notify --clipboard --input screen";
              "${modifier}+Ctrl+Shift+Print" = "exec wayrecorder --notify --clipboard --input area";
              "${modifier}+Ctrl+Alt+Print" = "exec wayrecorder --notify --clipboard --input active";
              "${modifier}+Ctrl+Shift+Alt+Print" = "exec wayrecorder --notify --clipboard --input window";

2 Likes

Screen recording! I have not approached that yet! Thanks!