disks: Add removable media automounting

`udiskie` is kept running in the background and automatically
mounting any inserted media, which will then also show its
tray icon so that it can be quickly unmounted as well.

Additional ideas would be to allow mounting / unmounting through
keyboard sequences instead of gui (via rofi for example).
This commit is contained in:
Marty Oehme 2020-10-21 16:46:59 +02:00
parent 2ad1389329
commit a57e9ab7da
Signed by: Marty
GPG key ID: B7538B8F50A1C800
4 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1 @@
../udiskie.service

View file

@ -0,0 +1,10 @@
[Unit]
Description=Automated mounting of removable devices (udisks)
[Service]
# workaround to allow relative executable invocation (i.e. current users' home dir)
ExecStart=/usr/bin/udiskie
Restart=always
[Install]
WantedBy=default.target

View file

@ -0,0 +1,9 @@
program_options:
tray: auto
automount: true
notify: true
device_config:
# ignore any snap loopback devices
# see https://github.com/coldfix/udiskie/issues/180
- id_type: squashfs
ignore: true