mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 20:25:38 +00:00
lazy evaluated let for rofi
This commit is contained in:
parent
f69d233c39
commit
47590abc3a
@ -1,6 +1,10 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
let
|
||||||
|
|
||||||
|
rofi = config.home-manager.users.${config.user}.programs.rofi.finalPackage;
|
||||||
|
|
||||||
|
in {
|
||||||
|
|
||||||
config = lib.mkIf (pkgs.stdenv.isLinux && config.services.xserver.enable) {
|
config = lib.mkIf (pkgs.stdenv.isLinux && config.services.xserver.enable) {
|
||||||
|
|
||||||
@ -148,21 +152,14 @@
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
launcherCommand = "${
|
launcherCommand = "${rofi}/bin/rofi -show run -modi run";
|
||||||
config.home-manager.users.${config.user}.programs.rofi.finalPackage
|
|
||||||
}/bin/rofi -show run -modi run";
|
|
||||||
systemdSearch = "${pkgs.rofi-systemd}/bin/rofi-systemd";
|
systemdSearch = "${pkgs.rofi-systemd}/bin/rofi-systemd";
|
||||||
altTabCommand = "${
|
altTabCommand = "${rofi}/bin/rofi -show window -modi window";
|
||||||
config.home-manager.users.${config.user}.programs.rofi.finalPackage
|
|
||||||
}/bin/rofi -show window -modi window";
|
|
||||||
audioSwitchCommand = "${
|
audioSwitchCommand = "${
|
||||||
(pkgs.extraLib.mkScript {
|
(pkgs.extraLib.mkScript {
|
||||||
name = "switch-audio";
|
name = "switch-audio";
|
||||||
file = ./rofi/pulse-sink.sh;
|
file = ./rofi/pulse-sink.sh;
|
||||||
env = [
|
env = [ pkgs.ponymix rofi ];
|
||||||
pkgs.ponymix
|
|
||||||
config.home-manager.users.${config.user}.programs.rofi.finalPackage
|
|
||||||
];
|
|
||||||
})
|
})
|
||||||
}/bin/switch-audio";
|
}/bin/switch-audio";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user