Declared hyprland scripts

This commit is contained in:
TypoMustakes
2026-04-08 14:24:18 +02:00
parent 4e6f419f28
commit 416d1cc202
4 changed files with 196 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
{ lib, config, ... }:
{
home.file.".config/hypr/hyprland/scripts/screenshot.sh".text = ''
#!/bin/bash
INPUT="echo -e Screen\nWindow\nRegion"
SELECTED=$($INPUT | fuzzel -d)
case "$SELECTED" in
"Screen")
hyprshot -m output
;;
"Window")
hyprshot -m window
;;
"Region")
hyprshot -m region
;;
*)
echo "Invalid selection"
;;
esac
'';
home.file.".config/hypr/hyprland/scripts/screenshot.sh".force = true;
}