2019-11-26 14:04:14 -08:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
environment = {
|
|
|
|
systemPackages = with pkgs; [
|
|
|
|
(writeScriptBin "rofi" ''
|
|
|
|
#!${stdenv.shell}
|
2019-12-08 13:44:35 -08:00
|
|
|
exec ${rofi}/bin/rofi -terminal xst -m -1 "$@"
|
2019-11-26 14:04:14 -08:00
|
|
|
'')
|
|
|
|
rofi
|
2019-12-08 13:44:35 -08:00
|
|
|
|
2019-12-08 23:54:42 -08:00
|
|
|
# Fake rofi dmenu entries
|
2019-12-08 13:44:35 -08:00
|
|
|
(makeDesktopItem {
|
2019-12-08 23:54:42 -08:00
|
|
|
name = "rofi-browsermenu";
|
2019-12-08 13:44:35 -08:00
|
|
|
desktopName = "Open Bookmark in Firefox";
|
|
|
|
icon = "firefox";
|
2019-12-08 23:54:42 -08:00
|
|
|
exec = "${<config/rofi>}/bin/rofi-browsermenu";
|
|
|
|
categories = "Network;Utility";
|
|
|
|
})
|
|
|
|
(makeDesktopItem {
|
|
|
|
name = "rofi-filemenu";
|
|
|
|
desktopName = "Open Directory in Terminal";
|
|
|
|
icon = "folder";
|
|
|
|
exec = "${<config/rofi>}/bin/rofi-filemenu";
|
|
|
|
categories = "System;Utility";
|
|
|
|
})
|
|
|
|
(makeDesktopItem {
|
|
|
|
name = "rofi-filemenu-scratch";
|
|
|
|
desktopName = "Open Directory in Scratch Terminal";
|
|
|
|
icon = "folder";
|
|
|
|
exec = "${<config/rofi>}/bin/rofi-filemenu -x";
|
|
|
|
categories = "System;Utility";
|
2019-12-08 13:44:35 -08:00
|
|
|
})
|
2019-11-26 14:04:14 -08:00
|
|
|
|
2019-12-08 23:54:42 -08:00
|
|
|
];
|
2019-11-26 14:04:14 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
home-manager.users.hlissner.xdg.configFile = {
|
|
|
|
# link recursively so other modules can link files in its folder
|
2019-12-08 23:54:42 -08:00
|
|
|
"rofi" = {
|
|
|
|
source = <config/rofi>;
|
|
|
|
recursive = true;
|
|
|
|
};
|
2019-11-26 14:04:14 -08:00
|
|
|
};
|
|
|
|
}
|