save
This commit is contained in:
@@ -1,10 +1,7 @@
|
||||
vim.lsp.enable {
|
||||
"bashls",
|
||||
"gopls",
|
||||
"lua_ls",
|
||||
"clangd",
|
||||
"jdtls",
|
||||
"rust-analyzer",
|
||||
}
|
||||
|
||||
vim.diagnostic.config { virtual_text = true, underline = true, signs = false }
|
||||
|
||||
@@ -21,6 +21,9 @@ local tags = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }
|
||||
|
||||
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 = {
|
||||
oxwm.bar.block.ram({
|
||||
format = "Ram: {used}/{total} GB",
|
||||
@@ -34,7 +37,7 @@ local blocks = {
|
||||
color = colors.lavender,
|
||||
underline = false,
|
||||
}),
|
||||
oxwm.bar.block.shell({
|
||||
is_desktop or oxwm.bar.block.shell({
|
||||
format = "{}",
|
||||
command = "nmcli -t -f STATE general",
|
||||
color = colors.red,
|
||||
@@ -45,7 +48,7 @@ local blocks = {
|
||||
floating = true,
|
||||
}
|
||||
}),
|
||||
oxwm.bar.block.static({
|
||||
is_desktop or oxwm.bar.block.static({
|
||||
text = "│",
|
||||
interval = 999999999,
|
||||
color = colors.lavender,
|
||||
|
||||
@@ -2,6 +2,7 @@ export TERM=xterm-256color
|
||||
|
||||
export XDG_DOWNLOAD_DIR="$HOME/downloads"
|
||||
export XDG_PROJECTS_DIR="$HOME/programming"
|
||||
|
||||
export XDG_DESKTOP_DIR="$HOME"
|
||||
export XDG_DOCUMENTS_DIR="$HOME/media"
|
||||
export XDG_MUSIC_DIR="$HOME/media"
|
||||
|
||||
Reference in New Issue
Block a user