This commit is contained in:
Kenryu Shibata
2026-01-07 01:42:09 +09:00
parent a743f2c943
commit d471aa77f9
8 changed files with 151 additions and 17 deletions

View File

@@ -10,6 +10,72 @@ let
EXIT = "i3-nagbar -t warning -m 'Exit i3?' -B 'Yes' 'i3-msg exit'";
in
{
programs.i3status = {
enable = true;
general = {
output_format = "i3bar";
interval = 1;
colors = true;
color_separator = "#FFFFFF";
color_good = "#00FF00";
color_degraded = "#00FFFF";
color_bad = "#FF0000";
separator = "]["
};
modules = {
"time" = {
position = 1;
settings = {
format = "%Y %m/%d %a | %H:%M:%S";
};
};
"load" = {
position = 2;
settings = {
format = "LD %1min:%5min:%15min";
format_above_threshold = "LD H (%1min:%5min)";
max_threshold = "0.9";
};
};
"memory" = {
position = 3;
settings = {
memory_used_method = "classical";
decimals = "1";
unit = "Mi";
format = "%available (%used) / %total";
format = "Mem LOW (%available)"
threshold_degraded = "10%";
threshold_critical = "6.25%";
};
};
"disk /" = {
position = 4;
settings = {
prefix_type = "decimal";
format = "/ %percentage_used"
};
};
"volume master" = {
position = 5;
settings = {
format = "Vol: %volume";
format_muted = "Vol: Muted (%volume)";
device = "pulse:1";
};
};
"wireless _first_" = {
position = 6;
settings = {
format_up = "W: (%quality @ %essid w/ %bitrate) %ip";
format_down = "W: down";
format_bitrate = "%g %cb/s";
format_quality = "%03d%s";
};
};
};
};
xsession.windowManager.i3 = {
enable = true;
config = {
@@ -17,6 +83,11 @@ in
menu = MENU;
terminal = TERM;
workspaceLayout = "tabbed";
gamps = {
smartBorders = true;
smartGaps = true;
inner = 10;
};
modes = {
resize = {
"${UP}" = "resize shrink height 10 px or 10 ppt";
@@ -76,5 +147,5 @@ in
};
};
};
}