-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dmenu power wrapper against i3exit
- Loading branch information
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |