scripts reorganize
This commit is contained in:
6
scripts/fish-functions/copy.fish
Normal file
6
scripts/fish-functions/copy.fish
Normal file
@@ -0,0 +1,6 @@
|
||||
switch "$XDG_SESSION_TYPE"
|
||||
case wayland
|
||||
echo "file://$(realpath -- "$argv")" | wl-copy -t text/uri-list
|
||||
case x11
|
||||
echo "file://$(realpath -- "$argv")" | xclip -i -selection clipboard -t text/uri-list
|
||||
end
|
||||
Reference in New Issue
Block a user