"finished" WWL desktop setup
This commit is contained in:
parent
87f9fb7bb6
commit
fbbc23b72e
7 changed files with 167 additions and 31 deletions
|
|
@ -1,24 +1,76 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
colors = {
|
||||
background = "#222";
|
||||
background-alt = "#444";
|
||||
foreground = "#dfdfdf";
|
||||
foreground-alt = "#555";
|
||||
primary = "#ffb52a";
|
||||
secondary = "#e60053";
|
||||
alert = "#bd2c40";
|
||||
accent = "#ffbb00";
|
||||
};
|
||||
in
|
||||
{
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
systemd = {
|
||||
enable = true;
|
||||
};
|
||||
settings = [
|
||||
style = ./waybarstyle.css;
|
||||
settings = {
|
||||
mainBar = {
|
||||
layer = "top";
|
||||
position = "top";
|
||||
height = 30;
|
||||
spacing = 20;
|
||||
modules-left = [ "sway/workspaces" ];
|
||||
modules-right = [ "disk" "pulseaudio" "cpu" "network#eth" "network#wireless" "eth" "battery" "temperature" "clock" "tray" ];
|
||||
|
||||
];
|
||||
"tray" = {
|
||||
spacing = 10;
|
||||
icon-size = 20;
|
||||
};
|
||||
|
||||
"pulseaudio" =
|
||||
{
|
||||
on-click = "wpctl set-mute @DEFAULT_SINK@ toggle";
|
||||
format = "{volume}%";
|
||||
format-muted = "muted";
|
||||
};
|
||||
|
||||
"sway/workspaces" = {
|
||||
all-outputs = true;
|
||||
};
|
||||
|
||||
"clock" = {
|
||||
interval = 1;
|
||||
format = "{:%H:%M}";
|
||||
format-alt = "{:%d.%m.%Y %H:%M:%S}";
|
||||
};
|
||||
|
||||
"battery" = {
|
||||
format = "BAT: {capacity}%";
|
||||
bat = "BAT0";
|
||||
full-at = "94";
|
||||
};
|
||||
|
||||
"temperature" = {
|
||||
thermal-zone = 0;
|
||||
critical-threshold = 70;
|
||||
format = "{temperatureC}°C";
|
||||
interval = 2;
|
||||
hwmon-path = "/sys/devices/platform/coretemp.0/hwmon/hwmon0/temp1_input";
|
||||
};
|
||||
|
||||
"network#eth" = {
|
||||
interval = 5;
|
||||
interface = "enp12s0";
|
||||
format = "{ipaddr}";
|
||||
format-disconnected = "disconnected";
|
||||
};
|
||||
"network#wireless" = {
|
||||
interval = 5;
|
||||
interface = "wlp82s0";
|
||||
format = "{ipaddr}@{essid} ({signalStrength}%)";
|
||||
format-disconnected = "disconnected";
|
||||
};
|
||||
|
||||
"disk" = {
|
||||
interval = 30;
|
||||
path = "/";
|
||||
tooltip-format = "\"{path}\": {used}/{total} ({percentage_used}%)";
|
||||
format = "\"{path}\": {percentage_used}%";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue