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
|
# 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
|
# 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"
|
DMENU_CMD="dmenu $DMENUOPTS"
|
||||||
DMENURUN_CMD="dmenu_run $DMENUOPTS"
|
DMENURUN_CMD="dmenu_run $DMENUOPTS"
|
||||||
|
|
|
@ -23,10 +23,11 @@ PICKLIST="paste_from_clipboard
|
||||||
pick_from_history
|
pick_from_history
|
||||||
-----------------
|
-----------------
|
||||||
$(cat "${HISTFILE}" \
|
$(cat "${HISTFILE}" \
|
||||||
|
| sort -r \
|
||||||
| cut -b 23- \
|
| cut -b 23- \
|
||||||
| sort -u \
|
|
||||||
| egrep -v ' |^[^a-zA-Z0-9]' \
|
| egrep -v ' |^[^a-zA-Z0-9]' \
|
||||||
| fgrep '.')
|
| grep '\...'\
|
||||||
|
)
|
||||||
http://localhost"
|
http://localhost"
|
||||||
|
|
||||||
# show filtered history file
|
# show filtered history file
|
||||||
|
|
|
@ -43,7 +43,7 @@ fi
|
||||||
[ -z "${_name}" ] \
|
[ -z "${_name}" ] \
|
||||||
&& error_exit "Filename not set"
|
&& error_exit "Filename not set"
|
||||||
|
|
||||||
cd "${HOME}/website/site/photos"
|
cd "${HOME}/website/photos"
|
||||||
|
|
||||||
gallerydir="$((echo NEW; find * -mindepth 0 -maxdepth 0 -type d; ) \
|
gallerydir="$((echo NEW; find * -mindepth 0 -maxdepth 0 -type d; ) \
|
||||||
| fzf --prompt "Directory> " \
|
| fzf --prompt "Directory> " \
|
||||||
|
@ -80,6 +80,7 @@ else
|
||||||
convert "${_imgpath}" "${gallerydir}/${_name}.jpg"
|
convert "${_imgpath}" "${gallerydir}/${_name}.jpg"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
jhead -q -autorot "${gallerydir}/${_name}.jpg"
|
||||||
jpegoptim -w 12 --all-progressive --strip-all "$gallerydir/${_name}.jpg"
|
jpegoptim -w 12 --all-progressive --strip-all "$gallerydir/${_name}.jpg"
|
||||||
|
|
||||||
echo -n "Add image description? [y/N]: "
|
echo -n "Add image description? [y/N]: "
|
||||||
|
|
|
@ -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
|
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
|
while read file
|
||||||
do
|
do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
"Left") rotate_ccw "$file" ;;
|
"Left") jpegtran -rotate 270 -outfile "$file" "$file" ;;
|
||||||
"Right") rotate_cw "$file" ;;
|
"Right") jpegtran -rotate 90 -outfile "$file" "$file" ;;
|
||||||
"c") copy_to_clipboard "$file" ;;
|
"c") copy_to_clipboard "$file" ;;
|
||||||
"d") rm -f "$file" ;;
|
"d") rm -f "$file" ;;
|
||||||
"e") edit_image "$file" ;;
|
"e") edit_image "$file" ;;
|
||||||
|
@ -98,6 +112,8 @@ do
|
||||||
"i") show_details "$file" ;;
|
"i") show_details "$file" ;;
|
||||||
"p") echo "$(readlink -f "$file")" ;;
|
"p") echo "$(readlink -f "$file")" ;;
|
||||||
"s") save_image "$file" ;;
|
"s") save_image "$file" ;;
|
||||||
|
"q") remove_set "$file" ;;
|
||||||
"x") texec "website-add-image-to-gallery \"$file\"" ;;
|
"x") texec "website-add-image-to-gallery \"$file\"" ;;
|
||||||
|
"k") keep "$file" ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
|
@ -37,3 +37,4 @@
|
||||||
directory = /usr/src
|
directory = /usr/src
|
||||||
directory = /usr/ports
|
directory = /usr/ports
|
||||||
directory = /usr/ports/mystuff
|
directory = /usr/ports/mystuff
|
||||||
|
directory = /usr/xenocara
|
||||||
|
|
|
@ -2,7 +2,7 @@ asterisk= "*";
|
||||||
min_password_length = 24
|
min_password_length = 24
|
||||||
prompt = "GnuPG"
|
prompt = "GnuPG"
|
||||||
font = "FuraCodeNerdFont-13";
|
font = "FuraCodeNerdFont-13";
|
||||||
bottom = true;
|
bottom = false;
|
||||||
prompt_fg = "#FFFFFF";
|
prompt_fg = "#FFFFFF";
|
||||||
prompt_bg = "#771818";
|
prompt_bg = "#771818";
|
||||||
normal_fg = "#FFFFFF";
|
normal_fg = "#FFFFFF";
|
||||||
|
|
9
.kshrc
9
.kshrc
|
@ -137,6 +137,15 @@ alias vimrc="vim ~/.vim/vimrc"
|
||||||
alias kludges="vim ~/.notion/cfg_kludges.lua"
|
alias kludges="vim ~/.notion/cfg_kludges.lua"
|
||||||
alias spectrwmrc="vim ~/.config/spectrwm/spectrwm.conf"
|
alias spectrwmrc="vim ~/.config/spectrwm/spectrwm.conf"
|
||||||
alias dev-kernconf="doas vim /sys/arch/amd64/conf/GENERIC.MP"
|
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
|
# vim-snippets
|
||||||
alias snip_sh="vim ~/.vim/bundle/vim-snipmate/snippets/sh.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;
|
text/html; w3m -I %{charset} -T %t -cols "$COLUMNS" -s -no-graph -o display_link=1 -o display_link_number=1; copiousoutput;
|
||||||
|
|
||||||
# documents
|
# 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.wordprocessingml.document; libreoffice %s;
|
||||||
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; libreoffice %s;
|
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; libreoffice %s;
|
||||||
application/vnd.openxmlformats-officedocument.presentationml.presentation; libreoffice %s;
|
application/vnd.openxmlformats-officedocument.presentationml.presentation; libreoffice %s;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
-- Ion mod_sp configuration file
|
-- Ion mod_sp configuration file
|
||||||
--
|
--
|
||||||
|
|
||||||
mod_sp.set_size(1600, 800);
|
mod_sp.set_size(2400, 1200);
|
||||||
|
|
||||||
defbindings("WScreen", {
|
defbindings("WScreen", {
|
||||||
bdoc("Toggle scratchpad."),
|
bdoc("Toggle scratchpad."),
|
||||||
|
|
|
@ -13,7 +13,7 @@ de.defstyle("*", {
|
||||||
highlight_pixels = 1,
|
highlight_pixels = 1,
|
||||||
shadow_pixels = 1,
|
shadow_pixels = 1,
|
||||||
border_style = "elevated",
|
border_style = "elevated",
|
||||||
font = "-nil-profont-medium-r-normal---220-72-72-c-120-iso8859-1",
|
font = "xft:FuraCodeNerdFont:size=18",
|
||||||
text_align = "center",
|
text_align = "center",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ floatsb=floatsbscr:attach_new{
|
||||||
unnumbered=true,
|
unnumbered=true,
|
||||||
sizepolicy='southwest',
|
sizepolicy='southwest',
|
||||||
template='%workspace_pager',
|
template='%workspace_pager',
|
||||||
passive=true,
|
passive=false,
|
||||||
level=2
|
level=2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@ function get_shell(cmd)
|
||||||
handle:close()
|
handle:close()
|
||||||
if not result then
|
if not result then
|
||||||
return "(" .. error .. ")" -- chance of interrupted system call
|
return "(" .. error .. ")" -- chance of interrupted system call
|
||||||
|
-- if not compiled with SA_RESTART signal
|
||||||
end
|
end
|
||||||
return result
|
return result
|
||||||
end
|
end
|
||||||
|
@ -14,8 +15,8 @@ end
|
||||||
local timer = statusd.create_timer()
|
local timer = statusd.create_timer()
|
||||||
|
|
||||||
local function update()
|
local function update()
|
||||||
statusd.inform("shellbar", get_shell('/home/sdk/.notion/shellbar.sh'))
|
statusd.inform("shellbar", get_shell('cbar -1'))
|
||||||
timer:set(5000, update)
|
timer:set(1000, update)
|
||||||
end
|
end
|
||||||
|
|
||||||
update()
|
update()
|
||||||
|
|
Loading…
Reference in New Issue