sway, waybar, nvim, zshrc: small patches
This commit is contained in:
@@ -32,8 +32,12 @@ for _, i in ipairs(servers) do
|
||||
end
|
||||
|
||||
-- LaTeX (build with `:TexlabBuild`)
|
||||
-- Extra config for autocompile
|
||||
-- https://github.com/neovim/nvim-lspconfig/blob/master/lua/lspconfig/server_configurations/texlab.lua
|
||||
lsp.texlab.setup({
|
||||
on_attach = function(client, bufnr)
|
||||
navic.attach(client, bufnr) -- breadcrumbs
|
||||
end,
|
||||
settings = {
|
||||
texlab = {
|
||||
build = {
|
||||
@@ -55,7 +59,7 @@ local opts = {
|
||||
other_hints_prefix = "",
|
||||
},
|
||||
},
|
||||
server = {
|
||||
server = { -- these settings go directly to lsp
|
||||
on_attach = function(client, bufnr)
|
||||
navic.attach(client, bufnr) -- breadcrumbs
|
||||
end,
|
||||
|
||||
@@ -229,6 +229,9 @@ bar {
|
||||
exec syncthing
|
||||
exec swaync
|
||||
exec fcitx5
|
||||
exec nm-applet --indicator
|
||||
exec blueman-applet
|
||||
exec pasystray
|
||||
|
||||
# On-screen progress bar
|
||||
set $WOBSOCK $XDG_RUNTIME_DIR/wob.sock
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
{
|
||||
"layer": "bottom",
|
||||
|
||||
"position": "left",
|
||||
|
||||
"modules-left": [
|
||||
@@ -9,9 +8,9 @@
|
||||
"modules-center": [
|
||||
],
|
||||
"modules-right": [
|
||||
"tray",
|
||||
"battery",
|
||||
"clock#time",
|
||||
"clock#date"
|
||||
],
|
||||
|
||||
|
||||
@@ -37,10 +36,10 @@
|
||||
"states": {
|
||||
"good": 100,
|
||||
"ok": 50,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
"warning": 15,
|
||||
"critical": 10
|
||||
},
|
||||
"format": "{capacity} ",
|
||||
"format": "{capacity}",
|
||||
"format-discharging": "{capacity}",
|
||||
"format-icons": [
|
||||
"", // Icon: battery-full
|
||||
@@ -55,12 +54,12 @@
|
||||
"clock#time": {
|
||||
"interval": 5,
|
||||
"format": "{:%I\n%M}",
|
||||
"tooltip": false,
|
||||
"tooltip-format": "{:%A, %e %B %Y}"
|
||||
},
|
||||
|
||||
"clock#date": {
|
||||
"interval": 10,
|
||||
"format": "{:%a, %e}",
|
||||
"format": "{:%a,%e}",
|
||||
"tooltip-format": "{:%A, %e %B %Y}"
|
||||
},
|
||||
|
||||
|
||||
@@ -86,6 +86,14 @@
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
#battery.charging {
|
||||
border-left: 2px solid @green;
|
||||
}
|
||||
|
||||
#battery.full {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#battery.good {
|
||||
color: @green;
|
||||
}
|
||||
@@ -112,16 +120,12 @@
|
||||
animation-duration: 2s;
|
||||
}
|
||||
|
||||
#battery.charging {
|
||||
}
|
||||
|
||||
#clock.date {
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
#clock.time {
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
/* hack, cause width parameter is bugged */
|
||||
margin-left: 2px;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
@@ -183,11 +187,6 @@
|
||||
color: red;
|
||||
}
|
||||
|
||||
#tray {
|
||||
/* Empty space on the right */
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
color: white;
|
||||
}
|
||||
@@ -205,16 +204,16 @@
|
||||
#workspaces button:hover {
|
||||
box-shadow: inherit;
|
||||
text-shadow: inherit;
|
||||
background: #383838;
|
||||
border: #383838;
|
||||
background: #585858;
|
||||
border: #585858;
|
||||
}
|
||||
|
||||
#workspaces button.focused:hover {
|
||||
border-left: 2px solid @green;
|
||||
background: #383838;
|
||||
background: #585858;
|
||||
}
|
||||
|
||||
#workspaces button.urgent:hover {
|
||||
border-left: 2px solid @red;
|
||||
background: #383838;
|
||||
background: #585858;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
}
|
||||
|
||||
#inner-box {
|
||||
margin: 5px;
|
||||
margin: -5px;
|
||||
border: none;
|
||||
background-color: @bg;
|
||||
}
|
||||
|
||||
@@ -97,13 +97,17 @@ replace() {
|
||||
}
|
||||
|
||||
alias o='xdg-open' # to change a mime use: `xdg-mime default APPLICATION HANDLE`
|
||||
alias con='nmcli con'
|
||||
alias conup='nmcli con up id'
|
||||
alias condown='nmcli con down id'
|
||||
alias truecolor='curl -s https://raw.githubusercontent.com/JohnMorales/dotfiles/master/colors/24-bit-color.sh | bash'
|
||||
alias nssh='SSH_AUTH_SOCK= ssh'
|
||||
alias cpu='watch -n.1 "grep \"^[c]pu MHz\" /proc/cpuinfo"'
|
||||
|
||||
# nmcli
|
||||
alias con='nmcli con'
|
||||
alias conup='nmcli con up id'
|
||||
alias condown='nmcli con down id'
|
||||
alias conscan='nmcli dev wifi'
|
||||
alias conedit='nm-connection-editor'
|
||||
|
||||
# troll
|
||||
alias powershell='clear && PS1="windowsadm@powershell$ " bash'
|
||||
alias mucdai='rm -rf'
|
||||
|
||||
Reference in New Issue
Block a user