summaryrefslogtreecommitdiffstats
path: root/.scripts/i3cmds
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-12-30 18:40:57 -0500
committerLuke Smith <luke@lukesmith.xyz>2018-12-30 18:40:57 -0500
commite6af94f1264520103d8e61f97f136e6efc534ac3 (patch)
treeb6350d11488de57211c4d8399355c06ff4480125 /.scripts/i3cmds
parentd53f597cc83d67f291ba9b2f6637c173e79b9e59 (diff)
downloadeibhear-e6af94f1264520103d8e61f97f136e6efc534ac3.tar.gz
eibhear-e6af94f1264520103d8e61f97f136e6efc534ac3.tar.zst
eibhear-e6af94f1264520103d8e61f97f136e6efc534ac3.zip
own mounted drives
Diffstat (limited to '.scripts/i3cmds')
-rwxr-xr-x.scripts/i3cmds/dmenumount2
1 files changed, 1 insertions, 1 deletions
diff --git a/.scripts/i3cmds/dmenumount b/.scripts/i3cmds/dmenumount
index 661a524..4de7438 100755
--- a/.scripts/i3cmds/dmenumount
+++ b/.scripts/i3cmds/dmenumount
@@ -22,7 +22,7 @@ mountusb() { \
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";;
+ *) sudo -A mount "$chosen" "$mp"; user="$(whoami)"; ug="$(groups | awk '{print $1}')"; sudo -A chown "$user":"$ug" 741 "$mp";;
esac
notify-send "$chosen mounted to $mp."
}