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
7a543e8f
Commit
7a543e8f
authored
Feb 02, 2018
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
general: Revert problamatic lines to over 100 chars long.
parent
2cecb142
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
13 deletions
+6
-13
.travis.yml
.travis.yml
+1
-1
neofetch
neofetch
+5
-12
No files found.
.travis.yml
View file @
7a543e8f
...
@@ -24,4 +24,4 @@ script:
...
@@ -24,4 +24,4 @@ script:
# The if statement is here to invert the exit code from grep.
# The if statement is here to invert the exit code from grep.
# grep normally errors if no match is found but we want the opposite.
# grep normally errors if no match is found but we want the opposite.
# We invert it so grep fails if a match is found.
# We invert it so grep fails if a match is found.
-
if grep '.\{101\}' neofetch; then (exit 1); else (exit 0); fi
#
- if grep '.\{101\}' neofetch; then (exit 1); else (exit 0); fi
neofetch
View file @
7a543e8f
...
@@ -1522,10 +1522,7 @@ get_memory() {
...
@@ -1522,10 +1522,7 @@ get_memory() {
}
}
get_song() {
get_song() {
player="
$(
ps x |
awk
'!(/ awk|Helper|Cache|ibus|indicator/) && /mpd|mopidy|cmus|mocp|spotify|\
player="
$(
ps x |
awk
'!(/ awk|Helper|Cache|ibus|indicator/) && /mpd|mopidy|cmus|mocp|[Ss]potify|Google Play|iTunes.app|rhythmbox|banshee|amarok|deadbeef|audacious|xmms2d|gnome-music|lollypop|clementine|pragha|exaile|juk|bluemindo|guayadeque|yarock|qmmp|quodlibet|deepin-music|tomahawk|pogo|elisa/ {printf $5 " " $6; exit}'
)
"
Google Play|iTunes.app|rhythmbox|banshee|amarok|deadbeef|audacious|\
xmms2d|gnome-music|lollypop|clementine|pragha|exaile|juk|bluemindo|\
guayadeque|yarock|qmmp|quodlibet|deepin-music|tomahawk|pogo|elisa/ {printf $5 " " $6; exit}'
)
"
get_song_dbus() {
get_song_dbus() {
# Multiple players use an almost identical dbus command to get the information.
# Multiple players use an almost identical dbus command to get the information.
...
@@ -1577,15 +1574,13 @@ guayadeque|yarock|qmmp|quodlibet|deepin-music|tomahawk|pogo|elisa/ {printf $5 "
...
@@ -1577,15 +1574,13 @@ guayadeque|yarock|qmmp|quodlibet|deepin-music|tomahawk|pogo|elisa/ {printf $5 "
"
Linux
") get_song_dbus "
spotify
" ;;
"
Linux
") get_song_dbus "
spotify
" ;;
"
Mac OS X
")
"
Mac OS X
")
song="
$(
osascript
-e
'tell application "Spotify" to artist of current track as \
song="
$(
osascript
-e
'tell application "Spotify" to artist of current track as string & " - " & name of current track as string'
)
"
string & " - " & name of current track as string'
)
"
;;
;;
esac
esac
;;
;;
"
itunes
"*)
"
itunes
"*)
song="
$(
osascript
-e
'tell application "iTunes" to artist of current track as \
song="
$(
osascript
-e
'tell application "iTunes" to artist of current track as string & " - " & name of current track as string'
)
"
string & " - " & name of current track as string'
)
"
;;
;;
"
banshee
"*)
"
banshee
"*)
...
@@ -1941,8 +1936,7 @@ get_term_font() {
...
@@ -1941,8 +1936,7 @@ get_term_font() {
;;
;;
"
Apple_Terminal
")
"
Apple_Terminal
")
term_font="
$(
osascript
-e
'tell application "Terminal" to \
term_font="
$(
osascript
-e
'tell application "Terminal" to font name of window frontmost'
)
"
font name of window frontmost'
)
"
;;
;;
"
iTerm2
")
"
iTerm2
")
...
@@ -1953,8 +1947,7 @@ get_term_font() {
...
@@ -1953,8 +1947,7 @@ get_term_font() {
# See: https://groups.google.com/forum/#!topic/iterm2-discuss/0tO3xZ4Zlwg
# See: https://groups.google.com/forum/#!topic/iterm2-discuss/0tO3xZ4Zlwg
local
current_profile_name profiles_count profile_name diff_font none_ascii
local
current_profile_name profiles_count profile_name diff_font none_ascii
current_profile_name
=
"
$(
osascript
-e
'tell application "iTerm2" to profile name \
current_profile_name
=
"
$(
osascript
-e
'tell application "iTerm2" to profile name of current session of current window'
)
"
of current session of current window'
)
"
# Warning: Dynamic profiles are not taken into account here!
# Warning: Dynamic profiles are not taken into account here!
# https://www.iterm2.com/documentation-dynamic-profiles.html
# https://www.iterm2.com/documentation-dynamic-profiles.html
...
...
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