dgy
/
hexagons
Archived
1
0
Fork 0

Limpieza y mejoras

adapte los scripts para escribir y postear a mis muchos blogs en tilde y
ademas les arregle un par de descuidos. voy a ver si consigo ayuda para
mejorarlos un poco mas.

mejore una cosita del prompt para que sean menos lineas con el mismo
resultado y arregle el tema del cursor que no cambiaba a veces.

todo lo demas es mantenimiento, sacar cosas agregar cosas etc.
This commit is contained in:
deadguy 2020-12-28 09:50:51 -03:00
parent 221de19e21
commit b9c86e43e9
Signed by: dgy
GPG Key ID: 37CA55B52CF63730
14 changed files with 69 additions and 62 deletions

View File

@ -3,7 +3,6 @@
setxkbmap -option caps:escape setxkbmap -option caps:escape
xsetroot -cursor_name left_ptr & xsetroot -cursor_name left_ptr &
equiset & equiset &
mpd &
xss-lock -l -- exeflock4 & xss-lock -l -- exeflock4 &
xrdb -merge "$XDG_CONFIG_HOME/X11/xresources" xrdb -merge "$XDG_CONFIG_HOME/X11/xresources"
monis & monis &

View File

@ -21,5 +21,5 @@
<bool>true</bool> <bool>true</bool>
</edit> </edit>
</match> </match>
</fontconfig> </fontconfig>

View File

@ -59,18 +59,4 @@
<bool>true</bool> <bool>true</bool>
</edit> </edit>
</match> </match>
<!-- Fantasque without loopy k -->
<match target='font'>
<test name='fontformat' compare='not_eq'>
<string/>
</test>
<test name='family'>
<string>Fantasque Sans Mono</string>
</test>
<edit name='fontfeatures' mode='assign_replace'>
<string>ss01</string>
</edit>
</match>
</fontconfig> </fontconfig>

View File

@ -249,7 +249,6 @@ map . set hidden!
map ~ no_preview map ~ no_preview
map | top map | top
map ¿ bottom map ¿ bottom
map R reload
map x clear map x clear
map dd cut map dd cut
map yy copy map yy copy
@ -271,8 +270,8 @@ map D %mv -i $fs .
map za $apack "$f".zip $f map za $apack "$f".zip $f
map zu $file-roller "$f" map zu $file-roller "$f"
map zx $atool --each --extract "$f" map zx $atool --each --extract "$f"
map zg $hx add $fs map zf $hx add $fs
map zf $hx add $fs . map zd $hx add $fs .
map zn newfold map zn newfold
map i push A<c-a> # at the very beginning map i push A<c-a> # at the very beginning
@ -282,9 +281,9 @@ map a push A<a-b> # after extension
map B bulkrename map B bulkrename
map L :Link map L :Link
map f fzf_jump #goto dir map f fzf_jump
map / $lf -remote "send $id select \"$(FZF_DEFAULT_COMMAND='fd --max-depth=1' fzf)\"" #local dir find map / $lf -remote "send $id select \"$(FZF_DEFAULT_COMMAND='fd --max-depth=1' fzf)\""
map F $find | lf -remote "send $id select $(fzf --reverse --border --margin 2% --inline-info --color border:#005688,bg+:#16252E,fg+:#26c6da,hl+:#ffffff,hl:#26c6da)" #global find map F $find | lf -remote "send $id select $(fzf --reverse --border --margin 2% --inline-info --color border:#005688,bg+:#16252E,fg+:#26c6da,hl+:#ffffff,hl:#26c6da)"
# Movement # Movement
map gR cd / map gR cd /

View File

@ -13,6 +13,7 @@ stop-playback-on-init-failure=yes
idle=once idle=once
osc=yes osc=yes
ytdl-format=bestvideo[height<=?1080]+bestaudio/best ytdl-format=bestvideo[height<=?1080]+bestaudio/best
ytdl-raw-options=youtube-skip-dash-manifest=,no-call-home=,no-cache-dir=,geo-bypass=
screenshot-format=png screenshot-format=png
screenshot-directory="~/img/scrot" screenshot-directory="~/img/scrot"
osd-level=1 osd-level=1
@ -36,7 +37,6 @@ sub-fix-timing=no
sub-ass-force-style=Kerning=yes sub-ass-force-style=Kerning=yes
sub-use-margins sub-use-margins
sub-ass-force-margins sub-ass-force-margins
cache-secs=300
cursor-autohide=1000 cursor-autohide=1000
prefetch-playlist=yes prefetch-playlist=yes
hls-bitrate=max hls-bitrate=max

View File

