Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
neofetch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
neofetch
Commits
422cc5ac
Commit
422cc5ac
authored
Feb 23, 2016
by
Dylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable resolution support by default but don't display anything if the user…
Enable resolution support by default but don't display anything if the user doesn't have the dependencies
parent
b73da530
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
config
config/config
+1
-0
fetch
fetch
+2
-4
No files found.
config/config
View file @
422cc5ac
...
@@ -24,6 +24,7 @@ printinfo () {
...
@@ -24,6 +24,7 @@ printinfo () {
info
"Uptime"
uptime
info
"Uptime"
uptime
info
"Packages"
packages
info
"Packages"
packages
info
"Shell"
shell
info
"Shell"
shell
info
"Resolution"
resolution
info
"Desktop Environment"
de
info
"Desktop Environment"
de
info
"Window Manager"
wm
info
"Window Manager"
wm
info
"Theme"
theme
info
"Theme"
theme
...
...
fetch
View file @
422cc5ac
...
@@ -42,6 +42,7 @@ printinfo () {
...
@@ -42,6 +42,7 @@ printinfo () {
info
"Uptime"
uptime
info
"Uptime"
uptime
info
"Packages"
packages
info
"Packages"
packages
info
"Shell"
shell
info
"Shell"
shell
info
"Resolution"
resolution
info
"Desktop Environment"
de
info
"Desktop Environment"
de
info
"Window Manager"
wm
info
"Window Manager"
wm
info
"Theme"
theme
info
"Theme"
theme
...
@@ -1104,11 +1105,8 @@ getsong () {
...
@@ -1104,11 +1105,8 @@ getsong () {
getresolution () {
getresolution () {
case "
$os
" in
case "
$os
" in
"
Linux
" | *"
BSD
")
"
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}'
)
resolution=
$(
xdpyinfo 2>/dev/null |
awk
'/dimensions:/ {printf $2}'
)
else
resolution="
Unknown
"
fi
;;
;;
"
Mac
OS X
")
"
Mac
OS X
")
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment