From 1abce784cf269fd98ee5faa09e52ba642f2e61ec Mon Sep 17 00:00:00 2001 From: Adam Stück Date: Wed, 22 Mar 2023 07:49:52 +0100 Subject: switched from i3 to sway --- .local/bin/dmenu/dm-pass | 24 ------------------------ .local/bin/dmenu/dm-power | 11 ----------- 2 files changed, 35 deletions(-) delete mode 100755 .local/bin/dmenu/dm-pass delete mode 100755 .local/bin/dmenu/dm-power (limited to '.local/bin/dmenu') diff --git a/.local/bin/dmenu/dm-pass b/.local/bin/dmenu/dm-pass deleted file mode 100755 index 2432822..0000000 --- a/.local/bin/dmenu/dm-pass +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -DMENU_CMD="dmenu -p 'pass:' -l 8 -b -i -fn 'JetBrainsMono Nerd Font:size=11'" - -entry=$(find "$PASSWORD_STORE_DIR" -name '*.gpg' |\ - sed "s|$PASSWORD_STORE_DIR/||" |\ - sed "s|.gpg||" |\ - sort -n |\ - eval "$DMENU_CMD") || exit 1 - -details=$(pass "$entry") || exit 1 -user=$(echo "$details" | sed -n '2p' | sed 's|user: ||') -pass=$(echo "$details" | head -n1) - -case "$(printf "autotype\npass\nuser" | eval "$DMENU_CMD")" in - autotype) - xdotool type "$user" - xdotool key Tab - xdotool type "$pass" ;; - pass) - xdotool type "$pass" ;; - user) - xdotool type "$user" ;; -esac diff --git a/.local/bin/dmenu/dm-power b/.local/bin/dmenu/dm-power deleted file mode 100755 index fb856bb..0000000 --- a/.local/bin/dmenu/dm-power +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -DMENU_CMD="dmenu -p 'sys:' -l 8 -b -i -fn 'JetBrainsMono Nerd Font:size=11'" - -case "$(printf "Shutdown\nRestart\nLogout\nSuspend\nLock" | eval "$DMENU_CMD")" in - Shutdown) exec systemctl poweroff;; - Restart) exec systemctl reboot;; - Logout) exec loginctl terminate-session ${XDG_SESSION_ID-};; - Suspend) exec systemctl suspend;; - Lock) exec systemctl --user start lock.target;; -esac -- cgit v1.2.3-70-g09d2