Use monospace alias for fonts, remove menu clutter

This commit is contained in:
natemaia
2018-12-02 20:19:37 -08:00
parent 26b202b69f
commit 25d560d149
60 changed files with 313 additions and 4428 deletions

View File

@ -3,7 +3,8 @@
NAME=$(basename "$0")
VER="0.4"
usage() {
usage()
{
cat <<- EOF
USAGE: $NAME [OPTIONS]
@ -32,10 +33,16 @@ usage() {
EOF
}
for arg in $@; do
for arg in "$@"; do
case $arg in
-h|--help) usage; exit 0 ;;
-v|--version) echo -e "$NAME -- Version $VER"; exit 0 ;;
-h|--help)
usage
exit 0
;;
-v|--version)
echo -e "$NAME -- Version $VER"
exit 0
;;
-r|--run)
rofi -modi run,drun -show drun -line-padding 4 \
-columns 2 -padding 50 -hide-scrollbar \
@ -46,14 +53,12 @@ for arg in $@; do
;;
-q|--qalculate)
hash qalc &>/dev/null || { echo "Requires 'libqalculate' installed"; exit 1; }
rofi -modi "calc:qalc +u8 -nocurrencies" -padding 50 \
-show "calc:qalc +u8 -nocurrencies" -line-padding 4 \
-hide-scrollbar
;;
-c|--clipboard)
hash greenclip &>/dev/null || { echo "Requires 'greenclip' installed"; exit 1; }
rofi -modi "clipboard:greenclip print" -padding 50 \
-line-padding 4 -show "clipboard:greenclip print" \
-hide-scrollbar
@ -61,23 +66,30 @@ for arg in $@; do
-b|--browser)
hash surfraw &>/dev/null || { echo "Requires 'surfraw' installed"; exit 1; }
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' \
-padding 50 -line-padding 4) ;;
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' \
-padding 50 -line-padding 4)"
;;
-l|--logout)
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 || pkill -15 -t tty"$XDG_VTNR" Xorg ;;
*Reboot) systemctl reboot ;;
*Shutdown) systemctl -i poweroff
esac ;;
*) echo; echo "Option does not exist: $arg"; echo; exit 2
esac
;;
*)
echo
echo "Option does not exist: $arg"
echo
exit 2
esac
done