diff options
-rw-r--r-- | dmenuTerm.sh | 19 | ||||
-rw-r--r-- | webview.sh | 8 |
2 files changed, 15 insertions, 12 deletions
diff --git a/dmenuTerm.sh b/dmenuTerm.sh index 98cff7f..a981797 100644 --- a/dmenuTerm.sh +++ b/dmenuTerm.sh @@ -1,24 +1,25 @@ #!/bin/bash # dmenu script for opening console programs and scripts directly -options="neofetch\ncmus\nnewsboat\nneomutt\nsyncthing\nbrightFirst\nresetConnection\nwifiDown\nyears\nmonths\nbg selection\nshowColors" +options="neofetch\ncmus\nnewsboat\nneomutt\nsyncthing\nbrightFirst\nresetConnection\nwifiDown\nyears\nmonths\nbg selection\nshowColors\npython" chosen=$(echo -e "$options" | dmenu -i) case "$chosen" in # floating windows - neofetch) urxvt -name floating -sh 30 -cr black -geometry 80x21 -e bash ~/scripts/neofetch.sh ;; - showColors) urxvt -name floating -sh 10 -cr black -geometry 43x9 -e bash ~/scripts/showColors.sh ;; - years) urxvt -name floating -sh 20 -cr black -geometry 66x39 -e bash ~/scripts/years.sh ;; - months) urxvt -name floating -sh 20 -cr black -geometry 22x9 -e bash ~/scripts/months.sh ;; - "bg selection") urxvt -name floating -sh 20 -cr black -geometry 45x6 -e bash ~/scripts/bgBrowser.sh ;; + neofetch) urxvt -title invisible -sh 100 -cr "#aaddff" -geometry "80x21+50+35" -e bash ~/scripts/neofetch.sh ;; + showColors) urxvt -title floating -sh 10 -cr black -geometry 43x9 -e bash ~/scripts/showColors.sh ;; + years) urxvt -title floating -sh 20 -cr black -geometry 66x39 -e bash ~/scripts/years.sh ;; + months) urxvt -title floating -sh 20 -cr black -geometry 22x9 -e bash ~/scripts/months.sh ;; + "bg selection") urxvt -title floating -sh 20 -cr black -geometry 45x6 -e bash ~/scripts/bgBrowser.sh ;; + python) urxvt -title floating -geometry 80x28 -e python ;; #programs cmus) urxvt -cd ~/music -e cmus ;; newsboat) urxvt -e newsboat ;; neomutt) urxvt -e neomutt ;; syncthing) qutebrowser && urxvt -e bash ~/scripts/syncthing.sh ;; # sudo stuff - brightFirst) urxvt -name floating -geometry 32x1 -e sudo bash ~/scripts/brightFirst.sh ;; - resetConnection) urxvt -name floating -geometry 32x1 -e sudo bash ~/scripts/resetConnection.sh ;; - wifiDown) urxvt -name floating -geometry 32x1 -e sudo bash ~/scripts/wifiDown.sh ;; + brightFirst) urxvt -title floating -geometry 32x1 -e sudo bash ~/scripts/brightFirst.sh ;; + resetConnection) urxvt -title floating -geometry 32x1 -e sudo bash ~/scripts/resetConnection.sh ;; + wifiDown) urxvt -title floating -geometry 32x1 -e sudo bash ~/scripts/wifiDown.sh ;; esac @@ -9,12 +9,13 @@ wgetFiles="mp3 pdf" # Check youtube link if echo "$1" | grep youtube > /dev/null; then - chosen=$(echo -e "mpv\nmpv (loop)\nmpv (float)\nqutebrowser" | dmenu -i) + chosen=$(echo -e "mpv\nmpv (loop)\nmpv (float)\nqutebrowser\nw3m" | dmenu -i) case "$chosen" in mpv) nohup mpv "$1" >/dev/null & ;; "mpv (loop)") nohup mpv --loop "$1" >/dev/null & ;; "mpv (float)") bash ~/scripts/mpvFloat.sh "$1" ;; qutebrowser) qutebrowser "$1" & ;; + w3m) urxvt -e w3m "$1" & ;; esac # General checks elif echo $pqivFiles | grep -w $ext > /dev/null; then @@ -30,12 +31,13 @@ elif echo $mpvFiles | grep -w $ext > /dev/null; then elif echo $wgetFiles | grep -w $ext > /dev/null; then i3 exec wget "$1" >/dev/null & else - chosen=$(echo -e "mpv\nmpv (loop)\npqiv\nqutebrowser" | dmenu -i) + chosen=$(echo -e "mpv\nmpv (loop)\npqiv\nqutebrowser\nw3m" | dmenu -i) case "$chosen" in mpv) nohup mpv "$1" >/dev/null & ;; "mpv (loop)") nohup mpv --loop "$1" >/dev/null & ;; "mpv (float)") bash ~/scripts/mpvFloat.sh "$1" ;; - qutebrowser) qutebrowser "$1" & ;; pqiv) nohup pqiv -i -P "0,0" -T "pqivfloat" "$1" >/dev/null & ;; + qutebrowser) qutebrowser "$1" & ;; + w3m) urxvt -e w3m "$1" & ;; esac fi |