mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 07:13:55 -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;
|
cfg = config.ar.home;
|
||||||
in {
|
in {
|
||||||
config = lib.mkIf cfg.apps.rofi.enable {
|
config = lib.mkIf cfg.apps.rofi.enable {
|
||||||
|
home.packages = [pkgs.networkmanager_dmenu];
|
||||||
|
|
||||||
programs.rofi = {
|
programs.rofi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
font = "NotoSansM Nerd Font ${toString config.gtk.font.size}";
|
font = "NotoSansM Nerd Font ${toString config.gtk.font.size}";
|
||||||
|
@ -27,12 +29,10 @@ in {
|
||||||
"ssh"
|
"ssh"
|
||||||
];
|
];
|
||||||
|
|
||||||
display-drun = " ";
|
display-combi = "Search";
|
||||||
display-filebrowser = " ";
|
display-filebrowser = "Files";
|
||||||
display-power-menu = " ";
|
display-ssh = "SSH";
|
||||||
display-run = " ";
|
display-window = "Windows";
|
||||||
display-ssh = " ";
|
|
||||||
display-window = " ";
|
|
||||||
drun-display-format = "{icon} {name}";
|
drun-display-format = "{icon} {name}";
|
||||||
hide-scrollbar = true;
|
hide-scrollbar = true;
|
||||||
hover-select = true;
|
hover-select = true;
|
||||||
|
@ -46,5 +46,19 @@ in {
|
||||||
window-thumbnail = false;
|
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" = {
|
"bluetooth" = {
|
||||||
"format" = "";
|
"format" = "";
|
||||||
"format-disabled" = ""; # an empty format will hide the module
|
"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" = "{controller_alias} {controller_address}";
|
||||||
"tooltip-format-connected" = ''
|
"tooltip-format-connected" = ''
|
||||||
{controller_alias} {controller_address}
|
{controller_alias} {controller_address}
|
||||||
|
@ -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" "bluetooth" "network" "power-profiles-daemon" "battery" "custom/logout"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -124,8 +124,6 @@ in {
|
||||||
(lib.getExe pkgs.waybar)
|
(lib.getExe pkgs.waybar)
|
||||||
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.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)
|
||||||
|
@ -183,15 +181,18 @@ in {
|
||||||
|
|
||||||
windowrulev2 = [
|
windowrulev2 = [
|
||||||
"center(1),class:(.blueman-manager-wrapped)"
|
"center(1),class:(.blueman-manager-wrapped)"
|
||||||
|
"center(1),class:(blueberry.py)"
|
||||||
"center(1),class:(com.github.wwmm.easyeffects)"
|
"center(1),class:(com.github.wwmm.easyeffects)"
|
||||||
"center(1),class:(pavucontrol)"
|
"center(1),class:(pavucontrol)"
|
||||||
"float, class:^(firefox)$, title:^(Picture-in-Picture)$"
|
"float, class:^(firefox)$, title:^(Picture-in-Picture)$"
|
||||||
"float,class:(.blueman-manager-wrapped)"
|
"float,class:(.blueman-manager-wrapped)"
|
||||||
|
"float,class:(blueberry.py)"
|
||||||
"float,class:(com.github.wwmm.easyeffects)"
|
"float,class:(com.github.wwmm.easyeffects)"
|
||||||
"float,class:(pavucontrol)"
|
"float,class:(pavucontrol)"
|
||||||
"move 70% 20%, class:^(firefox)$, title:^(Picture-in-Picture)$"
|
"move 70% 20%, class:^(firefox)$, title:^(Picture-in-Picture)$"
|
||||||
"pin,class:^(firefox)$, title:^(Picture-in-Picture)$"
|
"pin,class:^(firefox)$, title:^(Picture-in-Picture)$"
|
||||||
"size 40% 60%,class:(.blueman-manager-wrapped)"
|
"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:(com.github.wwmm.easyeffects)"
|
||||||
"size 40% 60%,class:(pavucontrol)"
|
"size 40% 60%,class:(pavucontrol)"
|
||||||
"suppressevent maximize, class:.*"
|
"suppressevent maximize, class:.*"
|
||||||
|
|
|
@ -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;}
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
blueberry
|
||||||
gnome.file-roller
|
gnome.file-roller
|
||||||
networkmanagerapplet
|
networkmanagerapplet
|
||||||
swayosd
|
swayosd
|
||||||
|
|
Loading…
Reference in a new issue