Add keybinding for USB unlock
This commit is contained in:
parent
18e04de4c5
commit
f76a5e7e9a
3
scripts/.local/bin/usb-unlock.sh
Executable file
3
scripts/.local/bin/usb-unlock.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env dash
|
||||
|
||||
pkexec --disable-internal-agent usbctl temporary
|
|
@ -23,6 +23,9 @@ bindsym $mod+Shift+c reload
|
|||
# Lock the screen
|
||||
bindsym $mod+l exec swaylock
|
||||
|
||||
# Unlock USB protection
|
||||
bindsym $mod+u exec usb-unlock.sh
|
||||
|
||||
# Session and power management
|
||||
bindsym $mod+Shift+e exec swaynag -t logout -m 'Log out?' -b 'Yes' 'swaymsg exit'
|
||||
bindsym $mod+Shift+r exec swaynag -t reboot -m 'Reboot?' -b 'Yes' 'doas reboot'
|
||||
|
|
|
@ -83,9 +83,9 @@
|
|||
},
|
||||
"custom/usb": {
|
||||
"format": "{} USB",
|
||||
"exec": "${XDG_CONFIG_HOME:-$HOME/.config}/waybar/usb-status.sh",
|
||||
"exec": "usb-status.sh",
|
||||
"return-type": "json",
|
||||
"interval": 1,
|
||||
"on-click": "pkexec --disable-internal-agent usbctl temporary"
|
||||
"on-click": "usb-unlock.sh"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue