Enable system tray in tint2
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
NAME="${0##*/}"
|
||||
VER="0.6"
|
||||
VER="0.7"
|
||||
|
||||
usage()
|
||||
{
|
||||
cat <<- EOF
|
||||
cat <<EOF
|
||||
|
||||
USAGE: $NAME [OPTIONS]
|
||||
|
||||
@ -53,20 +53,20 @@ else
|
||||
rofi -modi window -show window -hide-scrollbar -padding 50 -line-padding 4
|
||||
;;
|
||||
-q|--qalculate)
|
||||
hash qalc &>/dev/null || { echo "Requires 'libqalculate' installed"; exit 1; }
|
||||
hash qalc >/dev/null 2>&1 || { 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; }
|
||||
hash greenclip >/dev/null 2>&1 || { echo "Requires 'greenclip' installed"; exit 1; }
|
||||
rofi -modi "clipboard:greenclip print" -padding 50 -line-padding 4 -show "clipboard:greenclip print" -hide-scrollbar
|
||||
;;
|
||||
-b|--browser)
|
||||
hash surfraw &>/dev/null || { echo "Requires 'surfraw' installed"; exit 1; }
|
||||
hash surfraw >/dev/null 2>&1 || { 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')"
|
||||
;;
|
||||
-l|--logout)
|
||||
if grep -q 'exec startx' $HOME/.*profile; then
|
||||
if grep -q 'startx' $HOME/.*profile; then
|
||||
ANS="$(rofi -sep "|" -dmenu -i -p 'System' -width 20 -hide-scrollbar -line-padding 4 -padding 20 -lines 3 <<< " Lock| Reboot| Shutdown")"
|
||||
else
|
||||
ANS="$(rofi -sep "|" -dmenu -i -p 'System' -width 20 -hide-scrollbar -line-padding 4 -padding 20 -lines 4 <<< " Lock| Logout| Reboot| Shutdown")"
|
||||
|
Reference in New Issue
Block a user