waybar: add config

This commit is contained in:
dogeystamp 2024-11-08 15:30:18 -05:00
parent 2643b14d7b
commit af9d977ced
6 changed files with 74 additions and 5 deletions

View File

@ -151,7 +151,6 @@ arc-gtk-theme
lxappearance-gtk3
radare2
typst
typst-lsp
neovide
# .local/bin/pyinstantref script

View File

@ -93,6 +93,11 @@ local on_attach = function(client, bufnr)
client.server_capabilities.hoverProvider = false
end
if client.name == "tinymist" then
-- this breaks on special characters outside english
client.server_capabilities.semanticTokensProvider = false
end
-- Enable completion triggered by <c-x><c-o>
buf_set_option('omnifunc', 'v:lua.vim.lsp.omnifunc')
@ -188,9 +193,9 @@ local servers = {
},
},
},
typst_lsp = {
tinymist = {
settings = {
exportPdf = "onSave" -- alternatively onType / never
exportPdf = "onSave", -- alternatively onType / never
}
},
nushell = {},

View File

@ -0,0 +1,38 @@
{
"layer": "top",
"reload_style_on_change": true,
"modules-left": ["niri/workspaces"],
"modules-center": ["niri/window"],
"modules-right": ["mpris", "network", "battery", "clock"],
"niri/window": {
"max-length": 50
},
"niri/workspaces": {
"format": "{icon}",
"format-icons": {
}
},
"battery": {
"format": "{capacity}% {icon}",
"format-icons": ["", "", "", "", ""],
"states": {
"warning": 40,
"critical": 10,
}
},
"clock": {
"format": "{:%H:%M}",
},
"network": {
"format-wifi": "⇌",
"format-disconnected": "⚠"
},
"mpris": {
"format": "{artist} - {title} {status_icon}",
"format-paused": "{artist} - {title} {status_icon}",
"status-icons": {
"playing": "✗",
"paused": "•"
},
}
}

View File

@ -0,0 +1,27 @@
@import url("file:///etc/xdg/waybar/style.css");
.modules-left {
padding-left: 0.5em;
}
.modules-right {
padding-right: 0.5em;
}
#network,
#battery,
#clock {
background-color: transparent;
color: #ffffff;
}
#mpris {
margin-right: 0.5em;
}
#battery.warning:not(.charging) {
background-color: #99AABB;
}
window#waybar.chromium {
background-color: rgba(43, 48, 59, 0.5);
}

View File

@ -50,7 +50,7 @@ config.bind("td", "config-cycle colors.webpage.darkmode.enabled true false")
c.url.default_page = "~/.config/qutebrowser/homepage.html"
c.url.start_pages = "~/.config/qutebrowser/homepage.html"
c.url.searchengines = {"DEFAULT": "https://searx.be/search?q={}"}
c.url.searchengines = {"DEFAULT": "https://duckduckgo.com/?q={}"}
c.downloads.location.directory = "~/quar/"
c.zoom.default = "100%"

View File

@ -9,4 +9,4 @@ if [ "$DUNST_APP_NAME" = "prod" ]; then
exit
fi
paplay ~/.local/bin/deskutils/notif.mp3
paplay ~/.local/bin/deskutils/notif.wav