Add right click for bluetooth => open manager

This commit is contained in:
Thomas Dehaeze 2020-11-25 12:21:55 +01:00
parent 156cdd1dc2
commit bfe1d2ba17

View File

@ -836,19 +836,31 @@
fi fi
#+end_src #+end_src
* Blueooth * Bluetooth
#+BEGIN_SRC conf #+BEGIN_SRC conf
[module/bluetooth] [module/bluetooth]
type = custom/script type = custom/script
format-underline = ${colors.bg} format-underline = ${colors.bg}
click-left = ~/.config/polybar/scripts/bluetooth-toggle.sh >/dev/null 2>%1 & click-left = ~/.config/polybar/scripts/bluetooth-toggle.sh >/dev/null 2>%1 &
click-right = ~/.config/polybar/scripts/bluetooth-run.sh >/dev/null 2>%1 &
format = <label> format = <label>
exec = ~/.config/polybar/scripts/bluetooth-status.sh exec = ~/.config/polybar/scripts/bluetooth-status.sh
interval = 2 interval = 2
#+END_SRC #+END_SRC
** Bluetooth Run Manager
:PROPERTIES:
:header-args: :tangle ~/.config/polybar/scripts/bluetooth-run.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
blueman-manager && pkill blueman-applet
#+end_src
** Bluetooth Connection Status ** Bluetooth Connection Status
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/polybar/scripts/bluetooth-status.sh :header-args: :tangle ~/.config/polybar/scripts/bluetooth-status.sh