home/waybar: use rofi with networkmanager_dmenu for wifi

This commit is contained in:
Aly Raffauf 2024-07-25 16:22:23 -04:00
parent e4bac1ec6f
commit a52f7fdbb8
4 changed files with 15 additions and 4 deletions

View file

@ -46,5 +46,18 @@ in {
window-thumbnail = false; window-thumbnail = false;
}; };
}; };
xdg.configFile."networkmanager-dmenu/config.ini".text = ''
[dmenu]
dmenu_command = ${lib.getExe config.programs.rofi.package}
l = 40
rofi_highlight = True
[dmenu_passphrase]
rofi_obscure = True
[editor]
gui_if_available = True
'';
}; };
} }

View file

@ -159,7 +159,7 @@
"tooltip-format-wifi" = "{essid} ({signalStrength}%) {icon}"; "tooltip-format-wifi" = "{essid} ({signalStrength}%) {icon}";
"tooltip-format-ethernet" = "{ifname} "; "tooltip-format-ethernet" = "{ifname} ";
"tooltip-format-disconnected" = "Disconnected"; "tooltip-format-disconnected" = "Disconnected";
"on-click" = "${lib.getExe config.ar.home.defaultApps.terminalEditor} --class nmtui -e ${pkgs.networkmanager}/bin/nmtui"; "on-click" = lib.getExe pkgs.networkmanager_dmenu;
}; };
"tray" = {"spacing" = 15;}; "tray" = {"spacing" = 15;};
@ -193,7 +193,7 @@
"group/hardware" = { "group/hardware" = {
"orientation" = "horizontal"; "orientation" = "horizontal";
modules = ["pulseaudio" "power-profiles-daemon" "battery" "custom/logout"]; modules = ["pulseaudio" "network" "power-profiles-daemon" "battery" "custom/logout"];
}; };
}; };
}; };

View file

@ -125,7 +125,6 @@ in {
scripts.idleD scripts.idleD
(lib.getExe pkgs.wayland-pipewire-idle-inhibit) (lib.getExe pkgs.wayland-pipewire-idle-inhibit)
(lib.getExe' pkgs.blueman "blueman-applet") (lib.getExe' pkgs.blueman "blueman-applet")
(lib.getExe' pkgs.networkmanagerapplet "nm-applet")
(lib.getExe' pkgs.playerctl "playerctld") (lib.getExe' pkgs.playerctl "playerctld")
(lib.getExe' pkgs.swayosd "swayosd-server") (lib.getExe' pkgs.swayosd "swayosd-server")
(lib.getExe pkgs.mako) (lib.getExe pkgs.mako)

View file

@ -159,7 +159,6 @@ in {
{command = "${scripts.idleD}";} {command = "${scripts.idleD}";}
{command = lib.getExe pkgs.autotiling;} {command = lib.getExe pkgs.autotiling;}
{command = lib.getExe' pkgs.blueman "blueman-applet";} {command = lib.getExe' pkgs.blueman "blueman-applet";}
{command = lib.getExe' pkgs.networkmanagerapplet "nm-applet";}
{command = lib.getExe' pkgs.playerctl "playerctld";} {command = lib.getExe' pkgs.playerctl "playerctld";}
{command = lib.getExe' pkgs.swayosd "swayosd-server";} {command = lib.getExe' pkgs.swayosd "swayosd-server";}
{command = lib.getExe pkgs.mako;} {command = lib.getExe pkgs.mako;}