OSDN Git Service

theme fix in autostart
authorpaperbenni <paperbenni@gmail.com>
Mon, 3 Feb 2020 22:24:14 +0000 (23:24 +0100)
committerpaperbenni <paperbenni@gmail.com>
Mon, 3 Feb 2020 22:24:14 +0000 (23:24 +0100)
autostart.sh
install.sh
programs/dunsttrigger

index d3576c9..d3a1b0c 100755 (executable)
@@ -108,4 +108,8 @@ if [ -n "$ISLAPTOP" ]; then
        ! pgrep nm-applet && nm-applet &
 fi
 
+if ! [ -e ~/instantos/themes/config ]; then
+       /usr/share/instantthemes/manjaro.sh apply
+fi
+
 source /usr/bin/instantstatus
index c7d5cc5..d74bc74 100755 (executable)
@@ -45,6 +45,7 @@ userrun() {
 }
 
 usercmd() {
+    REALUSERS="$(ls /home/ | grep -v '+')"
     for i in $REALUSERS; do
         echo "processing user $i"
         sudo su "$i" -c "$1"
index 3be59f7..1de5a2a 100755 (executable)
@@ -7,9 +7,9 @@
 echo "($(date +%H:%M)) [$1] <b>$2</b> | <i>$3</i>" >>/tmp/notifications/notif.txt
 
 if ! echo "$1" | grep -Eiq '(discord|spotify)'; then
-
     if ! [ -e ~/instantos/notifications/notification.ogg ]; then
-        if $(ping -c 1 google.com); then
+        if ping -c 1 google.com; then
+            mkdir -p ~/instantos/notifications/
             wget -qO ~/instantos/notifications/notification.ogg "https://notificationsounds.com/notification-sounds/me-too-603/download/ogg"
         fi
         exit