echo "your computer is a potato"
fi
-if ! xrdb -query -all | grep -q 'ScrollPage:.*false'; then
+if ! xrdb -query -all | grep -q 'URxvt.perl-ext-common'; then
instantthemes a
xrdb ~/.Xresources
fi
echo "$AMOUNT monitors found"
fi
-iconf names "(xrandr | grep '[^s]connected' | grep -o '^[^ ]*')"
+iconf names "$(xrandr | grep '[^s]connected' | grep -o '^[^ ]*')"
-MONITOR1=$(head -1 <<<"$POSTITIONS")
+MONITOR1=$(head -1 <<<"$POSITIONS")
MONITOR2=$(tail -1 <<<"$POSITIONS")
if [ "$MONITOR1" -gt "$MONITOR2" ]; then
# escape characters that cause problems with pango
cleanstring() {
- sed 's/&/&/g' <<<"$@"
+ echo "$@" | sed 's/&/&/g'
}
# add pango markup
echo "($(date +%H:%M)) [$(cleanstring $1)] <b>$(cleanstring $2)</b> | <i>$(cleanstring $3)</i>" >>/tmp/notifications/notif.txt
# some apps dont need/already have notification sounds
-if ! echo "$1" | grep -Eiq '(discord|spotify|thunderbird)'; then
+if ! echo "$1" | grep -Eiq '(discord|spotify|thunderbird|mailspring)'; then
if ! [ -e ~/instantos/notifications/notification.ogg ]; then
if ping -c 1 google.com; then
mkdir -p ~/instantos/notifications/