aboutsummaryrefslogtreecommitdiff
path: root/home-manager/laptop/hyprland/scripts/rofi-modes
diff options
context:
space:
mode:
authorspl3g <spleefer6@yandex.ru>2023-12-31 15:08:06 +0300
committerspl3g <spleefer6@yandex.ru>2025-05-01 14:56:39 +0300
commitb8a5c62b112859f463a53ac97b43f7f8cdc544a9 (patch)
tree8b320bc9631fbd60ffe4b701e6afee148bb2313a /home-manager/laptop/hyprland/scripts/rofi-modes
parent7db487dba2262af7b7822d110122ff496070ca92 (diff)
uhm
Diffstat (limited to 'home-manager/laptop/hyprland/scripts/rofi-modes')
-rwxr-xr-xhome-manager/laptop/hyprland/scripts/rofi-modes20
1 files changed, 20 insertions, 0 deletions
diff --git a/home-manager/laptop/hyprland/scripts/rofi-modes b/home-manager/laptop/hyprland/scripts/rofi-modes
new file mode 100755
index 0000000..2d52802
--- /dev/null
+++ b/home-manager/laptop/hyprland/scripts/rofi-modes
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+case $(echo -e "clipboard\nemoji\ncalc" | rofi -dmenu) in
+ emoji) arg=emoji;;
+ calc) arg=calc;;
+ clipboard) cliphist list | rofi -dmenu -display-columns 2 | cliphist decode | wl-copy
+ exit;;
+ bitwarden) if [[ $XDG_BACKEND == "wayland" ]]; then
+ typer=wtype
+ clip=wl-copy
+ else
+ typer=xdotool
+ clip=xclip
+ fi
+ rofi-rbw --typer $typer --clip $clip
+ exit;;
+ *)exit;;
+esac
+
+rofi -modi $arg -show $arg