Compare commits

...

5 Commits

5 changed files with 49 additions and 3 deletions

View File

@ -1,2 +1,3 @@
osd-status-msg=${playback-time/full} / ${duration} (${percent-pos}%)\nframe: ${estimated-frame-number} / ${estimated-frame-count}
input-ipc-server="/tmp/mpv-socket"
save-position-on-quit

View File

@ -0,0 +1,7 @@
<html>
<style>
body {
background: black;
}
</style>
</html>

View File

@ -1,6 +1,33 @@
#!/bin/sh
# Copy a bookmark to clipboard.
#
# Requires fzf, xsel
# Bookmarks are stored in ~/dox/not/bk.txt, commented with #
# -o: print to stdout
# -b: open in browser
cat ~/dox/not/bk.txt | fzf | awk -F'#' '{print $1}' | xsel -ib
output=$(cat ~/dox/not/bk.txt | fzf | awk -F'#' '{print $1}')
# default action: clip, stdout, browser
action="clip"
while getopts "ob" o; do
case "${o}" in
o) action="stdout";;
b) action="browser";;
esac
done
if [ -z "$output" ]; then
exit 1
fi
if [ "$action" = "stdout" ]; then
printf "%s" "$output"
fi
if [ "$action" = "clip" ]; then
printf "%s" "$output" | xsel -ib
fi
if [ "$action" = "browser" ]; then
$BROWSER "$output"
fi

View File

@ -2,4 +2,15 @@
# Per host wallpaper configuration example
xwallpaper --output DP-2-1 --center med/pix/dow/ml.png --output DP-1 --center med/pix/dow/mr.png --output eDP-1 --center med/pix/dow/m.png
PREFIX="$HOME/med/wall"
if [ -z "$1" ]; then
WALL="coastline_black"
else
WALL="$1"
fi
FOLDER="$PREFIX"/"$WALL"
xwallpaper --output DP2-1 --center "$FOLDER"/l.jpg \
--output DP1 --center "$FOLDER"/r.jpg \
--output eDP1 --center "$FOLDER"/s.jpg

View File

@ -34,7 +34,7 @@ export EDITOR="nvim"
export BROWSER="qutebrowser"
# man pager
export MANPAGER='nvim +Man!'
export MANWIDTH=999
export MANWIDTH=165
# Soundboard
export SB_DIR="$HOME"/med/sb