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