clipboard and emoji scripts

This commit is contained in:
2 * r + 2 * t
2025-01-17 18:13:38 +11:00
parent 80a5cb845c
commit 65a3711e24
5 changed files with 1884 additions and 11 deletions
+4
View File
@@ -0,0 +1,4 @@
#!/bin/fish
set chosen_item (cliphist list | fuzzel --dmenu --prompt='Delete from clipboard: ')
test -n "$chosen_item" && echo "$chosen_item" | cliphist delete
Executable
+4
View File
@@ -0,0 +1,4 @@
#!/bin/fish
set chosen_item (cliphist list | fuzzel --dmenu)
test -n "$chosen_item" && echo "$chosen_item" | cliphist decode | wl-copy
+1867
View File
File diff suppressed because it is too large Load Diff
+4
View File
@@ -0,0 +1,4 @@
#!/bin/fish
set chosen_item (cat (dirname (status filename))/data/emojis.txt | fuzzel --dmenu)
test -n "$chosen_item" && echo "$chosen_item" | cut -d ' ' -f 1 | tr -d '\n' | wl-copy
+5 -11
View File
@@ -24,23 +24,17 @@ if test "$argv[1]" = toggle
exit
end
if test "$argv[1]" = screenshot
./screenshot.fish $argv[2..]
exit
end
if test "$argv[1]" = workspace-action
./workspace-action.sh $argv[2..]
exit
end
if test "$argv[1]" = change-wallpaper
./change-wallpaper.fish $argv[2..]
exit
end
set valid_subcommands screenshot workspace-action \
clipboard clipboard-delete emoji-picker \
change-wallpaper pip
if test "$argv[1]" = pip
./pip.fish $argv[2..]
if contains "$argv[1]" $valid_subcommands
./$argv[1].fish $argv[2..]
exit
end