automount toggle helpscript

little script that toggles automounting in gnome on and off
This commit is contained in:
Tobias Kessels
2018-02-12 12:32:40 +01:00
parent 02fae91e20
commit 9cb160193e

19
automountctl Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
command="${1}"
case ${command} in
on)
echo "turning on"
gsettings set org.gnome.desktop.media-handling automount true
gsettings set org.gnome.desktop.media-handling automount-open true
;;
off)
echo "turning off"
gsettings set org.gnome.desktop.media-handling automount false
gsettings set org.gnome.desktop.media-handling automount-open false
;;
*)
echo "status"
gsettings list-recursively | grep automount
gsettings get org.gnome.desktop.media-handling automount
gsettings get org.gnome.desktop.media-handling automount-open
esac