Volvio ALE, italics en tmux funcionan de nuevo. cambios a dmenu
This commit is contained in:
parent
f1c3569cf2
commit
3d3909574e
|
@ -43,7 +43,7 @@ st.borderpx: 10
|
|||
st.cwscale: 1.05
|
||||
st.chscale: 1.0
|
||||
|
||||
dmenu.font: SF Pro Text:pixelsize=16:antialias=true:autohint=true;
|
||||
dmenu.font: JetBrainsMono Nerd Font:pixelsize=14:antialias=true:autohint=true;
|
||||
dmenu.background: #222222
|
||||
dmenu.foreground: #bbbbbb
|
||||
dmenu.selbackground: #008bbd
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# env:
|
||||
# TERM: xterm-256color
|
||||
|
||||
window:
|
||||
dimensions:
|
||||
columns: 80
|
||||
|
@ -19,9 +22,13 @@ font:
|
|||
style: Regular
|
||||
|
||||
italic:
|
||||
family: JetBrainsMono Italic Nerd Font
|
||||
family: JetBrainsMono Nerd Font
|
||||
style: Italic
|
||||
|
||||
bold:
|
||||
family: JetBrainsMono Nerd Font
|
||||
style: Bold
|
||||
|
||||
# Point size
|
||||
size: 11
|
||||
|
||||
|
@ -30,7 +37,7 @@ font:
|
|||
offset:
|
||||
x: 1
|
||||
|
||||
draw_bold_text_with_bright_colors: true
|
||||
draw_bold_text_with_bright_colors: false
|
||||
|
||||
colors:
|
||||
|
||||
|
@ -78,7 +85,7 @@ selection:
|
|||
dynamic_title: true
|
||||
|
||||
cursor:
|
||||
style: Underline
|
||||
style: Beam
|
||||
unfocused_hollow: true
|
||||
|
||||
live_config_reload: true
|
||||
|
|
|
@ -237,7 +237,7 @@ map r
|
|||
|
||||
cmap <esc> cmd-escape
|
||||
|
||||
map <f-2> push A<c-u>
|
||||
map <f-2> push A<c-u> # new rename
|
||||
map <f-3> cut
|
||||
map <f-4> copy
|
||||
map <f-5> reload
|
||||
|
@ -276,10 +276,9 @@ map za %zip -r "$f" "$f"
|
|||
map zu $atool --each --extract "$f"
|
||||
map mp $mpv "$f"
|
||||
|
||||
map cc push A<c-u> # new rename
|
||||
map I push A<c-a> # at the very beginning
|
||||
map i push A<c-a> # at the very beginning
|
||||
map A rename # at the very end
|
||||
map i push A<a-b><c-b>. # before extension
|
||||
map I push A<a-b><c-b>. # before extension
|
||||
map a push A<a-b> # after extension
|
||||
map B bulkrename
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#vo=opengl-hq
|
||||
#proflie=opengl-hq
|
||||
#msg-level=all=fatal,ao=error
|
||||
ao=pulse,jack,alsa,
|
||||
ao=jack,alsa,
|
||||
scale=ewa_lanczossharp
|
||||
cscale=ewa_lanczossharp
|
||||
deband=no
|
||||
|
@ -15,12 +15,12 @@ idle=once
|
|||
osc=yes
|
||||
ytdl-format=bestvideo[height<=?1080]+bestaudio/best
|
||||
screenshot-format=png
|
||||
screenshot-directory="~/Pictures/scrot"
|
||||
screenshot-directory="~/img/scrot"
|
||||
hwdec=vaapi
|
||||
osd-level=1
|
||||
osd-duration="3500"
|
||||
osd-font="IBM Plex Sans"
|
||||
osd-font-size="25"
|
||||
osd-font-size="20"
|
||||
osd-border-size="2"
|
||||
osd-margin-x="10"
|
||||
osd-margin-y="10"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"coc.preferences.currentFunctionSymbolAutoUpdate": true,
|
||||
"coc.preferences.extensionUpdateCheck": "never",
|
||||
"coc.preferences.colorSupport": true,
|
||||
"diagnostic.displayByAle": false,
|
||||
"diagnostic.displayByAle": true,
|
||||
"diagnostic.refreshOnInsertMode": true,
|
||||
"diagnostic.refreshAfterSave": true,
|
||||
"diagnostic.checkCurrentLine": true,
|
||||
|
@ -19,7 +19,6 @@
|
|||
"explorer.icon.expanded": "🞃",
|
||||
"explorer.icon.collapsed": "🞂",
|
||||
"explorer.icon.enableNerdfont": true,
|
||||
"explorer.buffer.columns": ["selection", "bufnr", "name", "modified"],
|
||||
"explorer.keyMappings": {
|
||||
"v": "open:vsplit",
|
||||
"s": "open:split",
|
||||
|
@ -80,24 +79,5 @@
|
|||
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": true,
|
||||
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": true,
|
||||
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true,
|
||||
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": true,
|
||||
"diagnostic-languageserver.filetypes": {
|
||||
"vint": {
|
||||
"command": "vint",
|
||||
"debounce": 100,
|
||||
"args": [ "--enable-neovim", "-"],
|
||||
"offsetLine": 0,
|
||||
"offsetColumn": 0,
|
||||
"sourceName": "vint",
|
||||
"formatLines": 1,
|
||||
"formatPattern": [
|
||||
"[^:]+:(\\d+):(\\d+):\\s*(.*)(\\r|\\n)*$",
|
||||
{
|
||||
"line": 1,
|
||||
"column": 2,
|
||||
"message": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": true
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ let g:loaded_python_provider=1 " Disable python 2 interfa
|
|||
let g:python_host_skip_check=1 " Skip python 2 host check
|
||||
let python_highlight_all=1 " full python syntax highlighting
|
||||
let g:python3_host_prog = '/bin/python3'
|
||||
" let g:node_host_prog = '/usr/local/bin/neovim-node-host'
|
||||
let g:node_host_prog = '~/.local/share/npm/bin/neovim-node-host'
|
||||
|
||||
if empty(glob('~/.local/share/nvim/site/autoload/plug.vim'))
|
||||
silent !curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs
|
||||
|
@ -13,6 +13,7 @@ endif
|
|||
" }}}
|
||||
" Plugins {{{
|
||||
call plug#begin(stdpath('data') . '/plugged')
|
||||
Plug 'dense-analysis/ale'
|
||||
Plug 'othree/yajs.vim', {'for': 'javascript'}
|
||||
Plug 'othree/es.next.syntax.vim', {'for': 'javascript'}
|
||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||
|
@ -107,8 +108,67 @@ let g:markdown_fenced_languages = ['vim', 'help']
|
|||
let g:vim_jsx_pretty_colorful_config = 1
|
||||
let g:jsx_ext_required = 1
|
||||
" }}}
|
||||
" {{{ Ale
|
||||
let g:ale_use_global_executables = 1
|
||||
let g:ale_completion_enabled = 0
|
||||
let g:ale_linters_explicit = 1
|
||||
let g:ale_lint_delay = 0
|
||||
let g:ale_lint_on_text_changed = 'normal'
|
||||
let g:ale_lint_on_insert_leave = 1
|
||||
let g:ale_fix_on_save = 1
|
||||
let g:ale_close_preview_on_insert = 1
|
||||
let g:ale_sign_highlight_linenrs = 1
|
||||
let g:ale_sign_error = '✖'
|
||||
let g:ale_sign_warning = '⚠'
|
||||
let g:ale_sign_info = '●'
|
||||
let g:ale_set_balloons = 1
|
||||
let g:ale_virtualtext_cursor = 1
|
||||
let g:ale_loclist_msg_format = '[%linter%] %s% (code)% [%severity%]'
|
||||
let g:ale_set_highlights = 1
|
||||
let g:ale_set_signs = 1
|
||||
let g:ale_python_mypy_options = '--ignore-missing-imports'
|
||||
let g:ale_python_pylint_options = '--disable=C'
|
||||
let g:ale_python_flake8_options = '--ignore=E221'
|
||||
let g:move_key_modifier = 'N'
|
||||
|
||||
let g:ale_linter_aliases = {
|
||||
\ 'jsx': ['css', 'javascript'],
|
||||
\ 'vue': ['vue', 'javascript'],
|
||||
\}
|
||||
let g:ale_linters = {
|
||||
\ 'javascript': ['prettier_standard'],
|
||||
\ 'jsx': ['prettier_standard'],
|
||||
\ 'typescript': ['tsserver', 'eslint'],
|
||||
\ 'json': ['prettier_standard'],
|
||||
\ 'html': ['prettier_standard'],
|
||||
\ 'css': ['stylelint'],
|
||||
\ 'scss': ['stylelint'],
|
||||
\ 'bash': ['shellcheck'],
|
||||
\ 'sh': ['shellcheck'],
|
||||
\ 'vim': ['vint'],
|
||||
\ 'python': ['pyls', 'flake8', 'pylint']
|
||||
\}
|
||||
let g:ale_fixers = {
|
||||
\ 'javascript': ['prettier_standard'],
|
||||
\ 'jsx': ['prettier_standard'],
|
||||
\ 'typescript': ['prettier_standard'],
|
||||
\ 'json': ['prettier_standard'],
|
||||
\ 'scss': ['stylelint'],
|
||||
\ 'css': ['stylelint'],
|
||||
\ 'html': ['prettier_standard'],
|
||||
\ 'markdown': ['prettier_standard'],
|
||||
\ 'python': ['autopep8', 'remove_trailing_lines', 'isort', 'yapf']
|
||||
\}
|
||||
let g:ale_pattern_options = {
|
||||
\ '\.min\.js$': {'ale_linters': [], 'ale_fixers': []},
|
||||
\ '\.min\.css$': {'ale_linters': [], 'ale_fixers': []},
|
||||
\}
|
||||
|
||||
nmap <silent> <F7> <Plug>(ale_previous_wrap)
|
||||
nmap <silent> <F8> <Plug>(ale_next_wrap)
|
||||
" }}}
|
||||
" CoC {{{
|
||||
let g:coc_global_extensions = ['coc-lists', 'coc-highlight', 'coc-explorer', 'coc-prettier', 'coc-tsserver', 'coc-emmet', 'coc-css', 'coc-html', 'coc-json']
|
||||
let g:coc_global_extensions = ['coc-lists', 'coc-highlight', 'coc-explorer', 'coc-tsserver', 'coc-emmet', 'coc-css', 'coc-html', 'coc-json']
|
||||
|
||||
" Lists
|
||||
nnoremap <silent><F1> :<C-u>CocList -S --ignore-case helptags<CR>
|
||||
|
@ -122,11 +182,6 @@ nnoremap <silent><F5> :CocCommand explorer<CR>
|
|||
" Config
|
||||
nnoremap <silent><F6> :CocConfig<CR>
|
||||
|
||||
" Diagnostics
|
||||
nnoremap <silent> <F7> <Plug>(coc-diagnostic-prev)
|
||||
nnoremap <silent> <F8> <Plug>(coc-diagnostic-next)
|
||||
nnoremap <silent> <F9> :<C-u>CocList diagnostics<cr>
|
||||
|
||||
" <CR> to confirm completion
|
||||
inoremap <expr> <cr> pumvisible() ? "\<C-y>" : "\<CR>"
|
||||
|
||||
|
@ -161,11 +216,6 @@ endfunction
|
|||
|
||||
" Symbol renaming.
|
||||
nmap <leader>rn <Plug>(coc-rename)
|
||||
|
||||
" Snippets
|
||||
imap <C-j> <Plug>(coc-snippets-expand-jump)
|
||||
let g:coc_snippet_next = '<tab>'
|
||||
let g:coc_snippet_prev = '<S-TAB>'
|
||||
"}}}
|
||||
" Vista {{{
|
||||
let g:vista#renderer#enable_icon = 1
|
||||
|
@ -245,16 +295,14 @@ let g:modes={
|
|||
\}
|
||||
|
||||
function! LinterStatus() abort
|
||||
let info = get(b:, 'coc_diagnostic_info', {})
|
||||
if empty(info) | return '' | endif
|
||||
let msgs = []
|
||||
if get(info, 'error', 0)
|
||||
call add(msgs, '✖ :' . info['error'])
|
||||
endif
|
||||
if get(info, 'warning', 0)
|
||||
call add(msgs, '⚠ :' . info['warning'])
|
||||
endif
|
||||
return join(msgs, ' '). ' ' . get(g:, 'coc_status', '')
|
||||
let l:counts = ale#statusline#Count(bufnr(''))
|
||||
let l:all_errors = l:counts.error + l:counts.style_error
|
||||
let l:all_non_errors = l:counts.total - l:all_errors
|
||||
return l:counts.total == 0 ? '' : printf(
|
||||
\ ' ⚠ :%d ✖ :%d ',
|
||||
\ l:all_non_errors,
|
||||
\ l:all_errors
|
||||
\)
|
||||
endfunction
|
||||
|
||||
function! ModeColor() abort
|
||||
|
@ -281,6 +329,7 @@ function! Statusline()
|
|||
let b:status.=LinePasteMode()
|
||||
let b:status.='%1* '
|
||||
let b:status.='%= '
|
||||
let b:status.=coc#status()
|
||||
let b:status.=' %6*'
|
||||
let b:status.=LinterStatus()
|
||||
let b:status.='%3* %p%% %c '
|
||||
|
|
|
@ -61,7 +61,7 @@ super + shift + x
|
|||
tmenux
|
||||
|
||||
super + space
|
||||
dmenu_run -i -p "Apps "
|
||||
dmenu_run -p "Apps "
|
||||
|
||||
super + shift + g
|
||||
corte
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Opciones principales {{{
|
||||
autoload -Uz compinit promptinit
|
||||
autoload -Uz compinit
|
||||
_comp_files=(${ZDOTDIR:-$HOME}/.zcompdump(Nm-20))
|
||||
_comp_files=($XDG_CACHE_HOME/zcompdump(Nm-20))
|
||||
if (( $#_comp_files )); then
|
||||
compinit -i -C
|
||||
else
|
||||
|
@ -52,7 +52,7 @@ zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-
|
|||
zstyle ':completion:*' verbose true
|
||||
zstyle ':completion:*' format $'\n %F{yellow}--- %d ---%f'
|
||||
zstyle ':completion:*' list-separator "--"
|
||||
zstyle ':completion:*' list-dirs-first true
|
||||
zstyle ':completion:*' list-dirs-first true
|
||||
zstyle ':completion:*:default' list-prompt '%S%M matches%s'
|
||||
zstyle ':completion:*:default' select-prompt ' --- Match %M %P ---'
|
||||
zstyle ':completion:*:options' description 'yes'
|
||||
|
@ -69,7 +69,7 @@ zstyle ':completion:*:*:cd:*:directory-stack' menu yes select
|
|||
zstyle ':completion:*:approximate:' max-errors 'reply=( $((($#PREFIX+$#SUFFIX)/3 )) numeric )'
|
||||
zstyle ':completion::(^approximate*):*:functions' ignored-patterns '_*'
|
||||
zstyle ':completion::complete:*' use-cache on
|
||||
zstyle ':completion::complete:*' cache-path "$ZDOTDIR/.zcompcache"
|
||||
zstyle ':completion::complete:*' cache-path "$XDG_CACHE_HOME/zcompcache"
|
||||
zstyle ':completion:*:complete:-command-::commands' ignored-patterns '*\~'
|
||||
zstyle ':completion:*:processes' command 'ps -au $USER -o pid,stat,%cpu,%mem,cputime,command'
|
||||
zstyle ':completion:*:killall:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
|
||||
|
@ -90,7 +90,7 @@ zstyle ':completion:*:*:kill:*' insert-ids single
|
|||
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
|
||||
zstyle ':completion:*:functions' ignored-patterns '(_*|pre(cmd|exec))'
|
||||
zstyle ':completion:*' accept-exact '*(N)'
|
||||
zstyle ':completion:*' ignore-parents pwd
|
||||
zstyle ':completion:*' ignore-parents pwd
|
||||
zstyle ':completion:*' rehash true
|
||||
zmodload -i zsh/complist
|
||||
# }}}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
# Programas
|
||||
alias \
|
||||
vdi='nvim -d' \
|
||||
se='sudoedit' \
|
||||
gdl='gallery-dl' \
|
||||
m='neomutt' \
|
||||
am='alsamixer' \
|
||||
|
@ -88,7 +89,7 @@ alias \
|
|||
tsl='transmission-remote --list' \
|
||||
tsx='transmission-remote --remove-and-delete -t' \
|
||||
tsr='transmission-remote --remove -t' \
|
||||
wp='sxiv-rifle ~/img/wallpaper'
|
||||
wp='sxiv-rifle ~/img/wallpaper >/dev/null 2>&1'
|
||||
|
||||
# Directorios
|
||||
alias gb='cd ~/.local/bin'
|
||||
|
|
|
@ -24,38 +24,37 @@ dunst stop
|
|||
# lock colors
|
||||
c0='#00000000' # clear
|
||||
#c1='#000000ff' # black
|
||||
c2='#FABD2F88'
|
||||
c3='#FB493488'
|
||||
c4='#EBDBB2FF'
|
||||
c5='#B8BB2688'
|
||||
c6='#28282888'
|
||||
c7='#282828FF'
|
||||
# c2='#FABD2F88'
|
||||
# c3='#FB493488'
|
||||
c4='#d23c3dff'
|
||||
c5='#fecf4dff'
|
||||
# c6='#28282888'
|
||||
c7='#FFFFFFFF'
|
||||
c8='#eeeeecff'
|
||||
c9='#12121200'
|
||||
cA='#c4a000ff'
|
||||
# cA='#c4a000ff'
|
||||
|
||||
lock="$HOME/img/lockscreen/alienlock.png"
|
||||
lock="$HOME/img/lockscreen/winlock.jpg"
|
||||
|
||||
i3lock \
|
||||
--image="$lock" \
|
||||
--insidevercolor=$c5 \
|
||||
--insidewrongcolor=$c3 \
|
||||
--insidewrongcolor=$c4 \
|
||||
--insidecolor=$c0 \
|
||||
--ringvercolor=$c2 \
|
||||
--ringwrongcolor=$cA \
|
||||
--ringvercolor=$c7 \
|
||||
--ringwrongcolor=$c7 \
|
||||
--ringcolor=$c7 \
|
||||
--verifcolor=$c8 \
|
||||
--wrongcolor=$c4 \
|
||||
--linecolor=$c4 \
|
||||
--separatorcolor=$c6 \
|
||||
--separatorcolor=$c0 \
|
||||
--keyhlcolor=$c4 \
|
||||
--bshlcolor=$c3 \
|
||||
--bshlcolor=$c4 \
|
||||
--layoutcolor=$c9 \
|
||||
--indpos="683:420" \
|
||||
--modsize=18 \
|
||||
--refresh-rate=30 \
|
||||
--radius=80 \
|
||||
--ring-width=4 \
|
||||
--indpos="x+26:y+740" \
|
||||
--line-uses-inside \
|
||||
--radius=10 \
|
||||
--ring-width=3 \
|
||||
--veriftext='' \
|
||||
--wrongtext='' \
|
||||
--noinputtext='' \
|
||||
|
|
|
@ -79,7 +79,7 @@ audio() { \
|
|||
}
|
||||
|
||||
askrecording() { \
|
||||
choice=$(printf "screencast\\nvideo\\naudio\\njack video\\njack audio" | dmenu -i -p "Select recording style ")
|
||||
choice=$(printf "screencast\\nvideo\\naudio\\njack video\\njack audio" | dmenu -i -w 245 -p "Capture ")
|
||||
case "$choice" in
|
||||
screencast) screencast;;
|
||||
video) mute;;
|
||||
|
@ -90,7 +90,7 @@ askrecording() { \
|
|||
}
|
||||
|
||||
asktoend() { \
|
||||
response=$(printf "No\\nYes" | dmenu -i -p "Recording still active. End recording? ") &&
|
||||
response=$(printf "No\\nYes" | dmenu -i -w 350 -p "Recording still active. End recording? ") &&
|
||||
[ "$response" = "Yes" ] && killrecording
|
||||
}
|
||||
|
||||
|
|
|
@ -1,15 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
# A UI for detecting and selecting all displays.
|
||||
# Probes xrandr for connected displays and lets user select one to use.
|
||||
twoscreen() { # If there are two screens.
|
||||
|
||||
twoscreen() { # If multi-monitor is selected and there are two screens.
|
||||
|
||||
mirror=$(printf "no\\nyes" | dmenu -i -p "Mirror displays? ")
|
||||
mirror=$(printf "no\\nyes" | dmenu -i -w 500 -p "Mirror displays? ")
|
||||
# Mirror displays using native resolution of external display and a scaled
|
||||
# version for the internal display
|
||||
if [ "$mirror" = "yes" ]; then
|
||||
external=$(echo "$screens" | dmenu -i -p "Optimize resolution for: ")
|
||||
external=$(echo "$screens" | dmenu -i -w 500 -p "Optimize resolution for: ")
|
||||
internal=$(echo "$screens" | grep -v "$external")
|
||||
|
||||
res_external=$(xrandr --query | sed -n "/^$external/,/\+/p" | \
|
||||
|
@ -30,18 +27,18 @@ twoscreen() { # If multi-monitor is selected and there are two screens.
|
|||
--scale "$scale_x"x"$scale_y"
|
||||
else
|
||||
|
||||
primary=$(echo "$screens" | dmenu -i -p "Select primary display: ")
|
||||
primary=$(echo "$screens" | dmenu -i -w 500 -p "Select primary display: ")
|
||||
secondary=$(echo "$screens" | grep -v "$primary")
|
||||
direction=$(printf "left\\nright" | dmenu -i -p "What side of $primary should $secondary be on? ")
|
||||
direction=$(printf "left\\nright" | dmenu -i -w 500 -p "What side of $primary should $secondary be on? ")
|
||||
xrandr --output "$primary" --auto --scale 1.0x1.0 --output "$secondary" --"$direction"-of "$primary" --auto --scale 1.0x1.0
|
||||
fi
|
||||
}
|
||||
|
||||
morescreen() { # If multi-monitor is selected and there are more than two screens.
|
||||
primary=$(echo "$screens" | dmenu -i -p "Select primary display: ")
|
||||
secondary=$(echo "$screens" | grep -v "$primary" | dmenu -i -p "Select secondary display: ")
|
||||
direction=$(printf "left\\nright" | dmenu -i -p "What side of $primary should $secondary be on? ")
|
||||
tertiary=$(echo "$screens" | grep -v "$primary" | grep -v "$secondary" | dmenu -i -p "Select third display: ")
|
||||
morescreen() { # If there are more than two screens.
|
||||
primary=$(echo "$screens" | dmenu -i -w 500 -p "Select primary display: ")
|
||||
secondary=$(echo "$screens" | grep -v "$primary" | dmenu -i -w 500 -p "Select secondary display: ")
|
||||
direction=$(printf "left\\nright" | dmenu -i -w 500 -p "What side of $primary should $secondary be on? ")
|
||||
tertiary=$(echo "$screens" | grep -v "$primary" | grep -v "$secondary" | dmenu -i -w 500 -p "Select third display: ")
|
||||
xrandr --output "$primary" --auto --output "$secondary" --"$direction"-of "$primary" --auto --output "$tertiary" --"$(printf "left\\nright" | grep -v "$direction")"-of "$primary" --auto
|
||||
}
|
||||
|
||||
|
@ -58,12 +55,9 @@ allposs=$(xrandr -q | grep "connected")
|
|||
# Get all connected screens.
|
||||
screens=$(echo "$allposs" | grep " connected" | awk '{print $1}')
|
||||
|
||||
# Get user choice including multi-monitor and manual selection:
|
||||
chosen=$(printf "%s\\nmulti-monitor" "$screens" | dmenu -i -p "Select display arangement:") &&
|
||||
case "$chosen" in
|
||||
"multi-monitor") multimon ;;
|
||||
*) xrandr --output "$chosen" --auto --scale 1.0x1.0 "$(echo "$allposs" | grep -v "$chosen" | awk '{print "--output", $1, "--off"}' | tr '\n' ' ')" ;;
|
||||
esac
|
||||
multimon
|
||||
|
||||
setbg # Fix background if screen size/arangement has changed.
|
||||
{ killall dunst ; setsid dunst & } >/dev/null 2>&1 # Restart dunst to ensure proper location on screen
|
||||
# Fix background if screen size/arangement has changed.
|
||||
setbg
|
||||
# Restart dunst to ensure proper location on screen
|
||||
{ killall dunst ; setsid dunst & } >/dev/null 2>&1
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euf -o pipefail
|
||||
|
||||
if [ -d /sys/class/power_supply/BAT0 ]; then
|
||||
battery_info="$(head -n 1 /sys/class/power_supply/BAT0/capacity)%"
|
||||
current_charge=$(echo "$battery_info" | grep -o '[0-9]\+%' | awk '{sub (/%/, "", $1); print $1}')
|
||||
|
||||
if [[ $current_charge -lt 11 ]]; then
|
||||
ICON="$HOME/img/.icn/battery-empty.png"
|
||||
elif [[ $current_charge -lt 31 ]]; then
|
||||
ICON="$HOME/img/.icn/battery-caution.png"
|
||||
elif [[ $current_charge -lt 51 ]]; then
|
||||
ICON="$HOME/img/.icn/battery-low.png"
|
||||
elif [[ $current_charge -lt 71 ]]; then
|
||||
ICON="$HOME/img/.icn/battery-good.png"
|
||||
elif [[ $current_charge -lt 90 ]]; then
|
||||
ICON="$HOME/img/.icn/battery-full.png"
|
||||
else
|
||||
ICON="$HOME/img/.icn/battery-full.png"
|
||||
fi
|
||||
notify-send -t 5000 -i "$ICON" "$current_charge%"
|
||||
fi
|
|
@ -9,12 +9,12 @@ log_out="log out"
|
|||
|
||||
options="$shutdown\n$reboot\n$suspend\n$lock\n$log_out"
|
||||
|
||||
chosen="$(echo -e "$options" | dmenu -i -p "⏻ ")"
|
||||
chosen="$(echo -e "$options" | dmenu -w 120 -i -p "⏻ ")"
|
||||
case $chosen in
|
||||
$shutdown) loginctl poweroff;;
|
||||
$reboot) loginctl reboot;;
|
||||
$suspend) loginctl suspend;;
|
||||
$lock) xset s activate;;
|
||||
$log_out) bspc quit 1;;
|
||||
"$shutdown") loginctl poweroff;;
|
||||
"$reboot") loginctl reboot;;
|
||||
"$suspend") loginctl suspend;;
|
||||
"$lock") xset s activate;;
|
||||
"$log_out") bspc quit 1;;
|
||||
*) exit 0;;
|
||||
esac
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
sessions="$(tmux ls 2> /dev/null | awk '! /attached/ { sub(":", "", $1); print $1 ; }')"
|
||||
[ ! "$sessions" ] && sessions="new" || sessions="$sessions\nnew"
|
||||
choice=$(printf "%b" "$sessions" | dmenu -i -p "Attach ")
|
||||
choice=$(printf "%b" "$sessions" | dmenu -i -w 245 -p "Attach ")
|
||||
[ ! "$choice" ] && exit
|
||||
if [ "$choice" = "new" ]; then
|
||||
$TERMINAL -e tmux
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/usr/bin/sh
|
||||
|
||||
exec unclutter --jitter 10 --timeout 3
|
||||
exec unclutter --jitter 30 --timeout 3 --ignore-scrolling
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
# Opciones basicas
|
||||
set -g default-terminal 'tmux-256color'
|
||||
set -as terminal-overrides ',alacritty:Tc'
|
||||
set -g set-clipboard on
|
||||
setw -gq utf8 on
|
||||
set -g mouse on
|
||||
|
@ -30,7 +32,7 @@ set -g status-keys vi
|
|||
# Statusbar
|
||||
setw -g pane-border-status bottom
|
||||
setw -g pane-border-format '─'
|
||||
setw -g automatic-rename-format "#{s/zsh//:pane_current_command}"
|
||||
setw -g automatic-rename-format '#{s/zsh//:pane_current_command}'
|
||||
setw -g pane-border-style 'fg=#080808'
|
||||
setw -g pane-active-border-style 'fg=#080808'
|
||||
set -g set-titles on
|
||||
|
@ -45,8 +47,8 @@ set -g status-right '#(txbar) #[fg=colour134]%a %d #[fg=colo
|
|||
set -g window-status-separator ' '
|
||||
set -g window-status-current-style fg=colour3
|
||||
set -g window-status-activity-style bg=default,fg=colour15
|
||||
set -g window-status-format "#{=-15:?window_name,#{window_name},#{s/deadguy/home/:?pane_current_path,#{b:pane_current_path},}}"
|
||||
set -g window-status-current-format "#{=-15:?window_name,#{window_name},#{s/deadguy/home/:?pane_current_path,#{b:pane_current_path},}}"
|
||||
set -g window-status-format '#{=-15:?window_name,#{window_name},#{s/deadguy/home/:?pane_current_path,#{b:pane_current_path},}}'
|
||||
set -g window-status-current-format '#{=-15:?window_name,#{window_name},#{s/deadguy/home/:?pane_current_path,#{b:pane_current_path},}}'
|
||||
|
||||
# Limpiar atajos
|
||||
unbind-key C-b
|
||||
|
|
15
.zshenv
15
.zshenv
|
@ -1,6 +1,7 @@
|
|||
# Programas y Opciones del Sistema {{{
|
||||
export TERMINAL="alacritty"
|
||||
export EDITOR="nvim"
|
||||
export VISUAL="$EDITOR"
|
||||
export GIT_EDITOR="$EDITOR"
|
||||
export BROWSER="firefox"
|
||||
export READER="zathura"
|
||||
|
@ -16,11 +17,13 @@ export GREP_COLOR="0;32"
|
|||
export TIME_STYLE="long-iso"
|
||||
export BLOCK_SIZE="'1"
|
||||
export QUOTING_STYLE=literal
|
||||
export QT_QPA_PLATFORMTHEME="gtk2"
|
||||
export HIGHLIGHT_OPTIONS='--out-format="ansi" --style="pablo"'
|
||||
export BAT_STYLE="numbers,changes,header"
|
||||
export BAT_THEME="TwoDark"
|
||||
|
||||
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc-2.0"
|
||||
export QT_QPA_PLATFORMTHEME="gtk2"
|
||||
|
||||
export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
|
||||
export XDG_DATA_HOME="$HOME/.local/share"
|
||||
export XDG_CONFIG_HOME="$HOME/.config"
|
||||
|
@ -28,16 +31,15 @@ export XDG_CACHE_HOME="$HOME/.cache"
|
|||
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
|
||||
|
||||
export GPG_TTY=$(tty)
|
||||
export SSH_ASKPASS="/bin/gnome-ssh-askpass"
|
||||
export PASSWORD_STORE_DIR="$XDG_DATA_HOME/password-store"
|
||||
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
|
||||
export SSH_ASKPASS="/bin/gnome-ssh-askpass"
|
||||
export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass"
|
||||
eval $(keychain --dir ~/.local/share/keychain --quiet --eval --noask --agents ssh,gpg id_rsa)
|
||||
|
||||
export INPUTRC="$XDG_CONFIG_HOME/inputrc"
|
||||
export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
|
||||
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc-2.0"
|
||||
export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch-config"
|
||||
export MAILCAPS="$XDG_CONFIG_HOME/mutt/mailcap"
|
||||
export INPUTRC="$XDG_CONFIG_HOME/inputrc"
|
||||
export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
|
||||
export IPYTHONDIR="$XDG_CONFIG_HOME/ipython"
|
||||
export JUPYTER_CONFIG_DIR="$XDG_CONFIG_HOME/jupyter"
|
||||
export PYLINTHOME="$XDG_CACHE_HOME/pylint"
|
||||
|
@ -46,6 +48,7 @@ export NODE_REPL_HISTORY="$XDG_DATA_HOME/node_repl_history"
|
|||
export WEECHAT_HOME="$XDG_CONFIG_HOME/weechat"
|
||||
export RANDFILE="$XDG_DATA_HOME/rnd"
|
||||
export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME/java"
|
||||
eval "$(sed 's/^[^#].*/export &/g;t;d' ${DIR:-$XDG_CONFIG_HOME}/user-dirs.dirs)"
|
||||
# }}}
|
||||
# FZF {{{
|
||||
export FZF_DEFAULT_COLORS='--color=dark,fg:-1,fg+:254,bg:-1,bg+:235,hl:33,hl+:33,info:8,border:1,prompt:4,pointer:3,marker:3,spinner:8,header:6'
|
||||
|
|
Reference in New Issue