diff --git a/config b/config index 8455ed3..47e7c9c 100644 --- a/config +++ b/config @@ -313,4 +313,6 @@ exec --no-startup-id picom --config ~/.config/compton.conf & # Autostart #exec --no-startup-id firefox & #exec --no-startup-id /home/ice/.Telegram/Telegram & + + exec --no-startup-id numlockx & diff --git a/i3blocks.conf b/i3blocks.conf index c3bf21e..485fb2c 100644 --- a/i3blocks.conf +++ b/i3blocks.conf @@ -39,7 +39,13 @@ markup=none ##instance=PCM ##interval=once ##signal=10 -# + +[bluetooth] +label= +interval=10 + + + ##[microphone] ##label= ##interval=5 diff --git a/screen2.png b/screen2.png new file mode 100644 index 0000000..082b196 Binary files /dev/null and b/screen2.png differ diff --git a/scripts/bluetooth b/scripts/bluetooth new file mode 100644 index 0000000..c9673a5 --- /dev/null +++ b/scripts/bluetooth @@ -0,0 +1,20 @@ +#!/bin/bash + +# Left click +if [[ "${BLOCK_BUTTON}" -eq 1 ]]; then + sudo bluetooth on +# Middle click +elif [[ "${BLOCK_BUTTON}" -eq 2 ]]; then + sudo bluetooth toggle +# Right click +elif [[ "${BLOCK_BUTTON}" -eq 3 ]]; then + sudo bluetooth off +fi + +STATUS=$(bluetooth | grep -wo 'on') + +if [[ "${STATUS}" = "on" ]]; then + echo "on" + echo "on" + echo "" +fi \ No newline at end of file