From 75edcf1460139696e49f978b3929d5064c1c52e9 Mon Sep 17 00:00:00 2001 From: yutent Date: Wed, 12 Jul 2023 01:43:56 +0000 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=A8=E9=81=97=E6=BC=8F=E7=9A=84?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/config/polybar/config.ini | 2 +- home/config/polybar/scripts/bluetooth.sh | 17 +++++++++++++++++ home/config/sxhkd/sxhkdrc | 4 ++-- home/local/bin/scripts/calendar.sh | 0 home/local/bin/scripts/rofi_confirm.sh | 0 home/local/bin/scripts/rofi_password.sh | 0 home/local/bin/scripts/rofi_powermenu.sh | 0 home/local/bin/scripts/run_asroot.sh | 0 home/local/bin/scripts/xlock.sh | 0 9 files changed, 20 insertions(+), 3 deletions(-) create mode 100755 home/config/polybar/scripts/bluetooth.sh mode change 100644 => 100755 home/local/bin/scripts/calendar.sh mode change 100644 => 100755 home/local/bin/scripts/rofi_confirm.sh mode change 100644 => 100755 home/local/bin/scripts/rofi_password.sh mode change 100644 => 100755 home/local/bin/scripts/rofi_powermenu.sh mode change 100644 => 100755 home/local/bin/scripts/run_asroot.sh mode change 100644 => 100755 home/local/bin/scripts/xlock.sh 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