aboutsummaryrefslogtreecommitdiff
path: root/.scripts/code
diff options
context:
space:
mode:
authorMarvin Borner2020-03-26 13:09:48 +0100
committerMarvin Borner2020-03-26 13:09:48 +0100
commit4c744f6c96499a62ad015ba808accc4a0b4e1f6d (patch)
tree2747f9068d1175f0909e8cd725853e028514e507 /.scripts/code
parent371ee1add8b18634583f982a06289a7511f9b904 (diff)
Added network check
Diffstat (limited to '.scripts/code')
-rwxr-xr-x.scripts/code12
1 files changed, 9 insertions, 3 deletions
diff --git a/.scripts/code b/.scripts/code
index 422b0ef..4dd38b3 100755
--- a/.scripts/code
+++ b/.scripts/code
@@ -1,7 +1,11 @@
#!/usr/bin/env sh
+notify-send -u critical "Waiting for internet connection..."
+while ! ping -qc1 8.8.8.8 ; do sleep 0.1 ; done
+notify-send -u critical "Found network!"
+
exec qutebrowser &
-exec st -e nvim /home/melvin/code/melvix/ &
+exec st &
exec telegram-desktop &
exec signal-desktop &
@@ -10,6 +14,8 @@ exec whatsapp-nativefier-dark &
exec spotify &
-sleep 0.5
+sleep 1
+
+dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Play
-dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Play &
+notify-send -u critical "Welcome back, Melvin!"