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
b76513d7
Commit
b76513d7
authored
Feb 01, 2018
by
Joseph Durel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change `osascript` calls to use heredocs so they don't extend beyond 100 chars
parent
bac9dcf3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
5 deletions
+24
-5
neofetch
neofetch
+24
-5
No files found.
neofetch
View file @
b76513d7
...
@@ -1603,13 +1603,23 @@ get_song() {
...
@@ -1603,13 +1603,23 @@ get_song() {
"
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 string & " - " & name of current track as string'
)
"
song="
$(
osascript
<<
END
tell application "Spotify"
artist of current track as string & " - " & name of current track as string
end tell
END
)
"
;;
;;
esac
esac
;;
;;
"
itunes
"*)
"
itunes
"*)
song="
$(
osascript
-e
'tell application "iTunes" to artist of current track as string & " - " & name of current track as string'
)
"
song="
$(
osascript
<<
END
tell application "iTunes"
artist of current track as string & " - " & name of current track as string
end tell
END
)
"
;;
;;
"
banshee
"*)
"
banshee
"*)
...
@@ -1965,7 +1975,10 @@ get_term_font() {
...
@@ -1965,7 +1975,10 @@ get_term_font() {
;;
;;
"
Apple_Terminal
")
"
Apple_Terminal
")
term_font="
$(
osascript
-e
'tell application "Terminal" to font name of window frontmost'
)
"
term_font="
$(
osascript
<<
END
tell application "Terminal" to font name of window frontmost
END
)
"
;;
;;
"
iTerm2
")
"
iTerm2
")
...
@@ -1976,7 +1989,10 @@ get_term_font() {
...
@@ -1976,7 +1989,10 @@ 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 of current session of current window'
)
"
current_profile_name
=
"
$(
osascript
<<
END
tell application "iTerm2" to profile name of current session of current window
END
)
"
# 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
...
@@ -2620,7 +2636,10 @@ get_image_source() {
...
@@ -2620,7 +2636,10 @@ get_image_source() {
get_wallpaper
()
{
get_wallpaper
()
{
case
"
$os
"
in
case
"
$os
"
in
"Mac OS X"
)
"Mac OS X"
)
image
=
"
$(
osascript
-e
'tell application "System Events" to picture of current desktop'
)
"
image
=
"
$(
osascript
<<
END
tell application "System Events" to picture of current desktop
END
)
"
;;
;;
"Windows"
)
"Windows"
)
...
...
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