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
3734821e
Commit
3734821e
authored
Apr 02, 2018
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
general: Added option to manually specify music player. Closes #934
parent
a1044d72
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
0 deletions
+46
-0
config.conf
config/config.conf
+39
-0
neofetch
neofetch
+7
-0
No files found.
config/config.conf
View file @
3734821e
...
@@ -348,6 +348,45 @@ disk_subtitle="mount"
...
@@ -348,6 +348,45 @@ disk_subtitle="mount"
# Song
# Song
# Manually specify a music player.
#
# Default: 'auto'
# Values: 'auto', 'player-name'
# Flag: --music_player
#
# Available values for 'player-name':
#
# Google Play
# Spotify
# amarok
# audacious
# banshee
# bluemindo
# clementine
# cmus
# deadbeef
# deepin-music
# elisa
# exaile
# gnome-music
# guayadeque
# iTunes$
# juk
# lollypop
# mocp
# mopidy
# mpd
# pogo
# pragha
# qmmp
# quodlibet
# rhythmbox
# spotify
# tomahawk
# xmms2d
# yarock
music_player
=
"auto"
# Print the Artist and Title on separate lines
# Print the Artist and Title on separate lines
#
#
# Default: 'off'
# Default: 'off'
...
...
neofetch
View file @
3734821e
...
@@ -1560,6 +1560,10 @@ get_song() {
...
@@ -1560,6 +1560,10 @@ get_song() {
-e
"xmms2d"
\
-e
"xmms2d"
\
-e
"yarock"
)
"
-e
"yarock"
)
"
[[ "
$music_player
" && "
$music_player
" != "
auto
" ]] &&
\
player="
$music_player
"
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.
# This function saves us using the same command throughout the function.
# This function saves us using the same command throughout the function.
...
@@ -4637,6 +4641,8 @@ INFO:
...
@@ -4637,6 +4641,8 @@ INFO:
--ip_host url URL to query for public IP
--ip_host url URL to query for public IP
--song_shorthand on/off Print the Artist/Title on separate lines
--song_shorthand on/off Print the Artist/Title on separate lines
--music_player player-name Manually specify a player to use.
Available values are listed in the config file
--install_time on/off Enable/Disable showing the time in Install Date output.
--install_time on/off Enable/Disable showing the time in Install Date output.
--install_time_format 12h/24h
--install_time_format 12h/24h
Set time format in Install Date to be 12 hour or 24 hour.
Set time format in Install Date to be 12 hour or 24 hour.
...
@@ -4822,6 +4828,7 @@ get_args() {
...
@@ -4822,6 +4828,7 @@ get_args() {
"--shell_version"
)
shell_version
=
"
$2
"
;;
"--shell_version"
)
shell_version
=
"
$2
"
;;
"--ip_host"
)
public_ip_host
=
"
$2
"
;;
"--ip_host"
)
public_ip_host
=
"
$2
"
;;
"--song_shorthand"
)
song_shorthand
=
"
$2
"
;;
"--song_shorthand"
)
song_shorthand
=
"
$2
"
;;
"--music_player"
)
music_player
=
"
$2
"
;;
"--install_time"
)
install_time
=
"
$2
"
;;
"--install_time"
)
install_time
=
"
$2
"
;;
"--install_time_format"
)
install_time_format
=
"
$2
"
;;
"--install_time_format"
)
install_time_format
=
"
$2
"
;;
"--cpu_temp"
)
"--cpu_temp"
)
...
...
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