Regenerated
This commit is contained in:
+291
-287
File diff suppressed because it is too large
Load Diff
+7
-3
@@ -2641,9 +2641,11 @@ These are config files for waybar
|
|||||||
"pulseaudio",
|
"pulseaudio",
|
||||||
"network",
|
"network",
|
||||||
"bluetooth",
|
"bluetooth",
|
||||||
|
/*
|
||||||
"cpu",
|
"cpu",
|
||||||
"memory",
|
"memory",
|
||||||
"temperature",
|
"temperature",
|
||||||
|
*/
|
||||||
"battery",
|
"battery",
|
||||||
"tray",
|
"tray",
|
||||||
"clock",
|
"clock",
|
||||||
@@ -2987,13 +2989,15 @@ window#waybar {
|
|||||||
These are config files for waybar
|
These are config files for waybar
|
||||||
#+BEGIN_SRC sh :tangle generated/.config/waybar/scripts/bluetooth-status.sh :noweb yes :mkdirp yes :eval never
|
#+BEGIN_SRC sh :tangle generated/.config/waybar/scripts/bluetooth-status.sh :noweb yes :mkdirp yes :eval never
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
bt_connected=$(bluetoothctl devices Connected | awk '{$1=""; $2=""; print substr($0,3)}')
|
# Get list of connected devices
|
||||||
|
bt_connected=$(bluetoothctl devices Connected | awk '{$1=$2=""; print substr($0,3)}')
|
||||||
|
# Icon for display
|
||||||
if [ -n "$bt_connected" ]; then
|
if [ -n "$bt_connected" ]; then
|
||||||
echo ""
|
echo "" # Main icon
|
||||||
else
|
else
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
# Output the list for tooltip
|
# Export list for tooltip
|
||||||
echo "$bt_connected"
|
echo "$bt_connected"
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
|||||||
@@ -11,9 +11,11 @@
|
|||||||
"pulseaudio",
|
"pulseaudio",
|
||||||
"network",
|
"network",
|
||||||
"bluetooth",
|
"bluetooth",
|
||||||
|
/*
|
||||||
"cpu",
|
"cpu",
|
||||||
"memory",
|
"memory",
|
||||||
"temperature",
|
"temperature",
|
||||||
|
*/
|
||||||
"battery",
|
"battery",
|
||||||
"tray",
|
"tray",
|
||||||
"clock",
|
"clock",
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
bt_connected=$(bluetoothctl devices Connected | awk '{$1=""; $2=""; print substr($0,3)}')
|
# Get list of connected devices
|
||||||
|
bt_connected=$(bluetoothctl devices Connected | awk '{$1=$2=""; print substr($0,3)}')
|
||||||
|
# Icon for display
|
||||||
if [ -n "$bt_connected" ]; then
|
if [ -n "$bt_connected" ]; then
|
||||||
echo ""
|
echo "" # Main icon
|
||||||
else
|
else
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
# Output the list for tooltip
|
# Export list for tooltip
|
||||||
echo "$bt_connected"
|
echo "$bt_connected"
|
||||||
|
|||||||
Reference in New Issue
Block a user