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",
|
||||
"network",
|
||||
"bluetooth",
|
||||
/*
|
||||
"cpu",
|
||||
"memory",
|
||||
"temperature",
|
||||
*/
|
||||
"battery",
|
||||
"tray",
|
||||
"clock",
|
||||
@@ -2987,13 +2989,15 @@ window#waybar {
|
||||
These are config files for waybar
|
||||
#+BEGIN_SRC sh :tangle generated/.config/waybar/scripts/bluetooth-status.sh :noweb yes :mkdirp yes :eval never
|
||||
#!/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
|
||||
echo ""
|
||||
echo "" # Main icon
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
# Output the list for tooltip
|
||||
# Export list for tooltip
|
||||
echo "$bt_connected"
|
||||
#+END_SRC
|
||||
|
||||
|
||||
@@ -11,9 +11,11 @@
|
||||
"pulseaudio",
|
||||
"network",
|
||||
"bluetooth",
|
||||
/*
|
||||
"cpu",
|
||||
"memory",
|
||||
"temperature",
|
||||
*/
|
||||
"battery",
|
||||
"tray",
|
||||
"clock",
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
#!/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
|
||||
echo ""
|
||||
echo "" # Main icon
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
# Output the list for tooltip
|
||||
# Export list for tooltip
|
||||
echo "$bt_connected"
|
||||
|
||||
Reference in New Issue
Block a user