From c6c005206a4b50260fe2a3c4a57e25a3b766a8a3 Mon Sep 17 00:00:00 2001 From: paperbenni Date: Sat, 18 Jan 2020 23:42:43 +0100 Subject: [PATCH] fix dunsttrigger path --- autostart.sh | 4 ++-- programs/dunsttrigger | 2 +- programs/sll | 6 +++--- userinstall.sh | 25 ++++++++++++++----------- 4 files changed, 20 insertions(+), 17 deletions(-) diff --git a/autostart.sh b/autostart.sh index ee7a94a..6f34d3f 100755 --- a/autostart.sh +++ b/autostart.sh @@ -33,8 +33,8 @@ if ! pgrep dunst; then done & fi -[ -e /home/benjamin/paperbenni/monitor.sh ] && - bash /home/benjamin/paperbenni/monitor.sh & +[ -e ~/instantos/monitor.sh ] && + bash ~/instantos/monitor.sh & onlinetrigger() { [ -e "$HOME/instantos/wallpapers/wall.sh" ] && bash "$HOME/instantos/wallpapers/wall.sh" diff --git a/programs/dunsttrigger b/programs/dunsttrigger index 1a99998..dbac545 100755 --- a/programs/dunsttrigger +++ b/programs/dunsttrigger @@ -4,7 +4,7 @@ # spotify doesnt need a sound # discord already has one if ! echo "$1" | grep -Eiq '(discord|spotify)'; then - mpv ~/paperbenni/notifications/notification.ogg + mpv ~/instantos/notifications/notification.ogg fi echo "($(date +%H:%M)) [$1] $2 | $3" >>/tmp/notifications/notif.txt diff --git a/programs/sll b/programs/sll index d239e54..99f77ee 100755 --- a/programs/sll +++ b/programs/sll @@ -1,9 +1,9 @@ #!/bin/bash # very subtle easter egg, turn up the volume and wear headphones to experience it -if ! [ -e ~/paperbenni/thomas.mp3 ]; then +if ! [ -e ~/instantos/thomas.mp3 ]; then pushd . - cd ~/paperbenni/ + cd ~/instantos/ wget -q thomasthetankengine.surge.sh/thomas.mp3 popd fi @@ -13,6 +13,6 @@ if pgrep mpv; then exit fi -mpv ~/paperbenni/thomas.mp3 &>/dev/null & +mpv ~/instantos/thomas.mp3 &>/dev/null & command sl "$@" pkill mpv diff --git a/userinstall.sh b/userinstall.sh index 12b3274..0830cd2 100755 --- a/userinstall.sh +++ b/userinstall.sh @@ -52,23 +52,26 @@ if ! command -v dragon &>/dev/null; then fi cd -mkdir -p paperbenni/notifications &>/dev/null +mkdir -p instantos/notifications &>/dev/null +cd instantos/notifications # gets executed by dunst on notification -curl "$RAW/paperbenni/suckless/master/programs/dunsttrigger" >~/paperbenni/notifications/dunsttrigger -chmod +x ~/paperbenni/notifications/dunsttrigger +curl -s "$RAW/paperbenni/suckless/master/programs/dunsttrigger" >dunsttrigger +chmod +x dunsttrigger -if ! [ -e ~/paperbenni/notifications/notification.ogg ]; then - wget -qO ~/paperbenni/notifications/notification.ogg "https://notificationsounds.com/notification-sounds/me-too-603/download/ogg" +if ! [ -e notification.ogg ]; then + wget -qO notification.ogg "https://notificationsounds.com/notification-sounds/me-too-603/download/ogg" fi -cd +cd ~/instantos -rm -rf instantos/wallpapers -mkdir -p instantos/wallpapers -curl -s "$RAW/instantOS/instantWALLPAPER/master/wall.sh" >instantos/wallpapers/wall.sh -curl -s "$RAW/instantOS/instantWALLPAPER/master/offlinewall.sh" >instantos/wallpapers/offlinewall.sh -chmod +x instantos/wallpapers/*.sh +rm -rf wallpapers +mkdir wallpapers +cd wallpapers +curl -s "$RAW/instantOS/instantWALLPAPER/master/wall.sh" >wall.sh +curl -s "$RAW/instantOS/instantWALLPAPER/master/offlinewall.sh" >offlinewall.sh +chmod +x *.sh +cd # set instantwm as default for lightdm echo '[Desktop]' >.dmrc -- 2.11.0