Fontconfig, Haiku Style (tal vez), giladas de siempre
This commit is contained in:
parent
a3ca568c64
commit
423aa6b0ec
|
@ -35,7 +35,7 @@
|
|||
*.color7: #a89984
|
||||
*.color15: #ffffff
|
||||
|
||||
dmenu.font: System Charcoal:pixelsize=16:antialias=true:autohint=true;
|
||||
dmenu.font: ChicagoFLF:pixelsize=16:antialias=true:autohint=true;
|
||||
dmenu.background: #d8d8d8
|
||||
dmenu.foreground: #380000
|
||||
dmenu.selbackground: #fccb00
|
||||
|
@ -50,7 +50,7 @@ Xft.rgba: rgb
|
|||
|
||||
Xcursor.theme: HaikuHandRe
|
||||
|
||||
Sxiv.font: cozette:size=14
|
||||
Sxiv.font: chicagoflf:size=9
|
||||
Sxiv.background: black
|
||||
Sxiv.foreground: white
|
||||
Xft.dpi: 112.583
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[global]
|
||||
font = Noto Sans 9.5
|
||||
font = System Charcoal 9
|
||||
markup = full
|
||||
format = "<b>%s</b>\n%b"
|
||||
format = "%s\n%b"
|
||||
sort = yes
|
||||
indicate_hidden = no
|
||||
alignment = left
|
||||
|
@ -66,7 +66,7 @@
|
|||
|
||||
# Always run rule-defined scripts, even if the notification is suppressed
|
||||
always_run_script = true
|
||||
frame_width = 1
|
||||
frame_width = 2
|
||||
per_monitor_dpi = false
|
||||
|
||||
[shortcuts]
|
||||
|
@ -76,15 +76,15 @@
|
|||
context = mod4+ctrl+semicolon
|
||||
|
||||
[urgency_low]
|
||||
background = "#212121"
|
||||
foreground = "#e8d0c0"
|
||||
frame_color = "#b16286"
|
||||
background = "#d8d8d8"
|
||||
foreground = "#380000"
|
||||
frame_color = "#f3f3f3"
|
||||
timeout = 5
|
||||
|
||||
[urgency_normal]
|
||||
background = "#101010"
|
||||
foreground = "#e0d0c3"
|
||||
frame_color = "#0474a7"
|
||||
background = "#d8d8d8"
|
||||
foreground = "#380000"
|
||||
frame_color = "#9d9d9d"
|
||||
timeout = 10
|
||||
|
||||
[urgency_critical]
|
||||
|
@ -97,4 +97,8 @@
|
|||
appname = neomutt
|
||||
new_icon = "/home/deadguy/img/.icn/correo.png"
|
||||
|
||||
[rss]
|
||||
appname = newsboat
|
||||
new_icon = "/home/deadguy/img/.icn/rss.png"
|
||||
|
||||
# vim: ft=cfg
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
<?xml version='1.0'?>
|
||||
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
|
||||
<fontconfig>
|
||||
|
||||
<!--
|
||||
You need a patched Cairo libary to display color emoji.
|
||||
https://aur.archlinux.org/packages/cairo-coloredemoji
|
||||
https://software.opensuse.org/package/libcairo2-color-emoji
|
||||
-->
|
||||
<match target="font">
|
||||
<test name="family" compare="contains">
|
||||
<string>Emoji</string>
|
||||
</test>
|
||||
<edit name="hinting" mode="assign">
|
||||
<bool>true</bool>
|
||||
</edit>
|
||||
<edit name="hintstyle" mode="assign">
|
||||
<const>hintslight</const>
|
||||
</edit>
|
||||
<edit name="embeddedbitmap" mode="assign">
|
||||
<bool>true</bool>
|
||||
</edit>
|
||||
</match>
|
||||
|
||||
</fontconfig>
|
|
@ -0,0 +1,49 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||
<fontconfig>
|
||||
<match>
|
||||
<test name="family"><string>Noto Sans CJK Auto</string></test>
|
||||
<test name="lang" compare="contains">
|
||||
<string>ja</string>
|
||||
</test>
|
||||
<edit name="family" mode="assign" binding="strong">
|
||||
<string>Noto Sans CJK JP</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match>
|
||||
<test name="family"><string>Noto Sans CJK Auto</string></test>
|
||||
<test name="lang" compare="contains">
|
||||
<string>zh-cn</string>
|
||||
</test>
|
||||
<edit name="family" mode="assign" binding="strong">
|
||||
<string>Noto Sans CJK SC</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match>
|
||||
<test name="family"><string>Noto Sans CJK Auto</string></test>
|
||||
<test name="lang" compare="contains">
|
||||
<string>zh-tw</string>
|
||||
</test>
|
||||
<edit name="family" mode="assign" binding="strong">
|
||||
<string>Noto Sans CJK TC</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match>
|
||||
<test name="family"><string>Noto Sans CJK Auto</string></test>
|
||||
<test name="lang" compare="contains">
|
||||
<string>zh-hk</string>
|
||||
</test>
|
||||
<edit name="family" mode="assign" binding="strong">
|
||||
<string>Noto Sans CJK TC</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match>
|
||||
<test name="family"><string>Noto Sans CJK Auto</string></test>
|
||||
<test name="lang" compare="contains">
|
||||
<string>ko</string>
|
||||
</test>
|
||||
<edit name="family" mode="assign" binding="strong">
|
||||
<string>Noto Sans CJK KR</string>
|
||||
</edit>
|
||||
</match>
|
||||
</fontconfig>
|
|
@ -0,0 +1,49 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||
<fontconfig>
|
||||
<match>
|
||||
<test name="family"><string>Noto Serif CJK Auto</string></test>
|
||||
<test name="lang" compare="contains">
|
||||
<string>ja</string>
|
||||
</test>
|
||||
<edit name="family" mode="assign" binding="strong">
|
||||
<string>Noto Serif CJK JP</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match>
|
||||
<test name="family"><string>Noto Serif CJK Auto</string></test>
|
||||
<test name="lang" compare="contains">
|
||||
<string>zh-cn</string>
|
||||
</test>
|
||||
<edit name="family" mode="assign" binding="strong">
|
||||
<string>Noto Serif CJK SC</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match>
|
||||
<test name="family"><string>Noto Serif CJK Auto</string></test>
|
||||
<test name="lang" compare="contains">
|
||||
<string>zh-tw</string>
|
||||
</test>
|
||||
<edit name="family" mode="assign" binding="strong">
|
||||
<string>Noto Serif CJK TC</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match>
|
||||
<test name="family"><string>Noto Serif CJK Auto</string></test>
|
||||
<test name="lang" compare="contains">
|
||||
<string>zh-hk</string>
|
||||
</test>
|
||||
<edit name="family" mode="assign" binding="strong">
|
||||
<string>Noto Serif CJK TC</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match>
|
||||
<test name="family"><string>Noto Serif CJK Auto</string></test>
|
||||
<test name="lang" compare="contains">
|
||||
<string>ko</string>
|
||||
</test>
|
||||
<edit name="family" mode="assign" binding="strong">
|
||||
<string>Noto Serif CJK KR</string>
|
||||
</edit>
|
||||
</match>
|
||||
</fontconfig>
|
|
@ -0,0 +1,92 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||
<fontconfig>
|
||||
<alias>
|
||||
<family>serif</family>
|
||||
<prefer>
|
||||
<family>New York Medium</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>sans-serif</family>
|
||||
<prefer>
|
||||
<family>Noto Sans Display</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>sans</family>
|
||||
<prefer>
|
||||
<family>Noto Sans Display</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>monospace</family>
|
||||
<prefer>
|
||||
<family>NotoSansMono Nerd Font</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
|
||||
<!-- smaller than 9px -->
|
||||
<match target="font">
|
||||
<test name="pixelsize" qual="any" compare="less"><double>10</double></test>
|
||||
<edit mode="assign" name="antialias"> <bool>false</bool></edit>
|
||||
</match>
|
||||
|
||||
<match target="font">
|
||||
<edit mode="assign" name="antialias">
|
||||
<bool>true</bool>
|
||||
</edit>
|
||||
<edit mode="assign" name="hinting">
|
||||
<bool>true</bool>
|
||||
</edit>
|
||||
<edit mode="assign" name="autohint">
|
||||
<bool>false</bool>
|
||||
</edit>
|
||||
<edit mode="assign" name="hintstyle">
|
||||
<const>hintslight</const>
|
||||
</edit>
|
||||
<edit mode="assign" name="rgba">
|
||||
<const>rgb</const>
|
||||
</edit>
|
||||
<edit mode="assign" name="lcdfilter">
|
||||
<const>lcddefault</const>
|
||||
</edit>
|
||||
<edit mode="assign" name="embeddedbitmap">
|
||||
<bool>true</bool>
|
||||
</edit>
|
||||
</match>
|
||||
|
||||
<match target='font'>
|
||||
<test name='fontformat' compare='not_eq'>
|
||||
<string/>
|
||||
</test>
|
||||
<test name='family'>
|
||||
<string>Iosevka</string>
|
||||
</test>
|
||||
<edit name='fontfeatures' mode='assign_replace'>
|
||||
<string>cv08</string>
|
||||
<string>cv90</string>
|
||||
<string>cv43</string>
|
||||
<string>cv51</string>
|
||||
<string>cv46</string>
|
||||
<string>cv65</string>
|
||||
<string>cv19</string>
|
||||
<string>cv54</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match target="font">
|
||||
<test name="family" compare="eq" ignore-blanks="true">
|
||||
<string>Iosevka</string>
|
||||
</test>
|
||||
<edit name="fontfeatures" mode="append">
|
||||
<string>liga off</string>
|
||||
<string>dlig off</string>
|
||||
<string>calt off</string>
|
||||
</edit>
|
||||
</match>
|
||||
|
||||
</fontconfig>
|
|
@ -2,9 +2,9 @@
|
|||
# Any customization should be done in ~/.gtkrc-2.0.mine instead.
|
||||
|
||||
include "/home/deadguy/.config/gtk-2.0/gtkrc-2.0.mine"
|
||||
gtk-theme-name="BeOS-R5"
|
||||
gtk-icon-theme-name="BeOS-r5-Icons"
|
||||
gtk-font-name="Noto Sans Display 10"
|
||||
gtk-theme-name="Haiku"
|
||||
gtk-icon-theme-name="Haiku"
|
||||
gtk-font-name="ChicagoFLF 10"
|
||||
gtk-cursor-theme-name="HaikuHandRe"
|
||||
gtk-cursor-theme-size=0
|
||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
[Settings]
|
||||
gtk-application-prefer-dark-theme=1
|
||||
gtk-cursor-theme-name=HaikuHandRe
|
||||
gtk-theme-name=BeOS-R5
|
||||
gtk-icon-theme-name=BeOS-r5-Icons
|
||||
gtk-font-name=Noto Sans Display 10
|
||||
gtk-theme-name=Haiku
|
||||
gtk-icon-theme-name=Haiku
|
||||
gtk-font-name=ChicagoFLF 10
|
||||
gtk-cursor-theme-size=0
|
||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
|
||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_SMALL_TOOLBAR
|
||||
|
@ -13,7 +13,7 @@ gtk-enable-event-sounds=0
|
|||
gtk-enable-input-feedback-sounds=0
|
||||
gtk-xft-antialias=1
|
||||
gtk-xft-hinting=1
|
||||
gtk-xft-hintstyle=hintmedium
|
||||
gtk-xft-hintstyle=hintslight
|
||||
gtk-xft-rgba=rgb
|
||||
gtk-modules=gail:atk-bridge
|
||||
gtk-decoration-layout=menu:
|
||||
|
|
272
.config/lf/lfrc
272
.config/lf/lfrc
|
@ -34,6 +34,7 @@ cmd open ${{
|
|||
image/*) setsid sxiv-rifle $f 2>/dev/null & ;;
|
||||
audio/*) mpv $f ;;
|
||||
video/*) setsid mpv $f -quiet >/dev/null 2>&1 & ;;
|
||||
font/ttf) fp -i $f -o /tmp/fontpreview.png & ;;
|
||||
application/x-7z-compressed|application/gz|application/rar|application/tar) atool --list --each -- "$f" | $PAGER ;;
|
||||
application/tar|application/tgz|application/xz|application/zip) atool --list --each -- "$f" | $PAGER ;;
|
||||
application/pdf|application/cbz|application/cbr|application/epub*) setsid zathura $fx >/dev/null 2>&1 & ;;
|
||||
|
@ -42,179 +43,179 @@ cmd open ${{
|
|||
}}
|
||||
|
||||
cmd bulkrename ${{
|
||||
old=$(mktemp)
|
||||
new=$(mktemp)
|
||||
[ -n $fs ] && fs=$(ls)
|
||||
printf "$fs\n" > $old
|
||||
printf "$fs\n" > $new
|
||||
$EDITOR $new
|
||||
[ $(cat $new | wc -l) -ne $(cat $old | wc -l) ] && exit
|
||||
paste $old $new | while read names; do
|
||||
src=$(printf $names | cut -f1)
|
||||
dst=$(printf $names | cut -f2)
|
||||
[ $src = $dst ] && continue
|
||||
[ -e $dst ] && continue
|
||||
mv $src $dst
|
||||
done
|
||||
rm $old $new
|
||||
lf -remote "send $id unselect"
|
||||
old=$(mktemp)
|
||||
new=$(mktemp)
|
||||
[ -n $fs ] && fs=$(ls)
|
||||
printf "$fs\n" > $old
|
||||
printf "$fs\n" > $new
|
||||
$EDITOR $new
|
||||
[ $(cat $new | wc -l) -ne $(cat $old | wc -l) ] && exit
|
||||
paste $old $new | while read names; do
|
||||
src=$(printf $names | cut -f1)
|
||||
dst=$(printf $names | cut -f2)
|
||||
[ $src = $dst ] && continue
|
||||
[ -e $dst ] && continue
|
||||
mv $src $dst
|
||||
done
|
||||
rm $old $new
|
||||
lf -remote "send $id unselect"
|
||||
}}
|
||||
|
||||
# insert
|
||||
cmd rename-insert &{{
|
||||
if [ "$(echo "$fx" | wc -l)" -gt 1 ]; then
|
||||
lf -remote "send $id echo You can't change more than one file name"
|
||||
lf -remote "send $id unselect"
|
||||
else
|
||||
len="$(basename "$f" | wc -m)" # length of selected file/directory
|
||||
for i in $(seq "$len"); do
|
||||
pos="${pos}<left>" # how many times do I have to press <left> in order to get first char
|
||||
done
|
||||
lf -remote "send $id rename"
|
||||
lf -remote "send $id push $pos"
|
||||
fi
|
||||
if [ "$(echo "$fx" | wc -l)" -gt 1 ]; then
|
||||
lf -remote "send $id echo You can't change more than one file name"
|
||||
lf -remote "send $id unselect"
|
||||
else
|
||||
len="$(basename "$f" | wc -m)" # length of selected file/directory
|
||||
for i in $(seq "$len"); do
|
||||
pos="${pos}<left>" # how many times do I have to press <left> in order to get first char
|
||||
done
|
||||
lf -remote "send $id rename"
|
||||
lf -remote "send $id push $pos"
|
||||
fi
|
||||
}}
|
||||
|
||||
# append before ext
|
||||
cmd rename-before-ext &{{
|
||||
if [ "$(echo "$fx" | wc -l)" -gt 1 ]; then
|
||||
lf -remote "send $id echo You can't change more than one file name"
|
||||
lf -remote "send $id unselect"
|
||||
else
|
||||
if [ -d "$f" ]; then
|
||||
lf -remote "send $id rename"
|
||||
else
|
||||
ext_len="$(echo ${f##*.} | wc -m)" # extention length
|
||||
for i in $(seq "$ext_len"); do
|
||||
pos="${pos}<left>"
|
||||
done
|
||||
lf -remote "send $id rename"
|
||||
lf -remote "send $id push "$pos""
|
||||
fi
|
||||
fi
|
||||
if [ "$(echo "$fx" | wc -l)" -gt 1 ]; then
|
||||
lf -remote "send $id echo You can't change more than one file name"
|
||||
lf -remote "send $id unselect"
|
||||
else
|
||||
if [ -d "$f" ]; then
|
||||
lf -remote "send $id rename"
|
||||
else
|
||||
ext_len="$(echo ${f##*.} | wc -m)" # extention length
|
||||
for i in $(seq "$ext_len"); do
|
||||
pos="${pos}<left>"
|
||||
done
|
||||
lf -remote "send $id rename"
|
||||
lf -remote "send $id push "$pos""
|
||||
fi
|
||||
fi
|
||||
}}
|
||||
|
||||
# change its name entirely
|
||||
cmd rename-new &{{
|
||||
if [ "$(echo "$fx" | wc -l)" -gt 1 ]; then
|
||||
lf -remote "send $id echo You can't change more than one file name"
|
||||
lf -remote "send $id unselect"
|
||||
else
|
||||
lf -remote "send $id rename"
|
||||
lf -remote "send $id push <c-u>"
|
||||
fi
|
||||
if [ "$(echo "$fx" | wc -l)" -gt 1 ]; then
|
||||
lf -remote "send $id echo You can't change more than one file name"
|
||||
lf -remote "send $id unselect"
|
||||
else
|
||||
lf -remote "send $id rename"
|
||||
lf -remote "send $id push <c-u>"
|
||||
fi
|
||||
}}
|
||||
|
||||
cmd paste-rsync &{{
|
||||
load=$(lf -remote 'load')
|
||||
mode=$(echo "$load" | sed -n '1p')
|
||||
list=$(echo "$load" | sed '1d')
|
||||
load=$(lf -remote 'load')
|
||||
mode=$(echo "$load" | sed -n '1p')
|
||||
list=$(echo "$load" | sed '1d')
|
||||
|
||||
if [ $mode = 'copy']; then
|
||||
rsync -av --ignore-existing --progress $list . \
|
||||
| stdbuf -i0 -o0 -e0 tr '\r' '\n' \
|
||||
| while read line; do
|
||||
lf -remote "send $id echo $line"
|
||||
done
|
||||
elif [ $mode = 'move' ]; then
|
||||
mv -n $list .
|
||||
fi
|
||||
if [ $mode = 'copy']; then
|
||||
rsync -av --ignore-existing --progress $list . \
|
||||
| stdbuf -i0 -o0 -e0 tr '\r' '\n' \
|
||||
| while read line; do
|
||||
lf -remote "send $id echo $line"
|
||||
done
|
||||
elif [ $mode = 'move' ]; then
|
||||
mv -n $list .
|
||||
fi
|
||||
|
||||
lf -remote 'send load'
|
||||
lf -remote 'send clear'
|
||||
lf -remote 'send load'
|
||||
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'
|
||||
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'
|
||||
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'
|
||||
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 -printf '%P\n' | fzf --reverse --header='Jump to location')"
|
||||
if [ -f "$res" ]; then
|
||||
cmd="select"
|
||||
elif [ -d "$res" ]; then
|
||||
cmd="cd"
|
||||
fi
|
||||
res="$(find . -maxdepth 3 -printf '%P\n' | fzf --reverse --header='Jump to location')"
|
||||
if [ -f "$res" ]; then
|
||||
cmd="select"
|
||||
elif [ -d "$res" ]; then
|
||||
cmd="cd"
|
||||
fi
|
||||
|
||||
lf -remote "send $id $cmd \"$res\""
|
||||
lf -remote "send $id $cmd \"$res\""
|
||||
}}
|
||||
|
||||
cmd Link %{{
|
||||
lf -remote 'load' | while read file; do
|
||||
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
|
||||
fi
|
||||
# symbolicly copy mode is indicating a soft link
|
||||
if [[ "$mode" == copy ]]; then
|
||||
ln -sr $files -t .
|
||||
# while a move mode is indicating a hard link
|
||||
elif [[ "$mode" == move ]]; then
|
||||
ln $files -t .
|
||||
fi
|
||||
lf -remote 'load' | while read file; do
|
||||
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
|
||||
fi
|
||||
# symbolicly copy mode is indicating a soft link
|
||||
if [[ "$mode" == copy ]]; then
|
||||
ln -sr $files -t .
|
||||
# while a move mode is indicating a hard link
|
||||
elif [[ "$mode" == move ]]; then
|
||||
ln $files -t .
|
||||
fi
|
||||
}}
|
||||
|
||||
# toggle single column view
|
||||
cmd no_preview :{{
|
||||
set nopreview
|
||||
set ratios 2
|
||||
set info size:time
|
||||
map ~ yes_preview
|
||||
}}
|
||||
cmd yes_preview :{{
|
||||
set ratios 2:2
|
||||
set preview
|
||||
set info
|
||||
map ~ no_preview
|
||||
set nopreview
|
||||
set ratios 2
|
||||
set info size:time
|
||||
map ~ yes_preview
|
||||
}}
|
||||
|
||||
cmd za ${{
|
||||
set -f
|
||||
mkdir $1
|
||||
cp -r $fx $1
|
||||
zip -r $1.zip $1
|
||||
rm -rf $1
|
||||
cmd yes_preview :{{
|
||||
set ratios 2:2
|
||||
set preview
|
||||
set info
|
||||
map ~ no_preview
|
||||
}}
|
||||
|
||||
cmd newfold ${{
|
||||
set -f
|
||||
read newd
|
||||
mkdir $newd
|
||||
mv $fx $newd
|
||||
}}
|
||||
|
||||
# Bindings
|
||||
|
@ -268,9 +269,10 @@ map U %du -sh $f
|
|||
map Y %cp -ri $fs .
|
||||
map D %mv -i $fs .
|
||||
map ma $mepetre "$f"
|
||||
map za %za -r "$f" "$f"
|
||||
map za $apack "$f".zip $f
|
||||
map zu $zu "$f"
|
||||
map zg $hx add "$f"
|
||||
map zn newfold
|
||||
|
||||
map i push A<c-a> # at the very beginning
|
||||
map A rename # at the very end
|
||||
|
|
|
@ -207,10 +207,11 @@ let g:ale_linters = {
|
|||
\}
|
||||
let g:ale_fixers = {
|
||||
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
|
||||
\ 'javascript': ['prettier_standard'],
|
||||
\ 'jsx': ['prettier_standard'],
|
||||
\ 'javascript': ['prettier_standard'],
|
||||
\ 'typescript': ['prettier_standard'],
|
||||
\ 'json': ['prettier_standard'],
|
||||
\ 'html': ['prettier_standard'],
|
||||
\ 'scss': ['stylelint'],
|
||||
\ 'css': ['stylelint'],
|
||||
\ 'markdown': ['prettier_standard'],
|
||||
|
|
|
@ -33,8 +33,8 @@ super + {_,shift,ctrl} + u
|
|||
bspc node {@/ -B,@brother -B,@/ -E}
|
||||
|
||||
# Run Applications
|
||||
super + {b,q,m,s,v,n,p,t,g,r}
|
||||
{$BROWSER,powermenu,monis,vent,pavucontrol,escribir,pom,tv,grabar,ref}
|
||||
super + {b,q,m,s,n,p,t,g,r}
|
||||
{$BROWSER,powermenu,monis,vent,escribir,pom,tv,grabar,ref}
|
||||
|
||||
super + shift + {x,m,g}
|
||||
{tmenux,unimon,corte}
|
||||
|
@ -42,8 +42,8 @@ super + shift + {x,m,g}
|
|||
super + ctrl + m
|
||||
espejo
|
||||
|
||||
super + {a,x,i,z}
|
||||
alacritty {_,--class=flota,--class=flota -e connman-ncurses,--class=multi -e termux}
|
||||
super + {a,x,i,v,z}
|
||||
alacritty {_,--class=flota,--class=flota -e connman-ncurses,--class=flota -e pulsemixer,--class=multi -e termux}
|
||||
|
||||
super + space
|
||||
j4-dmenu-desktop --dmenu="dmenu -i -w 250 -p ' ' " --no-generic
|
||||
|
|
|
@ -9,7 +9,6 @@ alias \
|
|||
nb='newsboat' \
|
||||
v='$EDITOR' \
|
||||
play='ncmpcpp' \
|
||||
torr='tremc' \
|
||||
py='python ' \
|
||||
x='xui' \
|
||||
yt='mpsyt' \
|
||||
|
@ -38,7 +37,7 @@ alias \
|
|||
|
||||
# Transmission
|
||||
alias \
|
||||
tsk='pkill transmission-daemon' \
|
||||
tsk='pkill transmission-da' \
|
||||
tsl='transmission-remote --list' \
|
||||
tsx='transmission-remote --remove-and-delete -t' \
|
||||
tsr='transmission-remote --remove -t' \
|
||||
|
|
|
@ -4,6 +4,8 @@ function () {
|
|||
# Bookmarks
|
||||
local -A bookmarks=(
|
||||
'nvim' '~/.config/nvim/init.vim'
|
||||
'gtk 2' '~/.config/gtk-2.0/gtkrc-2.0'
|
||||
'gtk 3' '~/.config/gtk-3.0/settings.ini'
|
||||
'lf' '~/.config/lf/lfrc'
|
||||
'preview' '~/.local/bin/lfview'
|
||||
'mpv' '~/.config/mpv/mpv.conf'
|
||||
|
@ -48,6 +50,6 @@ function () {
|
|||
if [[ "$selected_bookmark" != '' ]] {
|
||||
eval $EDITOR "$selected_bookmark"
|
||||
} else {
|
||||
return 1
|
||||
exit 0
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,11 +34,8 @@ articulo(){
|
|||
|
||||
archivo(){
|
||||
selarch=$(fd -d 1 -e wiki | sort -Mr | dmenu -i -w 200 -p " ")
|
||||
if [ "$selarch" = "" ]; then
|
||||
exit 0
|
||||
else
|
||||
alacritty --class=flota -e nvim "$selarch"
|
||||
fi
|
||||
[ -z "$selarch" ] && exit 0
|
||||
alacritty --class=flota -e nvim "$selarch"
|
||||
}
|
||||
|
||||
MENU="$(printf "Articulo\\nBlog\\nNotas" | dmenu -i -w 130 -p " ")"
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
pgrep "\stransmission-daemon$" || (transmission-daemon && notify-send "Starting transmission daemon")
|
||||
sleep 8
|
||||
transmission-remote -a "$@" && notify-send "Torrent added."
|
||||
TRANS_PID=$(pidof transmission-daemon)
|
||||
|
||||
if [ "$TRANS_PID" ]; then
|
||||
transmission-remote --add "$@"
|
||||
else
|
||||
tsd
|
||||
sleep 8
|
||||
transmission-remote --add "$@"
|
||||
fi
|
||||
|
|
|
@ -13,6 +13,6 @@ transmission-daemon --foreground --log-info 2>&1 | while read line; do
|
|||
notify-send -i "$icon1" --app-name="Transmission Started" "${line#* * }"
|
||||
echo $line | grep -q "changed from .Incomplete. to .Complete." &&
|
||||
notify-send -i "$icon2" --app-name="Transmission Complete" "${line#* * }"
|
||||
echo $line | systemd-cat --identifier="TransWrap" --priority=5
|
||||
# echo $line | systemd-cat --identifier="TransWrap" --priority=5
|
||||
done 2>&1 > /dev/null
|
||||
done&disown
|
||||
|
|
|
@ -4,27 +4,18 @@ tutos(){
|
|||
tutodir="$HOME/vid/Learning/"
|
||||
|
||||
cd "$tutodir" || exit
|
||||
sel=$(fd -d 1 'ztm' | dmenu -i -p " ")
|
||||
if [ "$sel" = "" ]; then
|
||||
exit 0
|
||||
else
|
||||
cd "$tutodir/$sel" || exit
|
||||
play=$(fd -d 1 | sort -d | dmenu -i -p " ")
|
||||
if [ "$play" = "" ]; then
|
||||
exit 0
|
||||
else
|
||||
mpv "$play"
|
||||
fi
|
||||
fi
|
||||
sel=$(fd -d 1 | dmenu -i -p " ")
|
||||
[ -z "$sel" ] && exit 0
|
||||
cd "$tutodir/$sel" || exit
|
||||
play=$(fd -d 1 | sort -d | dmenu -i -p " ")
|
||||
[ -z "$play" ] && exit 0
|
||||
mpv "$play"
|
||||
}
|
||||
|
||||
tele(){
|
||||
canal="$(dmenu -i -p " ")" 2> /dev/null
|
||||
if [ "$canal" = "" ]; then
|
||||
exit 0
|
||||
else
|
||||
mpv https://twitch.tv/"$canal"
|
||||
fi
|
||||
[ -z "$canal" ] && exit 0
|
||||
mpv https://twitch.tv/"$canal"
|
||||
}
|
||||
|
||||
MENU="$(printf "Twitch\\nTuto" | dmenu -i -w 120 -p "磊 ")"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
HEART=' '
|
||||
WIFI='直'
|
||||
HEART='🤍 '
|
||||
WIFI='📡 '
|
||||
|
||||
if [ -d /sys/class/power_supply/BAT0 ]; then
|
||||
battery_info="$(head -n 1 /sys/class/power_supply/BAT0/capacity)%"
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
NoDisplay=true
|
||||
|
@ -7,4 +6,4 @@ Exec=sxiv -bpa %f
|
|||
Name=sxiv-gif
|
||||
Comment=Custom definition for sxiv
|
||||
MimeType=image/gif
|
||||
Icon=sxiv
|
||||
Icon=sxiv
|
||||
|
|
|
@ -24,11 +24,6 @@
|
|||
<li>
|
||||
<a class="bm" href="https://www.reddit.com/r/neovim/new">Neovim</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="bm" href="https://www.reddit.com/r/wallpapers/new"
|
||||
>Wallpapers</a
|
||||
>
|
||||
</li>
|
||||
<li>
|
||||
<a class="bm" href="https://www.reddit.com/r/argentina/new"
|
||||
>Argentina</a
|
||||
|
@ -52,9 +47,7 @@
|
|||
>Discord</a
|
||||
>
|
||||
</li>
|
||||
<li>
|
||||
<a class="bm" href="https://images.google.com/">Google Images</a>
|
||||
</li>
|
||||
|
||||
</div>
|
||||
<div class="category">
|
||||
<li><a class="bm" href="https://wiki.archlinux.org">Arch Wiki</a></li>
|
||||
|
@ -65,10 +58,9 @@
|
|||
<a class="bm" href="https://voidlinux.org/packages">Void Packages</a>
|
||||
</li>
|
||||
<li><a class="bm" href="//wiki.voidlinux.org"></a>Void Wiki</li>
|
||||
<li><a class="bm" href="https://mail.google.com/">Gmail</a></li>
|
||||
</div>
|
||||
<div class="category">
|
||||
<li><a class="bm" href="https://youtube.com/">Youtube</a></li>
|
||||
<li><a class="bm" href="https://invidio.us/">Invidio.us</a></li>
|
||||
<li><a class="bm" href="https://bandcamp.com/">Bandcamp</a></li>
|
||||
<li><a class="bm" href="https://twitch.tv/">Twitch</a></li>
|
||||
</div>
|
||||
|
|
2
.xinitrc
2
.xinitrc
|
@ -1,6 +1,4 @@
|
|||
#!/bin/sh
|
||||
[ -d /etc/X11/xinit/xinitrc.d ] && \
|
||||
for f in /etc/X11/xinit/xinitrc.d/*; do [ -x "$f" ] && . "$f"; done && unset f
|
||||
|
||||
dpi &
|
||||
setxkbmap -option caps:escape
|
||||
|
|
1
.zshenv
1
.zshenv
|
@ -41,6 +41,7 @@ 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 WINEPREFIX="${XDG_DATA_HOME:-$HOME/.local/share}/wineprefixes/default"
|
||||
export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch-config"
|
||||
export INPUTRC="$XDG_CONFIG_HOME/inputrc"
|
||||
export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
ImageMagick
|
||||
adwaita-qt
|
||||
alacritty
|
||||
alsa-firmware
|
||||
alsa-lib-devel
|
||||
|
@ -22,6 +21,7 @@ cantarell-fonts
|
|||
chrony
|
||||
connman
|
||||
connman-ncurses
|
||||
crispy-doom
|
||||
cryptsetup
|
||||
ctags
|
||||
delta
|
||||
|
@ -32,11 +32,11 @@ faac
|
|||
fd
|
||||
fdk-aac-devel
|
||||
fdkaac
|
||||
feh
|
||||
ffmpeg
|
||||
figlet
|
||||
firefox
|
||||
font-cozette
|
||||
font-iosevka
|
||||
fzf
|
||||
gallery-dl
|
||||
gcc
|
||||
|
@ -62,9 +62,13 @@ keychain
|
|||
klystrack
|
||||
krita
|
||||
lf
|
||||
libfluidsynth
|
||||
libressl-devel
|
||||
librsvg
|
||||
libsndfile-devel
|
||||
linux5.6
|
||||
lutris
|
||||
lxappearance
|
||||
lynx
|
||||
maim
|
||||
mblaze
|
||||
|
@ -88,12 +92,12 @@ nmap
|
|||
nodejs
|
||||
notmuch
|
||||
noto-fonts-cjk
|
||||
noto-fonts-emoji
|
||||
noto-fonts-ttf
|
||||
obs
|
||||
p7zip
|
||||
pass
|
||||
patch
|
||||
pavucontrol
|
||||
perl-File-MimeInfo
|
||||
pinentry-gtk
|
||||
pinentry-tty
|
||||
|
@ -116,8 +120,7 @@ python3-pycodestyle
|
|||
python3-pyflakes
|
||||
python3-vint
|
||||
python3-yapf
|
||||
qt5ct
|
||||
schismtracker
|
||||
rofi
|
||||
setxkbmap
|
||||
shellcheck
|
||||
simple-mtpfs
|
||||
|
@ -129,17 +132,22 @@ texlive-bin
|
|||
tmux
|
||||
toilet
|
||||
transmission
|
||||
tremc
|
||||
tuir
|
||||
udevil
|
||||
unclutter-xfixes
|
||||
unrar
|
||||
unzip
|
||||
vice
|
||||
void-repo-multilib
|
||||
void-repo-multilib-nonfree
|
||||
void-repo-nonfree
|
||||
vsv
|
||||
weechat
|
||||
weechat-python
|
||||
wine
|
||||
wine-gecko
|
||||
wine-mono
|
||||
wine-tools
|
||||
xbacklight
|
||||
xclip
|
||||
xcompmgr
|
||||
|
|
Reference in New Issue