فهرست منبع

updated i3blocks scripts

Marius Schwarz 1 سال پیش
والد
کامیت
db10315be5
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 2 2
      .scripts/i3/i3blocks/i3bat.sh
  2. 1 1
      .scripts/i3/i3blocks/i3volume.sh

+ 2 - 2
.scripts/i3/i3blocks/i3bat.sh

@@ -7,8 +7,8 @@ battery_count=${#output[@]}
 for line in "${output[@]}";
 do
     percentages+=($(echo "$line" | grep -o -m1 '[0-9]\{1,3\}%' | tr -d '%'))
-    statuses+=($(echo "$line" | egrep -o -m1 'Discharging|Charging|AC|Full|Unknown'))
-    remaining=$(echo "$line" | egrep -o -m1 '[0-9][0-9]:[0-9][0-9]')
+    statuses+=($(echo "$line" | grep -E -o -m1 'Discharging|Charging|AC|Full|Unknown'))
+    remaining=$(echo "$line" | grep -E -o -m1 '[0-9][0-9]:[0-9][0-9]')
     if [[ -n $remaining ]]; then
         remainings+=(" ($remaining)")
     else

+ 1 - 1
.scripts/i3/i3blocks/i3volume.sh

@@ -1,7 +1,7 @@
 #!/bin/sh
 
 case $BLOCK_BUTTON in
-    1) amixer -D pulse sset Master toggle; ;;
+    1) nohup pavucontrol & ;;
     2) ;;
 esac