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
2b559cb8
Unverified
Commit
2b559cb8
authored
Nov 25, 2020
by
Iuri Jikidze
Committed by
GitHub
Nov 25, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Apple Music (#1611)
* iTunes --> Music * add back iTunes * fix indentation * fix indentation 2 * ty vs code * fix ?
parent
df61458e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
neofetch
neofetch
+8
-0
No files found.
neofetch
View file @
2b559cb8
...
@@ -512,6 +512,7 @@ disk_percent="on"
...
@@ -512,6 +512,7 @@ disk_percent="on"
# guayadeque
# guayadeque
# io.elementary.music
# io.elementary.music
# iTunes
# iTunes
# Music
# juk
# juk
# lollypop
# lollypop
# MellowPlayer
# MellowPlayer
...
@@ -2728,6 +2729,7 @@ get_song() {
...
@@ -2728,6 +2729,7 @@ get_song() {
"guayadeque"
"guayadeque"
"io.elementary.music"
"io.elementary.music"
"iTunes"
"iTunes"
"Music"
"juk"
"juk"
"lollypop"
"lollypop"
"MellowPlayer"
"MellowPlayer"
...
@@ -2843,6 +2845,12 @@ get_song() {
...
@@ -2843,6 +2845,12 @@ get_song() {
string & "\n" & name of current track as string')"
string & "\n" & name of current track as string')"
;;
;;
"music"*)
song="$(osascript -e 'tell application "Music" to artist of current track as¬
string & "\n" & album of current track as¬
string & "\n" & name of current track as string')"
;;
"banshee"*)
"banshee"*)
song="$(banshee --query-artist --query-album --query-title |\
song="$(banshee --query-artist --query-album --query-title |\
awk -F':' '/^artist/ {a=$2} /^album/ {b=$2} /^title/ {t=$2}
awk -F':' '/^artist/ {a=$2} /^album/ {b=$2} /^title/ {t=$2}
...
...
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