Something went wrong. Try again.
Deephack's Hyperland config based on omarchy-nix from Henry Sipp and in turn of course inspired by Omarchy.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849#!/usr/bin/env bash
SELECTION=$(printf " Open PDF\n Open image\n Collect Garbage\n Open video\n Send File\n Exit" | wofi -d)
pdf() { FILE=$(find ~/Downloads -type f -iname '*.pdf' | wofi -d) zathura "$FILE"}
image() { FILE=$(find ~/Pictures -type f | wofi -d) swayimg "$FILE"}
video() { FILE=$(find ~/Videos -type f | wofi -d) mpv "$FILE"}
collect() { notify-send nix-collect-garbage "Starting garbage collection" nix-collect-garbage -d notify-send nix-collect-garbage "Completed garbage collection"}
send_file() { FILE=$(find ~/Documents ~/Downloads ~/Videos ~/Pictures -type f | wofi -d) kitty --class=com.markd.nmtui jocalsend -f "$FILE"}
case "$SELECTION" in " Open PDF") pdf ;; " Open image") image ;; " Open video") video ;; " Collect Garbage") collect ;; " Send File") send_file ;;esac