diff options
Diffstat (limited to 'pkgs/larbs-scripts/old')
-rw-r--r-- | pkgs/larbs-scripts/old/displayselect.nix | 28 | ||||
-rw-r--r-- | pkgs/larbs-scripts/old/dmenumount.nix | 17 | ||||
-rw-r--r-- | pkgs/larbs-scripts/old/dmenuunicode.nix | 20 | ||||
-rw-r--r-- | pkgs/larbs-scripts/old/linkhandler.nix | 18 | ||||
-rw-r--r-- | pkgs/larbs-scripts/old/setbg.nix | 24 | ||||
-rw-r--r-- | pkgs/larbs-scripts/old/sysact.nix | 19 |
6 files changed, 126 insertions, 0 deletions
diff --git a/pkgs/larbs-scripts/old/displayselect.nix b/pkgs/larbs-scripts/old/displayselect.nix new file mode 100644 index 0000000..39cd6c0 --- /dev/null +++ b/pkgs/larbs-scripts/old/displayselect.nix @@ -0,0 +1,28 @@ +{ stdenv, buildEnv, callPackage, xrandr, libnotify, arandr }: +with stdenv.lib; + +let + voidrice = callPackage ../voidrice.nix { }; + dmenu = callPackage ../larbs/dmenu { }; +in + buildEnv { + name = "displayselect"; + + paths = [ + xrandr + arandr + libnotify + dmenu + ]; + + postBuild = '' + mkdir -p $out/bin + cp ${voidrice}/.local/bin/displayselect $out/bin + ''; + + + meta = { + description = "A fancy monitor configuration menu."; + homepage = "https://github.com/LukeSmithXYZ/voidrice"; + }; + } diff --git a/pkgs/larbs-scripts/old/dmenumount.nix b/pkgs/larbs-scripts/old/dmenumount.nix new file mode 100644 index 0000000..11f066c --- /dev/null +++ b/pkgs/larbs-scripts/old/dmenumount.nix @@ -0,0 +1,17 @@ +{ stdenv, callPackage, libnotify }: +let + voidrice = callPackage ../voidrice.nix { }; + dmenu = callPackage ../dmenu { }; +in +stdenv.mkDerivation { + name = "dmenumount"; + + src = voidrice; + + installPhase = '' + mkdir -p $out/bin + + sed -i "s:dmenu:${dmenu}/bin/dmenu:g" .local/bin/dmenumount + cp .local/bin/dmenumount $out/bin + ''; +} diff --git a/pkgs/larbs-scripts/old/dmenuunicode.nix b/pkgs/larbs-scripts/old/dmenuunicode.nix new file mode 100644 index 0000000..29070cf --- /dev/null +++ b/pkgs/larbs-scripts/old/dmenuunicode.nix @@ -0,0 +1,20 @@ +{ stdenv, callPackage }: +let + voidrice = callPackage ../voidrice.nix { }; + dmenu = callPackage ../dmenu { }; +in +stdenv.mkDerivation { + name = "dmenuunicode"; + + src = voidrice; + + installPhase = '' + mkdir -p $out/bin + mkdir -p $out/share + cp .local/share/larbs/emoji $out/share + + sed -i "s:~/.local/share/larbs/emoji:$out/share/emoji:" .local/bin/dmenuunicode + sed -i "s:dmenu:${dmenu}/bin/dmenu:g" .local/bin/dmenuunicode + cp .local/bin/dmenuunicode $out/bin + ''; +} diff --git a/pkgs/larbs-scripts/old/linkhandler.nix b/pkgs/larbs-scripts/old/linkhandler.nix new file mode 100644 index 0000000..ad451a6 --- /dev/null +++ b/pkgs/larbs-scripts/old/linkhandler.nix @@ -0,0 +1,18 @@ +{ stdenv, callPackage }: +let + voidrice = callPackage ../voidrice.nix { }; +in + stdenv.mkDerivation { + name = "linkhandler"; + src = voidrice; + + installPhase = '' + mkdir -p $out/bin + cp ${voidrice}/.local/bin/linkhandler $out/bin/linkhandler + ''; + + meta = { + description = "Link handler"; + homepage = "https://github.com/LukeSmithXYZ/voidrice"; + }; + } diff --git a/pkgs/larbs-scripts/old/setbg.nix b/pkgs/larbs-scripts/old/setbg.nix new file mode 100644 index 0000000..1988f29 --- /dev/null +++ b/pkgs/larbs-scripts/old/setbg.nix @@ -0,0 +1,24 @@ +{ stdenv, callPackage, xwallpaper, libnotify, pywal }: +let + voidrice = callPackage ../voidrice.nix { }; +in + stdenv.mkDerivation { + name = "setbg"; + src = voidrice; + + buildInputs = [ + xwallpaper + libnotify + pywal + ]; + + installPhase = '' + mkdir -p $out/bin + cp ${voidrice}/.local/bin/setbg $out/bin/setbg + ''; + + meta = { + description = "A fancy background setter."; + homepage = "https://github.com/LukeSmithXYZ/voidrice"; + }; + } diff --git a/pkgs/larbs-scripts/old/sysact.nix b/pkgs/larbs-scripts/old/sysact.nix new file mode 100644 index 0000000..b505746 --- /dev/null +++ b/pkgs/larbs-scripts/old/sysact.nix @@ -0,0 +1,19 @@ +{ stdenv, callPackage, slock }: +let + voidrice = callPackage ../voidrice.nix { }; +in + stdenv.mkDerivation { + name = "sysact"; + src = voidrice; + + installPhase = '' + mkdir -p $out/bin + cp ${voidrice}/.local/bin/sysact $out/bin/sysact + sed -i "s:slock:${slock}/bin/slock:g" $out/bin/sysact + ''; + + meta = { + description = "Power menu. (shutdown, hibernate etc)"; + homepage = "https://github.com/LukeSmithXYZ/voidrice"; + }; + } |