diff --git a/roles/nvim/files/init_pc.lua b/roles/nvim/files/init_pc.lua index 4f8c0bb..33d2156 100644 --- a/roles/nvim/files/init_pc.lua +++ b/roles/nvim/files/init_pc.lua @@ -167,7 +167,7 @@ for _, server in ipairs(servers) do } end -lsp.sumneko_lua.setup { +lsp.lua_ls.setup { on_attach = on_attach, capabilities = capabilities, settings = { diff --git a/roles/xmonad/files/xmonad_qwerty.hs b/roles/xmonad/files/xmonad_qwerty.hs index 85d7469..875fc05 100644 --- a/roles/xmonad/files/xmonad_qwerty.hs +++ b/roles/xmonad/files/xmonad_qwerty.hs @@ -23,6 +23,7 @@ import XMonad.Actions.TopicSpace import XMonad.Prompt import XMonad.Prompt.FuzzyMatch import XMonad.Prompt.Workspace +import XMonad.Prompt.Shell import XMonad.Hooks.WorkspaceHistory (workspaceHistoryHook) import XMonad.Hooks.DynamicProperty import qualified XMonad.StackSet as W @@ -97,17 +98,18 @@ myWorkSpacePrompt c job = do ws <- gets (W.workspaces . windowset) topicPrompt :: XPConfig topicPrompt = def - { historySize = 20 -- No history in the prompt. + { historySize = 0 -- No history in the prompt. , fgColor = "#dcdccc" , fgHLight = "#3f3f3f" , bgHLight = "#dca3a3" , alwaysHighlight = True -- Current best match , font = "xft:Iosevka-11" , height = 25 - , position = Top + , position = CenteredAt 0.45 0.3 , promptBorderWidth = myBorderWidth -- Fit in with rest of config , borderColor = "#dca3a3" - , maxComplRows = Just 5 -- Max rows to show in completion window + , maxComplRows = Just 10 -- Max rows to show in completion window + , maxComplColumns = Just 1 , searchPredicate = fuzzyMatch , sorter = fuzzySort } @@ -130,6 +132,7 @@ myAdditionalKeys = -- dmenu prompts , ("M-", spawn "dm-recent-aliases") + , ("M-p p", shellPrompt topicPrompt) , ("M-p s", spawn "dm-screenshot") , ("M-p k", spawn "dm-kill") @@ -252,7 +255,7 @@ main = do ppCurrent = xmobarColor "#dca3a3" "" . wrap "[ " " ]", ppHidden = xmobarColor "#8cd0d3" "", ppLayout = xmobarColor "#8c8cbc" "", - ppTitle = xmobarColor "#ffcfaf" "" . shorten 100, + ppTitle = xmobarColor "#ffcfaf" "" . shorten 90, ppSep = " | ", ppOutput = hPutStrLn xmproc }), diff --git a/roles/xmonad/tasks/main.yml b/roles/xmonad/tasks/main.yml index ef65436..763cbb1 100644 --- a/roles/xmonad/tasks/main.yml +++ b/roles/xmonad/tasks/main.yml @@ -9,6 +9,8 @@ - dunst - redshift - cmus + - lightdm + - lightdm-gtk-greeter state: present become: true tags: pc @@ -78,3 +80,9 @@ - { src: xmonad_qwerty.hs, dest: ~/.config/xmonad/xmonad.hs } - { src: xmobarrc_qwerty, dest: ~/.config/xmobar/xmobarrc } tags: qwerty + +- name: Enable Lightdm + ansible.builtin.service: + name: lightdm + state: started + enabled: true