From 95aa68aeb4b629e9a98a9a480a558b757b2a732e Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Fri, 4 Jan 2019 05:01:23 +0100 Subject: Made some home paths dynamic. (~) --- dmenuMount.sh | 4 ++-- dmenuTerm.sh | 2 +- webview.sh | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dmenuMount.sh b/dmenuMount.sh index 7793aaa..c94543b 100755 --- a/dmenuMount.sh +++ b/dmenuMount.sh @@ -39,11 +39,11 @@ while read -r line do i=$((i+1)) directories="$directories$i. $line"$'\n' -done <<< "$(find /media /home/inigo/mounts -type d -maxdepth 3 -empty 2>/dev/null)" +done <<< "$(find /media ~/mounts -type d -maxdepth 3 -empty 2>/dev/null)" lines=$(echo "$directories" | wc -l) mountpoint=$(echo "$directories" | dmenu -i -l $lines -p "Type in mount point." | awk '{print $2}') [[ "$mountpoint" = "" ]] && exit 1 if [[ ! -d "$mountpoint" ]]; then - bash /home/inigo/scripts/prompt.sh "$mountpoint does not exist. Create it?" "mkdir -p $mountpoint" + bash ~/scripts/prompt.sh "$mountpoint does not exist. Create it?" "mkdir -p $mountpoint" fi mount $chosen $mountpoint && pgrep -x dunst && notify-send "$chosen mounted to $mountpoint." diff --git a/dmenuTerm.sh b/dmenuTerm.sh index 73d170c..6b2e471 100755 --- a/dmenuTerm.sh +++ b/dmenuTerm.sh @@ -11,7 +11,7 @@ case "$chosen" in showColors) urxvt -title floating -sh 10 -cr black -geometry 43x9 -e ~/scripts/showColors.sh ;; years) ~/scripts/floats/floatYears.sh ;; months) ~/scripts/floats/floatMonths.sh ;; - "bg selection") ~/scripts/floats/floatBgBrowser.sh "/home/inigo/images/wallpapers/" ;; + "bg selection") ~/scripts/floats/floatBgBrowser.sh "~/images/wallpapers/" ;; python) urxvt -title floating -geometry 80x28 -e python ;; #programs cmus) urxvt -cd ~/music -e cmus ;; diff --git a/webview.sh b/webview.sh index ad5d30d..673dee3 100755 --- a/webview.sh +++ b/webview.sh @@ -18,7 +18,7 @@ if echo "$1" | grep youtube >/dev/null; then "mpv (loop)") nohup mpv --loop "$1" >/dev/null & ;; "mpv (float)") ~/scripts/floats/mpvFloat.sh "$1" ;; "mpv (terminal)") mpv --loop -vo caca "$1" ;; - "download (y-dl)") /home/inigo/scripts/youtube-dlFloat.sh "$1" & ;; + "download (y-dl)") ~/scripts/youtube-dlFloat.sh "$1" & ;; qutebrowser) qutebrowser "$1" & ;; w3m) urxvt -e w3m "$1" & ;; esac @@ -44,7 +44,7 @@ else "mpv (float)") ~/scripts/floats/mpvFloat.sh "$1" ;; "mpv (terminal)") mpv --loop -vo caca "$1" ;; pqiv) nohup pqiv -i -P "0,0" -T "pqivfloat" "$1" >/dev/null & ;; - "download (y-dl)") /home/inigo/scripts/floats/youtube-dlFloat.sh "$1" & ;; + "download (y-dl)") ~/scripts/floats/youtube-dlFloat.sh "$1" & ;; qutebrowser) qutebrowser "$1" & ;; w3m) urxvt -e w3m "$1" & ;; esac -- cgit v1.2.1