Files
dotfiles/home/.local/bin/select-and-copy
2026-01-12 21:13:25 -07:00

6 lines
189 B
Bash
Executable File

#!/bin/sh
path=$(lf -selection-path=/dev/stdout | tail -n 1)
copyq copy "$(xdg-mime query filetype "$path")" - < "$path"
niri msg action focus-window-previous && sleep .1s && copyq paste