commit
8dd6e98c93
1 changed files with 4 additions and 5 deletions
9
neofetch
9
neofetch
|
@ -774,7 +774,7 @@ getshell () {
|
||||||
# Desktop Environment {{{
|
# Desktop Environment {{{
|
||||||
|
|
||||||
getde () {
|
getde () {
|
||||||
[ "$XDG_CURRENT_DESKTOP" != "i3" ] && de="$XDG_CURRENT_DESKTOP"
|
de="${XDG_CURRENT_DESKTOP/i3}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
@ -1092,8 +1092,8 @@ getgpu () {
|
||||||
getmemory () {
|
getmemory () {
|
||||||
case "$os" in
|
case "$os" in
|
||||||
"Linux" | "Windows")
|
"Linux" | "Windows")
|
||||||
mem=($(awk -F ':| kB' '/MemTotal|MemFree|Buffers|Cached/ {printf $2}' /proc/meminfo ) 0 0)
|
mem=($(awk -F ':| kB' '/MemTotal|MemFree|Buffers|Cached/ {printf $2}' /proc/meminfo))
|
||||||
memused=$((${mem[0]} - ${mem[1]} - ${mem[2]} - ${mem[3]}))
|
memused=$((${mem[0]} - ${mem[1]} - ${mem[2]:-0} - ${mem[3]:-0}))
|
||||||
memused=$((memused / 1024))
|
memused=$((memused / 1024))
|
||||||
memtotal=$((${mem[0]} / 1024))
|
memtotal=$((${mem[0]} / 1024))
|
||||||
;;
|
;;
|
||||||
|
@ -1359,9 +1359,8 @@ getstyle () {
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Xfce"*)
|
"Xfce"*)
|
||||||
if type -p xfconf-query >/dev/null 2>&1; then
|
type -p xfconf-query >/dev/null 2>&1 && \
|
||||||
gtk2theme=$(xfconf-query -c xsettings -p /Net/$xfconf)
|
gtk2theme=$(xfconf-query -c xsettings -p /Net/$xfconf)
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue