mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 06:33:56 -05:00
home/waybar: use networkmanager-dmenu and blueberry (#63)
Some checks are pending
flakehub / flakehub-publish (push) Waiting to run
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
Some checks are pending
flakehub / flakehub-publish (push) Waiting to run
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
* home/waybar: use rofi with networkmanager_dmenu for wifi * home/rofi: improve networkmanager-dmenu settings * home/waybar: move to wofi * home/waybar: use blueberry for bluetooth * home/hyprland: add bluberry window rules
This commit is contained in:
parent
e4bac1ec6f
commit
2cf2bb3747
|
@ -7,6 +7,8 @@
|
|||
cfg = config.ar.home;
|
||||
in {
|
||||
config = lib.mkIf cfg.apps.rofi.enable {
|
||||
home.packages = [pkgs.networkmanager_dmenu];
|
||||
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
font = "NotoSansM Nerd Font ${toString config.gtk.font.size}";
|
||||
|
@ -27,12 +29,10 @@ in {
|
|||
"ssh"
|
||||
];
|
||||
|
||||
display-drun = " ";
|
||||
display-filebrowser = " ";
|
||||
display-power-menu = " ";
|
||||
display-run = " ";
|
||||
display-ssh = " ";
|
||||
display-window = " ";
|
||||
display-combi = "Search";
|
||||
display-filebrowser = "Files";
|
||||
display-ssh = "SSH";
|
||||
display-window = "Windows";
|
||||
drun-display-format = "{icon} {name}";
|
||||
hide-scrollbar = true;
|
||||
hover-select = true;
|
||||
|
@ -46,5 +46,19 @@ in {
|
|||
window-thumbnail = false;
|
||||
};
|
||||
};
|
||||
|
||||
xdg.configFile."networkmanager-dmenu/config.ini".text = ''
|
||||
[dmenu]
|
||||
dmenu_command = ${lib.getExe config.programs.rofi.package}
|
||||
highlight = True
|
||||
|
||||
[dmenu_passphrase]
|
||||
obscure = True
|
||||
|
||||
[editor]
|
||||
gui = ${pkgs.networkmanagerapplet}/bin/nm-connection-editor
|
||||
gui_if_available = True
|
||||
terminal = ${lib.getExe cfg.defaultApps.terminal}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -121,9 +121,9 @@
|
|||
};
|
||||
|
||||
"bluetooth" = {
|
||||
"format" = "";
|
||||
"format" = "";
|
||||
"format-disabled" = ""; # an empty format will hide the module
|
||||
"format-connected" = " {num_connections} connected";
|
||||
"format-connected" = " {num_connections}";
|
||||
"tooltip-format" = "{controller_alias} {controller_address}";
|
||||
"tooltip-format-connected" = ''
|
||||
{controller_alias} {controller_address}
|
||||
|
@ -159,7 +159,7 @@
|
|||
"tooltip-format-wifi" = "{essid} ({signalStrength}%) {icon}";
|
||||
"tooltip-format-ethernet" = "{ifname} ";
|
||||
"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;};
|
||||
|
@ -193,7 +193,7 @@
|
|||
|
||||
"group/hardware" = {
|
||||
"orientation" = "horizontal";
|
||||
modules = ["pulseaudio" "power-profiles-daemon" "battery" "custom/logout"];
|
||||
modules = ["pulseaudio" "bluetooth" "network" "power-profiles-daemon" "battery" "custom/logout"];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -124,8 +124,6 @@ in {
|
|||
(lib.getExe pkgs.waybar)
|
||||
scripts.idleD
|
||||
(lib.getExe pkgs.wayland-pipewire-idle-inhibit)
|
||||
(lib.getExe' pkgs.blueman "blueman-applet")
|
||||
(lib.getExe' pkgs.networkmanagerapplet "nm-applet")
|
||||
(lib.getExe' pkgs.playerctl "playerctld")
|
||||
(lib.getExe' pkgs.swayosd "swayosd-server")
|
||||
(lib.getExe pkgs.mako)
|
||||
|
@ -183,15 +181,18 @@ in {
|
|||
|
||||
windowrulev2 = [
|
||||
"center(1),class:(.blueman-manager-wrapped)"
|
||||
"center(1),class:(blueberry.py)"
|
||||
"center(1),class:(com.github.wwmm.easyeffects)"
|
||||
"center(1),class:(pavucontrol)"
|
||||
"float, class:^(firefox)$, title:^(Picture-in-Picture)$"
|
||||
"float,class:(.blueman-manager-wrapped)"
|
||||
"float,class:(blueberry.py)"
|
||||
"float,class:(com.github.wwmm.easyeffects)"
|
||||
"float,class:(pavucontrol)"
|
||||
"move 70% 20%, class:^(firefox)$, title:^(Picture-in-Picture)$"
|
||||
"pin,class:^(firefox)$, title:^(Picture-in-Picture)$"
|
||||
"size 40% 60%,class:(.blueman-manager-wrapped)"
|
||||
"size 40% 60%,class:(blueberry.py)"
|
||||
"size 40% 60%,class:(com.github.wwmm.easyeffects)"
|
||||
"size 40% 60%,class:(pavucontrol)"
|
||||
"suppressevent maximize, class:.*"
|
||||
|
|
|
@ -159,7 +159,6 @@ in {
|
|||
{command = "${scripts.idleD}";}
|
||||
{command = lib.getExe pkgs.autotiling;}
|
||||
{command = lib.getExe' pkgs.blueman "blueman-applet";}
|
||||
{command = lib.getExe' pkgs.networkmanagerapplet "nm-applet";}
|
||||
{command = lib.getExe' pkgs.playerctl "playerctld";}
|
||||
{command = lib.getExe' pkgs.swayosd "swayosd-server";}
|
||||
{command = lib.getExe pkgs.mako;}
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
blueberry
|
||||
gnome.file-roller
|
||||
networkmanagerapplet
|
||||
swayosd
|
||||
|
|
Loading…
Reference in a new issue