Massively simplify Waybar, remove unused remote desktop profile, other things I'm sure

This commit is contained in:
Bun 2025-05-06 03:13:03 -04:00
parent 532a1e280f
commit 26b81cf5ed
13 changed files with 153 additions and 209 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
{
programs.waybar = let
swayWorkspaceModule = {
@ -28,7 +28,10 @@
format-icons = {
headphone = "󰋋 ";
headset = "󰋋 ";
default = [ " " " " ];
default = [
" "
" "
];
};
on-click = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
on-click-middle = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 100%";
@ -111,8 +114,14 @@
format-wifi = "";
format-disconnected = "󰖪";
format-linked = "";
tooltip-format-ethernet = "{ipaddr}\n{ifname} ";
tooltip-format-wifi = "{ipaddr}\n{essid} ({signalStrength}%)";
tooltip-format-ethernet = lib.concatStrings [
"{ipaddr}\n"
"{ifname} "
];
tooltip-format-wifi = lib.concatStrings [
"{ipaddr}\n"
"{essid} ({signalStrength}%)"
];
tooltip-format-disconnected = "Disconnected";
};
@ -121,7 +130,10 @@
format-disabled = "";
format-no-controller = "";
tooltip-format-on = "No devices connected.";
tooltip-format-connected = "{num_connections} connected\n{device_enumerate}";
tooltip-format-connected = lib.concatStrings [
"{num_connections} connected\n"
"{device_enumerate}"
];
tooltip-format-enumerate-connected = "{device_alias}";
tooltip-format-enumerate-connected-battery = "{device_alias} {device_battery_percentage}%";
};
@ -190,7 +202,10 @@
# Laptop modules
backlightModule = {
format = "{icon} {percent}%";
format-icons = [ "" "󰖨" ];
format-icons = [
""
"󰖨"
];
tooltip = false;
};
@ -201,133 +216,27 @@
critical = 15;
};
format = "{icon} {capacity}%";
format-icons = [ "" "" "" "" "" ];
format-icons = [
""
""
""
""
""
];
};
in {
enable = config.home.desktop.enable;
settings = {
display1 = {
displayPrimary = {
name = "bar1";
position = "top";
layer = "top";
output = [
config.displays.d1
"VGA-1"
];
modules-left = [
"sway/workspaces"
"sway/window"
"niri/workspaces"
"niri/window"
"hyprland/workspaces"
"hyprland/window"
];
modules-right = [
"pulseaudio"
"cpu"
"memory"
"custom/vram"
"custom/clock-long"
"gamemode"
"sway/scratchpad"
"privacy"
"tray"
"bluetooth"
"network"
];
"sway/workspaces" = swayWorkspaceModule;
"sway/window" = windowModule;
"niri/window" = windowModule;
"hyprland/window" = windowModule;
"pulseaudio" = pulseModule;
"cpu" = cpuModule;
"memory" = ramModule;
"custom/vram" = vramModule;
"custom/clock-long" = longClockModule;
"gamemode" = gamemodeModule;
"privacy" = privacyModule;
"sway/scratchpad" = scratchpadModule;
"tray" = trayModule;
"bluetooth" = bluetoothModule;
"network" = networkModule;
};
display2 = {
name = "bar2";
position = "top";
layer = "top";
output = [ config.displays.d2 ];
modules-left = [
"sway/workspaces"
"sway/window"
"niri/workspaces"
"niri/window"
"hyprland/workspaces"
"hyprland/window"
];
modules-right = [
"pulseaudio"
"mpd"
"custom/notifs"
"cpu"
"memory"
"custom/vram"
"custom/clock-long"
];
"sway/workspaces" = swayWorkspaceModule;
"sway/window" = windowModule;
"niri/window" = windowModule;
"hyprland/window" = windowModule;
"pulseaudio" = pulseModule;
"mpd" = mpdModule;
"custom/notifs" = notificationModule;
"cpu" = cpuModule;
"memory" = ramModule;
"custom/vram" = vramModule;
"custom/clock-long" = longClockModule;
};
display3 = {
name = "bar3";
position = "top";
layer = "top";
output = [ config.displays.d3 ];
modules-left = [
"sway/workspaces"
"sway/window"
"niri/workspaces"
"niri/window"
"hyprland/workspaces"
"hyprland/window"
];
modules-right = [
"pulseaudio"
"custom/weather"
"cpu"
"memory"
"custom/vram"
"custom/clock-short"
];
"sway/workspaces" = swayWorkspaceModule;
"sway/window" = windowModule;
"niri/window" = windowModule;
"hyprland/window" = windowModule;
"pulseaudio" = pulseModule;
"custom/weather" = weatherModule;
"cpu" = cpuModule;
"memory" = ramModule;
"custom/vram" = vramModule;
"custom/clock-short" = shortClockModule;
};
displayLap = {
name = "laptop";
position = "top";
layer = "top";
output = [
"eDP-1"
"LVDS-1"
"DSI-1"
"HDMI-A-1"
"LVDS-1"
"eDP-1"
"DP-1"
];
modules-left = [
"sway/workspaces"
@ -350,6 +259,7 @@
"custom/clock-long"
"gamemode"
"sway/scratchpad"
"privacy"
"tray"
"bluetooth"
"network"
@ -369,10 +279,50 @@
"battery" = batteryModule;
"custom/clock-long" = longClockModule;
"sway/scratchpad" = scratchpadModule;
"privacy" = privacyModule;
"tray" = trayModule;
"bluetooth" = bluetoothModule;
"network" = networkModule;
};
displaySecondary = {
name = "bar2";
position = "top";
layer = "top";
output = [
"!DSI-1"
"!HDMI-A-1"
"!LVDS-1"
"!eDP-1"
"!DP-1"
];
modules-left = [
"sway/workspaces"
"sway/window"
"niri/workspaces"
"niri/window"
"hyprland/workspaces"
"hyprland/window"
];
modules-right = [
"pulseaudio"
"cpu"
"memory"
"custom/vram"
"custom/clock-long"
];
"sway/workspaces" = swayWorkspaceModule;
"sway/window" = windowModule;
"niri/window" = windowModule;
"hyprland/window" = windowModule;
"pulseaudio" = pulseModule;
"mpd" = mpdModule;
"custom/notifs" = notificationModule;
"cpu" = cpuModule;
"memory" = ramModule;
"custom/vram" = vramModule;
"custom/clock-long" = longClockModule;
};
};
style = ''