aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGravatar Matheus R <matheusrbarros03@gmail.com> 2022-06-04 13:57:53 +0000
committerGravatar Matheus R <matheusrbarros03@gmail.com> 2022-06-04 13:57:53 +0000
commit1c6183dc830542c3eba02744db772da9ffd6d4e4 (patch)
tree998c28f70abc352354424529492417461a9fb0ca /bin
parent7553af7dd5961eae6608b003bae83aa69c7a58aa (diff)
adicionados scripts de dmenu e pastas do kmonad e do sdorfehs
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dmenu_man10
-rwxr-xr-xbin/dmenu_wrapper10
2 files changed, 20 insertions, 0 deletions
diff --git a/bin/dmenu_man b/bin/dmenu_man
new file mode 100755
index 0000000..b97bfce
--- /dev/null
+++ b/bin/dmenu_man
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+command -v man > /dev/null || echo 'man not found'
+command -v dmenu > /dev/null || echo 'dmenu not found'
+
+prompt="manpage:"
+
+# simple script to select man page from dmenu
+
+man -k . | sed -e 's;[0-9];;' | tr -d '(),' | dmenu_wrapper -p "$prompt" | xargs --no-run-if-empty xterm -e man > /dev/null
diff --git a/bin/dmenu_wrapper b/bin/dmenu_wrapper
new file mode 100755
index 0000000..186fce0
--- /dev/null
+++ b/bin/dmenu_wrapper
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+font="Terminus:style=Regular:size=16"
+bg_color="#101112"
+fg_color="#f5f5f5"
+hl_color="#e60053"
+
+opts="-i -l 6"
+
+dmenu -fn "$font" -nb "$bg_color" -nf "$fg_color" -sb "$hl_color" $opts "$@"