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:
parent
2ad1389329
commit
a57e9ab7da
4 changed files with 29 additions and 0 deletions
1
disks/.config/systemd/user/default.target.wants/udiskie.service
Symbolic link
1
disks/.config/systemd/user/default.target.wants/udiskie.service
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../udiskie.service
|
10
disks/.config/systemd/user/udiskie.service
Normal file
10
disks/.config/systemd/user/udiskie.service
Normal 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
|
9
disks/.config/udiskie/config.yml
Normal file
9
disks/.config/udiskie/config.yml
Normal 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
|
9
disks/README.md
Normal file
9
disks/README.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# Removable disk configuration
|
||||||
|
|
||||||
|
This simple unit depends on `udiskie2` being installed and enables auto-mounting of any inserted removable media.
|
||||||
|
It will additionally *ignore* any snaps managed by `snapd`, since they would otherwise be detected as loopback devices.
|
||||||
|
|
||||||
|
Automatically installs a `systemd` service which is also enabled to start up on system start (as a user service).
|
||||||
|
|
||||||
|
The end result is `udiskie` 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.
|
Loading…
Reference in a new issue