Skip to content

Commit

Permalink
Add dmenu power wrapper against i3exit
Browse files Browse the repository at this point in the history
  • Loading branch information
A committed May 29, 2020
1 parent 5e73e4e commit e139354
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/utils-dmenu/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## dmenu-power

dmenu wrapper over [i3exit](https://gitlab.manjaro.org/packages/community/i3/i3exit)
10 changes: 10 additions & 0 deletions packages/utils-dmenu/dmenu-power
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#/bin/bash

echo -e "\
lock\n\
logout\n\
switch_user\n\
suspend\n\
reboot\n\
shutdown\n\
" | dmenu -l 6 | xargs i3exit
16 changes: 16 additions & 0 deletions packages/utils-dmenu/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

SCRIPT=$(readlink -f $0)
WORKING_DIR=$(dirname $SCRIPT)
BIN_DIR=~/.local/bin

FILES=$(find $WORKING_DIR -maxdepth 1 -mindepth 1 -type f \
| grep -v install \
| grep -iv README \
)

for FILE in $FILES; do
ln -nsf "$FILE" "$BIN_DIR"
done;

exit 0

0 comments on commit e139354

Please sign in to comment.