auto refresh lualine on cursor move

This commit is contained in:
2025-05-25 23:16:46 +05:00
parent c6dedd6a9f
commit 5677a3d5dc
2 changed files with 3 additions and 0 deletions

View File

@ -38,3 +38,5 @@ require('lualine').setup {
inactive_winbar = {},
extensions = {}
}
vim.api.nvim_create_autocmd('CursorMoved', {callback=require('lualine').refresh})

View File

@ -152,6 +152,7 @@ bindsym --to-code $mod+o resize grow width 5ppt
# special keys to adjust volume via pulseaudio
bindsym --to-code $mod+Shift+bracketleft exec playerctl -p mpd volume 0.05-
bindsym --to-code $mod+Shift+bracketright exec playerctl -p mpd volume 0.05+
bindsym --to-code $mod+Shift+y exec playerctl -p mpd shuffle Toggle
bindsym --to-code --locked XF86AudioMute exec pactl set-sink-mute \@DEFAULT_SINK@ toggle
bindsym --to-code --locked XF86AudioLowerVolume exec pactl set-sink-volume \@DEFAULT_SINK@ -5%