Added mount and unmount device menu

This commit is contained in:
Jesús 2019-07-27 13:28:58 -05:00
parent 279399ab48
commit 9f701fc2bd
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

17
config
View File

@ -231,11 +231,20 @@ bindsym XF86AudioLowerVolume exec --no-startup-id amixer -q -D pulse sset Master
bindsym XF86AudioMute exec --no-startup-id amixer -q -D pulse sset Master toggle && pkill -SIGRTMIN+10 i3blocks # mute sound
# Enable devices USB
# bindsym $mod+m exec --no-startup-id "udisksctl mount -b /dev/sdb1"
bindsym $mod+m exec --no-startup-id "udisksctl mount -b /dev/sdb1 && xfce4-terminal -x ranger /run/media/$USER/"
# Declare here the shortcut to mount-device, require udisks2
set $mode_mount Launch: Shift unmount devices (u) USB, (c) DVD/CD
mode "$mode_mount" {
bindsym u exec --no-startup-id "udisksctl mount -b /dev/sdb1", mode "default"
bindsym Shift+u exec --no-startup-id "udisksctl unmount -b /dev/sb1", mode "default"
bindsym c exec --no-startup-id "udisksctl mount -b /dev/sr0", mode "default"
bindsym Shift+c exec --no-startup-id "udisksctl unmount -b /dev/sr0", mode "default"
# Enable CD/DVD
# bindsym $mod+Shift+m exec --no-startup-id "udisksctl mount -b /dev/sr0"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
# Declare here the shortcut to mount-device selection menu
bindsym $mod+m mode "$mode_mount"
# i3lock
bindsym Pause exec "sh /home/$USER/.config/i3/scripts/i3lock.sh"