aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/nvim/lua/plugins.lua4
-rw-r--r--config/systemd/user/waybar.service8
-rwxr-xr-xinstall1
m---------private0
-rw-r--r--profile9
5 files changed, 20 insertions, 2 deletions
diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua
index ce54ce6..7f92112 100644
--- a/config/nvim/lua/plugins.lua
+++ b/config/nvim/lua/plugins.lua
@@ -114,8 +114,8 @@ require("packer").startup(function(use)
for _, result in ipairs(decoded.results) do
if result.line ~= nil then
table.insert(diagnostics, {
- lnum = result.line,
- end_lnum = result.line,
+ lnum = result.line - 1,
+ end_lnum = result.line - 1,
col = result.column,
end_col = result.endColumn,
severity = vim.diagnostic.severity.HINT,
diff --git a/config/systemd/user/waybar.service b/config/systemd/user/waybar.service
new file mode 100644
index 0000000..110ab83
--- /dev/null
+++ b/config/systemd/user/waybar.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=Waybar
+
+[Service]
+ExecStart="/run/current-system/sw/bin/waybar"
+
+[Install]
+WantedBy="graphical-session.target"
diff --git a/install b/install
index c454b0b..209081c 100755
--- a/install
+++ b/install
@@ -122,6 +122,7 @@ if ask "desktop" "Install desktop"; then
inst config/swaylock/ ~/.config/swaylock
inst config/swayidle/ ~/.config/swayidle
inst config/wofi/ ~/.config/wofi
+ inst config/systemd/user/waybar.service ~/.config/systemd/user/waybar.service
[ -f "private/kanshi/$(hostname)" ] &&
inst "private/kanshi/$(hostname)" ~/.config/kanshi/config
inst config/xdg-desktop-portal-wlr/ ~/.config/xdg-desktop-portal-wlr
diff --git a/private b/private
-Subproject b0c7e860ee85a97ff0939f16b34574b753a6bb8
+Subproject ff5208fa782fb6026c15186d0dfd532a370b335
diff --git a/profile b/profile
index 0b185a7..99401e1 100644
--- a/profile
+++ b/profile
@@ -19,6 +19,15 @@ for profile in "$HOME"/.nix-profile/etc/profile.d/*; do
source "$profile"
done
+# GLab
+if command -v glab >/dev/null; then
+ if [[ -n "${BASH_VERSINFO:-}" ]]; then
+ source <(glab completion -s bash)
+ elif [[ -n "${ZSH_VERSION:-}" ]]; then
+ source <(glab completion -s zsh)
+ compdef _glab glab
+ fi
+fi
# Rest of the profile run only if login is from linux console
[[ "$(tty)" != /dev/tty* ]] && return