Update rofi launcher script
This commit is contained in:
parent
a74d63748b
commit
4d6b366b79
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
Name=$(basename "$0")
|
Name=$(basename "$0")
|
||||||
Version="0.1"
|
Version="0.2"
|
||||||
|
|
||||||
_usage() {
|
_usage() {
|
||||||
cat <<- EOF
|
cat <<- EOF
|
||||||
@ -37,8 +37,7 @@ while getopts ":hvqwcbrl" opt; do
|
|||||||
-show-icons -drun-icon-theme "ArchLabs-Light"
|
-show-icons -drun-icon-theme "ArchLabs-Light"
|
||||||
;;
|
;;
|
||||||
w)
|
w)
|
||||||
rofi -modi window -show window -hide-scrollbar \
|
rofi -modi window -show window -hide-scrollbar -padding 50 -line-padding 4
|
||||||
-eh 1 -padding 50 -line-padding 4
|
|
||||||
;;
|
;;
|
||||||
q)
|
q)
|
||||||
rofi -modi "calc:qalc +u8 -nocurrencies" -padding 50 \
|
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}' \
|
surfraw -browser="$BROWSER" $(sr -elvi | awk -F'-' '{print $1}' \
|
||||||
| sed '/:/d' | awk '{$1=$1};1' | rofi -hide-scrollbar \
|
| sed '/:/d' | awk '{$1=$1};1' | rofi -hide-scrollbar \
|
||||||
-kb-row-select 'Tab' -kb-row-tab 'Control+space' \
|
-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)
|
-padding 50 -line-padding 4)
|
||||||
;;
|
;;
|
||||||
l)
|
l)
|
||||||
ANS=$(echo " Lock| Logout| Reboot| Shutdown" | \
|
ANS=$(rofi -sep "|" -dmenu -i -p 'System ' "" -width 20 -hide-scrollbar \
|
||||||
rofi -sep "|" -dmenu -i -p 'System: ' "" -width 20 \
|
-line-padding 4 -padding 20 -lines 4 <<< " Lock| Logout| Reboot| Shutdown")
|
||||||
-hide-scrollbar -eh 1 -line-padding 4 -padding 20 -lines 4)
|
|
||||||
case "$ANS" in
|
case "$ANS" in
|
||||||
*Lock) i3lock-fancy ;;
|
*Lock) i3lock-fancy ;;
|
||||||
*Logout) session-logout ;;
|
*Logout) session-logout ;;
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
Name=$(basename "$0")
|
Name=$(basename "$0")
|
||||||
Version="0.2"
|
Version="0.2"
|
||||||
|
|
||||||
_usage() {
|
_usage() {
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user