Deephack's Hyperland config based on omarchy-nix from Henry Sipp and in turn of course inspired by Omarchy.
at main 48 lines 993 B view raw
1#!/usr/bin/env bash 2 3SELECTION=$(printf "󰈦 Open PDF\n Open image\n󰃨 Collect Garbage\n󰸬 Open video\n󰈪 Send File\n󰈆 Exit" | wofi -d) 4 5pdf() { 6 FILE=$(find ~/Downloads -type f -iname '*.pdf' | wofi -d) 7 zathura "$FILE" 8} 9 10image() { 11 FILE=$(find ~/Pictures -type f | wofi -d) 12 swayimg "$FILE" 13} 14 15 16video() { 17 FILE=$(find ~/Videos -type f | wofi -d) 18 mpv "$FILE" 19} 20 21collect() { 22 notify-send nix-collect-garbage "Starting garbage collection" 23 nix-collect-garbage -d 24 notify-send nix-collect-garbage "Completed garbage collection" 25} 26 27send_file() { 28 FILE=$(find ~/Documents ~/Downloads ~/Videos ~/Pictures -type f | wofi -d) 29 kitty --class=com.markd.nmtui jocalsend -f "$FILE" 30} 31 32case "$SELECTION" in 33 "󰈦 Open PDF") 34 pdf 35 ;; 36 " Open image") 37 image 38 ;; 39 "󰸬 Open video") 40 video 41 ;; 42 "󰃨 Collect Garbage") 43 collect 44 ;; 45 "󰈪 Send File") 46 send_file 47 ;; 48esac