From cc27fdbb64eb0cbcee3baa015cb46cd9dd9a7452 Mon Sep 17 00:00:00 2001 From: Max Hohlfeld Date: Sun, 8 Sep 2024 08:46:12 +0200 Subject: [PATCH] feat: steam flicker and nvim change --- roles/nvim/files/init_pc.lua | 8 +++++++- roles/xmonad/files/xmonad_qwerty.hs | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/roles/nvim/files/init_pc.lua b/roles/nvim/files/init_pc.lua index 36d205c..f546b7c 100644 --- a/roles/nvim/files/init_pc.lua +++ b/roles/nvim/files/init_pc.lua @@ -67,7 +67,7 @@ opt.completeopt = 'menuone,noinsert,noselect' map('n', 'w', 'w', { noremap = true }) map('n', 'q', 'wq', { noremap = true }) -map('n', '', 'let @/ = ""', { noremap = true }) +map('n', '', 'let @/ = ""', { noremap = true }) -- fix interpreting C-I as Tab map('n', '', '', { noremap = true }) @@ -165,6 +165,12 @@ lsp.csharp_ls.setup { cmd = { '/home/max/.dotnet/tools/csharp-ls' } } +lsp.html.setup { + on_attach = on_attach, + capabilities = capabilities, + filetypes = { "html", "htmldjango" } +} + lsp.lua_ls.setup { on_attach = on_attach, capabilities = capabilities, diff --git a/roles/xmonad/files/xmonad_qwerty.hs b/roles/xmonad/files/xmonad_qwerty.hs index ff9a32a..b9fe77e 100644 --- a/roles/xmonad/files/xmonad_qwerty.hs +++ b/roles/xmonad/files/xmonad_qwerty.hs @@ -10,6 +10,7 @@ import XMonad.Hooks.ManageDocks (ToggleStruts(..), avoidStruts, docks) import XMonad.Hooks.SetWMName (setWMName) import XMonad.Hooks.WorkspaceHistory (workspaceHistoryHook) import XMonad.Hooks.OnPropertyChange (onXPropertyChange) +import XMonad.Hooks.FloatConfigureReq (fixSteamFlicker) import XMonad.Layout.Spacing (Spacing, spacingRaw, Border (..)) import XMonad.Layout.LayoutModifier (ModifiedLayout) @@ -251,6 +252,7 @@ myManageHook = composeAll . concat $ myEventHook = mconcat [ onXPropertyChange "WM_NAME" (title =? "Database.kdbx - KeePassXC" <||> title =? "Database.kdbx [Gesperrt] - KeePassXC" --> floating) + , fixSteamFlicker ] where floating = customFloating $ W.RationalRect (1/8) (1/8) (3/4) (3/4)