working on i3

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-09-19 18:02:18 -05:00
parent e77dec2d94
commit e3689e5b26
9 changed files with 148 additions and 559 deletions

View file

@ -0,0 +1,7 @@
{ ... }:
{
imports = [
./i3.nix
./polybar.nix
];
}

View file

@ -13,10 +13,10 @@ in
config = lib.mkIf cfg.enable {
home.file = {
".config/polybar/config" = {
text = builtins.readFile ../polybar/config;
text = builtins.readFile ./polybar/config;
};
".config/polybar/launch.sh" = {
text = builtins.readFile ../polybar/launch.sh;
text = builtins.readFile ./polybar/launch.sh;
executable = true;
};
};

View file

@ -0,0 +1,51 @@
[bar/top]
width = 100%
height = 28
background = #1a1b26
foreground = #c0caf5
modules-left = workspace
modules-center = date cpu memory
modules-right = pulseaudio battery network
environment = {
TERM = xterm-256color
}
[module/workspace]
type = internal/xworkspaces
pin-workspaces = true
wrap-scroll = false
; icons for numbers
format-underline = #7dcae4
label = %name%
label-foreground = #c0caf5
[module/date]
type = internal/date
interval = 5
format = %b %d, %H:%M
[module/cpu]
type = internal/cpu
format = 󰻠 %percentage:2.0%%
[module/memory]
type = internal/memory
format = 󰍛 %used_percent%%
[module/pulseaudio]
type = internal/pulseaudio
format = {volume}%
[module/battery]
type = internal/battery
battery = BAT0
adapter = AC
format-charging = %percentage%%
format-discharging = %percentage%%
[module/network]
type = internal/network
interface = auto
format-connected = 󰤨 %essid% (%signal_strength%%)
format-disconnected = 󰖪 Disconnected

View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
# Launch polybar on each connected monitor
MONITORS=$(xrandr --query | grep " connected" | cut -d' ' -f1)
for m in $MONITORS; do
MONITOR=$m polybar --reload top &
done