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
0a7c21d6
Commit
0a7c21d6
authored
Feb 23, 2016
by
Tudor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed indentation
parent
28d33f75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
fetch
fetch
+5
-5
No files found.
fetch
View file @
0a7c21d6
...
@@ -1406,13 +1406,13 @@ getbattery () {
...
@@ -1406,13 +1406,13 @@ getbattery () {
;;
;;
"
OpenBSD
")
"
OpenBSD
")
battery0full=
$(
sysctl
-n
hw.sensors.acpibat0.watthour0
)
battery0full=
$(
sysctl
-n
hw.sensors.acpibat0.watthour0
)
battery0full=
${
battery0full
/ Wh*
}
battery0full=
${
battery0full
/ Wh*
}
battery0now=
$(
sysctl
-n
hw.sensors.acpibat0.watthour3
)
battery0now=
$(
sysctl
-n
hw.sensors.acpibat0.watthour3
)
battery0now="
${
battery0now
/ Wh*
}
"
battery0now="
${
battery0now
/ Wh*
}
"
battery="
$(
echo
"100 *
$battery0now
/
$battery0full
"
| bc
)
%
"
battery="
$(
echo
"100 *
$battery0now
/
$battery0full
"
| bc
)
%
"
;;
;;
"
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