wayland: use hyprshot-gui instead of grimblast
This commit is contained in:
parent
e55af69ed3
commit
7b4d461ba1
@ -46,7 +46,8 @@ in
|
||||
# hyprpicker # TODO
|
||||
# hyprcursor # TODO
|
||||
brightnessctl
|
||||
grimblast
|
||||
# grimblast
|
||||
frajul.hyprshot-gui
|
||||
];
|
||||
|
||||
# services.hypridle = {
|
||||
@ -216,7 +217,7 @@ in
|
||||
"$mod, Escape, exec, wlogout -p layer-shell"
|
||||
"$mod, TAB, exec, hyprlock"
|
||||
"$mod SHIFT, R, exec, hyprctl reload"
|
||||
", Print, exec, grimblast --notify copysave area"
|
||||
", Print, exec, hyprshot-gui"
|
||||
|
||||
# "$mod SHIFT, E, exec, pkill Hyprland"
|
||||
# "$mod, G, togglegroup,"
|
||||
|
42
packages/hyprshot-gui/default.nix
Normal file
42
packages/hyprshot-gui/default.nix
Normal file
@ -0,0 +1,42 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "hyprshot-gui";
|
||||
version = "2023-10-20";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ThatOneCalculator";
|
||||
repo = pname;
|
||||
rev = "30a9bc377c1c0a3ad05c63945f2fe92709a99d7b";
|
||||
sha256 = "sha256-XUy6+mFbNL+3zDfS4tWva4DiJeLnRM9S8ECRayTcPfI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with pkgs; [ makeWrapper ];
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
bash
|
||||
hyprshot
|
||||
gnome.zenity
|
||||
];
|
||||
|
||||
dontBuild = true;
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp hyprshot-gui $out/bin/hyprshot-gui
|
||||
wrapProgram $out/bin/hyprshot-gui --prefix PATH : '${lib.makeBinPath buildInputs}'
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A simple shell script";
|
||||
homepage = "https://github.com/ThatOneCalculator/hyprshot-gui";
|
||||
platforms = platforms.all;
|
||||
mainProgram = "hyprshot-gui";
|
||||
# maintainers
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user