Add config/rofi

I'll add some menu scripts soon.
This commit is contained in:
Henrik Lissner 2019-12-03 20:30:52 -05:00
parent 91fdcf5908
commit 437ee7289f
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 5 additions and 1 deletions

3
config/rofi/env.zsh Normal file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env zsh
export PATH="$XDG_CONFIG_HOME/rofi/bin:$PATH"

View file

@ -5,7 +5,7 @@
systemPackages = with pkgs; [ systemPackages = with pkgs; [
(writeScriptBin "rofi" '' (writeScriptBin "rofi" ''
#!${stdenv.shell} #!${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 rofi
]; ];
@ -16,5 +16,6 @@
home-manager.users.hlissner.xdg.configFile = { home-manager.users.hlissner.xdg.configFile = {
# link recursively so other modules can link files in its folder # link recursively so other modules can link files in its folder
"rofi" = { source = <config/rofi>; recursive = true; }; "rofi" = { source = <config/rofi>; recursive = true; };
"zsh/rc.d/env.rofi.zsh".source = <config/rofi/env.zsh>;
}; };
} }