mirror of https://github.com/mitchell/dotfiles.git
Reorganize and update nvim config, and refactor polybar config
This commit is contained in:
parent
a2b223784f
commit
db048db3c0
|
@ -26,13 +26,12 @@ end
|
||||||
~/.fehbg &
|
~/.fehbg &
|
||||||
|
|
||||||
if test $DISPLAY = ":0"
|
if test $DISPLAY = ":0"
|
||||||
killall -q polybar cbatticon pasystray barrier barrierc
|
killall -q polybar pasystray barrier barrierc
|
||||||
barrier &
|
barrier &
|
||||||
keepassxc &
|
keepassxc &
|
||||||
end
|
end
|
||||||
|
|
||||||
polybar m-bar &
|
polybar m-bar &
|
||||||
cbatticon &
|
|
||||||
pasystray &
|
pasystray &
|
||||||
|
|
||||||
bspc monitor -d I II III IV V VI VII
|
bspc monitor -d I II III IV V VI VII
|
||||||
|
|
|
@ -54,10 +54,6 @@ let g:ale_completion_enabled = 0
|
||||||
|
|
||||||
let g:pencil#map#suspend_af = 'K'
|
let g:pencil#map#suspend_af = 'K'
|
||||||
|
|
||||||
let g:lightline = {
|
|
||||||
\ 'colorscheme': 'wombat',
|
|
||||||
\ }
|
|
||||||
|
|
||||||
let g:ale_linters = {
|
let g:ale_linters = {
|
||||||
\ 'javascript': ['eslint', 'stylelint'],
|
\ 'javascript': ['eslint', 'stylelint'],
|
||||||
\ 'typescript': ['eslint', 'stylelint'],
|
\ 'typescript': ['eslint', 'stylelint'],
|
||||||
|
|
|
@ -4,21 +4,15 @@ vim.call("plug#begin")
|
||||||
-- Contains lots of sensible configurations, which I have in turn omitted from here
|
-- Contains lots of sensible configurations, which I have in turn omitted from here
|
||||||
plug("tpope/vim-sensible")
|
plug("tpope/vim-sensible")
|
||||||
|
|
||||||
|
plug("w0rp/ale")
|
||||||
plug("tpope/vim-eunuch")
|
plug("tpope/vim-eunuch")
|
||||||
plug("tpope/vim-surround")
|
plug("tpope/vim-surround")
|
||||||
plug("tpope/vim-endwise")
|
plug("tpope/vim-endwise")
|
||||||
plug("itchyny/lightline.vim")
|
|
||||||
plug("edkolev/tmuxline.vim")
|
plug("edkolev/tmuxline.vim")
|
||||||
plug("airblade/vim-gitgutter")
|
plug("airblade/vim-gitgutter")
|
||||||
plug("reedes/vim-pencil", { ["on"] = { "HardPencil", "SoftPencil" } })
|
plug("reedes/vim-pencil", { ["on"] = { "HardPencil", "SoftPencil" } })
|
||||||
|
|
||||||
plug("w0rp/ale")
|
|
||||||
plug("tpope/vim-fugitive", { ["on"] = { "G", "Git" }, ["for"] = "gitcommit" })
|
plug("tpope/vim-fugitive", { ["on"] = { "G", "Git" }, ["for"] = "gitcommit" })
|
||||||
plug("mileszs/ack.vim", { ["on"] = "Ack" })
|
|
||||||
|
|
||||||
plug("nvim-treesitter/nvim-treesitter", { ["do"] = ":TSUpdate" })
|
|
||||||
plug("nvim-treesitter/nvim-treesitter-context")
|
|
||||||
plug("BurntSushi/ripgrep")
|
|
||||||
plug("MunifTanjim/nui.nvim")
|
plug("MunifTanjim/nui.nvim")
|
||||||
plug("rcarriga/nvim-notify")
|
plug("rcarriga/nvim-notify")
|
||||||
plug("nvim-lua/plenary.nvim")
|
plug("nvim-lua/plenary.nvim")
|
||||||
|
@ -31,13 +25,14 @@ plug("folke/zen-mode.nvim")
|
||||||
plug("folke/twilight.nvim")
|
plug("folke/twilight.nvim")
|
||||||
plug("neovim/nvim-lspconfig")
|
plug("neovim/nvim-lspconfig")
|
||||||
plug("ellisonleao/gruvbox.nvim")
|
plug("ellisonleao/gruvbox.nvim")
|
||||||
|
plug("nvim-lualine/lualine.nvim")
|
||||||
plug("nvim-neo-tree/neo-tree.nvim")
|
plug("nvim-neo-tree/neo-tree.nvim")
|
||||||
plug("nvim-telescope/telescope.nvim")
|
|
||||||
plug("simrat39/symbols-outline.nvim")
|
|
||||||
plug("nvim-telescope/telescope-fzf-native.nvim", {
|
|
||||||
["do"] = "cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build",
|
|
||||||
})
|
|
||||||
plug("pmizio/typescript-tools.nvim")
|
plug("pmizio/typescript-tools.nvim")
|
||||||
|
plug("simrat39/symbols-outline.nvim")
|
||||||
|
plug("nvim-telescope/telescope.nvim")
|
||||||
|
plug("nvim-telescope/telescope-fzf-native.nvim", { ["do"] = "make" })
|
||||||
|
plug("nvim-treesitter/nvim-treesitter", { ["do"] = ":TSUpdate" })
|
||||||
|
plug("nvim-treesitter/nvim-treesitter-context")
|
||||||
|
|
||||||
vim.call("plug#end")
|
vim.call("plug#end")
|
||||||
|
|
||||||
|
@ -49,7 +44,8 @@ require("gruvbox").setup({
|
||||||
transparent_mode = true,
|
transparent_mode = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
require("twilight").setup()
|
require("lualine").setup()
|
||||||
|
|
||||||
require("zen-mode").setup({
|
require("zen-mode").setup({
|
||||||
window = {
|
window = {
|
||||||
backdrop = 1,
|
backdrop = 1,
|
||||||
|
@ -58,12 +54,15 @@ require("zen-mode").setup({
|
||||||
require("symbols-outline").setup({
|
require("symbols-outline").setup({
|
||||||
autofold_depth = 2,
|
autofold_depth = 2,
|
||||||
})
|
})
|
||||||
require("leap").add_default_mappings()
|
require("leap").create_default_mappings()
|
||||||
|
|
||||||
require("notify").setup({
|
require("notify").setup({
|
||||||
background_colour = "#000000",
|
background_colour = "#000000",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
require("telescope").setup()
|
||||||
|
require("telescope").load_extension("fzf")
|
||||||
|
|
||||||
require("noice").setup({
|
require("noice").setup({
|
||||||
lsp = {
|
lsp = {
|
||||||
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
|
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
|
||||||
|
@ -86,7 +85,6 @@ require("noice").setup({
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
require("treesitter-context").setup()
|
|
||||||
require("nvim-treesitter.configs").setup({
|
require("nvim-treesitter.configs").setup({
|
||||||
-- A list of parser names, or "all" (the four listed parsers should always be installed)
|
-- A list of parser names, or "all" (the four listed parsers should always be installed)
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
|
|
|
@ -52,14 +52,14 @@ module-margin-left = 0
|
||||||
module-margin-right = 2
|
module-margin-right = 2
|
||||||
|
|
||||||
font-0 = IBM Plex Sans:size=10;3
|
font-0 = IBM Plex Sans:size=10;3
|
||||||
font-1 = JetBrains Mono:size=11;3
|
font-1 = JetBrainsMono Nerd Font:size=11;3
|
||||||
#font-2 = JetBrains Mono:pixelsize=10;1
|
#font-2 = JetBrains Mono:pixelsize=10;1
|
||||||
#font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
|
#font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
|
||||||
#font-2 = siji:pixelsize=10;1
|
#font-2 = siji:pixelsize=10;1
|
||||||
|
|
||||||
modules-left = bspwm
|
modules-left = bspwm
|
||||||
modules-center = xwindow
|
modules-center = xwindow
|
||||||
modules-right = pulseaudio cpu memory filesystem eth date xkeyboard powermenu
|
modules-right = pulseaudio cpu memory temperature filesystem battery xkeyboard date powermenu
|
||||||
|
|
||||||
tray-position = right
|
tray-position = right
|
||||||
tray-padding = 2
|
tray-padding = 2
|
||||||
|
@ -87,7 +87,7 @@ label = %title:0:30:...%
|
||||||
type = internal/xkeyboard
|
type = internal/xkeyboard
|
||||||
blacklist-0 = num lock
|
blacklist-0 = num lock
|
||||||
|
|
||||||
format-prefix = " "
|
format-prefix = "kb "
|
||||||
format-prefix-foreground = ${colors.foreground-alt}
|
format-prefix-foreground = ${colors.foreground-alt}
|
||||||
format-prefix-underline = ${colors.secondary}
|
format-prefix-underline = ${colors.secondary}
|
||||||
|
|
||||||
|
@ -133,19 +133,6 @@ label-empty-padding = 4
|
||||||
; Separator in between workspaces
|
; Separator in between workspaces
|
||||||
; label-separator = |
|
; label-separator = |
|
||||||
|
|
||||||
[module/mpd]
|
|
||||||
type = internal/mpd
|
|
||||||
format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
|
|
||||||
|
|
||||||
icon-prev =
|
|
||||||
icon-stop =
|
|
||||||
icon-play =
|
|
||||||
icon-pause =
|
|
||||||
icon-next =
|
|
||||||
|
|
||||||
label-song-maxlen = 25
|
|
||||||
label-song-ellipsis = true
|
|
||||||
|
|
||||||
[module/xbacklight]
|
[module/xbacklight]
|
||||||
type = internal/xbacklight
|
type = internal/xbacklight
|
||||||
|
|
||||||
|
@ -171,7 +158,7 @@ card = intel_backlight
|
||||||
[module/cpu]
|
[module/cpu]
|
||||||
type = internal/cpu
|
type = internal/cpu
|
||||||
interval = 2
|
interval = 2
|
||||||
format-prefix = " "
|
format-prefix = "cpu "
|
||||||
format-prefix-foreground = ${colors.foreground-alt}
|
format-prefix-foreground = ${colors.foreground-alt}
|
||||||
format-underline = ${colors.alert}
|
format-underline = ${colors.alert}
|
||||||
label = %percentage:2%%
|
label = %percentage:2%%
|
||||||
|
@ -179,7 +166,7 @@ label = %percentage:2%%
|
||||||
[module/memory]
|
[module/memory]
|
||||||
type = internal/memory
|
type = internal/memory
|
||||||
interval = 2
|
interval = 2
|
||||||
format-prefix = " "
|
format-prefix = "mem "
|
||||||
format-prefix-foreground = ${colors.foreground-alt}
|
format-prefix-foreground = ${colors.foreground-alt}
|
||||||
format-underline = ${colors.alert}
|
format-underline = ${colors.alert}
|
||||||
label = %percentage_used%%
|
label = %percentage_used%%
|
||||||
|
@ -190,7 +177,7 @@ interface = wlan0
|
||||||
interval = 3.0
|
interval = 3.0
|
||||||
|
|
||||||
format-connected = <ramp-signal> <label-connected>
|
format-connected = <ramp-signal> <label-connected>
|
||||||
format-connected-underline = #9f78e1
|
format-connected-underline = ${colors.secondary}
|
||||||
label-connected = %essid%
|
label-connected = %essid%
|
||||||
|
|
||||||
format-disconnected =
|
format-disconnected =
|
||||||
|
@ -208,11 +195,11 @@ ramp-signal-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
[module/eth]
|
[module/eth]
|
||||||
type = internal/network
|
type = internal/network
|
||||||
interface = enp125s0u1u4
|
interface = enp5s0f4u2
|
||||||
interval = 3.0
|
interval = 3.0
|
||||||
|
|
||||||
format-connected-underline = ${colors.secondary}
|
format-connected-underline = ${colors.secondary}
|
||||||
format-connected-prefix = " "
|
format-connected-prefix = "eth "
|
||||||
format-connected-prefix-foreground = ${colors.foreground-alt}
|
format-connected-prefix-foreground = ${colors.foreground-alt}
|
||||||
label-connected = %local_ip%
|
label-connected = %local_ip%
|
||||||
|
|
||||||
|
@ -232,9 +219,9 @@ date-alt = " %Y-%m-%d"
|
||||||
time = %H:%M
|
time = %H:%M
|
||||||
time-alt = %H:%M:%S
|
time-alt = %H:%M:%S
|
||||||
|
|
||||||
format-prefix =
|
format-prefix = ""
|
||||||
format-prefix-foreground = ${colors.foreground-alt}
|
format-prefix-foreground = ${colors.foreground-alt}
|
||||||
format-underline = #98971a
|
format-underline = ${colors.secondary}
|
||||||
|
|
||||||
label = %date% %time%
|
label = %date% %time%
|
||||||
|
|
||||||
|
@ -254,7 +241,7 @@ bar-volume-foreground-1 = ${colors.secondary}
|
||||||
bar-volume-foreground-2 = ${colors.secondary}
|
bar-volume-foreground-2 = ${colors.secondary}
|
||||||
bar-volume-foreground-3 = ${colors.secondary}
|
bar-volume-foreground-3 = ${colors.secondary}
|
||||||
bar-volume-foreground-4 = ${colors.secondary}
|
bar-volume-foreground-4 = ${colors.secondary}
|
||||||
bar-volume-foreground-5 = #f5a70a
|
bar-volume-foreground-5 = ${colors.orange}
|
||||||
bar-volume-foreground-6 = ${colors.alert}
|
bar-volume-foreground-6 = ${colors.alert}
|
||||||
bar-volume-gradient = false
|
bar-volume-gradient = false
|
||||||
bar-volume-indicator = |
|
bar-volume-indicator = |
|
||||||
|
@ -265,49 +252,23 @@ bar-volume-empty = ─
|
||||||
bar-volume-empty-font = 2
|
bar-volume-empty-font = 2
|
||||||
bar-volume-empty-foreground = ${colors.foreground-alt}
|
bar-volume-empty-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
[module/alsa]
|
|
||||||
type = internal/alsa
|
|
||||||
|
|
||||||
format-volume = <label-volume> <bar-volume>
|
|
||||||
label-volume = VOL
|
|
||||||
label-volume-foreground = ${root.foreground}
|
|
||||||
|
|
||||||
format-muted-prefix = " "
|
|
||||||
format-muted-foreground = ${colors.foreground-alt}
|
|
||||||
label-muted = sound muted
|
|
||||||
|
|
||||||
bar-volume-width = 10
|
|
||||||
bar-volume-foreground-0 = #55aa55
|
|
||||||
bar-volume-foreground-1 = #55aa55
|
|
||||||
bar-volume-foreground-2 = #55aa55
|
|
||||||
bar-volume-foreground-3 = #55aa55
|
|
||||||
bar-volume-foreground-4 = #55aa55
|
|
||||||
bar-volume-foreground-5 = #f5a70a
|
|
||||||
bar-volume-foreground-6 = #ff5555
|
|
||||||
bar-volume-gradient = false
|
|
||||||
bar-volume-indicator = |
|
|
||||||
bar-volume-indicator-font = 2
|
|
||||||
bar-volume-fill = ─
|
|
||||||
bar-volume-fill-font = 2
|
|
||||||
bar-volume-empty = ─
|
|
||||||
bar-volume-empty-font = 2
|
|
||||||
bar-volume-empty-foreground = ${colors.foreground-alt}
|
|
||||||
|
|
||||||
[module/battery]
|
[module/battery]
|
||||||
type = internal/battery
|
type = internal/battery
|
||||||
battery = BAT0
|
battery = BAT0
|
||||||
adapter = ADP1
|
adapter = ADP1
|
||||||
full-at = 98
|
full-at = 98
|
||||||
|
|
||||||
format-charging = <animation-charging> <label-charging>
|
format-charging-prefix = "bat "
|
||||||
format-charging-underline = #ffb52a
|
format-charging-prefix-foreground = ${colors.foreground-alt}
|
||||||
|
format-charging-underline = ${colors.secondary}
|
||||||
|
|
||||||
format-discharging = <animation-discharging> <label-discharging>
|
format-discharging-prefix = ${self.format-charging-prefix}
|
||||||
format-discharging-underline = ${self.format-charging-underline}
|
format-discharging-prefix-foreground = ${colors.foreground-alt}
|
||||||
|
format-discharging-underline = ${colors.orange}
|
||||||
|
|
||||||
format-full-prefix = " "
|
format-full-prefix = ${self.format-charging-prefix}
|
||||||
format-full-prefix-foreground = ${colors.foreground-alt}
|
format-full-prefix-foreground = ${colors.foreground-alt}
|
||||||
format-full-underline = ${self.format-charging-underline}
|
format-full-underline = ${colors.secondary}
|
||||||
|
|
||||||
ramp-capacity-0 =
|
ramp-capacity-0 =
|
||||||
ramp-capacity-1 =
|
ramp-capacity-1 =
|
||||||
|
@ -332,13 +293,13 @@ thermal-zone = 0
|
||||||
warn-temperature = 60
|
warn-temperature = 60
|
||||||
|
|
||||||
format = <ramp> <label>
|
format = <ramp> <label>
|
||||||
format-underline = #f50a4d
|
format-underline = ${colors.orange}
|
||||||
format-warn = <ramp> <label-warn>
|
format-warn = <ramp> <label-warn>
|
||||||
format-warn-underline = ${self.format-underline}
|
format-warn-underline = ${self.format-underline}
|
||||||
|
|
||||||
label = %temperature-c%
|
label = %temperature-c%
|
||||||
label-warn = %temperature-c%
|
label-warn = %temperature-c%
|
||||||
label-warn-foreground = ${colors.secondary}
|
label-warn-foreground = ${colors.alert}
|
||||||
|
|
||||||
ramp-0 =
|
ramp-0 =
|
||||||
ramp-1 =
|
ramp-1 =
|
||||||
|
|
Loading…
Reference in New Issue