Added rofi wifi menu

This commit is contained in:
marc
2022-11-21 20:26:18 +01:00
parent 05ab00e134
commit b907606818
9 changed files with 259 additions and 6 deletions

View File

@@ -2,6 +2,7 @@
let
cfg = config.samfelag.modules.desktop.polybar;
i3Cfg = config.samfelag.modules.desktop.i3;
polybar_pkg = pkgs.polybar.override {
i3Support = true;
pulseSupport = true;
@@ -34,6 +35,12 @@ in {
hm.xdg.configFile."polybar/bars".source = paths.bars;
hm.xdg.configFile."polybar/scripts".source = paths.scripts;
# The polybar modules use rofi
samfelag.modules.desktop.rofi.enable = true;
samfelag.modules.desktop.i3.extraKeybindings = lib.mkIf i3Cfg.enable {
"${i3Cfg.mod}+Shift+w" = "exec $HOME/.config/rofi/wifi/wifi.sh";
};
hm.systemd.user.services.polybar = {
Unit = {
Description = "Polybar status bar";

View File

@@ -9,6 +9,7 @@ in
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
bc
zip
unzip
];