add i3lock wrapper script for DPMS, fix config -> setup for lsp-null usage in nvim, and add vim fugitive
This commit is contained in:
parent
542efacba9
commit
4a4721dbcc
4 changed files with 21 additions and 2 deletions
|
@ -11,7 +11,7 @@ exec --no-startup-id nm-applet
|
||||||
exec --no-startup-id blueman-applet
|
exec --no-startup-id blueman-applet
|
||||||
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
|
# 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.
|
# 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
|
# background
|
||||||
exec --no-startup-id ~/.fehbg
|
exec --no-startup-id ~/.fehbg
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@ local on_attach = function(client, bufnr)
|
||||||
null_ls.builtins.formatting.stylua,
|
null_ls.builtins.formatting.stylua,
|
||||||
}
|
}
|
||||||
|
|
||||||
null_ls.config({sources = sources })
|
null_ls.setup({sources = sources })
|
||||||
end
|
end
|
||||||
|
|
||||||
local lspServers = {
|
local lspServers = {
|
||||||
|
|
|
@ -27,6 +27,8 @@ require "paq" {
|
||||||
|
|
||||||
"echasnovski/mini.nvim"; -- bunch of good small plugins: whitespace, buffer layout, commenting, surround, etc
|
"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
|
{"nvim-treesitter/nvim-treesitter", run=TSUpdate}; -- nice and quick syntax tree
|
||||||
|
|
||||||
"lukas-reineke/indent-blankline.nvim"; -- pretty visualization of line indents
|
"lukas-reineke/indent-blankline.nvim"; -- pretty visualization of line indents
|
||||||
|
|
17
home/bin/i3lock
Normal file
17
home/bin/i3lock
Normal 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
|
Loading…
Reference in a new issue