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
bc4c7a5f
Commit
bc4c7a5f
authored
Feb 24, 2016
by
Dylan Araps
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #100 from dylanaraps/windows
Remove 'set $mem'
parents
2b9167e8
8eb25c60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
fetch
fetch
+3
-7
No files found.
fetch
View file @
bc4c7a5f
...
...
@@ -706,7 +706,7 @@ getde () {
getwm () {
if [ -n "
$DISPLAY
" ] && [ "
$os
" != "
Mac OS X
" ]; then
id="
$(
xprop
-root
-notype
|
\
a
wk
'$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}'
)
"
id="
$(
xprop
-root
-notype
|
awk
'$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}'
)
"
wm="
$(
xprop
-id
"
$id
"
-notype
-f
_NET_WM_NAME 8t
)
"
wm=
${
wm
/*_NET_WM_NAME =
}
wm=
${
wm
/\
"}
...
...
@@ -1014,12 +1014,8 @@ getmemory () {
"Windows"
)
mem=
"
$(
awk
'NR < 3 {printf $2 " "}'
/proc/meminfo
)
"
# Split the string above into 2 vars
# This is faster than using an array.
set
$mem
memtotal=
$1
memfree=
$2
memtotal=
${
mem
/ *
}
memfree=
${
mem
#*
}
memavail=
$((
memtotal
-
memfree
))
memused=
$((
memtotal
-
memavail
))
memory=
"
$((${
memused
%% *
}
/
1024
))
MB / "
...
...
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