Files
gists/automountctl
Tobias Kessels 9cb160193e automount toggle helpscript
little script that toggles automounting in gnome on and off
2018-02-12 12:32:40 +01:00

20 lines
544 B
Bash
Executable File

#!/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