Initial commit

This commit is contained in:
JuliusFreudenberger 2025-01-14 01:29:24 +01:00
commit b0a95003b7
57 changed files with 1561 additions and 0 deletions

View file

@ -0,0 +1,14 @@
diff --git a/rofirefox.sh b/rofirefox.sh
index e217a30..85068c1 100644
--- a/rofirefox.sh
+++ b/rofirefox.sh
@@ -2,7 +2,7 @@
CONFIG_PATH=~/.mozilla/firefox/profiles.ini
-choice=$(awk -F "=" '/Name/ { print $2 }' $CONFIG_PATH | sort | rofi -dmenu -p "Select a profile...")
+choice=$(awk -F "=" '/Name/ { print $2 }' $CONFIG_PATH | sort | rofi -dmenu -p "Select a profile... " -i)
if [ "$choice" != "" ]; then
firefox -P $choice &
else

View file

@ -0,0 +1,42 @@
{ stdenv
, lib
, fetchFromGitHub
, bash
, gawk
, firefox
, rofi
, makeWrapper
}: let
pname = "rofirefox";
in
stdenv.mkDerivation rec {
name = pname;
version = "cc14b76";
src = fetchFromGitHub {
owner = "ethmtrgt";
repo = pname;
rev = "cc14b76c4cea3263bd8c421f479089503271847b";
sha256 = "ngtK31X9XyLKoHBfI8SOYbzyvW/LQBE9kq0wNhnxnP0=";
};
buildInputs = [ bash gawk firefox rofi ];
nativeBuildInputs = [ makeWrapper ];
dontBuild = true;
patches = [
./case-sensitivity.patch
];
installPhase = ''
mkdir -p $out/bin
cp rofirefox.sh $out/bin/rofirefox
chmod +x $out/bin/rofirefox
wrapProgram $out/bin/rofirefox \
--prefix PATH : ${lib.makeBinPath [ bash gawk firefox rofi ]}
'';
meta = with lib; {
platforms = platforms.all;
};
}