diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2019-03-20 14:45:08 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2019-03-20 14:45:08 -0400 |
| commit | c109b22891fd164b2695220d724bc2ae752d17c3 (patch) | |
| tree | 8efda7cadce9e95d1751b5f5fb41ced32ef961f3 /.scripts/i3cmds | |
| parent | a0fbd4616449bf32c3ae221596ee6871c79b0654 (diff) | |
| download | eibhear-c109b22891fd164b2695220d724bc2ae752d17c3.tar.gz eibhear-c109b22891fd164b2695220d724bc2ae752d17c3.tar.zst eibhear-c109b22891fd164b2695220d724bc2ae752d17c3.zip | |
PIX variable fully removed
Diffstat (limited to '.scripts/i3cmds')
| -rwxr-xr-x | .scripts/i3cmds/dmenumount | 6 | ||||
| -rwxr-xr-x | .scripts/i3cmds/dmenuumount | 4 | ||||
| -rwxr-xr-x | .scripts/i3cmds/td-toggle | 4 | ||||
| -rwxr-xr-x | .scripts/i3cmds/torwrap | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/.scripts/i3cmds/dmenumount b/.scripts/i3cmds/dmenumount index a270886..4de7438 100755 --- a/.scripts/i3cmds/dmenumount +++ b/.scripts/i3cmds/dmenumount @@ -17,21 +17,21 @@ getmount() { \ mountusb() { \ chosen="$(echo "$usbdrives" | dmenu -i -p "Mount which drive?" | awk '{print $1}')" - sudo -A mount "$chosen" && notify-send -i "$PIX/usb.svg" "$chosen mounted." && exit 0 + sudo -A mount "$chosen" && notify-send "$chosen mounted." && exit 0 getmount "/mnt /media /mount /home -maxdepth 5 -type d" partitiontype="$(lsblk -no "fstype" "$chosen")" case "$partitiontype" in "vfat") sudo -A mount -t vfat "$chosen" "$mp" -o rw,umask=0000;; *) sudo -A mount "$chosen" "$mp"; user="$(whoami)"; ug="$(groups | awk '{print $1}')"; sudo -A chown "$user":"$ug" 741 "$mp";; esac - notify-send -i "$PIX/usb.svg" "$chosen mounted to $mp." + notify-send "$chosen mounted to $mp." } mountandroid() { \ chosen=$(echo "$anddrives" | dmenu -i -p "Which Android device?" | cut -d : -f 1) getmount "$HOME -maxdepth 3 -type d" simple-mtpfs --device "$chosen" "$mp" - notify-send -i "$PIX/android.svg" "Android device mounted to $mp." + notify-send "Android device mounted to $mp." } asktype() { \ diff --git a/.scripts/i3cmds/dmenuumount b/.scripts/i3cmds/dmenuumount index e4ec064..260c1c8 100755 --- a/.scripts/i3cmds/dmenuumount +++ b/.scripts/i3cmds/dmenuumount @@ -7,13 +7,13 @@ unmountusb() { [ -z "$drives" ] && exit chosen=$(echo "$drives" | dmenu -i -p "Unmount which drive?" | awk '{print $1}') [ -z "$chosen" ] && exit - sudo -A umount "$chosen" && pgrep -x dunst && notify-send -i "$PIX/usb.svg" "$chosen unmounted." + sudo -A umount "$chosen" && pgrep -x dunst && notify-send "$chosen unmounted." } unmountandroid() { \ chosen=$(awk '/simple-mtpfs/ {print $2}' /etc/mtab | dmenu -i -p "Unmount which device?") [ -z "$chosen" ] && exit - sudo -A umount -l "$chosen" && pgrep -x dunst && notify-send -i "$PIX/android.svg" "$chosen unmounted." + sudo -A umount -l "$chosen" && pgrep -x dunst && notify-send "$chosen unmounted." } asktype() { \ diff --git a/.scripts/i3cmds/td-toggle b/.scripts/i3cmds/td-toggle index 729e697..dc727b9 100755 --- a/.scripts/i3cmds/td-toggle +++ b/.scripts/i3cmds/td-toggle @@ -2,9 +2,9 @@ # If transmission-daemon is running, will ask to kill, else will ask to start. if pgrep -x transmission-da >/dev/null ; then - [ "$(printf "No\\nYes" | dmenu -i -p "Kill transmission-daemon?")" = "Yes" ] && killall transmission-da && notify-send -i "$PIX/torrent.svg" "transmission-daemon killed." + [ "$(printf "No\\nYes" | dmenu -i -p "Kill transmission-daemon?")" = "Yes" ] && killall transmission-da && notify-send "transmission-daemon killed." else ifinstalled transmission-cli || exit - [ "$(printf "No\\nYes" | dmenu -i -p "Start transmission daemon?")" = "Yes" ] && transmission-daemon && notify-send -i "$PIX/torrent.svg" "tranmission-daemon started." + [ "$(printf "No\\nYes" | dmenu -i -p "Start transmission daemon?")" = "Yes" ] && transmission-daemon && notify-send "tranmission-daemon started." fi sleep 3 && pkill -RTMIN+7 i3blocks diff --git a/.scripts/i3cmds/torwrap b/.scripts/i3cmds/torwrap index 6b501cc..04e7a51 100755 --- a/.scripts/i3cmds/torwrap +++ b/.scripts/i3cmds/torwrap @@ -1,6 +1,6 @@ #!/bin/sh ifinstalled transmission-remote-cli transmission-cli || exit -! pgrep -x transmission-da >/dev/null && transmission-daemon && notify-send -i "$PIX/torrent.svg" "Starting torrent daemon..." && sleep 3 && pkill -RTMIN+7 i3blocks +! pgrep -x transmission-da >/dev/null && transmission-daemon && notify-send "Starting torrent daemon..." && sleep 3 && pkill -RTMIN+7 i3blocks $TERMINAL -e transmission-remote-cli |
