aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2023-03-25 00:10:18 +1300
committerTom Ryder <tom@sanctum.geek.nz>2023-03-25 00:10:18 +1300
commit4491d93f955c00fd247b6798c9203c4c86b11bd8 (patch)
treed7cfdfa8e251c5808ddf452a63a944c50f52caa1
parentRemove terminfo handling, including Vim settings (diff)
downloaddotfiles-4491d93f955c00fd247b6798c9203c4c86b11bd8.tar.gz
dotfiles-4491d93f955c00fd247b6798c9203c4c86b11bd8.zip
Remove dmenu in favor of rofi
-rw-r--r--.gitignore1
-rw-r--r--Makefile1
-rw-r--r--README.md2
-rw-r--r--bin/dmenu_pass.sh18
-rw-r--r--man/man1/dmenu_pass.1df17
-rw-r--r--man/man7/dotfiles.7df3
-rw-r--r--sxhkd/sxhkdrc5
7 files changed, 1 insertions, 46 deletions
diff --git a/.gitignore b/.gitignore
index 900f6541..b832e2d9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -25,7 +25,6 @@
/bin/dfv
/bin/dfv.m4
/bin/dfv.sh
-/bin/dmenu_pass
/bin/dub
/bin/edda
/bin/edda.m4
diff --git a/Makefile b/Makefile
index 66959687..687d4a14 100644
--- a/Makefile
+++ b/Makefile
@@ -113,7 +113,6 @@ BINS = bin/ap \
bin/ddup \
bin/defang \
bin/dfv \
- bin/dmenu_pass \
bin/dub \
bin/edda \
bin/eds \
diff --git a/README.md b/README.md
index 0e5536ac..0c4ee069 100644
--- a/README.md
+++ b/README.md
@@ -510,8 +510,6 @@ These scripts are installed by the `install-bin` target:
- `dam(1df)` buffers all its input before emitting it as output.
- `ddup(1df)` removes duplicate lines from unsorted input.
- `defang(1df)` prevents dangerous URLs from being made into clickable links.
-- `dmenu_pass(1df)` copies a pass(1) entry selected by `dmenu(1)` to the
- X CLIPBOARD.
- `dub(1df)` lists the biggest entries in a directory.
- `edda(1df)` provides a means to run `ed(1)` over a set of files preserving
any options, mostly useful for scripts.
diff --git a/bin/dmenu_pass.sh b/bin/dmenu_pass.sh
deleted file mode 100644
index 2969cd16..00000000
--- a/bin/dmenu_pass.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-# Pick and type out a pass(1) password with dmenu(1) and xdotool(1)
-self=dmenu_pass
-cd -- "${PASSWORD_STORE_DIR:-"$HOME"/.password-store}" || exit
-# shellcheck disable=SC2016
-name=$(
- find . -name \*.gpg ! -type d |
- sed -e 's_^\./__' -e 's_\.gpg$__' |
- LC_ALL=C sort -f |
- dmenu
-)
-[ -n "$name" ] || exit
-password=$(pass show -- "$name" | head -n 1) || exit
-[ -n "$password" ] || exit
-printf %s "$password" | xdotool type --clearmodifiers --file - \
- || exit
-notify-send --app-name="$self" -- \
- "Password typed" \
- "$name"
diff --git a/man/man1/dmenu_pass.1df b/man/man1/dmenu_pass.1df
deleted file mode 100644
index c83cd837..00000000
--- a/man/man1/dmenu_pass.1df
+++ /dev/null
@@ -1,17 +0,0 @@
-.TH DMENU_PASS 1df "May 2022" "Manual page for dmenu_pass"
-.SH NAME
-.B dmenu_pass
-\- pick and type a password-store password
-.SH SYNOPSIS
-.B dmenu_pass
-.SH DESCRIPTION
-.B dmenu_pass
-applies dmenu(1) to pick a password entry from a pass(1) store and types it out
-with xdotool(1).
-.P
-A notification with the default priority is sent when the password is
-successfully typed.
-.SH SEE ALSO
-dmenu(1), notify-send(1), pass(1), xdotool(1)
-.SH AUTHOR
-Tom Ryder <tom@sanctum.geek.nz>
diff --git a/man/man7/dotfiles.7df b/man/man7/dotfiles.7df
index 9828af2d..9d528c3e 100644
--- a/man/man7/dotfiles.7df
+++ b/man/man7/dotfiles.7df
@@ -786,9 +786,6 @@ read from the input.
\f[C]defang(1df)\f[R] prevents dangerous URLs from being made into
clickable links.
.IP \[bu] 2
-\f[C]dmenu_pass(1df)\f[R] copies a pass(1) entry selected by
-\f[C]dmenu(1)\f[R] to the X CLIPBOARD.
-.IP \[bu] 2
\f[C]dub(1df)\f[R] lists the biggest entries in a directory.
.IP \[bu] 2
\f[C]edda(1df)\f[R] provides a means to run \f[C]ed(1)\f[R] over a set
diff --git a/sxhkd/sxhkdrc b/sxhkd/sxhkdrc
index d655dc30..3864b84f 100644
--- a/sxhkd/sxhkdrc
+++ b/sxhkd/sxhkdrc
@@ -8,7 +8,7 @@ super + b
exec x-www-browser
super + d
- exec dmenu_run
+ exec rofi -modi drun -show drun
super + g
exec xgoc
@@ -19,9 +19,6 @@ super + i
super + m
exec x-terminal-emulator -e tm
-super + p
- exec dmenu_pass
-
super + t
exec thunar