2023-05-18 16:11:26 +05:30
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenvNoCC,
|
|
|
|
makeWrapper,
|
|
|
|
libnotify,
|
|
|
|
rofi-wayland,
|
|
|
|
tmux,
|
|
|
|
kitty,
|
|
|
|
imagemagick,
|
|
|
|
hyprland,
|
|
|
|
swww,
|
|
|
|
jq,
|
|
|
|
curl,
|
2023-07-11 22:12:30 +05:30
|
|
|
ytfzf,
|
2023-10-13 13:23:05 +05:30
|
|
|
libsecret
|
2023-05-18 16:11:26 +05:30
|
|
|
}:
|
2023-04-06 01:27:09 +05:30
|
|
|
stdenvNoCC.mkDerivation {
|
|
|
|
pname = "scripts";
|
2023-05-18 20:10:52 +05:30
|
|
|
version = "1.0";
|
2023-04-06 01:27:09 +05:30
|
|
|
src = ./.;
|
|
|
|
|
2023-05-18 16:11:26 +05:30
|
|
|
nativeBuildInputs = [makeWrapper];
|
2023-04-06 01:27:09 +05:30
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2023-07-15 10:52:02 +05:30
|
|
|
|
2023-04-06 01:27:09 +05:30
|
|
|
cp power-menu.sh $out/bin/power-menu
|
|
|
|
chmod +x $out/bin/power-menu
|
2023-04-06 03:08:26 +05:30
|
|
|
|
|
|
|
cp tmux-sessions.sh $out/bin/tmux-sessions
|
|
|
|
chmod +x $out/bin/tmux-sessions
|
2023-04-06 03:29:01 +05:30
|
|
|
|
|
|
|
cp chpaper.sh $out/bin/chpaper
|
|
|
|
chmod +x $out/bin/chpaper
|
2023-05-16 00:19:04 +05:30
|
|
|
|
|
|
|
cp wallhaven.sh $out/bin/wallhaven
|
|
|
|
chmod +x $out/bin/wallhaven
|
2023-07-11 22:12:30 +05:30
|
|
|
|
|
|
|
cp youtube.sh $out/bin/youtube
|
|
|
|
chmod +x $out/bin/youtube
|
2023-07-15 10:52:02 +05:30
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/power-menu --prefix PATH : ${lib.makeBinPath [libnotify rofi-wayland hyprland]}
|
|
|
|
wrapProgram $out/bin/tmux-sessions --prefix PATH : ${lib.makeBinPath [tmux kitty rofi-wayland]}
|
|
|
|
wrapProgram $out/bin/chpaper --prefix PATH : ${lib.makeBinPath [imagemagick libnotify swww]}
|
2023-10-13 22:14:07 +05:30
|
|
|
wrapProgram $out/bin/wallhaven --prefix PATH : ${lib.makeBinPath [libnotify jq curl libsecret]}
|
2023-07-11 22:12:30 +05:30
|
|
|
wrapProgram $out/bin/youtube --prefix PATH : ${lib.makeBinPath [kitty ytfzf rofi-wayland]}
|
2023-04-06 01:27:09 +05:30
|
|
|
'';
|
|
|
|
}
|