Compare commits

..
3 Commits
Author SHA1 Message Date
Henrik Bakken 0acc0b37b7 nvim tweaks 2026-07-03 15:52:03 +02:00
Henrik Bakken c47abe26fe qutebrowser silence TrustedHTML error and handle BankID 2026-07-03 15:51:10 +02:00
Henrik Bakken 900a20a31f sway: try to fix red screen of death 2026-06-15 13:39:18 +02:00
4 changed files with 25 additions and 6 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
gtk-theme=Arc-Dark gtk-theme=Arc-Dark
time-format=%H:%M time-format=%H:%M
start-hidden=1 start-hidden=1
modules=userinfo-module;powerbar-module modules=powerbar-module
[userinfo] [userinfo]
round-image=true round-image=true
+16 -2
View File
@@ -7,6 +7,17 @@ vim.opt.shell = "/usr/bin/zsh"
vim.g.BASH_Ctrl_j = "off" vim.g.BASH_Ctrl_j = "off"
vim.g.BASH_Ctrl_l = "off" vim.g.BASH_Ctrl_l = "off"
vim.opt.clipboard:append("unnamedplus") vim.opt.clipboard:append("unnamedplus")
vim.g.clipboard = {
name = "OSC 52",
copy = {
["+"] = require("vim.ui.clipboard.osc52").copy("+"),
["*"] = require("vim.ui.clipboard.osc52").copy("*"),
},
paste = {
["+"] = require("vim.ui.clipboard.osc52").paste("+"),
["*"] = require("vim.ui.clipboard.osc52").paste("*"),
},
}
vim.opt.cursorline = true vim.opt.cursorline = true
vim.opt.list = true vim.opt.list = true
vim.opt.listchars = { tab = "", trail = "·", extends = "", precedes = "", nbsp = "+" } vim.opt.listchars = { tab = "", trail = "·", extends = "", precedes = "", nbsp = "+" }
@@ -462,8 +473,8 @@ local function makespec_lspconfig()
vim.lsp.enable("clangd") vim.lsp.enable("clangd")
vim.lsp.enable("html") vim.lsp.enable("html")
vim.lsp.enable("lua_ls") vim.lsp.enable("lua_ls")
vim.lsp.enable("ty") -- vim.lsp.enable("ty")
-- vim.lsp.enable("pyrefly") vim.lsp.enable("pyrefly")
-- vim.lsp.enable("pylsp") -- vim.lsp.enable("pylsp")
-- vim.lsp.enable("basedpyright") -- vim.lsp.enable("basedpyright")
vim.lsp.enable("tinymist") vim.lsp.enable("tinymist")
@@ -678,6 +689,7 @@ local function makespec_neotree()
window = { window = {
mappings = { mappings = {
["/"] = false, -- disable fancy and annoying filter, just search instead ["/"] = false, -- disable fancy and annoying filter, just search instead
["z"] = false, -- disable closing of nodes so view can be centered
}, },
}, },
}, },
@@ -1062,6 +1074,8 @@ local function makespec_snacks()
{ "<leader>qd", function() Snacks.bufdelete() end, desc = "Delete Buffer" }, { "<leader>qd", function() Snacks.bufdelete() end, desc = "Delete Buffer" },
{ "<leader>gl", function() Snacks.lazygit() end, desc = "Launch Lazygit" }, { "<leader>gl", function() Snacks.lazygit() end, desc = "Launch Lazygit" },
{ "<leader>.", function() Snacks.scratch.open() end, desc = "Scratch Buffer" }, { "<leader>.", function() Snacks.scratch.open() end, desc = "Scratch Buffer" },
{ "<leader>,", function() Snacks.picker.buffers() end, desc = "Buffers" },
-- find -- find
{ "<M-f>", function() Snacks.picker.git_files() end, desc = "Find Git Files" }, { "<M-f>", function() Snacks.picker.git_files() end, desc = "Find Git Files" },
{ "<leader>fg", function() Snacks.picker.git_files() end, desc = "Find Git Files" }, { "<leader>fg", function() Snacks.picker.git_files() end, desc = "Find Git Files" },
+5
View File
@@ -84,6 +84,10 @@ c.content.blocking.adblock.lists = [
"https://easylist.to/easylist/easyprivacy.txt", "https://easylist.to/easylist/easyprivacy.txt",
"https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=1&mimetype=plaintext", "https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=1&mimetype=plaintext",
] ]
c.content.javascript.log_message.excludes = {
"userscript:_qute_js": ["*TrustedHTML*"],
"userscript:_qute_stylesheet": ["*Refused to apply inline style because it violates the following Content Security Policy directive: *"]
}
c.completion.web_history.max_items = 10000 c.completion.web_history.max_items = 10000
c.completion.height = "100%" c.completion.height = "100%"
c.confirm_quit = ["multiple-tabs", "downloads"] c.confirm_quit = ["multiple-tabs", "downloads"]
@@ -144,6 +148,7 @@ c.input.insert_mode.plugins = True
c.messages.timeout = 5000 c.messages.timeout = 5000
c.qt.force_platform = "wayland" c.qt.force_platform = "wayland"
c.qt.highdpi = True c.qt.highdpi = True
c.qt.args = ["disable-features=WebAuth"] # makes BankID work
c.scrolling.bar = "always" c.scrolling.bar = "always"
c.scrolling.smooth = False c.scrolling.smooth = False
c.session.lazy_restore = False c.session.lazy_restore = False
+3 -3
View File
@@ -286,10 +286,10 @@ exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
# Idle configuration # Idle configuration
exec_always swayidle -w \ exec swayidle -w \
timeout 1200 'gtklock -d' \ timeout 1200 'pgrep -x gtklock || gtklock -d' \
timeout 2400 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ timeout 2400 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
before-sleep 'gtklock -d' \ before-sleep 'pgrep -x gtklock || gtklock -d' \
after-resume 'swaymsg reload' \ after-resume 'swaymsg reload' \
idlehint 240 idlehint 240