From af9d977ced0b9dbc0aadb1b28a1cccf3a47cc48d Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Fri, 8 Nov 2024 15:30:18 -0500 Subject: [PATCH] waybar: add config --- programs | 1 - src/dot_config/nvim/lua/coding.lua | 9 ++++- src/dot_config/private_waybar/private_config | 38 +++++++++++++++++++ src/dot_config/private_waybar/style.css | 27 +++++++++++++ src/dot_config/qutebrowser/config.py | 2 +- .../executable_notification-sound.sh | 2 +- 6 files changed, 74 insertions(+), 5 deletions(-) create mode 100644 src/dot_config/private_waybar/private_config create mode 100644 src/dot_config/private_waybar/style.css diff --git a/programs b/programs index 8027a7a..a352002 100644 --- a/programs +++ b/programs @@ -151,7 +151,6 @@ arc-gtk-theme lxappearance-gtk3 radare2 typst -typst-lsp neovide # .local/bin/pyinstantref script diff --git a/src/dot_config/nvim/lua/coding.lua b/src/dot_config/nvim/lua/coding.lua index 38ecbf9..5900301 100644 --- a/src/dot_config/nvim/lua/coding.lua +++ b/src/dot_config/nvim/lua/coding.lua @@ -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 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 = {}, diff --git a/src/dot_config/private_waybar/private_config b/src/dot_config/private_waybar/private_config new file mode 100644 index 0000000..fbf3742 --- /dev/null +++ b/src/dot_config/private_waybar/private_config @@ -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": "•" + }, + } +} diff --git a/src/dot_config/private_waybar/style.css b/src/dot_config/private_waybar/style.css new file mode 100644 index 0000000..a827083 --- /dev/null +++ b/src/dot_config/private_waybar/style.css @@ -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); +} diff --git a/src/dot_config/qutebrowser/config.py b/src/dot_config/qutebrowser/config.py index 1eaab60..63dcedc 100644 --- a/src/dot_config/qutebrowser/config.py +++ b/src/dot_config/qutebrowser/config.py @@ -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%" diff --git a/src/dot_local/bin/deskutils/executable_notification-sound.sh b/src/dot_local/bin/deskutils/executable_notification-sound.sh index 41068fc..be7b71e 100644 --- a/src/dot_local/bin/deskutils/executable_notification-sound.sh +++ b/src/dot_local/bin/deskutils/executable_notification-sound.sh @@ -9,4 +9,4 @@ if [ "$DUNST_APP_NAME" = "prod" ]; then exit fi -paplay ~/.local/bin/deskutils/notif.mp3 +paplay ~/.local/bin/deskutils/notif.wav