165 lines
3.6 KiB
Nix
165 lines
3.6 KiB
Nix
{
|
|
widgets = {
|
|
"group/media" = {
|
|
orientation = "horizontal";
|
|
|
|
modules = [
|
|
"mpris"
|
|
"custom/cava"
|
|
"wireplumber"
|
|
];
|
|
};
|
|
|
|
mpris = {
|
|
format = "{player_icon}";
|
|
format-paused = "{status_icon}";
|
|
max-length = 100;
|
|
player-icons = {
|
|
default = "||";
|
|
mpv = "||";
|
|
};
|
|
status-icons = {
|
|
paused = "▶";
|
|
};
|
|
};
|
|
|
|
"custom/cava" = {
|
|
exec = "sh ~/.config/waybar/cava.sh";
|
|
format = "{} ♪";
|
|
};
|
|
|
|
wireplumber = {
|
|
format = "{volume}%";
|
|
format-muted = "";
|
|
max-volume = 110;
|
|
scroll-step = 0.2;
|
|
};
|
|
|
|
"group/hardware" = {
|
|
orientation = "horizontal";
|
|
modules = [
|
|
"cpu"
|
|
"network"
|
|
"memory"
|
|
"disk"
|
|
"temperature"
|
|
];
|
|
};
|
|
|
|
network = {
|
|
# Wifi
|
|
tooltip = true;
|
|
format-wifi = "{icon} ";
|
|
format-icons = [
|
|
""
|
|
""
|
|
""
|
|
];
|
|
rotate = 0;
|
|
|
|
# Ethernet
|
|
format-ethernet = "ᯤ";
|
|
tooltip-format = "Network: <big><b>{essid}</b></big>\nSignal strength: <b>{signaldBm}dBm ({signalStrength}%)</b>\nFrequency: <b>{frequency}MHz</b>\nInterface: <b>{ifname}</b>\nIP: <b>{ipaddr}/{cidr}</b>\nGateway: <b>{gwaddr}</b>\nNetmask: <b>{netmask}</b>\nCurrent : <b>{bandwidthTotalBits}</b>\nUp : <b>{bandwidthUpBits}</b>\nDown : <b>{bandwidthDownBits}</b>";
|
|
format-linked = " {ifname} (No IP)";
|
|
format-disconnected = " ";
|
|
tooltip-format-disconnected = "Disconnected";
|
|
on-click = "/usr/local/bin/ags -t ControlPanel";
|
|
interval = 2;
|
|
};
|
|
|
|
memory = {
|
|
interval = 1;
|
|
rotate = 270;
|
|
format = "{icon}";
|
|
format-icons = [
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
];
|
|
max-length = 10;
|
|
};
|
|
|
|
cpu = {
|
|
interval = 1;
|
|
format = "{icon}";
|
|
rotate = 270;
|
|
format-icons = [
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
];
|
|
};
|
|
|
|
temperature = {
|
|
format = "{temperatureC}°C ";
|
|
thermal-zone = 0;
|
|
hwmon-path = "/sys/class/hwmon/hwmon0/temp1_input";
|
|
critical-threshold = 80;
|
|
};
|
|
|
|
disk = {
|
|
format = "{percentage_free}% ";
|
|
tooltip = true;
|
|
tooltip-format = "{free} / {total} ({percentage_free})";
|
|
};
|
|
|
|
clock = {
|
|
format = "{:%a %b %d, %I:%M %p}";
|
|
rotate = 0;
|
|
on-click = " ";
|
|
tooltip-format = "<tt>{calendar}</tt>";
|
|
calendar = {
|
|
mode = "month";
|
|
mode-mon-col = 3;
|
|
on-scroll = 1;
|
|
on-click-right = "mode";
|
|
format = {
|
|
months = "<span color='#cba6f7'><b>{}</b></span>";
|
|
weekdays = "<span color='#74c7ec'><b>{}</b></span>";
|
|
today = "<span color='#f38ba8'><b>{}</b></span>";
|
|
};
|
|
};
|
|
actions = {
|
|
on-click-right = "mode";
|
|
on-click-forward = "tz_up";
|
|
on-click-backward = "tz_down";
|
|
on-scroll-up = "shift_up";
|
|
on-scroll-down = "shift_down";
|
|
};
|
|
};
|
|
|
|
"custom/nixicon" = {
|
|
format = "";
|
|
on-click = "rofi -show drun -theme $HOME/.config/rofi/custom.rasi";
|
|
tooltip = false;
|
|
};
|
|
|
|
"custom/weather" = {
|
|
format = "{}";
|
|
exec = "curl -s 'wttr.in/52.281311,10.527029?format=2'";
|
|
interval = 60;
|
|
tooltip = false;
|
|
};
|
|
|
|
"custom/weather-side" = {
|
|
format = "{}";
|
|
exec = "curl -s 'wttr.in/52.281311,10.527029?format=1'";
|
|
interval = 60;
|
|
tooltip = false;
|
|
};
|
|
};
|
|
|
|
}
|