save
This commit is contained in:
@@ -1,10 +1,7 @@
|
|||||||
vim.lsp.enable {
|
vim.lsp.enable {
|
||||||
"bashls",
|
|
||||||
"gopls",
|
"gopls",
|
||||||
"lua_ls",
|
"lua_ls",
|
||||||
"clangd",
|
"clangd",
|
||||||
"jdtls",
|
|
||||||
"rust-analyzer",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
vim.diagnostic.config { virtual_text = true, underline = true, signs = false }
|
vim.diagnostic.config { virtual_text = true, underline = true, signs = false }
|
||||||
|
|||||||
@@ -5,69 +5,72 @@ local modkey = "Mod4"
|
|||||||
local terminal = "st"
|
local terminal = "st"
|
||||||
|
|
||||||
local colors = {
|
local colors = {
|
||||||
fg = "#bbbbbb",
|
fg = "#bbbbbb",
|
||||||
red = "#f7768e",
|
red = "#f7768e",
|
||||||
bg = "#1a1b26",
|
bg = "#1a1b26",
|
||||||
cyan = "#0db9d7",
|
cyan = "#0db9d7",
|
||||||
green = "#9ece6a",
|
green = "#9ece6a",
|
||||||
lavender = "#a9b1d6",
|
lavender = "#a9b1d6",
|
||||||
light_blue = "#7aa2f7",
|
light_blue = "#7aa2f7",
|
||||||
grey = "#bbbbbb",
|
grey = "#bbbbbb",
|
||||||
blue = "#6dade3",
|
blue = "#6dade3",
|
||||||
purple = "#ad8ee6",
|
purple = "#ad8ee6",
|
||||||
}
|
}
|
||||||
|
|
||||||
local tags = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }
|
local tags = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }
|
||||||
|
|
||||||
local bar_font = "BigBlueTermPlus Nerd Font:style=Regular"
|
local bar_font = "BigBlueTermPlus Nerd Font:style=Regular"
|
||||||
|
|
||||||
|
local is_desktop
|
||||||
|
if os.execute("command -v nmcli >/dev/null 2>&1") == 0 then is_desktop = nil else is_desktop = "yes" end
|
||||||
|
|
||||||
local blocks = {
|
local blocks = {
|
||||||
oxwm.bar.block.ram({
|
oxwm.bar.block.ram({
|
||||||
format = "Ram: {used}/{total} GB",
|
format = "Ram: {used}/{total} GB",
|
||||||
interval = 5,
|
interval = 5,
|
||||||
color = colors.light_blue,
|
color = colors.light_blue,
|
||||||
underline = true,
|
underline = true,
|
||||||
}),
|
}),
|
||||||
oxwm.bar.block.static({
|
oxwm.bar.block.static({
|
||||||
text = "│",
|
text = "│",
|
||||||
interval = 999999999,
|
interval = 999999999,
|
||||||
color = colors.lavender,
|
color = colors.lavender,
|
||||||
underline = false,
|
underline = false,
|
||||||
}),
|
}),
|
||||||
oxwm.bar.block.shell({
|
is_desktop or oxwm.bar.block.shell({
|
||||||
format = "{}",
|
format = "{}",
|
||||||
command = "nmcli -t -f STATE general",
|
command = "nmcli -t -f STATE general",
|
||||||
color = colors.red,
|
color = colors.red,
|
||||||
underline = false,
|
underline = false,
|
||||||
interval = 5,
|
interval = 5,
|
||||||
click = {
|
click = {
|
||||||
command = "st -e nmtui",
|
command = "st -e nmtui",
|
||||||
floating = true,
|
floating = true,
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
oxwm.bar.block.static({
|
is_desktop or oxwm.bar.block.static({
|
||||||
text = "│",
|
text = "│",
|
||||||
interval = 999999999,
|
interval = 999999999,
|
||||||
color = colors.lavender,
|
color = colors.lavender,
|
||||||
underline = false,
|
underline = false,
|
||||||
}),
|
}),
|
||||||
oxwm.bar.block.datetime({
|
oxwm.bar.block.datetime({
|
||||||
format = "{}",
|
format = "{}",
|
||||||
date_format = "%a, %b %d - %-I:%M:%S %P",
|
date_format = "%a, %b %d - %-I:%M:%S %P",
|
||||||
interval = 1,
|
interval = 1,
|
||||||
color = colors.cyan,
|
color = colors.cyan,
|
||||||
underline = true,
|
underline = true,
|
||||||
}),
|
}),
|
||||||
oxwm.bar.block.battery({
|
oxwm.bar.block.battery({
|
||||||
format = "Bat: {}%",
|
format = "Bat: {}%",
|
||||||
charging = "⚡ Bat: {}%",
|
charging = "⚡ Bat: {}%",
|
||||||
discharging = "- Bat: {}%",
|
discharging = "- Bat: {}%",
|
||||||
full = "✓ Bat: {}%",
|
full = "✓ Bat: {}%",
|
||||||
interval = 30,
|
interval = 30,
|
||||||
color = colors.green,
|
color = colors.green,
|
||||||
underline = true,
|
underline = true,
|
||||||
click = { command = "st -e btop", floating = true },
|
click = { command = "st -e btop", floating = true },
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
oxwm.set_terminal(terminal)
|
oxwm.set_terminal(terminal)
|
||||||
@@ -130,14 +133,14 @@ oxwm.key.bind({ modkey }, "K", oxwm.client.focus_stack(-1))
|
|||||||
oxwm.key.bind({ modkey, "Shift" }, "J", oxwm.client.move_stack(1))
|
oxwm.key.bind({ modkey, "Shift" }, "J", oxwm.client.move_stack(1))
|
||||||
oxwm.key.bind({ modkey, "Shift" }, "K", oxwm.client.move_stack(-1))
|
oxwm.key.bind({ modkey, "Shift" }, "K", oxwm.client.move_stack(-1))
|
||||||
|
|
||||||
oxwm.key.bind({ }, "XF86AudioMute", oxwm.spawn({ "wpctl set-mute @DEFAULT_SINK@ toggle" }))
|
oxwm.key.bind({}, "XF86AudioMute", oxwm.spawn({ "wpctl set-mute @DEFAULT_SINK@ toggle" }))
|
||||||
oxwm.key.bind({ }, "XF86AudioRaiseVolume", oxwm.spawn({ "wpctl set-volume @DEFAULT_SINK@ 3%+" }))
|
oxwm.key.bind({}, "XF86AudioRaiseVolume", oxwm.spawn({ "wpctl set-volume @DEFAULT_SINK@ 3%+" }))
|
||||||
oxwm.key.bind({ }, "XF86AudioLowerVolume", oxwm.spawn({ "wpctl set-volume @DEFAULT_SINK@ 3%-" }))
|
oxwm.key.bind({}, "XF86AudioLowerVolume", oxwm.spawn({ "wpctl set-volume @DEFAULT_SINK@ 3%-" }))
|
||||||
oxwm.key.bind({ modkey }, "XF86AudioRaiseVolume", oxwm.spawn({ "wpctl set-volume @DEFAULT_SINK@ 10%+" }))
|
oxwm.key.bind({ modkey }, "XF86AudioRaiseVolume", oxwm.spawn({ "wpctl set-volume @DEFAULT_SINK@ 10%+" }))
|
||||||
oxwm.key.bind({ modkey }, "XF86AudioLowerVolume", oxwm.spawn({ "wpctl set-volume @DEFAULT_SINK@ 10%-" }))
|
oxwm.key.bind({ modkey }, "XF86AudioLowerVolume", oxwm.spawn({ "wpctl set-volume @DEFAULT_SINK@ 10%-" }))
|
||||||
|
|
||||||
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 0%" }))
|
oxwm.key.bind({ modkey }, "XF86MonBrightnessDown", oxwm.spawn({ "brightnessctl set 0%" }))
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ export TERM=xterm-256color
|
|||||||
|
|
||||||
export XDG_DOWNLOAD_DIR="$HOME/downloads"
|
export XDG_DOWNLOAD_DIR="$HOME/downloads"
|
||||||
export XDG_PROJECTS_DIR="$HOME/programming"
|
export XDG_PROJECTS_DIR="$HOME/programming"
|
||||||
|
|
||||||
export XDG_DESKTOP_DIR="$HOME"
|
export XDG_DESKTOP_DIR="$HOME"
|
||||||
export XDG_DOCUMENTS_DIR="$HOME/media"
|
export XDG_DOCUMENTS_DIR="$HOME/media"
|
||||||
export XDG_MUSIC_DIR="$HOME/media"
|
export XDG_MUSIC_DIR="$HOME/media"
|
||||||
|
|||||||
Reference in New Issue
Block a user