aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-04-22 18:27:40 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2019-04-22 18:27:40 +0200
commitc1243cf0fc63425ebc600f15509b93be71a389d9 (patch)
tree18faa49d08b23758a21d55df284e47d07d6e6267
parentb2bdbb94e5171133853e80de6af5b6605477ce4c (diff)
downloadscripts-c1243cf0fc63425ebc600f15509b93be71a389d9.tar.gz
scripts-c1243cf0fc63425ebc600f15509b93be71a389d9.zip
Minor updates.
-rwxr-xr-xbgSelector.sh2
-rwxr-xr-xdmenuDic.sh2
-rwxr-xr-xemoji.sh4
-rwxr-xr-xfloats/floatBgBrowser.sh4
-rwxr-xr-xfzfdic.sh6
-rwxr-xr-xi3blocks/i3internet.sh2
-rwxr-xr-xi3blocks/i3vol.sh4
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."
diff --git a/emoji.sh b/emoji.sh
index 99a69a1..57cde73 100755
--- a/emoji.sh
+++ b/emoji.sh
@@ -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"
diff --git a/fzfdic.sh b/fzfdic.sh
index 0cd457d..670e5f2 100755
--- a/fzfdic.sh
+++ b/fzfdic.sh
@@ -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)"