dotfiles-ansible/roles/scripts/templates/mangamenu.j2
FollieHiyuki 7e5982051c
fuzzel: add configuration
Target fuzzel version >= 1.8.0 (not out yet) with file-based configuration.

Other changes:
- scripts:
  - tweak wofi-calc script to be more generic with launchers
  - simplify clipboard script
  - yank a better sway_window script from Reddit (I forgot the source)
- bash: make a separated task file, create history directory
- superd: again remove dependencies related to pipewire. pipewire-pulse
  and wireplumber can be started fine without order
- terminal: use ui_opacity value (my nvim config kind of works with
  transparency now)
2022-10-25 11:00:00 +07:00

16 lines
520 B
Django/Jinja

#!/bin/sh
mangadir="$HOME/Pictures/gallery-dl/Manga"
manga=$(find "${mangadir}" -maxdepth 1 -type d -exec basename '{}' \; | tail -n +2 | {{ launcher }} {{ dmenu_flag }} -p 'Manga{{ (launcher == 'fuzzel') | ternary(': ', '') }}')
if [ -n "$manga" ]
then
chapter=$(find "${mangadir}/${manga}" -type f -exec basename '{}' \; | {{ launcher }} {{ dmenu_flag }} -p 'Chapter{{ (launcher == 'fuzzel') | ternary(': ', '') }}')
if [ -n "${chapter}" ]
then
zathura "${mangadir}/${manga}/${chapter}"
else
$0 "$1"
fi
fi