mirror of
https://github.com/Horhik/dotfiles.git
synced 2024-11-27 10:31:30 +00:00
26 lines
736 B
Markdown
26 lines
736 B
Markdown
|
# Script: system-usb-mount
|
||
|
|
||
|
A small script that shows your mounted and not mounted removable devices.
|
||
|
|
||
|
Click left to mount all removable devices. Click right to unmount the devices. The removable devices are then turned off with `udisksctl power-off`.
|
||
|
|
||
|
The mount option has a feature: You can also start a file manager and open the device when you mount it. Look at the example in the code: `terminal -e "bash -lc 'filemanager $mountpoint'" &`
|
||
|
|
||
|
|
||
|
## Dependencies
|
||
|
|
||
|
* `jq`
|
||
|
* `udisks2`
|
||
|
|
||
|
|
||
|
## Module
|
||
|
|
||
|
```ini
|
||
|
[module/system-usb-mount]
|
||
|
type = custom/script
|
||
|
exec = ~/polybar-scripts/system-usb-mount.sh
|
||
|
interval = 5
|
||
|
click-left = ~/polybar-scripts/system-usb-mount.sh --mount &
|
||
|
click-right = ~/polybar-scripts/system-usb-mount.sh --unmount &
|
||
|
```
|