summaryrefslogtreecommitdiffstatshomepage
path: root/rofi
diff options
context:
space:
mode:
Diffstat (limited to 'rofi')
-rw-r--r--rofi/.config/rofi/config.rasi16
-rwxr-xr-xrofi/.local/bin/rofi-ykman33
2 files changed, 0 insertions, 49 deletions
diff --git a/rofi/.config/rofi/config.rasi b/rofi/.config/rofi/config.rasi
deleted file mode 100644
index 3e4fc90..0000000
--- a/rofi/.config/rofi/config.rasi
+++ /dev/null
@@ -1,16 +0,0 @@
-configuration {
- modi: "run,drun,ssh";
- kb-remove-to-eol: "";
- kb-accept-entry: "Control+m,Return,KP_Enter";
- kb-row-up: "Up,Control+k,Control+p";
- kb-row-down: "Down,Control+j,Control+n";
- timeout {
- action: "kb-cancel";
- delay: 0;
- }
- filebrowser {
- directories-first: true;
- sorting-method: "name";
- }
-}
-@theme "gruvbox-dark-hard"
diff --git a/rofi/.local/bin/rofi-ykman b/rofi/.local/bin/rofi-ykman
deleted file mode 100755
index 3d4ca99..0000000
--- a/rofi/.local/bin/rofi-ykman
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/env bash
-
-# rofi-ykman
-# Yubikey oath utility
-
-#2019 nukeop
-
-if [ ! "$(ykman info)" ]; then
- notify-send "rofi-ykman" "Yubikey not detected." -a "rofi-ykman"
- exit 1
-fi
-
-OPTIONS=$(ykman oath accounts list)
-LAUNCHER="rofi -dmenu -i -p YubikeyOATH"
-
-option=$(echo "${OPTIONS/, TOTP/\n}" | $LAUNCHER)
-code=$(ykman oath accounts code "$option")
-IFS=', ' read -r -a code <<<"$code"
-if [ "$XDG_SESSION_TYPE" == "wayland" ]; then
- cliptool=wl-copy
- typer="wtype -"
-else
- cliptool="xclip -selection clipboard"
- typer="xargs xdotool type"
-fi
-if [ "$1" == "type" ]; then
- action=$typer
-else
- action=$cliptool
-fi
-
-notify-send "rofi-ykman" "Touch Yubikey..." -a "rofi-ykman"
-echo "${code[-1]}" | $action