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
15613612
Commit
15613612
authored
May 17, 2018
by
Dylan Araps
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:dylanaraps/neofetch
parents
85d3150d
5f8d6e06
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
16 deletions
+21
-16
LICENSE.md
LICENSE.md
+1
-1
neofetch
neofetch
+20
-15
No files found.
LICENSE.md
View file @
15613612
The MIT License (MIT)
The MIT License (MIT)
Copyright (c) 2016-201
7
Dylan Araps
Copyright (c) 2016-201
8
Dylan Araps
Permission is hereby granted, free of charge, to any person obtaining a copy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
of this software and associated documentation files (the "Software"), to deal
...
...
neofetch
View file @
15613612
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
#
#
# The MIT License (MIT)
# The MIT License (MIT)
#
#
# Copyright (c) 2016-201
7
Dylan Araps
# Copyright (c) 2016-201
8
Dylan Araps
#
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# of this software and associated documentation files (the "Software"), to deal
...
@@ -435,6 +435,8 @@ disk_subtitle="mount"
...
@@ -435,6 +435,8 @@ disk_subtitle="mount"
# tomahawk
# tomahawk
# xmms2d
# xmms2d
# yarock
# yarock
# sayonara
# vlc
music_player="auto"
music_player="auto"
# Format to display song information.
# Format to display song information.
...
@@ -447,7 +449,7 @@ music_player="auto"
...
@@ -447,7 +449,7 @@ music_player="auto"
# default: 'Song: Jet - Get Born - Sgt Major'
# default: 'Song: Jet - Get Born - Sgt Major'
song_format="%artist% - %album% - %title%"
song_format="%artist% - %album% - %title%"
# Print the Artist and Title on separate lines
# Print the Artist
, Album
and Title on separate lines
#
#
# Default: 'off'
# Default: 'off'
# Values: 'on', 'off'
# Values: 'on', 'off'
...
@@ -455,9 +457,10 @@ song_format="%artist% - %album% - %title%"
...
@@ -455,9 +457,10 @@ song_format="%artist% - %album% - %title%"
#
#
# Example:
# Example:
# on: 'Artist: The Fratellis'
# on: 'Artist: The Fratellis'
# 'Album: Costello Music'
# 'Song: Chelsea Dagger'
# 'Song: Chelsea Dagger'
#
#
# off: 'Song: The Fratellis - Chelsea Dagger'
# off: 'Song: The Fratellis - C
ostello Music - C
helsea Dagger'
song_shorthand="off"
song_shorthand="off"
...
@@ -2389,7 +2392,9 @@ get_song() {
...
@@ -2389,7 +2392,9 @@ get_song() {
-e "spotify" \
-e "spotify" \
-e "tomahawk" \
-e "tomahawk" \
-e "xmms2d" \
-e "xmms2d" \
-e "yarock")"
-e "yarock" \
-e "sayonara" \
-e "vlc")"
[[ "$music_player" && "$music_player" != "auto" ]] && \
[[ "$music_player" && "$music_player" != "auto" ]] && \
player="$music_player"
player="$music_player"
...
@@ -2401,8 +2406,8 @@ get_song() {
...
@@ -2401,8 +2406,8 @@ get_song() {
dbus-send --print-reply --dest=org.mpris.MediaPlayer2."${1}" /org/mpris/MediaPlayer2 \
dbus-send --print-reply --dest=org.mpris.MediaPlayer2."${1}" /org/mpris/MediaPlayer2 \
org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' \
org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' \
string:'Metadata' |\
string:'Metadata' |\
awk -F '
string "' '/string|array/ {printf "%s",$2; next}{print ""}' |\
awk -F '
"' 'BEGIN {RS=" entry"}; /xesam:artist/ {a = $4} /xesam:album/ {b = $4}
awk -F '"' '/artist/ {a=$2} /album"/ {b=$2} /title/ {t=$2} END
{print a " ‡ " b " ‡ " t}'
/xesam:title/ {t = $4} END
{print a " ‡ " b " ‡ " t}'
)"
)"
}
}
...
@@ -2421,14 +2426,12 @@ get_song() {
...
@@ -2421,14 +2426,12 @@ get_song() {
"bluemindo"*) get_song_dbus "Bluemindo" ;;
"bluemindo"*) get_song_dbus "Bluemindo" ;;
"guayadeque"*) get_song_dbus "guayadeque" ;;
"guayadeque"*) get_song_dbus "guayadeque" ;;
"yarock"*) get_song_dbus "yarock" ;;
"yarock"*) get_song_dbus "yarock" ;;
"deepin-music"*) get_song_dbus "
deepinm
usic" ;;
"deepin-music"*) get_song_dbus "
DeepinM
usic" ;;
"tomahawk"*) get_song_dbus "tomahawk" ;;
"tomahawk"*) get_song_dbus "tomahawk" ;;
"elisa"*) get_song_dbus "elisa" ;;
"elisa"*) get_song_dbus "elisa" ;;
"sayonara"*) get_song_dbus "sayonara" ;;
"audacious"*)
"audacious"*) get_song_dbus "audacious" ;;
song="$(audtool current-song)"
"vlc"*) get_song_dbus "vlc" ;;
[[ -z "$song" || "$song_shorthand" == "on" ]] && get_song_dbus "audacious"
;;
"cmus"*)
"cmus"*)
song="$(cmus-remote -Q | awk 'BEGIN { ORS=" "};
song="$(cmus-remote -Q | awk 'BEGIN { ORS=" "};
...
@@ -2907,9 +2910,11 @@ END
...
@@ -2907,9 +2910,11 @@ END
fi
fi
term_font="$(awk '/^[\S\n_#]+?font_family\s+?/ {$1="";gsub(/^[[:space:]]/,"");font=$0}\
term_font="$(awk '/^[\S\n_#]+?font_family\s+?/
/^[\S\n_#]+?font_size\s+?\d+?/ { size = $2 } END { print font " " size}' \
{ $1 = ""; gsub(/^[[:space:]]/, ""); font = $0 }
"${kitty_file}")"
/^[\S\n_#]+?font_size\s+?\d+?/
{ size = $2 } END { print font " " size}' \
"${kitty_file}")"
;;
;;
"konsole"*)
"konsole"*)
...
...
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