Updated script

This commit is contained in:
Christoffer Martinsson 2025-05-12 16:50:27 +02:00
parent ead948834f
commit b3497e71e7
2 changed files with 12 additions and 0 deletions

View File

@ -21,6 +21,7 @@ exec-once = waybar
exec-once = systemctl --user start hypridle
exec-once = systemctl --user start sunshine
exec-once = [workspace 1] $terminal
#############################
### ENVIRONMENT VARIABLES ###
@ -323,6 +324,9 @@ windowrulev2 = workspace emptyn, initialTitle:^(.*PrusaSlicer.*)$
# FreeCad
windowrulev2 = workspace emptyn, initialTitle:^(FreeCAD.*)$
# Steam
windowrulev2 = workspace emptyn, initialTitle:^(.*Steam.*)$
# Ignore maximize requests from apps. You'll probably like this.
windowrulev2 = suppressevent maximize, class:.*

View File

@ -65,6 +65,14 @@ vim.api.nvim_create_autocmd(
{ "InsertEnter", "WinLeave" },
{ pattern = "*", command = "set nocursorline", group = cursorLineGrp }
)
vim.api.nvim_create_autocmd(
{ "InsertLeave", "FocusGained" },
{ pattern = "*", command = "set cursorline", group = cursorLineGrp }
)
vim.api.nvim_create_autocmd(
{ "InsertEnter", "FocusLost" },
{ pattern = "*", command = "set nocursorline", group = cursorLineGrp }
)
-- Auto format on save
vim.cmd [[autocmd BufWritePre * lua vim.lsp.buf.format()]]