@ -50,9 +50,9 @@ macro index A "<limit>all\n" "show all messages (undo limit)"
macro browser h '<change-dir><kill-line>..<enter>' "Go to parent folder" macro browser h '<change-dir><kill-line>..<enter>' "Go to parent folder"
macro index,pager <f1> '<sync-mailbox><enter-command>source /home/deadguy/.config/neomutt/accounts/6-dgy@fuckup.club.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to dgy@fuckup.club" # mw-autogenerated
macro index,pager <f2> '<sync-mailbox><enter-command>source ~/.config/neomutt/accounts/1-alex.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to vidaar@gmail.com" macro index,pager <f2> '<sync-mailbox><enter-command>source ~/.config/neomutt/accounts/1-alex.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to vidaar@gmail.com"
macro index,pager <f3> '<sync-mailbox><enter-command>source ~/.config/neomutt/accounts/2-alejo.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to alejo.jardon@gmail.com" macro index,pager <f3> '<sync-mailbox><enter-command>source ~/.config/neomutt/accounts/2-alejo.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to alejo.jardon@gmail.com"
macro index,pager <f5> '<sync-mailbox><enter-command>source ~/.config/neomutt/accounts/3-git.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to adeadgit@gmail.com"
macro index,pager <f4> '<sync-mailbox><enter-command>source ~/.config/neomutt/accounts/4-iamz@airmail.cc.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to iamz@airmail.cc" macro index,pager <f4> '<sync-mailbox><enter-command>source ~/.config/neomutt/accounts/4-iamz@airmail.cc.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to iamz@airmail.cc"
macro index,pager <f1> '<sync-mailbox><enter-command>source /home/deadguy/.config/neomutt/accounts/6-dgy@fuckup.club.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to dgy@fuckup.club" # mw-autogenerated macro index,pager <f5> '<sync-mailbox><enter-command>source ~/.config/neomutt/accounts/3-git.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to adeadgit@gmail.com"
macro index,pager a "<enter-command>set my_pipe_decode=\$pipe_decode pipe_decode<return><pipe-message>abook --add-email<return><enter-command>set pipe_decode=\$my_pipe_decode; unset my_pipe_decode<return>" "add the sender address to abook" macro index,pager a "<enter-command>set my_pipe_decode=\$pipe_decode pipe_decode<return><pipe-message>abook --add-email<return><enter-command>set pipe_decode=\$my_pipe_decode; unset my_pipe_decode<return>" "add the sender address to abook"

View File

@ -8,14 +8,14 @@
set index_format=" %zs %zc %zt %<[y?%<[m?%<[d?%[%R ]&%[%a %d]>&%[%b %d]>&%[%F ]> %-28.28L %?M?(%1M)& ? %?X?& ? %s" set index_format=" %zs %zc %zt %<[y?%<[m?%<[d?%[%R ]&%[%a %d]>&%[%b %d]>&%[%F ]> %-28.28L %?M?(%1M)& ? %?X?& ? %s"
set pager_format="\n %n %T %s%*  %{!%F · %R} %?X? %X?%P  \n \n" set pager_format="\n %n %T %s%*  %{!%F · %R} %?X? %X?%P  \n \n"
set status_format = " %f %?r? %m ?%?n? %n ?%?d? %d ?%?t? %t ?%?F? %F ?%?p? %p? \n \n" set status_format = " %f %?r? %m ?%?n? %n ?%?d? %d ?%?t? %t ?%?F? %F ?%?p? %p? \n \n"
set vfolder_format = " %N %?n?%3n& ? %8m  · %f" set vfolder_format = " %N %?n?%3n& ? %8m  · %f"
set attach_format = "%u%D  %T%-75.75d %?T?%& ? %5s · %m/%M" set attach_format = "%u%D  %T%-75.75d %?T?%& ? %5s · %m/%M"
# no addressed to me, to me, group, cc, sent by me, mailing list # no addressed to me, to me, group, cc, sent by me, mailing list
set to_chars="" set to_chars=""
# unchanged mailbox, changed, read only, attach mode # unchanged mailbox, changed, read only, attach mode
set status_chars = " " set status_chars = " "
ifdef crypt_chars set crypt_chars = " " ifdef crypt_chars set crypt_chars = " "
set flag_chars = " " set flag_chars = " "
@ -38,7 +38,7 @@ color status color12 default '(\s)([a-zA-Z0-9])'
color status color12 default '( )' color status color12 default '( )'
color status color12 default '(\S)' color status color12 default '(\S)'
color status color0 default '(|)' color status color0 default '(|)'
color status green default '' color status green default ''
color status white default '' color status white default ''
color status yellow default '' color status yellow default ''
color status red default '' color status red default ''

View File

