diff options
Diffstat (limited to '.scripts/code')
-rwxr-xr-x | .scripts/code | 12 |
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!" |