@@ -930,7 +930,7 @@ get_distro() {
930
930
fi
931
931
932
932
distro=" $( trim_quotes " $distro " ) "
933
- distro=" ${distro/ ' NAME=' } "
933
+ distro=" ${distro/ NAME=} "
934
934
;;
935
935
936
936
" Mac OS X" )
@@ -1184,7 +1184,7 @@ get_uptime() {
1184
1184
1185
1185
" Mac OS X" | " iPhone OS" | " BSD" | " FreeMiNT" )
1186
1186
boot=" $( sysctl -n kern.boottime) "
1187
- boot=" ${boot/ ' { sec = ' } "
1187
+ boot=" ${boot/ \ { sec = } "
1188
1188
boot=" ${boot/ ,* } "
1189
1189
1190
1190
# Get current date in seconds.
@@ -1419,7 +1419,7 @@ get_de() {
1419
1419
(( wm_run != 1 )) && get_wm
1420
1420
1421
1421
if [[ " $XDG_CURRENT_DESKTOP " ]]; then
1422
- de=" ${XDG_CURRENT_DESKTOP/ ' X- ' } "
1422
+ de=" ${XDG_CURRENT_DESKTOP/ X \- } "
1423
1423
de=" ${de/ Budgie: GNOME/ Budgie} "
1424
1424
de=" ${de/: Unity7: ubuntu} "
1425
1425
@@ -1682,7 +1682,7 @@ get_wm_theme() {
1682
1682
wm_theme=" $( awk ' /(decoration)/ {gsub(/\[/,"",$1); print $1; exit}' " $kdebugrc " ) "
1683
1683
fi
1684
1684
1685
- wm_theme=" ${wm_theme/ ' theme=' } "
1685
+ wm_theme=" ${wm_theme/ theme=} "
1686
1686
;;
1687
1687
1688
1688
" Quartz Compositor" )
@@ -1713,7 +1713,7 @@ get_wm_theme() {
1713
1713
path=" ${path// \\ / \/ } "
1714
1714
1715
1715
wm_theme=" $( grep ' ^session\.styleFile:' " ${path/ \. exe/ .rc} " ) "
1716
- wm_theme=" ${wm_theme/ ' session.styleFile: ' } "
1716
+ wm_theme=" ${wm_theme/ session\ . styleFile: } "
1717
1717
wm_theme=" ${wm_theme##* \\ } "
1718
1718
wm_theme=" ${wm_theme% .* } "
1719
1719
;;
@@ -2061,8 +2061,8 @@ get_gpu() {
2061
2061
brand=" ${brand:- ${gpu/* AMD*/ AMD} } "
2062
2062
brand=" ${brand:- ${gpu/* ATI*/ ATi} } "
2063
2063
2064
- gpu=" ${gpu/ ' [AMD/ATI] ' } "
2065
- gpu=" ${gpu/ ' [AMD] ' } "
2064
+ gpu=" ${gpu/ \ [ AMD\ / ATI\] } "
2065
+ gpu=" ${gpu/ \ [ AMD\] } "
2066
2066
gpu=" ${gpu/ OEM } "
2067
2067
gpu=" ${gpu/ Advanced Micro Devices, Inc.} "
2068
2068
gpu=" ${gpu/ \/ * } "
@@ -2079,8 +2079,8 @@ get_gpu() {
2079
2079
2080
2080
* " intel" * )
2081
2081
gpu=" ${gpu/* Intel/ Intel} "
2082
- gpu=" ${gpu/ ' (R) ' } "
2083
- gpu=" ${gpu/ ' Corporation' } "
2082
+ gpu=" ${gpu/ \( R \) } "
2083
+ gpu=" ${gpu/ Corporation} "
2084
2084
gpu=" ${gpu/ \( * } "
2085
2085
gpu=" ${gpu/ Integrated Graphics Controller} "
2086
2086
gpu=" ${gpu/* Xeon*/ Intel HD Graphics} "
@@ -2112,7 +2112,7 @@ get_gpu() {
2112
2112
else
2113
2113
gpu=" $( system_profiler SPDisplaysDataType | \
2114
2114
awk -F' : ' ' /^\ *Chipset Model:/ {printf $2 ", "}' ) "
2115
- gpu=" ${gpu// ' / $ ' } "
2115
+ gpu=" ${gpu// \/ \$ } "
2116
2116
gpu=" ${gpu% ,* } "
2117
2117
2118
2118
cache " gpu" " $gpu "
@@ -2172,7 +2172,7 @@ get_gpu() {
2172
2172
2173
2173
* )
2174
2174
gpu=" $( glxinfo | grep -F ' OpenGL renderer string' ) "
2175
- gpu=" ${gpu/ ' OpenGL renderer string: ' } "
2175
+ gpu=" ${gpu/ OpenGL renderer string: } "
2176
2176
;;
2177
2177
esac
2178
2178
;;
@@ -3099,7 +3099,7 @@ get_disk() {
3099
3099
for disk in " ${disks[@]} " ; do
3100
3100
# Create a second array and make each element split at whitespace this time.
3101
3101
IFS=" " read -ra disk_info <<< " $disk"
3102
- disk_perc=" ${disk_info[4]/ ' % ' } "
3102
+ disk_perc=" ${disk_info[4]/ \% } "
3103
3103
3104
3104
case " $df_version " in
3105
3105
* " befhikm" * )
@@ -3216,9 +3216,9 @@ get_battery() {
3216
3216
[[ " $battery_state " ]] && battery+=" Charging"
3217
3217
3218
3218
case " $battery_display " in
3219
- " bar" ) battery=" $( bar " ${battery/ ' % ' * } " 100) " ;;
3220
- " infobar" ) battery=" ${battery} $( bar " ${battery/ ' % ' * } " 100) " ;;
3221
- " barinfo" ) battery=" $( bar " ${battery/ ' % ' * } " 100) ${info_color} ${battery} " ;;
3219
+ " bar" ) battery=" $( bar " ${battery/ \% * } " 100) " ;;
3220
+ " infobar" ) battery=" ${battery} $( bar " ${battery/ \% * } " 100) " ;;
3221
+ " barinfo" ) battery=" $( bar " ${battery/ \% * } " 100) ${info_color} ${battery} " ;;
3222
3222
esac
3223
3223
}
3224
3224
@@ -3246,7 +3246,7 @@ get_local_ip() {
3246
3246
3247
3247
" Haiku" )
3248
3248
local_ip=" $( ifconfig | awk -F ' : ' ' /Bcast/ {print $2}' ) "
3249
- local_ip=" ${local_ip/ ' , Bcast' } "
3249
+ local_ip=" ${local_ip/ , Bcast} "
3250
3250
;;
3251
3251
esac
3252
3252
}
@@ -3516,7 +3516,7 @@ END
3516
3516
esac
3517
3517
3518
3518
# Strip un-needed info from the path.
3519
- image=" ${image/ ' file:// ' } "
3519
+ image=" ${image/ file: \/\/ } "
3520
3520
image=" $( trim_quotes " $image " ) "
3521
3521
;;
3522
3522
esac
@@ -4175,7 +4175,7 @@ get_ppid() {
4175
4175
case " $os " in
4176
4176
" Windows" )
4177
4177
ppid=" $( ps -p " ${1:- $PPID } " | awk ' {printf $2}' ) "
4178
- ppid=" ${ppid/ ' PPID' } "
4178
+ ppid=" ${ppid/ PPID} "
4179
4179
;;
4180
4180
4181
4181
" Linux" )
@@ -4196,7 +4196,7 @@ get_process_name() {
4196
4196
case " $os " in
4197
4197
" Windows" )
4198
4198
name=" $( ps -p " ${1:- $PPID } " | awk ' {printf $8}' ) "
4199
- name=" ${name/ ' COMMAND' } "
4199
+ name=" ${name/ COMMAND} "
4200
4200
name=" ${name/* \/ } "
4201
4201
;;
4202
4202
0 commit comments