rofi launchers
This commit is contained in:
@@ -23,4 +23,6 @@
|
|||||||
pkgs.bun
|
pkgs.bun
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
imports = [ ./rofi.nix ];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,6 +77,9 @@
|
|||||||
"$mod, f, fullscreen, 0"
|
"$mod, f, fullscreen, 0"
|
||||||
"$mod SHIFT, f, fullscreen, 1"
|
"$mod SHIFT, f, fullscreen, 1"
|
||||||
|
|
||||||
|
# rofi
|
||||||
|
"$mod, space, exec, ~/.config/rofi-launchers/type-2/launcher.sh"
|
||||||
|
|
||||||
# move focus with mod + arrows
|
# move focus with mod + arrows
|
||||||
"$mod, h, movefocus, l"
|
"$mod, h, movefocus, l"
|
||||||
"$mod, j, movefocus, d"
|
"$mod, j, movefocus, d"
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
xdg.configFile."rofi-launchers".source = builtins.fetchFromGithub {
|
home.packages = with pkgs; [rofi (callPackage ../../../pkgs/rofi-launchers/package.nix {})];
|
||||||
|
|
||||||
|
xdg.configFile."rofi-launchers".source = pkgs.fetchFromGitHub {
|
||||||
owner = "adi1090x";
|
owner = "adi1090x";
|
||||||
repo = "rofi";
|
repo = "rofi";
|
||||||
rev = "dce10e9";
|
rev = "dce10e9";
|
||||||
|
sha256 = "sha256-ZSosFsi/M5Gqb9gsUqS7hu89uOu9078Dus4Y+WCphZc=";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,57 @@
|
|||||||
|
{ lib, stdenvNoCC, fetchFromGitHub, rofi }:
|
||||||
|
|
||||||
|
stdenvNoCC.mkDerivation {
|
||||||
|
name = "rofi-launchers";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "adi1090x";
|
||||||
|
repo = "rofi";
|
||||||
|
rev = "master";
|
||||||
|
hash = "sha256-IPtn0bDIUmSwm24YowURgNrs907RrcfrRM9TdhE2c0I=";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ rofi ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
files=$(find files/scripts -type l)
|
||||||
|
for file in $files; do
|
||||||
|
substituteInPlace $file \
|
||||||
|
--replace-fail '$HOME/.config/rofi' "$out/share" \
|
||||||
|
--replace-fail "rofi " "${lib.getExe rofi} "
|
||||||
|
done
|
||||||
|
|
||||||
|
files=$(find files/launchers -type f -name "*.rasi")
|
||||||
|
for file in $files; do
|
||||||
|
substituteInPlace $file \
|
||||||
|
--replace-quiet '~/.config/rofi' "$out/share"
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
# Install all scripts as binaries
|
||||||
|
mkdir -p $out/bin
|
||||||
|
for script in files/scripts/*; do
|
||||||
|
install -Dm755 $script $out/bin/$(basename $script)
|
||||||
|
done
|
||||||
|
|
||||||
|
# Install Fonts
|
||||||
|
mkdir -p "$out/share/fonts"
|
||||||
|
cp -r fonts/* "$out/share/fonts"
|
||||||
|
|
||||||
|
# Install other necessary files
|
||||||
|
mkdir -p "$out/share"
|
||||||
|
cp -r files/* "$out/share"
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "A collection of rofi launchers";
|
||||||
|
homepage = "https://github.com/adi1090x/rofi";
|
||||||
|
maintainers = with lib.maintainers; [ ];
|
||||||
|
platforms = lib.platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user