Added mount and unmount device menu
This commit is contained in:
parent
279399ab48
commit
9f701fc2bd
17
config
17
config
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user