From 437ee7289f810a48ce753a11fe5888767ae8bfbf Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 3 Dec 2019 20:30:52 -0500 Subject: [PATCH] Add config/rofi I'll add some menu scripts soon. --- config/rofi/env.zsh | 3 +++ modules/desktop/rofi.nix | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 config/rofi/env.zsh diff --git a/config/rofi/env.zsh b/config/rofi/env.zsh new file mode 100644 index 00000000..b784ffe6 --- /dev/null +++ b/config/rofi/env.zsh @@ -0,0 +1,3 @@ +#!/usr/bin/env zsh + +export PATH="$XDG_CONFIG_HOME/rofi/bin:$PATH" diff --git a/modules/desktop/rofi.nix b/modules/desktop/rofi.nix index 3f7d13bd..0d6ed62a 100644 --- a/modules/desktop/rofi.nix +++ b/modules/desktop/rofi.nix @@ -5,7 +5,7 @@ systemPackages = with pkgs; [ (writeScriptBin "rofi" '' #!${stdenv.shell} - exec ${rofi}/bin/rofi -terminal xst -theme "$XDG_CONFIG_HOME/rofi/theme" -m -1 $@ + exec ${rofi}/bin/rofi -terminal xst -m -1 $@ '') rofi ]; @@ -16,5 +16,6 @@ home-manager.users.hlissner.xdg.configFile = { # link recursively so other modules can link files in its folder "rofi" = { source = ; recursive = true; }; + "zsh/rc.d/env.rofi.zsh".source = ; }; }