feat: add xmonad prompt; use newer nvim lua ls
This commit is contained in:
parent
a49d3f31e6
commit
521ffd29c9
@ -167,7 +167,7 @@ for _, server in ipairs(servers) do
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
lsp.sumneko_lua.setup {
|
lsp.lua_ls.setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -23,6 +23,7 @@ import XMonad.Actions.TopicSpace
|
|||||||
import XMonad.Prompt
|
import XMonad.Prompt
|
||||||
import XMonad.Prompt.FuzzyMatch
|
import XMonad.Prompt.FuzzyMatch
|
||||||
import XMonad.Prompt.Workspace
|
import XMonad.Prompt.Workspace
|
||||||
|
import XMonad.Prompt.Shell
|
||||||
import XMonad.Hooks.WorkspaceHistory (workspaceHistoryHook)
|
import XMonad.Hooks.WorkspaceHistory (workspaceHistoryHook)
|
||||||
import XMonad.Hooks.DynamicProperty
|
import XMonad.Hooks.DynamicProperty
|
||||||
import qualified XMonad.StackSet as W
|
import qualified XMonad.StackSet as W
|
||||||
@ -97,17 +98,18 @@ myWorkSpacePrompt c job = do ws <- gets (W.workspaces . windowset)
|
|||||||
|
|
||||||
topicPrompt :: XPConfig
|
topicPrompt :: XPConfig
|
||||||
topicPrompt = def
|
topicPrompt = def
|
||||||
{ historySize = 20 -- No history in the prompt.
|
{ historySize = 0 -- No history in the prompt.
|
||||||
, fgColor = "#dcdccc"
|
, fgColor = "#dcdccc"
|
||||||
, fgHLight = "#3f3f3f"
|
, fgHLight = "#3f3f3f"
|
||||||
, bgHLight = "#dca3a3"
|
, bgHLight = "#dca3a3"
|
||||||
, alwaysHighlight = True -- Current best match
|
, alwaysHighlight = True -- Current best match
|
||||||
, font = "xft:Iosevka-11"
|
, font = "xft:Iosevka-11"
|
||||||
, height = 25
|
, height = 25
|
||||||
, position = Top
|
, position = CenteredAt 0.45 0.3
|
||||||
, promptBorderWidth = myBorderWidth -- Fit in with rest of config
|
, promptBorderWidth = myBorderWidth -- Fit in with rest of config
|
||||||
, borderColor = "#dca3a3"
|
, 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
|
, searchPredicate = fuzzyMatch
|
||||||
, sorter = fuzzySort
|
, sorter = fuzzySort
|
||||||
}
|
}
|
||||||
@ -130,6 +132,7 @@ myAdditionalKeys =
|
|||||||
|
|
||||||
-- dmenu prompts
|
-- dmenu prompts
|
||||||
, ("M-<Return>", spawn "dm-recent-aliases")
|
, ("M-<Return>", spawn "dm-recent-aliases")
|
||||||
|
, ("M-p p", shellPrompt topicPrompt)
|
||||||
, ("M-p s", spawn "dm-screenshot")
|
, ("M-p s", spawn "dm-screenshot")
|
||||||
, ("M-p k", spawn "dm-kill")
|
, ("M-p k", spawn "dm-kill")
|
||||||
|
|
||||||
@ -252,7 +255,7 @@ main = do
|
|||||||
ppCurrent = xmobarColor "#dca3a3" "" . wrap "[ " " ]",
|
ppCurrent = xmobarColor "#dca3a3" "" . wrap "[ " " ]",
|
||||||
ppHidden = xmobarColor "#8cd0d3" "",
|
ppHidden = xmobarColor "#8cd0d3" "",
|
||||||
ppLayout = xmobarColor "#8c8cbc" "",
|
ppLayout = xmobarColor "#8c8cbc" "",
|
||||||
ppTitle = xmobarColor "#ffcfaf" "" . shorten 100,
|
ppTitle = xmobarColor "#ffcfaf" "" . shorten 90,
|
||||||
ppSep = " | ",
|
ppSep = " | ",
|
||||||
ppOutput = hPutStrLn xmproc
|
ppOutput = hPutStrLn xmproc
|
||||||
}),
|
}),
|
||||||
|
@ -9,6 +9,8 @@
|
|||||||
- dunst
|
- dunst
|
||||||
- redshift
|
- redshift
|
||||||
- cmus
|
- cmus
|
||||||
|
- lightdm
|
||||||
|
- lightdm-gtk-greeter
|
||||||
state: present
|
state: present
|
||||||
become: true
|
become: true
|
||||||
tags: pc
|
tags: pc
|
||||||
@ -78,3 +80,9 @@
|
|||||||
- { src: xmonad_qwerty.hs, dest: ~/.config/xmonad/xmonad.hs }
|
- { src: xmonad_qwerty.hs, dest: ~/.config/xmonad/xmonad.hs }
|
||||||
- { src: xmobarrc_qwerty, dest: ~/.config/xmobar/xmobarrc }
|
- { src: xmobarrc_qwerty, dest: ~/.config/xmobar/xmobarrc }
|
||||||
tags: qwerty
|
tags: qwerty
|
||||||
|
|
||||||
|
- name: Enable Lightdm
|
||||||
|
ansible.builtin.service:
|
||||||
|
name: lightdm
|
||||||
|
state: started
|
||||||
|
enabled: true
|
||||||
|
Loading…
Reference in New Issue
Block a user