Update 2023-01-01 10:16 OpenBSD/amd64
This commit is contained in:
parent
9973497013
commit
6a461712ba
@ -21,10 +21,10 @@ HTERM="st -f $HFONT"
|
||||
#
|
||||
|
||||
# NOTION ORANGE
|
||||
# DMENUOPTS="-fn '$DFONT' -nb #121212 -nf #707070 -sf #FFA600 -sb #121212 -i -f"
|
||||
DMENUOPTS="-fn '$DFONT' -nb #121212 -nf #707070 -sf #FFA600 -sb #121212 -l 20 -i -f"
|
||||
|
||||
# SPECTRWM GREY
|
||||
DMENUOPTS="-fn '$DFONT' -nb #121212 -nf #707070 -sf #CCCCCC -sb #121212 -b -i -f"
|
||||
# DMENUOPTS="-fn '$DFONT' -nb #121212 -nf #707070 -sf #CCCCCC -sb #121212 -l 20 -i -f"
|
||||
|
||||
DMENU_CMD="dmenu $DMENUOPTS"
|
||||
DMENURUN_CMD="dmenu_run $DMENUOPTS"
|
||||
|
@ -23,10 +23,11 @@ PICKLIST="paste_from_clipboard
|
||||
pick_from_history
|
||||
-----------------
|
||||
$(cat "${HISTFILE}" \
|
||||
| sort -r \
|
||||
| cut -b 23- \
|
||||
| sort -u \
|
||||
| egrep -v ' |^[^a-zA-Z0-9]' \
|
||||
| fgrep '.')
|
||||
| grep '\...'\
|
||||
)
|
||||
http://localhost"
|
||||
|
||||
# show filtered history file
|
||||
|
@ -43,7 +43,7 @@ fi
|
||||
[ -z "${_name}" ] \
|
||||
&& error_exit "Filename not set"
|
||||
|
||||
cd "${HOME}/website/site/photos"
|
||||
cd "${HOME}/website/photos"
|
||||
|
||||
gallerydir="$((echo NEW; find * -mindepth 0 -maxdepth 0 -type d; ) \
|
||||
| fzf --prompt "Directory> " \
|
||||
@ -80,6 +80,7 @@ else
|
||||
convert "${_imgpath}" "${gallerydir}/${_name}.jpg"
|
||||
fi
|
||||
|
||||
jhead -q -autorot "${gallerydir}/${_name}.jpg"
|
||||
jpegoptim -w 12 --all-progressive --strip-all "$gallerydir/${_name}.jpg"
|
||||
|
||||
echo -n "Add image description? [y/N]: "
|
||||
|
30
.config/fontconfig/fonts.conf
Normal file
30
.config/fontconfig/fonts.conf
Normal file
@ -0,0 +1,30 @@
|
||||
<?xml version='1.0'?>
|
||||
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
|
||||
<fontconfig>
|
||||
|
||||
<match target="pattern">
|
||||
<test name="family"><string>monospace</string></test>
|
||||
<edit name="family" mode="append">
|
||||
<string>Android Emoji</string>
|
||||
</edit>
|
||||
</match>
|
||||
|
||||
<!-- Block Symbola from the list of fallback fonts. -->
|
||||
<selectfont>
|
||||
<rejectfont>
|
||||
<pattern>
|
||||
<patelt name="family">
|
||||
<string>Symbola</string>
|
||||
</patelt>
|
||||
</pattern>
|
||||
</rejectfont>
|
||||
</selectfont>
|
||||
|
||||
<match target="pattern">
|
||||
<test qual="any" name="family"><string>Symbola</string></test>
|
||||
<edit name="family" mode="assign" binding="same">
|
||||
<string>Android Emoji</string>
|
||||
</edit>
|
||||
</match>
|
||||
|
||||
</fontconfig>
|
@ -86,11 +86,25 @@ help() {
|
||||
set -x
|
||||
}
|
||||
|
||||
keep() {
|
||||
new="$(echo "$1" | sed 's,/2-,/1-,g')"
|
||||
mv "$1" "$new"
|
||||
}
|
||||
remove_set() {
|
||||
_dir="$(dirname ${file})"
|
||||
set -x
|
||||
mv "$_dir/1-"* .
|
||||
rm -f "$_dir/2-"*
|
||||
rm -rf "$_dir"
|
||||
pkill nsxiv
|
||||
set +x
|
||||
}
|
||||
|
||||
while read file
|
||||
do
|
||||
case "$1" in
|
||||
"Left") rotate_ccw "$file" ;;
|
||||
"Right") rotate_cw "$file" ;;
|
||||
"Left") jpegtran -rotate 270 -outfile "$file" "$file" ;;
|
||||
"Right") jpegtran -rotate 90 -outfile "$file" "$file" ;;
|
||||
"c") copy_to_clipboard "$file" ;;
|
||||
"d") rm -f "$file" ;;
|
||||
"e") edit_image "$file" ;;
|
||||
@ -98,6 +112,8 @@ do
|
||||
"i") show_details "$file" ;;
|
||||
"p") echo "$(readlink -f "$file")" ;;
|
||||
"s") save_image "$file" ;;
|
||||
"q") remove_set "$file" ;;
|
||||
"x") texec "website-add-image-to-gallery \"$file\"" ;;
|
||||
"k") keep "$file" ;;
|
||||
esac
|
||||
done
|
||||
|
@ -37,3 +37,4 @@
|
||||
directory = /usr/src
|
||||
directory = /usr/ports
|
||||
directory = /usr/ports/mystuff
|
||||
directory = /usr/xenocara
|
||||
|
@ -2,7 +2,7 @@ asterisk= "*";
|
||||
min_password_length = 24
|
||||
prompt = "GnuPG"
|
||||
font = "FuraCodeNerdFont-13";
|
||||
bottom = true;
|
||||
bottom = false;
|
||||
prompt_fg = "#FFFFFF";
|
||||
prompt_bg = "#771818";
|
||||
normal_fg = "#FFFFFF";
|
||||
|
9
.kshrc
9
.kshrc
@ -137,6 +137,15 @@ alias vimrc="vim ~/.vim/vimrc"
|
||||
alias kludges="vim ~/.notion/cfg_kludges.lua"
|
||||
alias spectrwmrc="vim ~/.config/spectrwm/spectrwm.conf"
|
||||
alias dev-kernconf="doas vim /sys/arch/amd64/conf/GENERIC.MP"
|
||||
alias bookmarks="vim ~/.browser_history"
|
||||
bookmarks-clean() {
|
||||
cat ~/.browser_history \
|
||||
| sort -k 3 \
|
||||
| uniq -f2 \
|
||||
| sort \
|
||||
> /tmp/browser_history \
|
||||
&& mv /tmp/browser_history ~/.browser_history
|
||||
}
|
||||
|
||||
# vim-snippets
|
||||
alias snip_sh="vim ~/.vim/bundle/vim-snipmate/snippets/sh.snippets"
|
||||
|
@ -26,7 +26,7 @@
|
||||
text/html; w3m -I %{charset} -T %t -cols "$COLUMNS" -s -no-graph -o display_link=1 -o display_link_number=1; copiousoutput;
|
||||
|
||||
# documents
|
||||
application/pdf; zathura %s; nametemplate=%s.pdf;
|
||||
application/pdf; mupdf-gl %s; nametemplate=%s.pdf;
|
||||
application/vnd.openxmlformats-officedocument.wordprocessingml.document; libreoffice %s;
|
||||
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; libreoffice %s;
|
||||
application/vnd.openxmlformats-officedocument.presentationml.presentation; libreoffice %s;
|
||||
|
@ -2,7 +2,7 @@
|
||||
-- Ion mod_sp configuration file
|
||||
--
|
||||
|
||||
mod_sp.set_size(1600, 800);
|
||||
mod_sp.set_size(2400, 1200);
|
||||
|
||||
defbindings("WScreen", {
|
||||
bdoc("Toggle scratchpad."),
|
||||
|
@ -13,7 +13,7 @@ de.defstyle("*", {
|
||||
highlight_pixels = 1,
|
||||
shadow_pixels = 1,
|
||||
border_style = "elevated",
|
||||
font = "-nil-profont-medium-r-normal---220-72-72-c-120-iso8859-1",
|
||||
font = "xft:FuraCodeNerdFont:size=18",
|
||||
text_align = "center",
|
||||
})
|
||||
|
||||
|
@ -13,7 +13,7 @@ floatsb=floatsbscr:attach_new{
|
||||
unnumbered=true,
|
||||
sizepolicy='southwest',
|
||||
template='%workspace_pager',
|
||||
passive=true,
|
||||
passive=false,
|
||||
level=2
|
||||
}
|
||||
|
||||
|
@ -7,6 +7,7 @@ function get_shell(cmd)
|
||||
handle:close()
|
||||
if not result then
|
||||
return "(" .. error .. ")" -- chance of interrupted system call
|
||||
-- if not compiled with SA_RESTART signal
|
||||
end
|
||||
return result
|
||||
end
|
||||
@ -14,8 +15,8 @@ end
|
||||
local timer = statusd.create_timer()
|
||||
|
||||
local function update()
|
||||
statusd.inform("shellbar", get_shell('/home/sdk/.notion/shellbar.sh'))
|
||||
timer:set(5000, update)
|
||||
statusd.inform("shellbar", get_shell('cbar -1'))
|
||||
timer:set(1000, update)
|
||||
end
|
||||
|
||||
update()
|
||||
|
Loading…
Reference in New Issue
Block a user