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
3e2c4c3b
Commit
3e2c4c3b
authored
Mar 25, 2016
by
Dylan Araps
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #173 from iandrewt/google-play-music
Added Google Play Music Desktop Player as a song output source
parents
6a910692
9537be0e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
README.md
README.md
+1
-0
neofetch
neofetch
+4
-0
No files found.
README.md
View file @
3e2c4c3b
...
@@ -84,6 +84,7 @@ your distro's logo or any ascii art of your choice!
...
@@ -84,6 +84,7 @@ your distro's logo or any ascii art of your choice!
-
Displaying images:
`w3m-img`
\[
2
\]
\[
3
\]
or
`iTerm2`
\[
4
\]
-
Displaying images:
`w3m-img`
\[
2
\]
\[
3
\]
or
`iTerm2`
\[
4
\]
-
Thumbnail creation:
`imagemagick`
-
Thumbnail creation:
`imagemagick`
-
Displaying song information from Google Play Music Desktop Player:
[
`gpmdp`
](
https://github.com/iAndrewT/gpmdp-bash
)
##### Linux / BSD
##### Linux / BSD
...
...
neofetch
View file @
3e2c4c3b
...
@@ -1228,6 +1228,10 @@ getsong () {
...
@@ -1228,6 +1228,10 @@ getsong () {
;;
;;
esac
esac
elif [ -n "
$(
ps aux |
awk
'!(/awk/ || /Helper/) && /Google Play Music Desktop Player/'
)
" ] && type -p gpmdp >/dev/null 2>&1; then
song="
$(
gpmdp current
)
"
state="
$(
gpmdp status
)
"
elif [ -n "
$(
ps aux |
awk
'!(/awk/ || /Helper/) && /iTunes/'
)
" ]; then
elif [ -n "
$(
ps aux |
awk
'!(/awk/ || /Helper/) && /iTunes/'
)
" ]; then
song="
$(
osascript
-e
'tell application "iTunes" to artist of current track as string & " - " name of current track as string'
)
"
song="
$(
osascript
-e
'tell application "iTunes" to artist of current track as string & " - " name of current track as string'
)
"
state="
$(
osascript
-e
'tell application "iTunes" to player state as string'
)
"
state="
$(
osascript
-e
'tell application "iTunes" to player state as string'
)
"
...
...
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