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
#+end_src
* Blueooth
* Bluetooth
#+BEGIN_SRC conf
[module/bluetooth]
type = custom/script
format-underline = ${colors.bg}
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>
exec = ~/.config/polybar/scripts/bluetooth-status.sh
interval = 2
#+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
:PROPERTIES:
:header-args: :tangle ~/.config/polybar/scripts/bluetooth-status.sh