diff options
| -rwxr-xr-x | .config/herbstluftwm/autostart | 42 | ||||
| -rwxr-xr-x | .config/herbstluftwm/mpc-status.sh | 6 | ||||
| -rwxr-xr-x | .config/herbstluftwm/pvol.sh | 2 | ||||
| -rwxr-xr-x | .config/init/funcs/srcopen | 4 | ||||
| -rw-r--r-- | .config/init/gen/cava.sh | 14 | ||||
| -rw-r--r-- | .config/init/gen/dunstrc.sh | 2 | ||||
| -rw-r--r-- | .config/newsboat/config | 4 | ||||
| -rw-r--r-- | .config/newsboat/urls | 43 | ||||
| -rw-r--r-- | .config/qmk_firmware/keyboards/keebio/nyquist/keymaps/ageha/keymap.c | 24 | ||||
| -rw-r--r-- | .config/ranger/rifle.conf | 32 | ||||
| -rwxr-xr-x | .config/sxiv/exec/image-info | 24 | ||||
| -rwxr-xr-x | .config/sxiv/exec/key-handler | 8 | ||||
| -rwxr-xr-x | .config/sxiv/exec/thumb-info | 20 | ||||
| -rwxr-xr-x | .config/sxiv/exec/win-title | 27 | ||||
| -rw-r--r-- | .vim/spell/en.utf-8.add | 14 | ||||
| -rw-r--r-- | .xinitrc | 6 | ||||
| -rw-r--r-- | .zprofile | 4 |
17 files changed, 194 insertions, 82 deletions
diff --git a/.config/herbstluftwm/autostart b/.config/herbstluftwm/autostart index d2c1d1f..d7a1617 100755 --- a/.config/herbstluftwm/autostart +++ b/.config/herbstluftwm/autostart @@ -34,7 +34,7 @@ xset -dpms xset s off #daemons -picom -b --backend glx --vsync --glx-no-stencil --glx-no-rebind-pixmap +picom -b --backend glx --vsync fcitx5 & @@ -173,38 +173,38 @@ hc keybind Mod4-Print spawn ~/.config/herbstluftwm/maim.sh -m send hc keybind Mod4-Shift-Print spawn ~/.config/herbstluftwm/maim.sh -s -m send # ranger -hc keybind Mod4-Shift-Control-Return spawn ~/.config/herbstluftwm/alacritty.sh -e ranger ~ -hc keybind Mod4-Shift-Control-a spawn ~/.config/herbstluftwm/alacritty.sh -e ranger ~/audio -hc keybind Mod4-Shift-Control-b spawn ~/.config/herbstluftwm/alacritty.sh -e ranger ~/documents/books -hc keybind Mod4-Shift-Control-c spawn ~/.config/herbstluftwm/alacritty.sh -e ranger ~/documents/comics -hc keybind Mod4-Shift-Control-d spawn ~/.config/herbstluftwm/alacritty.sh -e ranger ~/downloads -hc keybind Mod4-Shift-Control-g spawn ~/.config/herbstluftwm/alacritty.sh -e ranger ~/games -hc keybind Mod4-Shift-Control-i spawn ~/.config/herbstluftwm/alacritty.sh -e ranger ~/images -hc keybind Mod4-Shift-Control-m spawn ~/.config/herbstluftwm/alacritty.sh -e ranger ~/music -hc keybind Mod4-Shift-Control-n spawn ~/.config/herbstluftwm/alacritty.sh -e ranger ~/documents/manga -hc keybind Mod4-Shift-Control-p spawn ~/.config/herbstluftwm/alacritty.sh -e ranger ~/projects -hc keybind Mod4-Shift-Control-s spawn ~/.config/herbstluftwm/alacritty.sh -e ranger ~/desktop -hc keybind Mod4-Shift-Control-r spawn ~/.config/herbstluftwm/alacritty.sh -e ranger ~/work -hc keybind Mod4-Shift-Control-t spawn ~/.config/herbstluftwm/alacritty.sh -e ranger ~/thcool -hc keybind Mod4-Shift-Control-v spawn ~/.config/herbstluftwm/alacritty.sh -e ranger ~/videos -hc keybind Mod4-Shift-Control-w spawn ~/.config/herbstluftwm/alacritty.sh -e ranger ~/projects/writing +hc keybind Mod4-Shift-Control-Return spawn aty -e ranger ~ +hc keybind Mod4-Shift-Control-a spawn aty -e ranger ~/audio +hc keybind Mod4-Shift-Control-b spawn aty -e ranger ~/documents/books +hc keybind Mod4-Shift-Control-c spawn aty -e ranger ~/documents/comics +hc keybind Mod4-Shift-Control-d spawn aty -e ranger ~/downloads +hc keybind Mod4-Shift-Control-g spawn aty -e ranger ~/games +hc keybind Mod4-Shift-Control-i spawn aty -e ranger ~/images +hc keybind Mod4-Shift-Control-m spawn aty -e ranger ~/music +hc keybind Mod4-Shift-Control-n spawn aty -e ranger ~/documents/manga +hc keybind Mod4-Shift-Control-p spawn aty -e ranger ~/projects +hc keybind Mod4-Shift-Control-s spawn aty -e ranger ~/desktop +hc keybind Mod4-Shift-Control-r spawn aty -e ranger ~/work +hc keybind Mod4-Shift-Control-t spawn aty -e ranger ~/thcool +hc keybind Mod4-Shift-Control-v spawn aty -e ranger ~/videos +hc keybind Mod4-Shift-Control-w spawn aty -e ranger ~/projects/writing # grab colour to clipboard hc keybind Mod4-c spawn ~/.config/herbstluftwm/colourgrab.sh # spawn -hc keybind Mod4-Return spawn ~/.config/herbstluftwm/alacritty.sh +hc keybind Mod4-Return spawn aty hc keybind Mod4-Shift-f spawn firejail --netfilter=/etc/firejail/nolocal.net firefox hc keybind Mod4-Shift-g spawn gimp hc keybind Mod4-Shift-i spawn krita hc keybind Mod4-Shift-m spawn ~/.config/herbstluftwm/kanjidraw.sh -hc keybind Mod4-Shift-n spawn ~/.config/herbstluftwm/alacritty.sh -t "notes" -e pass edit notes +hc keybind Mod4-Shift-n spawn aty -t "notes" -e pass edit notes hc keybind Mod4-Shift-o spawn ~/yolo/tor/start-tor-browser hc keybind Mod4-Shift-s spawn inkscape -hc keybind Mod4-Shift-r spawn ~/.config/herbstluftwm/alacritty.sh -t "recall" -e pass edit recall +hc keybind Mod4-Shift-r spawn aty -t "recall" -e pass edit recall hc keybind Mod4-Shift-t spawn transmission-gtk -hc keybind Mod4-Shift-v spawn ~/.config/herbstluftwm/alacritty.sh -e $EDITOR -hc keybind Mod4-Shift-w spawn ~/.config/herbstluftwm/alacritty.sh -t "weechat" -e weechat +hc keybind Mod4-Shift-v spawn aty -e $EDITOR +hc keybind Mod4-Shift-w spawn aty -t "weechat" -e weechat # dmenu hc keybind Mod4-r spawn dmenu_run -fn "${bfont}:size=${bfont_size}" \ diff --git a/.config/herbstluftwm/mpc-status.sh b/.config/herbstluftwm/mpc-status.sh index f1c8130..221b0a9 100755 --- a/.config/herbstluftwm/mpc-status.sh +++ b/.config/herbstluftwm/mpc-status.sh @@ -15,12 +15,12 @@ esac mpc status >/dev/null 2>&1 if [[ $? -ne 0 ]]; then - dunstify -r 109112100 "mpd disconnected" + dunstify -h string:x-dunst-stack-tag:mpd "mpd disconnected" exit fi if [[ -z $(mpc status | grep -E '\[(playing|paused)\]') ]]; then - dunstify -r 109112100 "mpd stopped" + dunstify -h string:x-dunst-stack-tag:mpd "mpd stopped" exit fi @@ -30,4 +30,4 @@ message="$(mpc current -f '##%track% %title% (%date%)\n%artist% - %album%') $(mpc status | tail -n -2 | sed -re 's/volume.*repeat/\nrepeat/' -e 's/( ){3,4}/\n/g' -e '/volume: /d')" -dunstify -t 4000 -r 109112100 --icon="$HOME/music/$dir/cover-small.png" $message +dunstify -t 4000 -h string:x-dunst-stack-tag:mpd --icon="$HOME/music/$dir/cover-small.png" $message diff --git a/.config/herbstluftwm/pvol.sh b/.config/herbstluftwm/pvol.sh index 8d5984e..4d08ff1 100755 --- a/.config/herbstluftwm/pvol.sh +++ b/.config/herbstluftwm/pvol.sh @@ -18,4 +18,4 @@ esac pactl get-sink-volume @DEFAULT_SINK@ | sed -e N -e 's/\n//g' -e 's/.* \([0-9]\{1,2\}%\).*/\1/' } | read body -dunstify -r 118111108 $body +dunstify -h string:x-dunst-stack-tag:pvol $body diff --git a/.config/init/funcs/srcopen b/.config/init/funcs/srcopen index f4bd773..46fec5f 100755 --- a/.config/init/funcs/srcopen +++ b/.config/init/funcs/srcopen @@ -21,9 +21,11 @@ search_map=( "elixir" "\.(ex|exs)" "go" "\.go" "html" "\.(html|xhtml)" + "lua" "\.lua" "markdown" "\.md" "ocaml" "\.(ml|mli)" - "js" "\.js" + "js" "\.(js|jsx)" + "shell" "\.sh" "tex" "\.tex" "vim" "\.vim" ) diff --git a/.config/init/gen/cava.sh b/.config/init/gen/cava.sh new file mode 100644 index 0000000..42efe1b --- /dev/null +++ b/.config/init/gen/cava.sh @@ -0,0 +1,14 @@ +echo "\ +[input] +method = pulse +source = auto + +[color] +gradient = 1 +gradient_color_1 = '$std_blue' +gradient_color_2 = '$std_cyan' +gradient_color_3 = '$std_green' +gradient_color_4 = '$std_yellow' +gradient_color_5 = '$std_red' +gradient_color_6 = '$std_magenta' +" > $tmpdir/cava diff --git a/.config/init/gen/dunstrc.sh b/.config/init/gen/dunstrc.sh index 99a7993..d436954 100644 --- a/.config/init/gen/dunstrc.sh +++ b/.config/init/gen/dunstrc.sh @@ -5,7 +5,7 @@ echo "\ width = (0, 1000) # height = 300 origin = top-right - offset = 4x$(($bheight + 4)) + offset = (4, $(($bheight + 4))) scale = 0 notification_limit = 0 progress_bar = true diff --git a/.config/newsboat/config b/.config/newsboat/config index 7b908ac..2ddcdae 100644 --- a/.config/newsboat/config +++ b/.config/newsboat/config @@ -22,7 +22,7 @@ color listnormal_unread white black bold color listfocus_unread white color8 bold color article white black - -auto-reload yes +refresh-on-startup no +auto-reload no browser "firefox --new-tab" datetime-format "%Y %b %d" diff --git a/.config/newsboat/urls b/.config/newsboat/urls index 1caa9d4..4fa155d 100644 --- a/.config/newsboat/urls +++ b/.config/newsboat/urls @@ -6,9 +6,9 @@ https://feeds.megaphone.fm/LIT9977052542 https://feeds.megaphone.fm/LIT6330413236 https://feeds.megaphone.fm/LIT3426521806 https://feeds.megaphone.fm/LIT3997202566 -https://feeds.soundcloud.com/users/soundcloud:users:300946151/sounds.rss -https://oxfordacademic.blubrry.net/feed/podcast/ -https://feeds.libsyn.com/156449/rss +# https://feeds.soundcloud.com/users/soundcloud:users:300946151/sounds.rss +# https://oxfordacademic.blubrry.net/feed/podcast/ +# https://feeds.libsyn.com/156449/rss https://feeds.buzzsprout.com/1728150.rss https://feeds.megaphone.fm/GLT2438307082 @@ -17,7 +17,7 @@ https://feeds.simplecast.com/bQKhnmG9 https://feeds.soundcloud.com/users/soundcloud:users:237055046/sounds.rss https://feeds.soundcloud.com/users/soundcloud:users:525465087/sounds.rss -https://feed.podbean.com/lingfieldnotes/feed.xml +# https://feed.podbean.com/lingfieldnotes/feed.xml https://historyofenglishpodcast.com/feed/ https://conlangery.com/feed/ @@ -26,63 +26,62 @@ https://feeds.buzzsprout.com/1315237.rss https://feeds.simplecast.com/L9810DOa https://www.typetheoryforall.com/episodes.mp3.rss https://feeds.buzzsprout.com/728558.rss -https://link.chtbl.com/corecursive?platform=rss -https://anchor.fm/s/4ebc4578/podcast/rss +# https://link.chtbl.com/corecursive?platform=rss +# https://anchor.fm/s/4ebc4578/podcast/rss https://www.omnycontent.com/d/playlist/c4157e60-c7f8-470d-b13f-a7b30040df73/564f493f-af32-4c48-862f-a7b300e4df49/ac317852-8807-44b8-8eff-a7b300e4df52/podcast.rss http://computingup.com/feed https://feeds.simplecast.com/OzDH_At2 https://podcast.molpi.gs/podcast.rss -https://feeds.feedburner.com/twivmp3 +# https://feeds.feedburner.com/twivmp3 https://twievo.libsyn.com/rss https://immune.libsyn.com/rss https://feed.podbean.com/commondescentpodcast/feed.xml https://palaeoafterdark.libsyn.com/rss https://stemcellpodcast.com/feed/podcast https://immunologypodcast.com/feed/podcast -https://feeds.soundcloud.com/users/soundcloud:users:294877481/sounds.rss +# https://feeds.soundcloud.com/users/soundcloud:users:294877481/sounds.rss +https://www.spreaker.com/show/5634537/episodes/feed https://www.indefenseofplants.com/podcast?format=rss -https://www.omnycontent.com/d/playlist/6f223695-5557-4257-af8d-a9d40180081f/5f30e78f-cf8b-45aa-825f-aba400016c32/10356243-c54c-4428-82a9-aba400020e3c/podcast.rss -https://cast.rocks/hosting/8420/feeds/66OQY.xml +# https://www.omnycontent.com/d/playlist/6f223695-5557-4257-af8d-a9d40180081f/5f30e78f-cf8b-45aa-825f-aba400016c32/10356243-c54c-4428-82a9-aba400020e3c/podcast.rss +# https://cast.rocks/hosting/8420/feeds/66OQY.xml -https://www.nasa.gov/rss/dyn/Houston-We-Have-a-Podcast.rss -https://arewealone.libsyn.com/rss +# https://www.nasa.gov/rss/dyn/Houston-We-Have-a-Podcast.rss +# https://arewealone.libsyn.com/rss https://feed.podbean.com/nulliusinverba/feed.xml -https://rss.acast.com/nature +https://feeds.buzzsprout.com/2180146.rss +# https://rss.acast.com/nature https://braininspired.co/feed/podcast https://walledculture.org/?feed=rss https://efforg.libsyn.com/rss https://publicinfrastructure.org/feed/podcast/ -https://sotospeak.libsyn.com/rss +# https://sotospeak.libsyn.com/rss https://www.techdirt.com/podcast.xml https://lawfare.libsyn.com/rss -https://feeds.zencastr.com/f/gSm8nZTi.rss +# https://feeds.zencastr.com/f/gSm8nZTi.rss https://media.rss.com/inbedwiththeright/feed.xml -https://feeds.buzzsprout.com/1455199.rss +# https://feeds.buzzsprout.com/1455199.rss https://pinecast.com/feed/theleagueof http://feeds2.feedburner.com/TweetMeHarder https://airen-no-jikken.icu/blog/feed/ -https://blog.lianiis.com/feed/ -https://blog.crushv.cc/index.xml -https://writefreely.bubbletea.dev/shibao/feed/ https://himetena.hatenablog.com/feed -https://www.schneier.com/blog/atom.xml +# https://www.schneier.com/blog/atom.xml https://ocaml.org/feed.xml https://www.dragonflydigest.com/feed https://www.logicmatters.net/feed/ https://api.quantamagazine.org/feed/ -https://www.thefire.org/feed/ +# https://www.thefire.org/feed/ https://retractionwatch.com/feed -https://feeds.feedburner.com/99pi +# https://feeds.feedburner.com/99pi https://blog.musicbrainz.org/category/listenbrainz/feed/ diff --git a/.config/qmk_firmware/keyboards/keebio/nyquist/keymaps/ageha/keymap.c b/.config/qmk_firmware/keyboards/keebio/nyquist/keymaps/ageha/keymap.c index 48ef150..8b1f82c 100644 --- a/.config/qmk_firmware/keyboards/keebio/nyquist/keymaps/ageha/keymap.c +++ b/.config/qmk_firmware/keyboards/keebio/nyquist/keymaps/ageha/keymap.c @@ -4,6 +4,7 @@ #define _QWERTY 1 #define _FN 2 #define _MOUSE 3 +#define _NUMPAD 4 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { @@ -91,17 +92,40 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ ), +/* NUMPAD + * ,------------------------------------------ ------------------------------------------. + * | | | / | * | Bksp | | | | | | | | | + * |------+------+------+------+------+------+ +------+------+------+------+------+------| + * | | 7 | 8 | 9 | + | | | | | | | | | + * |------+------+------+------+------+------+ +------+------+------+------+------+------| + * | | 4 | 5 | 6 | - | | | | | | | | | + * |------+------+------+------+------+------+ +------+------+------+------+------+------| + * | | 1 | 2 | 3 |Enter | | | | | | | | | + * |------+------+------+------+------+------+ +------+------+------+------+------+------| + * | | 0 | | . | | | | | | | | + * `------------------------------------------ ------------------------------------------' + */ +[_NUMPAD] = LAYOUT( + _______, _______, KC_PSLS, KC_PAST, KC_BSPC, _______, _______, _______, _______, _______, _______, _______, + _______, KC_P7, KC_P8, KC_P9, KC_PPLS, _______, _______, _______, _______, _______, _______, _______, + _______, KC_P4, KC_P5, KC_P6, KC_PMNS, _______, _______, _______, _______, _______, _______, _______, + _______, KC_P1, KC_P2, KC_P3, KC_PENT, _______, _______, _______, _______, _______, _______, _______, + _______, KC_P0, _______, KC_PDOT, _______, _______, _______, _______, _______, _______, _______, _______ +), + }; const uint16_t PROGMEM combo_qwerty[] = { KC_LCTL, KC_RCTL, COMBO_END }; const uint16_t PROGMEM combo_fn[] = { KC_LALT, KC_RALT, COMBO_END }; const uint16_t PROGMEM combo_mouse[] = { KC_LSFT, KC_RSFT, COMBO_END }; +const uint16_t PROGMEM combo_numpad[] = { KC_TAB, KC_BSPC, COMBO_END }; combo_t key_combos[] = { COMBO(combo_qwerty, TG(_QWERTY)), COMBO(combo_fn, TG(_FN)), COMBO(combo_mouse, TG(_MOUSE)), + COMBO(combo_numpad, TG(_NUMPAD)), }; uint16_t COMBO_LEN = sizeof(key_combos) / sizeof(combo_t); diff --git a/.config/ranger/rifle.conf b/.config/ranger/rifle.conf index 08d6aee..648bc94 100644 --- a/.config/ranger/rifle.conf +++ b/.config/ranger/rifle.conf @@ -51,11 +51,13 @@ ext 1|2|3|4|5|6|7|8|9 = man "$@" # editor for text files mime ^text, label editor = "$EDITOR" -- "$@" -mime ^text, label weditor X, flag f t = "$EDITOR" -- "$@" +mime ^text, label weditor, X, flag f t = "$EDITOR" -- "$@" !mime ^text, ext xml|html|xhtml|csv|tex|py|pl|rb|sh|php = "$EDITOR" -- "$@" !mime ^text, ext xml|html|xhtml|csv|tex|py|pl|rb|sh|php, X, flag f t = "$EDITOR" -- "$@" +ext srt|ass, has aegisub, X, flag f = aegisub -- "$@" + # websites ext x?html?, has firefox, X, flag f = firefox -- "$@" ext x?html?, has qutebrowser, X, flag f = qutebrowser -- "$@" @@ -74,14 +76,14 @@ ext php, hash php = php -- "$1" # audio / video mime ^audio, terminal, has mpv = mpv --no-video -- "$@" -mime ^audio, !terminal, has mpv, X, flag f = mpv --force-window=yes -- "$@" +mime ^audio, !terminal, has mpv, X, flag f = mpv --force-window -- "$@" mime ^audio, terminal, has audio-convert = audio-convert -d converted -c vorbis -q 10 "$@" mime ^audio, terminal, has audio-convert = audio-convert -d converted -m true -c opus "$@" mime ^audio, terminal, has audio-concat = audio-concat -o concatenated.opus "$@" mime ^audio, terminal, has audio-concat = audio-concat -o concatenated.flac "$@" -mime ^video, has mpv, X, flag f = mpv -- "$@" +mime ^video, has mpv, X, flag f = mpv --force-window -- "$@" mime ^video, has mpv, terminal, !X = mpv --vo=tct -- "$@" # documents @@ -89,7 +91,7 @@ ext djvu|pdf|ps, has zathura, X, flag f = zathura -- "$@" ext djvu|pdf, has evince, X, flag f = evince -- "$@" ext djvu|pdf, has inkscape, X, flag f = inkscape -- "$@" -ext epub, has bk, flag f = alacritty -o "font.size=12" -e bk "$@" +ext epub, has bk, flag f = "$TERMCMD" -o "font.size=12" -e bk "$@" ext epub, has foliate, X, flag f = foliate -- "$@" ext epub, has calibre, X, flag f = calibre -- "$@" ext epub, has sigil, X, flag f = sigil "$@" @@ -108,24 +110,24 @@ ext xopp, has xournalpp, X, flag f = xournalpp "$@" # images -ext xcf, has gimp, X, flag f = gimp -- "$@" -ext kra, has krita, X, flag f = krita -- "$@" -mime ^image/svg, has inkscape, X, flag f = inkscape -- "$@" -mime ^image, has sxiv, X, flag f = sxiv -a "$@" -mime ^image, !ext xcf, has gimp, X, flag f = gimp -- "$@" -mime ^image, !ext kra, has krita, X, flag f = krita -- "$@" -mime ^image/png, has oxipng = oxipng -o6 -- "$@" -mime ^image, has inkscape, X, flag f = inkscape -- "$@" +ext xcf, has gimp, X, flag f = gimp -- "$@" +ext kra, has krita, X, flag f = krita -- "$@" +mime ^image/svg, has inkscape, X, flag f = inkscape -- "$@" +mime ^image, !ext CR3|RAF, has sxiv, X, flag f = sxiv -a "$@" +mime ^image, !ext xcf, has gimp, X, flag f = gimp -- "$@" +mime ^image, !ext kra, has krita, X, flag f = krita -- "$@" +mime ^image/png, has oxipng = oxipng -o6 -- "$@" +mime ^image, has inkscape, X, flag f = inkscape -- "$@" # archives -ext cbr|cbz, has mcomix, X, flag f = mcomix -- "$@" +ext cbr|cbz, has mcomix3, X, flag f = mcomix3 -- "$@" ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has als = als -- "$@" | $PAGER ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has als = als -- "$@" | $PAGER ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has aunpack = aunpack -- "$@" ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has aunpack = aunpack -- "$@" ext iso, has udevil = udevil mount "$@" -ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has mcomix, X, flag f = mcomix -- "$@" -ext jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has mcomix, X, flag f = mcomix -- "$@" +ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has mcomix3, X, flag f = mcomix3 -- "$@" +ext jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has mcomix3, X, flag f = mcomix3 -- "$@" directory, has apack = apack "${1}.zip" "$1" diff --git a/.config/sxiv/exec/image-info b/.config/sxiv/exec/image-info index 690ec17..f1c6298 100755 --- a/.config/sxiv/exec/image-info +++ b/.config/sxiv/exec/image-info @@ -1,19 +1,21 @@ #!/bin/zsh -# Example for ~/.sxiv/exec/image-info -# Called by sxiv(1) whenever an image gets loaded, -# with the name of the image file as its first argument. -# The output is displayed in sxiv's status bar. +# Example for $XDG_CONFIG_HOME/nsxiv/exec/image-info +# Called by nsxiv(1) whenever an image gets loaded. +# The output is displayed in nsxiv's status bar. +# Arguments: +# $1: path to image file (as provided by the user) +# $2: image width +# $3: image height +# $4: fully resolved path to the image file s=" | " # field separator -filename=$(basename "$1") -filesize=$(du -Hh "$1" | cut -f 1) +exec 2>/dev/null -geometry=$(identify -format '%wx%h' "$1[0]") +filename=$(basename -- "$1") +filesize=$(du -Hh -- "$1" | cut -f 1) +geometry="${2}x${3}" -tags=$(exiv2 -q pr -pi "$1" | awk '$1~"Keywords" { printf("%s,", $4); }') -tags=${tags%,} - -echo "${filesize}${s}${geometry}${tags:+$s}${tags}${s}${filename}" +echo "${filesize}${s}${geometry}${s}${filename}" diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler index 927ca03..6f456fc 100755 --- a/.config/sxiv/exec/key-handler +++ b/.config/sxiv/exec/key-handler @@ -34,15 +34,15 @@ case "$1" in "s") send "${files[@]}" if [[ $? -ne 0 ]]; then - notify-send "sxiv: send to /tmp/ failed" + notify-send "nsxiv: send to /tmp/ failed" else if [[ ${#files} -eq 1 ]]; then - notify-send "sxiv: sent ${files:t} to /tmp/" + notify-send "nsxiv: sent ${files:t} to /tmp/" else - notify-send "sxiv: sent ${#files} images to /tmp/" + notify-send "nsxiv: sent ${#files} images to /tmp/" fi fi ;; *) - notify-send "sxiv: command not recognised" ;; + notify-send "nsxiv: command not recognised" ;; esac diff --git a/.config/sxiv/exec/thumb-info b/.config/sxiv/exec/thumb-info new file mode 100755 index 0000000..584c890 --- /dev/null +++ b/.config/sxiv/exec/thumb-info @@ -0,0 +1,20 @@ +#!/bin/zsh + +# Example for $XDG_CONFIG_HOME/nsxiv/exec/thumb-info +# Called by nsxiv(1) whenever the selected thumbnail changes. +# The output is displayed in nsxiv's status bar. +# Arguments: +# $1: path to image file (as provided by the user) +# $2: empty +# $3: empty +# $4: fully resolved path to the image file + +s=" | " # field separator + +exec 2>/dev/null + +filename=$(basename -- "$4") +filesize=$(du -Hh -- "$4" | cut -f 1) + +echo "${filesize}${s}${filename}" + diff --git a/.config/sxiv/exec/win-title b/.config/sxiv/exec/win-title new file mode 100755 index 0000000..be0f4b4 --- /dev/null +++ b/.config/sxiv/exec/win-title @@ -0,0 +1,27 @@ +#!/bin/zsh + +# Example for $XDG_CONFIG_HOME/nsxiv/exec/win-title +# Called by nsxiv(1) whenever any of the relevant information changes. +# The output is set as nsxiv's window title. +# +# Arguments, "Optional" arguments might be empty: +# $1: resolved absolute path of the current file +# $2: current file number +# $3: total file number +# $4: image width (Optional: Disabled on thumbnails mode) +# $5: image height (Optional: Disabled on thumbnails mode) +# $6: current zoom (Optional: Disabled on thumbnails mode) +# +# The term file is used rather than image as nsxiv does not +# precheck that the input files are valid images. Total file +# count may be different from the actual count of valid images. + +exec 2>/dev/null + +filename="${1##*/}" + +if [ -n "$4" ]; then # image mode + printf "%s" "nsxiv - ${filename} | ${4}x${5} ${6}% [${2}/${3}]" +else + printf "%s" "nsxiv - ${filename} [${2}/${3}]" +fi diff --git a/.vim/spell/en.utf-8.add b/.vim/spell/en.utf-8.add index 197a757..f616dae 100644 --- a/.vim/spell/en.utf-8.add +++ b/.vim/spell/en.utf-8.add @@ -44,6 +44,8 @@ capsid capsids carboxyl carboxylic +carnassial +carnassials cephalopod cephalopods chaparral @@ -61,8 +63,11 @@ composable constraining coproduct coproducts +crocodilian +crocodilians curation cursings +cynodont deduplicate deduplicating deduplication @@ -74,6 +79,8 @@ despawn despawning dicot dicots +diphyodont +diphyodonty dualist dyskinesia dysphoria @@ -105,6 +112,8 @@ haptic haptics heterarchical heterarchy +heterodont +heterodonty highlit hindleg hindlegs @@ -181,6 +190,7 @@ multistable mycorrhiza mycorrhizae mycorrhizal +myriapods namespace negentropy neuroimaging @@ -227,12 +237,16 @@ platonist pleiotropy plumed polycistronic +polydactyly polygene polygenic +polyphyodont +polyphyodonty polyploid polyploidy polysemy poset +predates preemptive proactively projectives @@ -1,5 +1,8 @@ source "$HOME/.config/init/vars" +xset +fp "$HOME/.fonts/local" +xset fp rehash + #theme export QT_STYLE_OVERRIDE=adwaita-dark export GTK_THEME=Adwaita:dark @@ -10,4 +13,7 @@ export QT_IM_MODULE=fcitx export SDL_IM_MODULE=fcitx export XMODIFIERS="@im=fcitx" +systemctl --user import-environment DISPLAY +dbus-update-activation-environmet --systemd + exec herbstluftwm @@ -4,7 +4,9 @@ source "$HOME/.config/init/vars" ################# SET TERMCMD ################# -if [[ ! -z $(whence alacritty) ]] then +if [[ ! -z $(whence aty) ]] then + export TERMCMD=aty +elif [[ ! -z $(whence alacritty) ]] then export TERMCMD=alacritty elif [[ ! -z $(whence urxvt) ]] then export TERMCMD=urxvt |
