add i3lock wrapper script for DPMS, fix config -> setup for lsp-null usage in nvim, and add vim fugitive

This commit is contained in:
Tony Blyler 2021-12-16 09:32:48 -05:00
parent 542efacba9
commit 4a4721dbcc
4 changed files with 21 additions and 2 deletions

View file

@ -11,7 +11,7 @@ exec --no-startup-id nm-applet
exec --no-startup-id blueman-applet
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock -c 000000 --nofork
exec --no-startup-id xss-lock --transfer-sleep-lock -- ~/bin/i3lock
# background
exec --no-startup-id ~/.fehbg

View file

@ -59,7 +59,7 @@ local on_attach = function(client, bufnr)
null_ls.builtins.formatting.stylua,
}
null_ls.config({sources = sources })
null_ls.setup({sources = sources })
end
local lspServers = {

View file

@ -27,6 +27,8 @@ require "paq" {
"echasnovski/mini.nvim"; -- bunch of good small plugins: whitespace, buffer layout, commenting, surround, etc
"tpope/vim-fugitive"; -- __the__ git plugin
{"nvim-treesitter/nvim-treesitter", run=TSUpdate}; -- nice and quick syntax tree
"lukas-reineke/indent-blankline.nvim"; -- pretty visualization of line indents

17
home/bin/i3lock Normal file
View file

@ -0,0 +1,17 @@
#!/bin/bash
set -euo pipefail
revert() {
# disable DPMS
xset dpms 0 0 0 0
}
# revert DPMS on script exit
trap revert EXIT
# turn off screen after 5 seconds
xset +dpms dpms 5 5 5
i3lock --nofork -c 000000
revert