2022-08-25 10:54:11 +03:00
|
|
|
{ lib, config, pkgs, colors }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
"bar/main" = {
|
|
|
|
monitor = "DisplayPort-1";
|
|
|
|
width = "100%";
|
|
|
|
height = "20px";
|
|
|
|
font = [
|
|
|
|
"Fira Code:size=9:antialias=true"
|
|
|
|
"Fira Code:bold:size=0:antialias=true"
|
|
|
|
];
|
|
|
|
radius = 0;
|
|
|
|
modules = {
|
|
|
|
left = "xmonad";
|
|
|
|
center = "date wifi";
|
2022-08-28 17:20:22 +03:00
|
|
|
right = "exchangerate volume lang time";
|
2022-08-25 10:54:11 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
"module/date" = {
|
|
|
|
type = "internal/date";
|
|
|
|
interval = 10;
|
|
|
|
date = "%a %d %b %Y";
|
|
|
|
label = "%date%";
|
|
|
|
format.padding = 1;
|
|
|
|
};
|
|
|
|
|
|
|
|
"module/time" = {
|
|
|
|
type = "internal/date";
|
|
|
|
time = "%H:%M:%S";
|
|
|
|
label = {
|
|
|
|
text = "%time%";
|
|
|
|
font = 2;
|
|
|
|
foreground = colors.orange;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
"module/lang" = {
|
|
|
|
type = "internal/xkeyboard";
|
|
|
|
format = {
|
|
|
|
text = "<label-layout>";
|
|
|
|
padding = 1;
|
|
|
|
};
|
|
|
|
label.layout.font = 2;
|
|
|
|
};
|
|
|
|
|
|
|
|
"module/volume" = {
|
|
|
|
type = "custom/script";
|
|
|
|
exec = "~/scripts/get_volume.sh";
|
|
|
|
interval = 1;
|
|
|
|
format = {
|
|
|
|
prefix = "Vol: ";
|
|
|
|
padding = 1;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
"module/wifi" = {
|
|
|
|
type = "internal/network";
|
|
|
|
interval = 3;
|
|
|
|
interface = {
|
2022-08-27 23:41:37 +03:00
|
|
|
text = "wlp11s0f3u2";
|
2022-08-25 10:54:11 +03:00
|
|
|
type = "wireless";
|
|
|
|
};
|
|
|
|
label.connected = "%essid% %signal%";
|
|
|
|
format.connected = {
|
|
|
|
prefix = "| ";
|
|
|
|
suffix = "%";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-08-28 23:35:11 +03:00
|
|
|
"module/xmonad" = mkIf config.ui.xmonad.enable {
|
2022-08-25 10:54:11 +03:00
|
|
|
type = "custom/script";
|
|
|
|
exec = "${pkgs.xmonad-log}/bin/xmonad-log";
|
|
|
|
tail = true;
|
|
|
|
};
|
|
|
|
|
2022-08-28 17:20:22 +03:00
|
|
|
"module/exchangerate" = {
|
|
|
|
type = "custom/script";
|
|
|
|
exec = "~/scripts/exchangerate.sh";
|
|
|
|
interval = 60;
|
|
|
|
format = {
|
|
|
|
prefix = "USD: ";
|
|
|
|
padding = 1;
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2022-08-25 10:54:11 +03:00
|
|
|
"global/wm" = {
|
|
|
|
margin = {
|
|
|
|
bottom = 0;
|
|
|
|
top = 0;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|