This commit is contained in:
vxclutch
2026-05-12 17:04:35 -04:00
parent 6d21303cf3
commit e19b21bd7b
2 changed files with 9 additions and 8 deletions

View File

@@ -36,10 +36,14 @@ local blocks = {
}), }),
oxwm.bar.block.shell({ oxwm.bar.block.shell({
format = "{}", format = "{}",
command = "uname -r", command = "nmcli -t -f STATE general",
interval = 999999999,
color = colors.red, color = colors.red,
underline = true, underline = false,
interval = 5,
click = {
command = "st -e nmtui",
floating = true,
}
}), }),
oxwm.bar.block.static({ oxwm.bar.block.static({
text = "", text = "",
@@ -54,7 +58,6 @@ local blocks = {
color = colors.cyan, color = colors.cyan,
underline = true, underline = true,
}), }),
-- Uncomment to add battery status (useful for laptops)
oxwm.bar.block.battery({ oxwm.bar.block.battery({
format = "Bat: {}%", format = "Bat: {}%",
charging = "⚡ Bat: {}%", charging = "⚡ Bat: {}%",
@@ -63,9 +66,7 @@ local blocks = {
interval = 30, interval = 30,
color = colors.green, color = colors.green,
underline = true, underline = true,
-- click: run a command when the block is clicked
click = { command = "st -e btop", floating = true }, click = { command = "st -e btop", floating = true },
-- click = { command = "bluetui", floating = true },
}), }),
}; };
@@ -132,7 +133,7 @@ oxwm.key.bind({ modkey }, "XF86AudioLowerVolume", oxwm.spawn({ "wpctl set-volume
oxwm.key.bind({ }, "XF86MonBrightnessUp", oxwm.spawn({ "brightnessctl set +10%" })) oxwm.key.bind({ }, "XF86MonBrightnessUp", oxwm.spawn({ "brightnessctl set +10%" }))
oxwm.key.bind({ }, "XF86MonBrightnessDown", oxwm.spawn({ "brightnessctl set 10%-" })) oxwm.key.bind({ }, "XF86MonBrightnessDown", oxwm.spawn({ "brightnessctl set 10%-" }))
oxwm.key.bind({ modkey }, "XF86MonBrightnessUp", oxwm.spawn({ "brightnessctl set 100%" })) oxwm.key.bind({ modkey }, "XF86MonBrightnessUp", oxwm.spawn({ "brightnessctl set 100%" }))
oxwm.key.bind({ modkey }, "XF86MonBrightnessDown", oxwm.spawn({ "brightnessctl set 10%" })) oxwm.key.bind({ modkey }, "XF86MonBrightnessDown", oxwm.spawn({ "brightnessctl set 0%" }))
oxwm.key.bind({ modkey }, "1", oxwm.tag.view(0)) oxwm.key.bind({ modkey }, "1", oxwm.tag.view(0))
oxwm.key.bind({ modkey }, "2", oxwm.tag.view(1)) oxwm.key.bind({ modkey }, "2", oxwm.tag.view(1))

View File

@@ -28,7 +28,7 @@ setopt auto_param_slash
setopt dot_glob setopt dot_glob
setopt extended_glob setopt extended_glob
export PATH="$HOME/.local/bin:$HOME/.local/go/bin:$HOME/opt/bin:$PATH" export PATH="$HOME/.local/bin:$HOME/.local/go/bin:$HOME/opt/bin:$HOME/.cargo/bin:$PATH"
export LD_LIBRARY_PATH="$HOME/opt/lib:${LD_LIBRARY_PATH:-}" export LD_LIBRARY_PATH="$HOME/opt/lib:${LD_LIBRARY_PATH:-}"
alias ls='ls --color=auto' alias ls='ls --color=auto'