Declared hyprland scripts
This commit is contained in:
28
hyprland/scripts/screenshot.nix
Normal file
28
hyprland/scripts/screenshot.nix
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user