diff --git a/nixosVista/homeManager/default.nix b/nixosVista/homeManager/default.nix index 8a83a34..c3cdc13 100644 --- a/nixosVista/homeManager/default.nix +++ b/nixosVista/homeManager/default.nix @@ -9,6 +9,7 @@ ./hyprland ./waybar ./wofi + ./grim ./hyprpaper ./eww ./hyprlock diff --git a/nixosVista/homeManager/grim/default.nix b/nixosVista/homeManager/grim/default.nix new file mode 100644 index 0000000..19bf12e --- /dev/null +++ b/nixosVista/homeManager/grim/default.nix @@ -0,0 +1,6 @@ +{ + imports = [ + ./option.nix + ./main.nix + ]; +} diff --git a/nixosVista/homeManager/grim/main.nix b/nixosVista/homeManager/grim/main.nix new file mode 100644 index 0000000..4584f4e --- /dev/null +++ b/nixosVista/homeManager/grim/main.nix @@ -0,0 +1,71 @@ +{ + config, + lib, + pkgs, + nixosVista, + ... +}: { + config = lib.mkIf nixosVista.enable { + home.packages = with pkgs; [ + grim + slurp + wl-clipboard + swappy + jq + ]; + + ############################################################ + # Screenshot Script + ############################################################ + + home.file.".local/bin/hyprshot" = { + executable = true; + text = '' + #!/usr/bin/env bash + + DIR="$HOME/Pictures/Screenshots/$(date +%Y_%m_%b)" + FILE="$(date +%d_%a__%H-%M-%S)-$(tr -dc a-z0-9