Browse Source

feat(clipboard):Control+Delete to remove entry

pull/128/head
PostCyberPunk 2 years ago
parent
commit
5c56957b87
  1. 31
      config/hypr/scripts/ClipManager.sh

31
config/hypr/scripts/ClipManager.sh

@ -1,9 +1,22 @@
#!/bin/bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Clipboard Manager. This needed cliphist & wl-copy and of course rofi
if [[ ! $(pidof rofi) ]]; then
cliphist list | rofi -dmenu -config ~/.config/rofi/config-long.rasi | cliphist decode | wl-copy
else
pkill rofi
fi
#!/usr/bin/env bash
#
while [[ true ]]; do
result=$(
cliphist list | rofi -dmenu \
-kb-custom-1 "Control-Delete" \
-config ~/.config/rofi/config-long.rasi
)
exit_state=$?
if [[ $exit_state -eq 1 ]]; then
exit
fi
case "$exit_state" in
0)
cliphist decode <<<$result | wl-copy
exit
;;
10)
cliphist delete <<<$result
;;
esac
done

Loading…
Cancel
Save