siempre pasa que algo queda afuera
This commit is contained in:
parent
f0318d90b9
commit
39f875509b
|
@ -16,7 +16,7 @@
|
|||
*.color10: #bae67e
|
||||
|
||||
! yellow
|
||||
*.color3: #ffb454
|
||||
*.color3: #ffa93b
|
||||
*.color11: #ffd580
|
||||
|
||||
! blue
|
||||
|
@ -50,6 +50,6 @@ Xft.rgba: rgb
|
|||
|
||||
Xcursor.theme: Alkano
|
||||
|
||||
Sxiv.font: cozette:size=10
|
||||
Sxiv.foreground: #d3d7cf
|
||||
Sxiv.background: #080808
|
||||
Sxiv.font: cozette:size=14
|
||||
Sxiv.background: black
|
||||
Sxiv.foreground: white
|
|
@ -17,7 +17,7 @@ fi
|
|||
|
||||
bspc monitor -d 1 2 3 4 5 6 7 8 9 10
|
||||
|
||||
bspc config border_width 4
|
||||
bspc config border_width 1
|
||||
bspc config window_gap 6
|
||||
bspc config top_padding 0
|
||||
bspc config left_padding 0
|
||||
|
@ -75,6 +75,3 @@ bspc rule -a Lxappearance state=floating
|
|||
bspc rule -a Zathura state=tiled
|
||||
bspc rule -a Firefox:Navigator state=tiled, desktop='^2'
|
||||
bspc rule -a St:multi desktop='^1'
|
||||
|
||||
xsetroot -cursor_name left_ptr &
|
||||
borders &
|
||||
|
|
157
.config/lf/lfrc
157
.config/lf/lfrc
|
@ -34,7 +34,7 @@ cmd open ${{
|
|||
audio/*) mpv --input-ipc-server=/tmp/mpvsoc$(date +%%s) $f ;;
|
||||
video/*) setsid mpv --input-ipc-server=/tmp/mpvsoc$(date +%%s) $f -quiet >/dev/null 2>&1 & ;;
|
||||
application/pdf|application/cbz|application/cbr) setsid zathura $fx >/dev/null 2>&1 & ;;
|
||||
*) for f in $fx; do setsid $OPENER $f > /dev/null 2> /dev/null & done;;
|
||||
*) xdg-open "$f" ;;
|
||||
esac
|
||||
}}
|
||||
|
||||
|
@ -57,7 +57,6 @@ cmd bulkrename ${{
|
|||
lf -remote "send $id unselect"
|
||||
}}
|
||||
|
||||
|
||||
# insert
|
||||
cmd rename-insert &{{
|
||||
if [ "$(echo "$fx" | wc -l)" -gt 1 ]; then
|
||||
|
@ -103,40 +102,6 @@ cmd rename-new &{{
|
|||
fi
|
||||
}}
|
||||
|
||||
|
||||
cmd moveto ${{
|
||||
set -f
|
||||
clear; echo "Move to where?"
|
||||
dest="$(cut -d' ' -f2- ~/.config/directories | fzf)" &&
|
||||
eval mv -iv $fx $dest &&
|
||||
notify-send "File(s) moved to $dest."
|
||||
}}
|
||||
|
||||
cmd copyto ${{
|
||||
set -f
|
||||
clear; echo "Copy to where?"
|
||||
dest="$(cut -d' ' -f2- ~/.config/directories | fzf)" &&
|
||||
eval cp -ivr $fx $dest &&
|
||||
notify-send "File(s) copies to $dest."
|
||||
}}
|
||||
|
||||
cmd paste ${{
|
||||
send="while read -r line; do lf -remote \"send $id echo \$line\"; done && lf -remote 'send reload'"
|
||||
load=$(lf -remote 'load')
|
||||
mode=$(echo "$load" | sed -n '1p')
|
||||
list=$(echo "$load" | sed '1d')
|
||||
s='' && [ ! -w . ] && s='sudo'
|
||||
case "$mode" in
|
||||
copy) cmd='cp-p';; move) cmd='mv-p';;
|
||||
esac
|
||||
cmd="$cmd --new-line"
|
||||
for f in $list; do
|
||||
$s sh -c "$cmd --backup=numbered \"$f\" . | $send &"
|
||||
done
|
||||
lf -remote 'send load'
|
||||
lf -remote 'send clear'
|
||||
}}
|
||||
|
||||
cmd paste-rsync &{{
|
||||
load=$(lf -remote 'load')
|
||||
mode=$(echo "$load" | sed -n '1p')
|
||||
|
@ -156,6 +121,45 @@ cmd paste-rsync &{{
|
|||
lf -remote 'send clear'
|
||||
}}
|
||||
|
||||
cmd paste-append &{{
|
||||
load=$(lf -remote 'load')
|
||||
mode=$(echo "$load" | sed -n '1p')
|
||||
list=$(echo "$load" | sed '1d')
|
||||
if [ $mode = 'copy' ]; then
|
||||
cp -rn $list .
|
||||
elif [ $mode = 'move' ]; then
|
||||
mv -n $list .
|
||||
fi
|
||||
lf -remote 'send load'
|
||||
lf -remote 'send clear'
|
||||
}}
|
||||
|
||||
cmd paste-overwrite %{{
|
||||
load=$(lf -remote 'load')
|
||||
mode=$(echo "$load" | sed -n '1p')
|
||||
list=$(echo "$load" | sed '1d')
|
||||
if [ $mode = 'copy' ]; then
|
||||
cp -r $list .
|
||||
elif [ $mode = 'move' ]; then
|
||||
mv $list .
|
||||
fi
|
||||
lf -remote 'send load'
|
||||
lf -remote 'send clear'
|
||||
}}
|
||||
|
||||
cmd paste-interactive %{{
|
||||
load=$(lf -remote 'load')
|
||||
mode=$(echo "$load" | sed -n '1p')
|
||||
list=$(echo "$load" | sed '1d')
|
||||
if [ $mode = 'copy' ]; then
|
||||
cp -r $list .
|
||||
elif [ $mode = 'move' ]; then
|
||||
mv $list .
|
||||
fi
|
||||
lf -remote 'send load'
|
||||
lf -remote 'send clear'
|
||||
}}
|
||||
|
||||
cmd fzf_jump ${{
|
||||
res="$(find . -maxdepth 3 | fzf-tmux --reverse --header='Jump to location')"
|
||||
if [ -f "$res" ]; then
|
||||
|
@ -181,50 +185,55 @@ cmd broot_jump ${{
|
|||
|
||||
cmd Link %{{
|
||||
lf -remote 'load' | while read file; do
|
||||
if [ ! -n "${mode+1}" ]; then
|
||||
mode="$file"
|
||||
continue
|
||||
fi
|
||||
if [ ! -n "${mode+1}" ]; then
|
||||
mode="$file"
|
||||
continue
|
||||
fi
|
||||
files+=("$file")
|
||||
done
|
||||
if [ "${#files[@]}" -le 1 ]; then
|
||||
lf -remote "send $id echo no files to link"
|
||||
exit 0
|
||||
lf -remote "send $id echo no files to link"
|
||||
exit 0
|
||||
fi
|
||||
# symbolicly copy mode is indicating a soft link
|
||||
if [[ "$mode" == copy ]]; then
|
||||
ln -sr $files -t .
|
||||
ln -sr $files -t .
|
||||
# while a move mode is indicating a hard link
|
||||
elif [[ "$mode" == move ]]; then
|
||||
ln $files -t .
|
||||
ln $files -t .
|
||||
fi
|
||||
}}
|
||||
|
||||
cmd nopreview &{{
|
||||
lf -remote "send $id set nopreview"
|
||||
lf -remote "send $id set ratios 1:3" # or whatever
|
||||
lf -remote "send $id set preview!"
|
||||
lf -remote "send $id set ratios 1:2" # or whatever
|
||||
}}
|
||||
|
||||
cmd zip ${{
|
||||
set -f
|
||||
mkdir $1
|
||||
cp -r $fx $1
|
||||
zip -r $1.zip $1
|
||||
rm -rf $1
|
||||
}}
|
||||
|
||||
# Bindings
|
||||
# Remove some defaults
|
||||
map m
|
||||
map n
|
||||
map "'"
|
||||
map '"'
|
||||
map m
|
||||
map n
|
||||
map d
|
||||
map p
|
||||
map w
|
||||
map y
|
||||
map c
|
||||
map u
|
||||
map e
|
||||
map /
|
||||
map e
|
||||
map r
|
||||
|
||||
cmap <esc> cmd-escape
|
||||
|
||||
map | top
|
||||
map ¿ bottom
|
||||
|
||||
map <f-2> push A<c-u>
|
||||
map <f-3> cut
|
||||
map <f-4> copy
|
||||
|
@ -236,20 +245,29 @@ map <f-9> paste
|
|||
|
||||
map <enter> open
|
||||
map <delete> delete
|
||||
|
||||
map yy copy
|
||||
map yn $basename -z $f | xsel -i -b
|
||||
map yp $readlink -fn $f | xsel -i -b
|
||||
map Y %cp -ri $fs .
|
||||
map dd cut
|
||||
map D %mv -i $fs .
|
||||
map pp paste
|
||||
map pr paste-rsync
|
||||
|
||||
map . set hidden!
|
||||
map uu unselect
|
||||
map uy clear
|
||||
map S shell
|
||||
map | top
|
||||
map ¿ bottom
|
||||
map R reload
|
||||
map x clear
|
||||
map dd cut
|
||||
map yy copy
|
||||
map yn ${{echo -n $(dirname $f) | xclip -selection clipboard}}
|
||||
map yp ${{echo -n $f | xclip -selection clipboard}}
|
||||
map yn ${{echo -n $(basename $f) | xclip -selection clipboard}}
|
||||
map pp paste
|
||||
map pa paste-append
|
||||
map po paste-overwrite
|
||||
map pi paste-interactive
|
||||
map pr paste-rsync
|
||||
map o open $f
|
||||
map ee $$EDITOR "$f"
|
||||
map ev $view "$f"
|
||||
map cx $chmod +x $f
|
||||
map bg $setbg $f
|
||||
map U %du -sh $f
|
||||
map Y %cp -ri $fs .
|
||||
map D %mv -i $fs .
|
||||
|
||||
map cc push A<c-u> # new rename
|
||||
map I push A<c-a> # at the very beginning
|
||||
|
@ -264,10 +282,8 @@ map <tab> $lf -remote "send $id select '$(fzf)'"
|
|||
map / $lf -remote "send $id select \"$(FZF_DEFAULT_COMMAND='fd --max-depth=1' fzf-tmux)\""
|
||||
map F $find | lf -remote "send $id select $(fzf-tmux --height 50% --reverse --border --margin 5% --inline-info --color border:#005688,bg+:#16252E,fg+:#26c6da,hl+:#ffffff,hl:#26c6da)"
|
||||
|
||||
map cx %chmod +x $f
|
||||
map bg $setbg $f
|
||||
map o open $f
|
||||
map u %du -sh $f
|
||||
map az %zip -r "$f" "$f"
|
||||
map au atool --each --extract "$f"
|
||||
|
||||
# Movement
|
||||
map gu cd ~/Documents/
|
||||
|
@ -284,3 +300,4 @@ map gR cd /
|
|||
map gv cd ~/Videos/Learning
|
||||
map gp cd ~/Pictures
|
||||
map cg $$EDITOR ~/.config/lf/lfrc
|
||||
map sg source ~/.config/lf/lfrc
|
||||
|
|
|
@ -20,22 +20,16 @@
|
|||
"explorer.icon.collapsed": "🞂",
|
||||
"explorer.icon.enableNerdfont": true,
|
||||
"explorer.buffer.columns": ["selection", "bufnr", "name", "modified"],
|
||||
"explorer.file.columns": [
|
||||
"git",
|
||||
"selection",
|
||||
"clip",
|
||||
"indent",
|
||||
"icon",
|
||||
"filename"
|
||||
],
|
||||
"explorer.keyMappings": {
|
||||
"v": "openInVsplit",
|
||||
"s": "openInSplit",
|
||||
"v": "open:vsplit",
|
||||
"s": "open:split",
|
||||
"f": "addFile",
|
||||
"D": "addDirectory",
|
||||
"dd": "deleteForever",
|
||||
"b": "search"
|
||||
},
|
||||
"explorer.quitOnOpen": true,
|
||||
"explorer.datetime.format": "yyyy/MM/dd HH:mm",
|
||||
"list.source.files.command": "fd",
|
||||
"list.source.files.args": ["-t", "f", "-S", "-2m", "-F", "-H"],
|
||||
"list.source.grep.args": ["--vimgrep", "--hiden", "--no-heading"],
|
||||
|
|
|
@ -1,42 +0,0 @@
|
|||
# Tested with ranger 1.7.2
|
||||
#
|
||||
# This plugin creates a bunch of keybindings used to mount and unmount
|
||||
# the devices using pmount(1).
|
||||
#
|
||||
# alt+m <letter> <digit>: mount /dev/sd<letter><digit>
|
||||
# alt+m <uppercase letter> : mount /dev/sd<letter>
|
||||
# alt+shift+m <letter> <digit>: unmount /dev/sd<letter><digit>
|
||||
# alt+shift+m <uppercase letter> : unmount /dev/sd<letter>
|
||||
# alt+shift+n : list the devices
|
||||
|
||||
from __future__ import (absolute_import, division, print_function)
|
||||
|
||||
import ranger.api
|
||||
|
||||
MOUNT_KEY = '<alt>m'
|
||||
UMOUNT_KEY = '<alt>M'
|
||||
LIST_MOUNTS_KEY = '<alt>N'
|
||||
|
||||
|
||||
HOOK_INIT_OLD = ranger.api.hook_init
|
||||
|
||||
|
||||
def hook_init(fm):
|
||||
fm.execute_console("map {key} shell -p lsblk".format(key=LIST_MOUNTS_KEY))
|
||||
for disk in "abcdefgh":
|
||||
fm.execute_console("map {key}{0} chain shell pmount sd{1}; cd /media/sd{1}".format(
|
||||
disk.upper(), disk, key=MOUNT_KEY))
|
||||
fm.execute_console("map {key}{0} chain cd; chain shell pumount sd{1}".format(
|
||||
disk.upper(), disk, key=UMOUNT_KEY))
|
||||
for part in "123456789":
|
||||
fm.execute_console(
|
||||
"map {key}{0}{1} chain shell pmount sd{0}{1}; cd /media/sd{0}{1}".format(
|
||||
disk, part, key=MOUNT_KEY)
|
||||
)
|
||||
fm.execute_console("map {key}{0}{1} chain cd; shell pumount sd{0}{1}".format(
|
||||
disk, part, key=UMOUNT_KEY))
|
||||
|
||||
return HOOK_INIT_OLD(fm)
|
||||
|
||||
|
||||
ranger.api.hook_init = hook_init
|
|
@ -69,8 +69,8 @@ super + r
|
|||
super + s
|
||||
dswitcher
|
||||
|
||||
super + {F1,F2,F3,F4,F5,F6,F7}
|
||||
{fecha,pila,tapa,notifocus,grabar,corte,touchpad}
|
||||
super + {F1,F2,F3,F4,F5,F6,F7,F8}
|
||||
{fecha,pila,tapa,notifocus,grabar,corte,touchpad,tmenux}
|
||||
|
||||
ctrl + alt + x
|
||||
xkill
|
||||
|
|
|
@ -116,11 +116,9 @@ setopt SHARE_HISTORY
|
|||
foreach extra (
|
||||
zsh-completions/zsh-completions.plugin.zsh
|
||||
up.plugin.zsh
|
||||
k.sh
|
||||
teclas.zsh
|
||||
extras.zsh
|
||||
aliases.plugin.zsh
|
||||
dotfiles.zsh
|
||||
zsh-system-clipboard/zsh-system-clipboard.zsh
|
||||
lf-icons.zsh
|
||||
) {
|
||||
|
@ -138,7 +136,6 @@ foreach programa (
|
|||
typeset -g ZSH_SYSTEM_CLIPBOARD_TMUX_SUPPORT='true'
|
||||
|
||||
source $XDG_CONFIG_HOME/broot/launcher/bash/br
|
||||
source /usr/share/doc/pkgfile/command-not-found.zsh
|
||||
|
||||
foreach plugin (
|
||||
zsh-autopair/autopair.zsh
|
||||
|
|
|
@ -25,6 +25,14 @@ alias gu='git add -vu'
|
|||
alias gc='git add --all && git commit -m'
|
||||
alias gp="git push"
|
||||
|
||||
# Dotfiles
|
||||
alias hxa='hx add -v'
|
||||
alias hxu='hx add -vu'
|
||||
alias hxp='hx push'
|
||||
alias hxc='hx commit -m'
|
||||
alias hxs='hx status'
|
||||
alias hxr='hx rm --cached'
|
||||
|
||||
# MAXIMUM VERBOSITY YIELDS MAXIMUM RESULTS
|
||||
alias chmod='chmod -v'
|
||||
alias chown='chown -v'
|
||||
|
@ -41,9 +49,8 @@ alias umount='umount -v'
|
|||
# Con opciones por defecto
|
||||
alias cat='bat --color=always --terminal-width=-10'
|
||||
alias ncdu='ncdu --color dark -rr -x --exclude .git --exclude node_modules'
|
||||
alias ls='ls -Ft --color=always --group-directories-first'
|
||||
alias ll='ls -apvx --color=always --group-directories-first'
|
||||
alias lt='ls -coghpFAB --group-directories-first --time-style=+"%d-%m-%Y %H:%M"'
|
||||
alias ls='ls -AFpt --color=always --group-directories-first'
|
||||
alias ll='ls -coghptFAB --group-directories-first --time-style=+"%d-%m-%Y %H:%M"'
|
||||
alias grep='grep --color=tty -d skip'
|
||||
alias ccat="highlight --out-format=ansi"
|
||||
alias sgrep='grep -R -n -H -C 5 --exclude-dir={.git,.svn,CVS} '
|
||||
|
@ -78,4 +85,7 @@ alias tsl='transmission-remote --list'
|
|||
alias tsx='transmission-remote --remove-and-delete -t'
|
||||
alias tsr='transmission-remote --remove -t'
|
||||
alias jamachi='systemctl start logmein-hamachi.service'
|
||||
alias jamacho='systemctl stop logmein-hamachi.service'
|
||||
alias jamacho='systemctl stop logmein-hamachi.service'
|
||||
|
||||
alias gb='cd ~/.local/bin'
|
||||
alias g.='cd ~/.config'
|
|
@ -1,13 +0,0 @@
|
|||
# Dotfiles on Git
|
||||
# Instructions here https://news.ycombinator.com/item?id=11070797
|
||||
# https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/
|
||||
|
||||
alias hexa='/usr/bin/git --git-dir=$HOME/hexagons/ --work-tree=$HOME'
|
||||
alias hxa='hexa add -v'
|
||||
alias hxu='hexa add -vu'
|
||||
alias hxls='hexa ls-files -m'
|
||||
alias hxd='hexa diff'
|
||||
alias hxp='hexa push'
|
||||
alias hxs='hexa status'
|
||||
alias hxr='hexa rm --cached'
|
||||
alias hxc='hexa commit -m'
|
|
@ -1,28 +0,0 @@
|
|||
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'
|
||||
|
||||
export FZF_DEFAULT_OPTS="$FZF_DEFAULT_COLORS \
|
||||
--extended \
|
||||
--reverse \
|
||||
--ansi \
|
||||
--inline-info \
|
||||
--preview-window wrap \
|
||||
"
|
||||
|
||||
_fzf_compgen_path() {
|
||||
fd --hidden --follow --exclude ".git" . "$1"
|
||||
}
|
||||
|
||||
_fzf_compgen_dir() {
|
||||
fd --type d --hidden --follow --exclude ".git" . "$1"
|
||||
}
|
||||
|
||||
export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow -g "!{.git,node_modules}/*" 2> /dev/null'
|
||||
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
||||
export FZF_ALT_C_COMMAND="bfs -type d -nohidden"
|
||||
export FZF_COMPLETION_OPTS='+c -x'
|
||||
export FZF_CTRL_T_OPTS="--select-1 --exit-0 --preview '(highlight -O ansi -l {} || bat --color \"always\" {} || tree -C {}) 2> /dev/null | head -200'"
|
||||
export FZF_CTRL_R_OPTS="--preview 'echo {}' --preview-window down:3:hidden:wrap --bind '?:toggle-preview'"
|
||||
export FZF_ALT_C_OPTS="--select-1 --exit-0 --preview 'tree -C {} | head -200'"
|
||||
export FZF_VIM_LOG=$(git config --get alias.l | awk '{$1=""; print $0;}' | tr -d '\r')
|
||||
|
||||
command -v tree > /dev/null && export FZF_ALT_C_OPTS="--preview 'tree -C {} | head -$LINES'"
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euf -o pipefail
|
||||
|
||||
youtube-dl --add-metadata -icx --no-cache-dir --no-call-home --audio-format mp3 --audio-quality 0 --prefer-ffmpeg --no-post-overwrites --geo-bypass -o "/mnt/remote/%(artist)s/%(album)s/%(artist)s - %(album)s - %(track_number)d%(track)s.%(ext)s" "$1"
|
||||
youtube-dl --add-metadata -icx --no-cache-dir --no-call-home --audio-format mp3 --audio-quality 0 --prefer-ffmpeg --no-post-overwrites --geo-bypass -o "/mnt/remote/%(artist)s/%(album)s/%(artist)s - %(album)s - %(track_number)d %(track)s.%(ext)s" "$1"
|
||||
|
||||
echo "Trying to get cover..."
|
||||
HTML_TEMP=$(mktemp)
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Dotfiles on Git
|
||||
# Instructions here https://news.ycombinator.com/item?id=11070797
|
||||
# https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/
|
||||
|
||||
h() { git --git-dir="$HOME/.local/share/hexagons/" --work-tree="$HOME" "$@"; }
|
||||
|
||||
case $1 in
|
||||
*) h "$@" ;;
|
||||
esac
|
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euf -o pipefail
|
||||
|
||||
bgloc="/tmp/bg"
|
||||
|
||||
[ -f "$1" ] && ln -sf "$(readlink -f "$1")" "$bgloc"
|
||||
|
||||
[ -d "$1" ] && ln -sf "$(find "$(readlink -f "$1")" -iregex '.*.\(jpg\|jpeg\|png\|gif\)' -type f | shuf -n 1)" "$bgloc"
|
||||
|
||||
hsetroot -fill "$bgloc"
|
|
@ -1,9 +1,14 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
case $1 in
|
||||
zsh) source ~/.config/zsh/.zshrc ;;
|
||||
fonts) fc-cache -v -f ;;
|
||||
keys) pkill -USR1 -x sxhkd ;;
|
||||
xres) xrdb ~/.config/X11/xresources ;;
|
||||
*) echo "Can't help you with that" ;;
|
||||
esac
|
||||
opt="bspwm mpd dunst picom fonts shell"
|
||||
program="$(echo "$opt" | sed 's/ /\n/g' | fzf -m --cycle --select-1 --exit-0)"
|
||||
|
||||
case $program in
|
||||
bspwm) bspc wm -r;;
|
||||
mpd) pkill mpd; mpd &;;
|
||||
dunst) pkill dunst; dunst &;;
|
||||
picom) pkill picom; picom -b;;
|
||||
fonts) fc-cache -v -f;;
|
||||
shell) source $ZDOTDIR/.zshrc;;
|
||||
*) exit
|
||||
esac
|
||||
|
|
|
@ -5,6 +5,6 @@ pgrep -x transmission-da || (transmission-daemon && notify-send "Starting transm
|
|||
|
||||
sleep 8
|
||||
|
||||
transmission-remote -a "$@" && notify-send "🔽 Torrent added."
|
||||
transmission-remote -a "$@" && notify-send "Torrent added."
|
||||
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ dmenu)
|
|||
linesDisplayed=1
|
||||
fi
|
||||
|
||||
dmenu_cmd="dmenu -b -i -l $linesDisplayed -p Hidden:"
|
||||
dmenu_cmd="dmenu -i -l $linesDisplayed -p Hidden:"
|
||||
|
||||
# Launch dmenu
|
||||
lineNumber=$(echo "$miniList" | cut -d " " -f 3- | nl -w 3 -n rn | sed -r 's/^([ 0-9]+)[ \t]*(.*)$/\1 - \2/' | $dmenu_cmd | cut -d '-' -f -1)
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euf -o pipefail
|
||||
|
||||
fd --type file ~/Pictures/wallpaper d=1 | shuf | sxiv
|
26
.tmux.conf
26
.tmux.conf
|
@ -1,15 +1,10 @@
|
|||
# TERM
|
||||
set -g default-terminal tmux-256color
|
||||
# set -ga terminal-overrides ",xterm-termite:Tc,xterm-256color:Tc"
|
||||
# set -ga terminal-overrides ",*col*:Tc"
|
||||
# set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'
|
||||
|
||||
# Opciones basicas
|
||||
set -g default-terminal tmux-256color
|
||||
setw -gq utf8 on
|
||||
set -g set-clipboard on
|
||||
set -g mouse on
|
||||
set -gq status-utf8 on
|
||||
set -g escape-time 0
|
||||
set -sg escape-time 0
|
||||
set -g history-limit 102400
|
||||
|
||||
# Ventanas
|
||||
|
@ -30,7 +25,7 @@ set -g visual-silence off
|
|||
set -g bell-action none
|
||||
|
||||
# Vi
|
||||
set -g mode-keys vi
|
||||
setw -g mode-keys vi
|
||||
set -g status-keys vi
|
||||
|
||||
# Statusbar
|
||||
|
@ -60,6 +55,8 @@ unbind-key C-b
|
|||
unbind-key space
|
||||
unbind-key '"'
|
||||
unbind-key %
|
||||
unbind-key [
|
||||
unbind-key p
|
||||
|
||||
# Prefijo
|
||||
set -g prefix M-a
|
||||
|
@ -79,7 +76,7 @@ bind-key -r H resize-pane -L 2
|
|||
bind-key -r L resize-pane -R 2
|
||||
bind-key -r K resize-pane -U 2
|
||||
bind-key -r J resize-pane -D 2
|
||||
bind-key * resize-pane -Z
|
||||
bind-key * if-shell "$is_vim" "send-keys Space *" "resize-pane -Z"
|
||||
|
||||
# Trocar panes
|
||||
bind-key < swap-pane -U
|
||||
|
@ -111,14 +108,14 @@ bind-key s choose-tree -Zw "swap-pane -t '%%'"
|
|||
bind-key m choose-tree -Zw "move-pane -t '%%'"
|
||||
|
||||
# Copy/paste. Seleccionar texto con el mouse lo copia automaticamente al clipboard
|
||||
bind-key [ copy-mode
|
||||
bind-key ] paste-buffer
|
||||
bind-key b list-buffers
|
||||
bind-key Escape copy-mode
|
||||
bind-key p paste-buffer
|
||||
bind-key b list-buffers
|
||||
bind-key P choose-buffer
|
||||
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xsel -i -p -b"
|
||||
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -in -selection clipboard"
|
||||
bind-key -n M-S-v run "xsel -o | tmux load-buffer - ; tmux paste-buffer"
|
||||
|
||||
bind -Tcopy-mode-vi 'v' send -X begin-selection
|
||||
bind -Tcopy-mode-vi 'y' send -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
|
||||
|
||||
# Prender y apagar statusbar
|
||||
bind-key & set-option -g status
|
||||
|
@ -193,6 +190,7 @@ bind-key -n M-k run-shell -b "$navigate_up"
|
|||
bind-key -n M-l run-shell -b "$navigate_right"
|
||||
bind-key -n M-\\ run-shell -b "$navigate_back"
|
||||
|
||||
|
||||
# Mejor soporte para mouse
|
||||
set -g @prevent-scroll-for-fullscreen-alternate-buffer 'on'
|
||||
set -g @scroll-speed-num-lines-per-scroll '3'
|
||||
|
|
15
.xinitrc
15
.xinitrc
|
@ -32,13 +32,14 @@ setxkbmap -option caps:escape
|
|||
eval "$(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)"
|
||||
export SSH_AUTH_SOCK
|
||||
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
|
||||
mpd &
|
||||
setbg &
|
||||
picom -b -d :0 &
|
||||
dunst -conf ~/.config/dunst/dunstrc &
|
||||
unclutter &
|
||||
xsetroot -cursor_name left_ptr &
|
||||
sxhkd &
|
||||
xset s 300 250
|
||||
xss-lock -n dim-screen -l -- exeflock4 &
|
||||
randbg "$HOME/Pictures/wallpaper" &
|
||||
dunst -conf ~/.config/dunst/dunstrc &
|
||||
picom -b -d :0 &
|
||||
mpd &
|
||||
unclutter &
|
||||
xset s 0 550
|
||||
xss-lock -l -- exeflock4 &
|
||||
|
||||
exec bspwm
|
||||
|
|
19
.zshenv
19
.zshenv
|
@ -1,7 +1,7 @@
|
|||
# Programas y Opciones del Sistema {{{
|
||||
export TERMINAL="st"
|
||||
export EDITOR="nvim"
|
||||
export GIT_EDITOR=$EDITOR
|
||||
export GIT_EDITOR="$EDITOR"
|
||||
export BROWSER="firefox"
|
||||
export READER="zathura"
|
||||
export VIDEO="mpv"
|
||||
|
@ -27,14 +27,14 @@ export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
|
|||
export XDG_DATA_HOME="$HOME/.local/share"
|
||||
export XDG_CONFIG_HOME="$HOME/.config"
|
||||
export XDG_CACHE_HOME="$HOME/.cache"
|
||||
export ZDOTDIR="$HOME/.config/zsh"
|
||||
export INPUTRC="$HOME/.config/inputrc"
|
||||
export WGETRC="$HOME/.config/wget/wgetrc"
|
||||
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
|
||||
export INPUTRC="$XDG_CONFIG_HOME/inputrc"
|
||||
export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
|
||||
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
|
||||
export PASSWORD_STORE_DIR="$HOME/.local/share/password-store"
|
||||
export GTK2_RC_FILES="$HOME/.config/gtk-2.0/gtkrc-2.0"
|
||||
export NOTMUCH_CONFIG="$HOME/.config/notmuch-config"
|
||||
export MAILCAPS="$HOME/.config/mutt/mailcap"
|
||||
export PASSWORD_STORE_DIR="$XDG_DATA_HOME/password-store"
|
||||
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 IPYTHONDIR="$XDG_CONFIG_HOME/ipython"
|
||||
export JUPYTER_CONFIG_DIR="$XDG_CONFIG_HOME/jupyter"
|
||||
export PYLINTHOME="$XDG_CACHE_HOME/pylint"
|
||||
|
@ -42,7 +42,7 @@ export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
|
|||
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
|
||||
export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME/java"
|
||||
# }}}
|
||||
# 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'
|
||||
|
@ -64,6 +64,7 @@ export FZF_COMPLETION_OPTS='+c -x'
|
|||
export FZF_CTRL_T_OPTS="--select-1 --exit-0 --preview 'bat --color=always {}'"
|
||||
export FZF_ALT_C_OPTS="--select-1 --exit-0"
|
||||
export FZF_VIM_LOG=$(git config --get alias.l | awk '{$1=""; print $0;}' | tr -d '\r')
|
||||
|
||||
# }}}
|
||||
# Less {{{
|
||||
export LESS=-R
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
acpid
|
||||
alacritty
|
||||
alsa-utils
|
||||
android-tools
|
||||
android-udev
|
||||
arandr
|
||||
atool
|
||||
audacity
|
||||
autoconf
|
||||
|
@ -10,7 +10,6 @@ automake
|
|||
autopep8
|
||||
bat
|
||||
bison
|
||||
blueman
|
||||
brandr
|
||||
broot
|
||||
bspwm
|
||||
|
@ -36,7 +35,6 @@ ethtool
|
|||
exfat-utils
|
||||
f2fs-tools
|
||||
fakeroot
|
||||
fasd
|
||||
fd
|
||||
ffmpegthumbnailer
|
||||
file-roller
|
||||
|
@ -114,7 +112,6 @@ nilfs-utils
|
|||
nmap
|
||||
notmuch
|
||||
noto-fonts-cjk
|
||||
noto-fonts-emoji
|
||||
ntfs-3g
|
||||
offlineimap
|
||||
os-prober
|
||||
|
@ -135,10 +132,8 @@ perl-term-readline-gnu
|
|||
perl-text-charwidth
|
||||
picom
|
||||
pkgbrowser
|
||||
pkgfile
|
||||
polkit-gnome
|
||||
prettier
|
||||
pulseaudio-bluetooth
|
||||
pulseaudio-jack
|
||||
python-beautifulsoup4
|
||||
python-glfw
|
||||
|
@ -189,7 +184,6 @@ tidy
|
|||
tmux
|
||||
transmission-cli
|
||||
ttf-jetbrains-mono
|
||||
ttf-joypixels
|
||||
typescript
|
||||
udisks2
|
||||
unace
|
||||
|
@ -225,7 +219,7 @@ xorg-xsetroot
|
|||
xorg-xwininfo
|
||||
xsel
|
||||
xss-lock
|
||||
xterm
|
||||
xtitle
|
||||
yapf
|
||||
yay
|
||||
zathura-cb
|
||||
|
|
|
@ -25,7 +25,6 @@ nerd-fonts-roboto-mono
|
|||
obs-ndi-bin
|
||||
otf-san-francisco
|
||||
perl-extract-url
|
||||
pmount
|
||||
python-lolcat
|
||||
python-pysdl2
|
||||
realtimeconfigquickscan-git
|
||||
|
@ -33,7 +32,7 @@ simple-mtpfs
|
|||
soulseekqt
|
||||
stylelint
|
||||
tcllib
|
||||
terminus-font-ll2-td1
|
||||
terminess-powerline-font-git
|
||||
toilet-fonts
|
||||
tremc
|
||||
tweak-hexeditor
|
||||
|
|
Reference in New Issue