@ -2,6 +2,7 @@ scriptencoding utf-8
if !exists('autocommands_loaded') && has('autocmd') if !exists('autocommands_loaded') && has('autocmd')
let autocommands_loaded = 1 let autocommands_loaded = 1
let ftToIgnore = ['markdown', 'html']
aug OnInsert aug OnInsert
au BufWinEnter,FocusGained,InsertLeave,WinEnter * call dead#functions#Relativize(1) au BufWinEnter,FocusGained,InsertLeave,WinEnter * call dead#functions#Relativize(1)
@ -25,7 +26,7 @@ if !exists('autocommands_loaded') && has('autocmd')
aug END aug END
aug OnSave aug OnSave
au BufWritePre * :%s/\s\+$//e au BufWritePre * if index(ftToIgnore, &ft) < 0 | :%s/\s\+$//e
au BufWritePost *xresources !xrdb % au BufWritePost *xresources !xrdb %
au BufWritePost *sxhkdrc !pkill -USR1 sxhkd au BufWritePost *sxhkdrc !pkill -USR1 sxhkd
au BufWritePost *.tex !pdflatex % au BufWritePost *.tex !pdflatex %

View File

@ -46,10 +46,10 @@ super + space
rofi -show drun -theme dprompt2 rofi -show drun -theme dprompt2
super + {b,q,s,n,p,t,r,d} super + {b,q,s,n,p,t,r,d}
{$BROWSER,powermenu,rofi -show window,escribir,pom,tv,ref,leer} {$BROWSER,powermenu,rofi -show window,escribir,postear,tv,ref,leer}
super + ctrl + d super + ctrl + {d,p}
deci {deci,pom}
super + {_,shift} + g super + {_,shift} + g
{grabar,corte} {grabar,corte}

View File

@ -19,20 +19,15 @@ function () {
export SPROMPT="zsh: correct %F{red}'%R'%f to %F{green}'%r'%f [%B%Uy%u%bes, %B%Un%u%bo, %B%Ue%u%bdit, %B%Ua%u%bbort]? " export SPROMPT="zsh: correct %F{red}'%R'%f to %F{green}'%r'%f [%B%Uy%u%bes, %B%Un%u%bo, %B%Ue%u%bdit, %B%Ua%u%bbort]? "
function zle-keymap-select { function zle-keymap-select {
if [[ ${KEYMAP} == vicmd ]] || case $KEYMAP in
[[ $1 = 'block' ]]; then vicmd) echo -ne '\e[2 q';;
echo -ne '\e[2 q' viins|main) echo -ne '\e[6 q';;
elif [[ ${KEYMAP} == main ]] || esac
[[ ${KEYMAP} == viins ]] ||
[[ ${KEYMAP} = '' ]] ||
[[ $1 = 'beam' ]]; then
echo -ne '\e[6 q'
fi
} }
zle -N zle-keymap-select zle -N zle-keymap-select
zle-line-init() {
echo -ne "\e[6 q" _fix_cursor() {
echo -ne '\e[6 q'
} }
zle -N zle-line-init
echo -ne '\e[5 q' precmd_functions+=(_fix_cursor)
preexec() { echo -ne '\e[6 q' ;}

View File

@ -11,11 +11,10 @@ alias \
pm='pulsemixer' \ pm='pulsemixer' \
nb='newsboat -q' \ nb='newsboat -q' \
py='python ' \ py='python ' \
gw='glow -p -w 80' \
ttx='txtnish timeline' \ ttx='txtnish timeline' \
vdf='nvim -d' \ vdf='nvim -d' \
irc='catgirl' \ irc='catgirl' \
play='ncmpcpp' \ play='mpd && ncmpcpp' \
pyserv='python -m http.server' pyserv='python -m http.server'
# XBPS # XBPS
@ -76,7 +75,7 @@ alias \
# Colores para pintar este twist # Colores para pintar este twist
alias \ alias \
diff='diff --color=auto' \ diff='diff --color=auto' \
ls='ls -AFpt --color=always --group-directories-first' \ ls='ls -AFt --color=always --group-directories-first' \
grep='grep --color=tty -d skip' \ grep='grep --color=tty -d skip' \
dmesg='dmesg --color=always' \ dmesg='dmesg --color=always' \
vsv='sudo vsv -c yes' \ vsv='sudo vsv -c yes' \
@ -95,7 +94,6 @@ alias \
dfc='dfc -dmT' \ dfc='dfc -dmT' \
wget="wget --no-hsts" wget="wget --no-hsts"
slrn='slrn -i ~/.config/slrn/rc -f ~/.config/slrn/jnewsrc.club --create' slrn='slrn -i ~/.config/slrn/rc -f ~/.config/slrn/jnewsrc.club --create'
# strim='mpv --jack-port="OBS Jack Input"' \
# Comandos # Comandos
alias \ alias \
@ -107,5 +105,6 @@ alias \
pwn='chmod +x' \ pwn='chmod +x' \
atl='atool --each --extract' \ atl='atool --each --extract' \
rat='tar -xvJf' \ rat='tar -xvJf' \
mpk='mpd --kill' \
um='udevil mount' \ um='udevil mount' \
uu='udevil umount' uu='udevil umount'

