diff --git a/home/config/polybar/config.ini b/home/config/polybar/config.ini index 3747f1a..163ccb5 100644 --- a/home/config/polybar/config.ini +++ b/home/config/polybar/config.ini @@ -12,7 +12,7 @@ include-file = ./modules.ini [bar/main] monitor-strict = true -override-redirect = true +;override-redirect = true owm-restack = bspwm ;locale = zh_CN.UTF-8 diff --git a/home/config/polybar/scripts/bluetooth.sh b/home/config/polybar/scripts/bluetooth.sh new file mode 100755 index 0000000..b58aa75 --- /dev/null +++ b/home/config/polybar/scripts/bluetooth.sh @@ -0,0 +1,17 @@ +#!/bin/bash + + +if bluetoothctl show | grep -q "Powered: yes"; then + + if bluetoothctl info | grep -q "Connected: yes"; then + if bluetoothctl info | grep -q "Icon: audio-headphones"; then + echo "" + else + echo "" + fi + else + echo "" + fi +else + echo "" +fi diff --git a/home/config/sxhkd/sxhkdrc b/home/config/sxhkd/sxhkdrc index a3bc5f0..5041591 100644 --- a/home/config/sxhkd/sxhkdrc +++ b/home/config/sxhkd/sxhkdrc @@ -37,7 +37,7 @@ super + shift + k # 电源快捷键 ctrl + alt + shift + Escape - .local/bin/scripts/rofi_powermenu.sh + ~/.local/bin/scripts/rofi_powermenu.sh # --------------- end -------------------- @@ -57,7 +57,7 @@ F11 # 锁屏 ctrl + alt + q - .local/bin/scripts/xlock.sh --lock + ~/.local/bin/scripts/xlock.sh --lock # 将窗口在浮动和平铺中切换 shift + super + space diff --git a/home/local/bin/scripts/calendar.sh b/home/local/bin/scripts/calendar.sh old mode 100644 new mode 100755 diff --git a/home/local/bin/scripts/rofi_confirm.sh b/home/local/bin/scripts/rofi_confirm.sh old mode 100644 new mode 100755 diff --git a/home/local/bin/scripts/rofi_password.sh b/home/local/bin/scripts/rofi_password.sh old mode 100644 new mode 100755 diff --git a/home/local/bin/scripts/rofi_powermenu.sh b/home/local/bin/scripts/rofi_powermenu.sh old mode 100644 new mode 100755 diff --git a/home/local/bin/scripts/run_asroot.sh b/home/local/bin/scripts/run_asroot.sh old mode 100644 new mode 100755 diff --git a/home/local/bin/scripts/xlock.sh b/home/local/bin/scripts/xlock.sh old mode 100644 new mode 100755