diff options
-rwxr-xr-x | bgSelector.sh | 2 | ||||
-rwxr-xr-x | dmenuDic.sh | 2 | ||||
-rwxr-xr-x | emoji.sh | 4 | ||||
-rwxr-xr-x | floats/floatBgBrowser.sh | 4 | ||||
-rwxr-xr-x | fzfdic.sh | 6 | ||||
-rwxr-xr-x | i3blocks/i3internet.sh | 2 | ||||
-rwxr-xr-x | i3blocks/i3vol.sh | 4 |
7 files changed, 12 insertions, 12 deletions
diff --git a/bgSelector.sh b/bgSelector.sh index f69cd0f..236b4a0 100755 --- a/bgSelector.sh +++ b/bgSelector.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh if [ "$(date +%H)" -gt 18 ] then feh --bg-scale ~/images/wallpapers/night* diff --git a/dmenuDic.sh b/dmenuDic.sh index 0f25a80..b819e1b 100755 --- a/dmenuDic.sh +++ b/dmenuDic.sh @@ -9,5 +9,5 @@ elif [ "$dict" = "ES" ]; then word="$(dmenu -i -l 10 -p "Elige una palabra:" < /usr/share/dict/palabras.txt)" fi [ "$word" ] || exit 0 -echo "$word" | xsel -bi +echo "$word" | tr -d '\n' | xsel -bi dunstify -t 2000 "Written [$word] into clipboard." @@ -3,7 +3,7 @@ # Feeds an emoji list into dmenu and allows to select one into clipboard file="$XDG_CONFIG_HOME/emoji" -selected="$(dmenu -i -l 20 -p "Choose an emoji:" < "$file" | cut -d' ' -f1 | tr -d '\n')" +selected="$(dmenu -i -l 20 -p "Choose an emoji:" < "$file" | cut -d' ' -f1)" [ -z "$selected" ] && dunstify -t 2000 "No emoji selected." && exit 0 -echo "$selected" | xsel -ib +echo "$selected" | tr -d '\n' | xsel -ib dunstify -t 2000 "Copied $(xsel -ob)" diff --git a/floats/floatBgBrowser.sh b/floats/floatBgBrowser.sh index a99eaaf..baa8c63 100755 --- a/floats/floatBgBrowser.sh +++ b/floats/floatBgBrowser.sh @@ -1,2 +1,2 @@ -#!/bin/bash -urxvt -title floating -sh 20 -cr black -geometry "45x6-5-5" -e ~/scripts/bgBrowser.sh $1 +#!/bin/sh +urxvt -title floating -sh 20 -cr black -geometry "45x6-5-5" -e ~/scripts/bgBrowser.sh "$1" @@ -1,8 +1,8 @@ #!/bin/sh -dict="$(printf "EN\nES" | fzf -e --prompt="Choose a dictionary>")" +dict="$(printf "EN\nES" | fzf -e -i --prompt="Choose a dictionary>")" if [ "$dict" = "EN" ]; then - fzf -e --prompt="EN" < /usr/share/dict/words.txt + fzf -e -i --prompt="EN>" < /usr/share/dict/words.txt elif [ "$dict" = "ES" ]; then - fzf -e --prompt="ES" < /usr/share/dict/palabras.txt + fzf -e -i --prompt="ES>" < /usr/share/dict/palabras.txt fi diff --git a/i3blocks/i3internet.sh b/i3blocks/i3internet.sh index a5b507e..55f5a5d 100755 --- a/i3blocks/i3internet.sh +++ b/i3blocks/i3internet.sh @@ -24,7 +24,7 @@ else wifi="✔️ $(nmcli | grep "$wifiDev: connected to " | cut -d' ' -f4-) ($(grep "^\s*w" /proc/net/wireless | awk '{print int($3 * 100 / 70)"%"}'))" fi if [ -z "$(nmcli | grep $ethDev)" ]; then - en="❌❗ No $ethDev device found" + en="❌❗ No $ethDev" elif [ "$estatus" = "down" ]; then en="❌" else diff --git a/i3blocks/i3vol.sh b/i3blocks/i3vol.sh index f3a0745..4a3121f 100755 --- a/i3blocks/i3vol.sh +++ b/i3blocks/i3vol.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh case $BLOCK_BUTTON in 1) i3-msg "exec urxvt -e alsamixer" >/dev/null ;; @@ -7,7 +7,7 @@ esac vol=$(pactl list sinks | grep "Volume:" | sed 1q | awk '{print $5}') mute=$(pactl list sinks | grep "Mute:" | cut -d' ' -f2) -if [ $mute = "no" ]; then +if [ "$mute" = "no" ]; then echo "🔊 $vol" else echo "🔇($vol)" |