View File

@ -30,22 +30,23 @@ notas() {
articulo() { articulo() {
menuArticulo=$(printf "Fuckup\\nMuert.o\\nDotfiles\\nTextArt" | listar -p " ") menuArticulo=$(printf "Fuckup\\nMuert.o\\nDotfiles\\nTextArt" | listar -p " ")
case $menuArticulo in case $menuArticulo in
"Fuckup") cd "$ARTDIR/fuckup.club/blog" || exit ;; "Fuckup") cd "$ARTDIR/fuckup/blog" || exit ;;
"Dotfiles") cd "$ARTDIR/club/the-dot-files" || exit ;; "Dotfiles") cd "$ARTDIR/club/the-dot-files" || exit ;;
"TextArt") cd "$ARTDIR/town/textarrrgh" || exit ;; "TextArt") cd "$ARTDIR/town/textarrrgh" || exit ;;
"Muert.o") cd "$ARTDIR/texto-plano/muert.o" || exit ;; "Muert.o") cd "$ARTDIR/texto-plano/muert.o" || exit ;;
esac esac
[ -z "$menuArticulo" ] && exit 0
nombre="$(listar -theme dprompt -p "Titulo: ")" 2>/dev/null nombre="$(listar -theme dprompt -p "Titulo: ")" 2>/dev/null
[ -z "$nombre" ] && exit 0 [ -z "$nombre" ] && exit 0
nombreForm="$(echo "$nombre" | tr ' ' '-')" nombreForm="$(echo "$nombre" | tr ' ' '-')"
if [ "$PWD" = "$ARTDIR/texto-plano/muert.o" ]; then if [ "$PWD" = "$ARTDIR/texto-plano/muert.o" ]; then
hugo new articulos/"$nombreForm".md hugo new articulos/"$nombreForm".md
sleep 5 sleep 3
abrir content/articulos/"$nombre".md abrir "$PWD/content/articulos/$nombreForm.md"
else else
hugo new posts/"$nombreForm".md hugo new posts/"$nombreForm".md
sleep 5 sleep 3
abrir content/posts/"$nombre".md abrir "$PWD/content/posts/$nombreForm.md"
fi fi
} }

View File

@ -1,5 +1,34 @@
#!/bin/sh #!/bin/sh
cd "$HOME/doc/paginas/muert.o" || exit MAINDIR="$HOME/doc/paginas/tilde"
git add content/articulos/* && git commit -m "nuevo post"
git push muerto() {
cd "$MAINDIR/texto-plano/muert.o" || exit
hugo
git add public/* && git commit -m "nuevo post"
}
dotfiles() {
cd "$MAINDIR/club/the-dot-files" || exit
git add . && git commit -m "nuevo post"
}
fuckup() {
cd "$MAINDIR/fuckup/blog" || exit
git add . && git commit -m "nuevo post"
}
textart() {
cd "$MAINDIR/town/textarrrgh" || exit
git add . && git commit -m "nuevo post"
}
listar() { rofi -dmenu "$@"; }
MENU="$(printf "Fuckup\\nMuerto\\nDotfiles\\nTextArt" | listar -p " ")"
case $MENU in
'Fuckup') fuckup ;;
'Muerto') muerto ;;
'Dotfiles') dotfiles ;;
'TextArt') textart ;;
esac

View File

@ -32,14 +32,12 @@ file-roller
firefox firefox
fluidsynth fluidsynth
freepats freepats
fuse-sshfs
fzf fzf
gcc gcc
giada giada
git git
git-extras git-extras
git-libsecret git-libsecret
glow
gnome-ssh-askpass gnome-ssh-askpass
gnupg2 gnupg2
go go
@ -68,7 +66,6 @@ librsvg
librsvg-utils librsvg-utils
libva-intel-driver libva-intel-driver
lm_sensors lm_sensors
lynx
maim maim
mdadm mdadm
mlocate mlocate
@ -111,6 +108,7 @@ qjackctl
ripgrep ripgrep
rkhunter rkhunter
rofi rofi
rpi-imager
sc3-plugins sc3-plugins
setxkbmap setxkbmap
shellcheck shellcheck
@ -123,13 +121,13 @@ sxhkd
sxiv sxiv
texlive-bin texlive-bin
thermald thermald
tidy5
timidity timidity
tmux tmux
toilet toilet
transmission transmission
tremc tremc
udevil udevil
udisks2
unclutter-xfixes unclutter-xfixes
unrar unrar
unzip unzip