Skyler Grey | e358dab | 2022-09-02 00:18:57 +0100 | [diff] [blame] | 1 | { |
| 2 | pkgs, |
| 3 | lib, |
| 4 | home, |
| 5 | ... |
| 6 | }: { |
| 7 | home = { |
| 8 | home.packages = with pkgs; [grim slurp]; |
| 9 | |
| 10 | wayland.windowManager.sway.config.keybindings = lib.mkOptionDefault { |
| 11 | "${home.wayland.windowManager.sway.config.modifier}+Shift+s" = "exec mkdir -p ~/Screenshots && grim -g \"$(slurp)\" - | tee ~/Screenshots/\"$(date --rfc-3339=seconds)\".png | wl-copy"; |
| 12 | "Print" = "exec mkdir -p ~/Screenshots && grim - | tee ~/Screenshots/\"$(date --rfc-3339=seconds)\".png | wl-copy"; |
| 13 | }; |
| 14 | }; |
| 15 | } |