diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2019-01-04 05:01:23 +0100 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2019-01-04 05:01:23 +0100 |
commit | 95aa68aeb4b629e9a98a9a480a558b757b2a732e (patch) | |
tree | d15a7e0e60eb7719e69f019c65801817c44e085a | |
parent | 1dd90a8e2d6e23f7ad53aad941af6ce98ab2ee2c (diff) | |
download | scripts-95aa68aeb4b629e9a98a9a480a558b757b2a732e.tar.gz scripts-95aa68aeb4b629e9a98a9a480a558b757b2a732e.zip |
Made some home paths dynamic. (~)
-rwxr-xr-x | dmenuMount.sh | 4 | ||||
-rwxr-xr-x | dmenuTerm.sh | 2 | ||||
-rwxr-xr-x | 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 ;; @@ -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 |