2024-04-20 09:42:06 -04:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2022-05-03 21:11:31 -04:00
|
|
|
|
2023-03-22 21:17:15 -04:00
|
|
|
let
|
|
|
|
|
|
|
|
rofi = config.home-manager.users.${config.user}.programs.rofi.finalPackage;
|
2024-04-20 09:42:06 -04:00
|
|
|
in
|
|
|
|
{
|
2023-03-22 21:17:15 -04:00
|
|
|
|
2024-04-20 09:42:06 -04:00
|
|
|
imports = [
|
|
|
|
./rofi/power.nix
|
|
|
|
./rofi/brightness.nix
|
|
|
|
];
|
2023-04-02 12:25:33 -04:00
|
|
|
|
2022-12-21 14:18:03 -07:00
|
|
|
config = lib.mkIf (pkgs.stdenv.isLinux && config.services.xserver.enable) {
|
2022-05-03 21:11:31 -04:00
|
|
|
|
2024-04-20 09:42:06 -04:00
|
|
|
launcherCommand = ''${rofi}/bin/rofi -modes drun -show drun -theme-str '@import "launcher.rasi"' '';
|
2022-11-02 21:29:14 -04:00
|
|
|
systemdSearch = "${pkgs.rofi-systemd}/bin/rofi-systemd";
|
2023-03-22 21:17:15 -04:00
|
|
|
altTabCommand = "${rofi}/bin/rofi -show window -modi window";
|
2023-04-10 23:08:59 -04:00
|
|
|
calculatorCommand = "${rofi}/bin/rofi -modes calc -show calc";
|
2023-03-22 21:15:41 -04:00
|
|
|
audioSwitchCommand = "${
|
2024-04-20 09:42:06 -04:00
|
|
|
(pkgs.writeShellApplication {
|
|
|
|
name = "switch-audio";
|
|
|
|
runtimeInputs = [
|
|
|
|
pkgs.ponymix
|
|
|
|
rofi
|
|
|
|
];
|
|
|
|
text = builtins.readFile ./rofi/pulse-sink.sh;
|
|
|
|
})
|
|
|
|
}/bin/switch-audio";
|
2022-05-03 21:11:31 -04:00
|
|
|
};
|
|
|
|
}
|