sync iluminator
This commit is contained in:
parent
00149ec272
commit
e0a2aa986f
3 changed files with 142 additions and 142 deletions
|
@ -56,7 +56,7 @@ hc --idle | {
|
||||||
#count-mails;
|
#count-mails;
|
||||||
#charge=$(battery | awk '{print $2}')
|
#charge=$(battery | awk '{print $2}')
|
||||||
while true ; do
|
while true ; do
|
||||||
res=
|
|
||||||
### prepare by monitor tags displaying
|
### prepare by monitor tags displaying
|
||||||
for monitor in "${monitors[@]}" ; do
|
for monitor in "${monitors[@]}" ; do
|
||||||
output_tags[$monitor]="%{A4:herbstclient use_index +1 --skip-visible:}%{A5:herbstclient use_index -1 --skip-visible:}"
|
output_tags[$monitor]="%{A4:herbstclient use_index +1 --skip-visible:}%{A5:herbstclient use_index -1 --skip-visible:}"
|
||||||
|
@ -100,19 +100,19 @@ hc --idle | {
|
||||||
|
|
||||||
### All drawing happens here
|
### All drawing happens here
|
||||||
# echo -n "%{T5}" # set font
|
# echo -n "%{T5}" # set font
|
||||||
date="$(printf ' %%{F#efefef}%(%H:%M%)T{F#909090}, %(%Y-%m)T-%%{F#efefef}%(%d)T')"
|
res=
|
||||||
for m in "${!monitors[@]}" ; do
|
for m in "${!monitors[@]}" ; do
|
||||||
monitor=${monitors[$m]}
|
monitor=${monitors[$m]}
|
||||||
|
|
||||||
### set monitor
|
### set monitor
|
||||||
res="$res%{S$m}"
|
res+="%{S$m}"
|
||||||
#echo -en "%{S$((${#monitors[@]} - monitor))}"
|
#echo -en "%{S$((${#monitors[@]} - monitor))}"
|
||||||
### print the left
|
### print the left
|
||||||
res="$res%{l}${output_tags[$monitor]}$separator ${windowtitle:0:150}"
|
res+="%{l}${output_tags[$monitor]}$separator ${windowtitle:0:150}"
|
||||||
### center
|
### center
|
||||||
#echo -n "%{c}%{U${colors[bright_orange]}}${windowtitle:0:150}%{U-}"
|
#echo -n "%{c}%{U${colors[bright_orange]}}${windowtitle:0:150}%{U-}"
|
||||||
### print the right
|
### print the right
|
||||||
res="$res%{r}$playing $separator $volume $separator $load $separator $date "
|
res+="%{r}$playing $separator $volume $separator $wifi $separator $network $separator $temperature $separator $load $separator $date $separator %{U#f2f229}$charge%{U-} $separator"
|
||||||
#echo -en "%{r}$right $separator %{U#f2f229}$charge%{U-} $separator"
|
#echo -en "%{r}$right $separator %{U#f2f229}$charge%{U-} $separator"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -144,7 +144,7 @@ hc --idle | {
|
||||||
;;
|
;;
|
||||||
date)
|
date)
|
||||||
#echo "resetting date" >&2
|
#echo "resetting date" >&2
|
||||||
# date="${cmd[*]:1}"
|
date="${cmd[*]:1}"
|
||||||
;;
|
;;
|
||||||
quit_panel)
|
quit_panel)
|
||||||
exit
|
exit
|
||||||
|
@ -157,14 +157,13 @@ hc --idle | {
|
||||||
;;
|
;;
|
||||||
focus_changed|window_title_changed)
|
focus_changed|window_title_changed)
|
||||||
windowtitle="${cmd[*]:2}"
|
windowtitle="${cmd[*]:2}"
|
||||||
|
echo "$windowtitle" > /tmp/wt
|
||||||
;;
|
;;
|
||||||
player)
|
player)
|
||||||
# declare -A player_status
|
# declare -A player_status
|
||||||
if [[ "${cmd[1]}" = cmus ]]
|
if [[ "${cmd[1]}" = cmus ]]
|
||||||
then
|
then
|
||||||
play_line=" ${cmd[3]:0:20}/${cmd[4]:0:20}"
|
play_line=" ${cmd[3]:0:20}/${cmd[4]:0:20}: ${cmd[5]:0:20}"
|
||||||
[[ -n ${cmd[5]} ]] && play_line="$play_line: ${cmd[5]:0:20}"
|
|
||||||
|
|
||||||
play_sym=
|
play_sym=
|
||||||
case "${cmd[2]}" in
|
case "${cmd[2]}" in
|
||||||
off|Stopped)
|
off|Stopped)
|
||||||
|
@ -223,7 +222,7 @@ hc --idle | {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
charge="$batt_sym ${batt_perc}%"
|
charge="$batt_sym ${batt_perc}%%"
|
||||||
|
|
||||||
[ "$batt_perc" -le 15 ] && [ "$ac" != '+' ] && notify -u critical "Power" "Battery has only ${batt_perc}%"
|
[ "$batt_perc" -le 15 ] && [ "$ac" != '+' ] && notify -u critical "Power" "Battery has only ${batt_perc}%"
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -139,7 +139,7 @@ vim.cmd([[
|
||||||
-- local saga = require('lspsaga').init_lsp_saga()
|
-- local saga = require('lspsaga').init_lsp_saga()
|
||||||
|
|
||||||
local nvim_lsp = require('lspconfig')
|
local nvim_lsp = require('lspconfig')
|
||||||
local on_attach = function(client, bufnr)
|
local on_attach = function(_, bufnr)
|
||||||
local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end
|
local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end
|
||||||
|
|
||||||
local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end
|
local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end
|
||||||
|
@ -165,8 +165,8 @@ local on_attach = function(client, bufnr)
|
||||||
buf_set_keymap('n', '[d', '<cmd>lua vim.diagnostic.goto_prev()<CR>', opts)
|
buf_set_keymap('n', '[d', '<cmd>lua vim.diagnostic.goto_prev()<CR>', opts)
|
||||||
buf_set_keymap('n', ']d', '<cmd>lua vim.diagnostic.goto_next()<CR>', opts)
|
buf_set_keymap('n', ']d', '<cmd>lua vim.diagnostic.goto_next()<CR>', opts)
|
||||||
buf_set_keymap('n', '<space>q', '<cmd>lua vim.diagnostic.setloclist()<CR>', opts)
|
buf_set_keymap('n', '<space>q', '<cmd>lua vim.diagnostic.setloclist()<CR>', opts)
|
||||||
buf_set_keymap("n", "<space>gf", "<cmd>lua vim.lsp.buf.formatting()<CR>", opts)
|
buf_set_keymap('n', "<space>F", "<cmd>lua vim.lsp.buf.formatting()<CR>", opts)
|
||||||
buf_set_keymap("v", "<space>gf", "<cmd>lua vim.lsp.buf.range_formatting()<CR>", opts)
|
buf_set_keymap('v', "<space>gf", "<cmd>lua vim.lsp.buf.range_formatting()<CR>", opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Use a loop to conveniently both setup defined servers
|
-- Use a loop to conveniently both setup defined servers
|
||||||
|
@ -175,7 +175,8 @@ local servers = { 'phpactor', 'gopls', 'clangd', 'zls', 'hls', 'tsserver', 'sumn
|
||||||
for _, lsp in ipairs(servers) do
|
for _, lsp in ipairs(servers) do
|
||||||
nvim_lsp[lsp].setup {
|
nvim_lsp[lsp].setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())
|
capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities()),
|
||||||
|
root_dir = require('lspconfig.util').root_pattern('composer.json')
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -47,12 +47,12 @@ bar:
|
||||||
foreground: ebdbb2ff
|
foreground: ebdbb2ff
|
||||||
spacing: 5
|
spacing: 5
|
||||||
# margin: 7
|
# margin: 7
|
||||||
monitor: HDMI-1
|
monitor: LVDS-1
|
||||||
font: Noto Sans Mono
|
font: Noto Sans Mono
|
||||||
|
|
||||||
left:
|
left:
|
||||||
- script:
|
- script:
|
||||||
path: /home/vladimir/herbsttag
|
path: /home/sogun/.config/herbstluftwm/herbsttag
|
||||||
args: [0]
|
args: [0]
|
||||||
anchors:
|
anchors:
|
||||||
- viewed: &viewed {foreground: *dark0, deco: {background: {color: *bright_blue}}}
|
- viewed: &viewed {foreground: *dark0, deco: {background: {color: *bright_blue}}}
|
||||||
|
@ -145,7 +145,7 @@ bar:
|
||||||
- read min _ < /proc/loadavg ; echo -e "load|string|$min\n"
|
- read min _ < /proc/loadavg ; echo -e "load|string|$min\n"
|
||||||
content: {string: {text: " {load}"}}
|
content: {string: {text: " {load}"}}
|
||||||
- network:
|
- network:
|
||||||
name: eth0
|
name: wlan0
|
||||||
content:
|
content:
|
||||||
map:
|
map:
|
||||||
tag: state
|
tag: state
|
||||||
|
@ -155,13 +155,13 @@ bar:
|
||||||
- string:
|
- string:
|
||||||
text: ""
|
text: ""
|
||||||
font: "Font Awesome 5 Free:style=solid:size=12"
|
font: "Font Awesome 5 Free:style=solid:size=12"
|
||||||
- string: {text: "{ipv4} "}
|
- string: {text: "{ssid} "}
|
||||||
|
|
||||||
- clock:
|
- clock:
|
||||||
date-format: "%d.%m."
|
date-format: "%d.%m."
|
||||||
content:
|
content:
|
||||||
- string: {text: , font: "Font Awesome 5 Free:style=solid:size=12"}
|
- string: {text: , font: "Font Awesome 5 Free:style=solid:size=12"}
|
||||||
- string: {text: " {date}", right-margin: 5}
|
- string: {text: " {date}", right-margin: 5}
|
||||||
- string: {text: , font: "Font Awesome 5 Free:style=solid:size=12"}
|
- string: {text: "", font: "Font Awesome 5 Free:style=solid:size=12"}
|
||||||
- string: {text: " {time}"}
|
- string: {text: " {time} "}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue