推荐用于平铺窗口管理器的自动安装程序?

And*_*ner 9 awesome i3-wm

在 Ubuntu 上使用平铺窗口管理器自动挂载 USB 驱动器、光学媒体、硬盘驱动器等的推荐方法是什么?

我是平铺窗口管理器的忠实粉丝,但每当有人拿着 USB 密钥走到我面前时,我总是看起来像个该死的傻瓜,我疯狂地开始输入命令来创建挂载点,在 /dev 中找出设备的名称,坐骑等等……

我目前正在使用 i3,但因为这对我来说是一个比 awesome/i3/dwm 之间的差异更大的问题......

Sar*_*use 2

您可以使用udisks-glue进行以下配置。请注意,这正在运行Awesome,它有一个用于自动安装的页面,您可以在其中找到其他不太优雅的(以我不那么谦虚的观点)解决方案...

 filter disks {
        optical = false
        partition_table = false
        usage = filesystem
 }
 match disks {
        automount = true
        automount_options = sync
        post_mount_command = "notify-send \"Disks-glue mount USB\" \"mounted %device_file on %mount_point\" --icon=/path/to/ikons/usb.png"
        post_unmount_command = "notify-send \"Disks-glue umount USB\" \"umounted %device_file from %mount_point\" --icon=/path/to/ikons/usb.png"
 }
Run Code Online (Sandbox Code Playgroud)


小智 0

Udiskie ( https://github.com/coldfix/udiskie ) 是在平铺 WM 中挂载磁盘的最佳解决方案