diff --git a/config/config b/config/config index 9d0d8332..7591ed87 100644 --- a/config/config +++ b/config/config @@ -24,6 +24,7 @@ printinfo () { info "Uptime" uptime info "Packages" packages info "Shell" shell + info "Resolution" resolution info "Desktop Environment" de info "Window Manager" wm info "Theme" theme diff --git a/fetch b/fetch index 15b6e63b..f2aa2b35 100755 --- a/fetch +++ b/fetch @@ -42,6 +42,7 @@ printinfo () { info "Uptime" uptime info "Packages" packages info "Shell" shell + info "Resolution" resolution info "Desktop Environment" de info "Window Manager" wm info "Theme" theme @@ -1104,11 +1105,8 @@ getsong () { getresolution () { case "$os" in "Linux" | *"BSD") - if type -p xdpyinfo >/dev/null 2>&1; then + type -p xdpyinfo >/dev/null 2>&1 && \ resolution=$(xdpyinfo 2>/dev/null | awk '/dimensions:/ {printf $2}') - else - resolution="Unknown" - fi ;; "Mac OS X")