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({
format = "{}",
command = "uname -r",
interval = 999999999,
command = "nmcli -t -f STATE general",
color = colors.red,
underline = true,
underline = false,
interval = 5,
click = {
command = "st -e nmtui",
floating = true,
}
}),
oxwm.bar.block.static({
text = "",
@@ -54,7 +58,6 @@ local blocks = {
color = colors.cyan,
underline = true,
}),
-- Uncomment to add battery status (useful for laptops)
oxwm.bar.block.battery({
format = "Bat: {}%",
charging = "⚡ Bat: {}%",
@@ -63,9 +66,7 @@ local blocks = {
interval = 30,
color = colors.green,
underline = true,
-- click: run a command when the block is clicked
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({ }, "XF86MonBrightnessDown", oxwm.spawn({ "brightnessctl set 10%-" }))
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 }, "2", oxwm.tag.view(1))