# - USB CableCreation : enxa0cec8c818ab
# - USB StarTech : enx00133b9c9bdb
+# disk io devices
+#----------------
+# - Dell XPS 13 : nvme0n1
+
ETH='enx00133b9c9bdb'
WIFI='wlp0s20f3'
--dir_bin ./bin \
--wifi_interface "$WIFI" \
--screen_brightness_device_name intel_backlight \
+ --disk_io_device nvme0n1 \
| stdbuf -o L tee \
>(stdbuf -o L ./bin/khatus_bar \
-v Opt_Mpd_Song_Max_Chars=10 \
FS2=':' # Fields separator, level 2 (a field's subfields)
count_powered_controllers() {
- bluetoothctl -- show | grep -c 'Powered: yes'
+ echo show | bluetoothctl | grep -c 'Powered: yes'
}
count_connected_devices() {
- bluetoothctl -- paired-devices \
- | awk '{print $2}' \
- | xargs -I % bluetoothctl -- info % \
+ echo paired-devices \
+ | bluetoothctl \
+ | awk '/^Device +[0-9a-zA-Z][0-9a-zA-Z]:/ {print $2}' \
+ | xargs -I % sh -c 'echo info % | bluetoothctl' \
| grep -c 'Connected: yes'
}