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
eb062afe
Commit
eb062afe
authored
Feb 01, 2018
by
Joseph Durel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Align heredoc AppleScript strings to `osascript` calls
parent
d8addb3e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
neofetch
neofetch
+12
-9
No files found.
neofetch
View file @
eb062afe
...
@@ -1611,11 +1611,12 @@ get_song() {
...
@@ -1611,11 +1611,12 @@ get_song() {
"
Mac OS X
")
"
Mac OS X
")
song="
$(
osascript
<<
END
song="
$(
osascript
<<
END
if application "Spotify" is running then
if application "Spotify" is running then
tell application "Spotify"
tell application "Spotify"
artist of current track as string & " - " & name of current track as string
artist of current track as string & \
" - " & name of current track as string
end tell
end tell
end if
end if
END
END
)
"
)
"
;;
;;
...
@@ -1624,11 +1625,12 @@ END
...
@@ -1624,11 +1625,12 @@ END
"
itunes
"*)
"
itunes
"*)
song="
$(
osascript
<<
END
song="
$(
osascript
<<
END
if application "iTunes" is running then
if application "iTunes" is running then
tell application "iTunes"
tell application "iTunes"
artist of current track as string & " - " & name of current track as string
artist of current track as string & \
" - " & name of current track as string
end tell
end tell
end if
end if
END
END
)
"
)
"
;;
;;
...
@@ -1987,7 +1989,7 @@ get_term_font() {
...
@@ -1987,7 +1989,7 @@ get_term_font() {
"
Apple_Terminal
")
"
Apple_Terminal
")
term_font="
$(
osascript
<<
END
term_font="
$(
osascript
<<
END
tell application "Terminal" to font name of window frontmost
tell application "Terminal" to font name of window frontmost
END
END
)
"
)
"
;;
;;
...
@@ -2001,7 +2003,8 @@ END
...
@@ -2001,7 +2003,8 @@ END
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
<<
END
current_profile_name
=
"
$(
osascript
<<
END
tell application "iTerm2" to profile name of current session of current window
tell application "iTerm2" to profile name \
of current session of current window
END
END
)
"
)
"
...
@@ -2648,7 +2651,7 @@ get_wallpaper() {
...
@@ -2648,7 +2651,7 @@ get_wallpaper() {
case
"
$os
"
in
case
"
$os
"
in
"Mac OS X"
)
"Mac OS X"
)
image
=
"
$(
osascript
<<
END
image
=
"
$(
osascript
<<
END
tell application "System Events" to picture of current desktop
tell application "System Events" to picture of current desktop
END
END
)
"
)
"
;;
;;
...
...
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