Update rofi launcher script

This commit is contained in:
natemaia 2018-06-16 23:17:43 -07:00
parent a74d63748b
commit 4d6b366b79
2 changed files with 6 additions and 7 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
Name=$(basename "$0")
Version="0.1"
Version="0.2"
_usage() {
cat <<- EOF
@ -37,8 +37,7 @@ while getopts ":hvqwcbrl" opt; do
-show-icons -drun-icon-theme "ArchLabs-Light"
;;
w)
rofi -modi window -show window -hide-scrollbar \
-eh 1 -padding 50 -line-padding 4
rofi -modi window -show window -hide-scrollbar -padding 50 -line-padding 4
;;
q)
rofi -modi "calc:qalc +u8 -nocurrencies" -padding 50 \
@ -54,13 +53,12 @@ while getopts ":hvqwcbrl" opt; do
surfraw -browser="$BROWSER" $(sr -elvi | awk -F'-' '{print $1}' \
| sed '/:/d' | awk '{$1=$1};1' | rofi -hide-scrollbar \
-kb-row-select 'Tab' -kb-row-tab 'Control+space' \
-dmenu -mesg 'Tab for Autocomplete' -i -p 'Web Search: ' \
-dmenu -mesg 'Tab for Autocomplete' -i -p 'Web Search ' \
-padding 50 -line-padding 4)
;;
l)
ANS=$(echo " Lock| Logout| Reboot| Shutdown" | \
rofi -sep "|" -dmenu -i -p 'System: ' "" -width 20 \
-hide-scrollbar -eh 1 -line-padding 4 -padding 20 -lines 4)
ANS=$(rofi -sep "|" -dmenu -i -p 'System ' "" -width 20 -hide-scrollbar \
-line-padding 4 -padding 20 -lines 4 <<< " Lock| Logout| Reboot| Shutdown")
case "$ANS" in
*Lock) i3lock-fancy ;;
*Logout) session-logout ;;

View File

@ -2,6 +2,7 @@
Name=$(basename "$0")
Version="0.2"
_usage() {
cat <<EOF