Quellcode durchsuchen

updated i3blocks scripts

Marius Schwarz vor 1 Jahr
Ursprung
Commit
db10315be5
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  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