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
4c48b426
Commit
4c48b426
authored
Aug 02, 2017
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
general: Fix missing backslashes
parent
e53404e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
19 deletions
+16
-19
neofetch
neofetch
+16
-19
No files found.
neofetch
View file @
4c48b426
...
...
@@ -810,14 +810,14 @@ get_wm_theme() {
kdebugrc=
"
${
kde_config_dir
}
/kdebugrc"
if [[ -f
"
$kwinrc
"
]]; then
wm_theme=
"
$(
awk
'/theme=/{gsub(/theme=.*qml_|theme=.*svg__/,"",$0);
wm_theme=
"
$(
awk
'/theme=/{gsub(/theme=.*qml_|theme=.*svg__/,"",$0);
\
print $0; exit}'
"
$kwinrc
"
)
"
[[ -z
"
$wm_theme
"
]] && \
wm_theme=
"
$(
awk
'/library=org.kde/{gsub(/library=org.kde./,"",$0);
wm_theme=
"
$(
awk
'/library=org.kde/{gsub(/library=org.kde./,"",$0);
\
print $0; exit}'
"
$kwinrc
"
)
"
[[ -z
"
$wm_theme
"
]] && \
wm_theme=
"
$(
awk
'/PluginLib=kwin3_/{gsub(/PluginLib=kwin3_/,"",$0);
wm_theme=
"
$(
awk
'/PluginLib=kwin3_/{gsub(/PluginLib=kwin3_/,"",$0);
\
print $0; exit}'
"
$kwinrc
"
)
"
elif [[ -f
"
$kdebugrc
"
]]; then
...
...
@@ -1437,7 +1437,7 @@ get_song() {
;;
"
cmus
"*)
song="
$(
cmus-remote
-Q
|
awk
'/tag artist/ {$1=$2=""; print; print " - "}
song="
$(
cmus-remote
-Q
|
awk
'/tag artist/ {$1=$2=""; print; print " - "}
\
/tag title/ {$1=$2=""; print}'
)
"
;;
...
...
@@ -1446,14 +1446,14 @@ get_song() {
"
Linux
") get_song_dbus "
spotify
" ;;
"
Mac
OS X
")
song="
$(
osascript
-e
'tell application "Spotify" to artist of current track as
song="
$(
osascript
-e
'tell application "Spotify" to artist of current track as
\
string & " - " & name of current track as string'
)
"
;;
esac
;;
"
itunes
"*)
song="
$(
osascript
-e
'tell application "iTunes" to artist of current track as
song="
$(
osascript
-e
'tell application "iTunes" to artist of current track as
\
string & " - " & name of current track as string'
)
"
;;
...
...
@@ -1479,14 +1479,14 @@ get_song() {
"
quodlibet
"*)
song="
$(
dbus-send
--print-reply
--dest
=
net.sacredchao.QuodLibet
\
/net/sacredchao/QuodLibet net.sacredchao.QuodLibet.CurrentSong |
\
awk
-F
'"'
'/artist/ {getline; a=$2}
awk
-F
'"'
'/artist/ {getline; a=$2}
\
/title/ {getline; t=$2} END{print a " - " t}'
)
"
;;
"
pogo
"*)
song="
$(
dbus-send
--print-reply
--dest
=
org.mpris.pogo /Player
\
org.freedesktop.MediaPlayer.GetMetadata |
awk
-F
'"'
'/string "artist"/ {getline; a=$2} /string "title"/ {getline; t=$2}
awk
-F
'"'
'/string "artist"/ {getline; a=$2} /string "title"/ {getline; t=$2}
\
END{print a " - " t}'
)
"
;;
...
...
@@ -1563,7 +1563,7 @@ get_resolution() {
case "
$refresh_rate
" in
"
on
")
resolution="
$(
xrandr
--nograb
--current
|
\
awk
'match($0,/[0-9]*\.[0-9]*\*/) {printf $1 " @ "
awk
'match($0,/[0-9]*\.[0-9]*\*/) {printf $1 " @ "
\
substr($0,RSTART,RLENGTH) "Hz, "}'
)
"
;;
...
...
@@ -1797,7 +1797,7 @@ get_term_font() {
;;
"
Apple_Terminal
")
term_font="
$(
osascript
-e
'tell application "Terminal" to
term_font="
$(
osascript
-e
'tell application "Terminal" to
\
font name of window frontmost'
)
"
;;
...
...
@@ -1809,18 +1809,15 @@ get_term_font() {
# See: https://groups.google.com/forum/#!topic/iterm2-discuss/0tO3xZ4Zlwg
local current_profile_name profiles_count profile_name diff_font none_ascii
current_profile_name="
$(
osascript
-e
'tell application "iTerm2" to profile name
current_profile_name="
$(
osascript
-e
'tell application "iTerm2" to profile name
\
of current session of current window'
)
"
# Warning: Dynamic profiles are not taken into account here!
# https://www.iterm2.com/documentation-dynamic-profiles.html
font_file="
${
HOME
}
/Library/Preferences/com.googlecode.iterm2.plist
"
# Count Guids in "
New
Bookmarks
"; they should be unique
profiles_count="
$(
PlistBuddy
-c
"Print :New
\
Bookmarks:"
\
""
|
\
grep
-c
"Guid"
)
"
font_file="
${
HOME
}
/Library/Preferences/com.googlecode.iterm2.plist
"
profiles_count="
$(
PlistBuddy
-c
"Print :New
\
Bookmarks:"
"
$font_file
"
|
grep
-c
"Guid"
)
"
for ((i=0; i<=profiles_count; i++)); do
profile_name="
$(
PlistBuddy
-c
"Print :New
\
Bookmarks:
${
i
}
:Name:"
"
$font_file
"
)
"
...
...
@@ -1901,8 +1898,8 @@ get_term_font() {
role="
${
role
//\
"}"
profile=
"
$(
awk
-F
'='
-v
r
=
"
$role
"
\
'$0~r {getline; if(/Maximized/) getline;
if(/Fullscreen/) getline; id=$2"]"}
'$0~r {getline; if(/Maximized/) getline;
\
if(/Fullscreen/) getline; id=$2"]"}
\
$0~id {if(id) {getline; print $2; exit}}'
"
$mateterm_config
"
)
"
rm -f
"
$mateterm_config
"
...
...
@@ -1950,7 +1947,7 @@ get_term_font() {
[[ -f
"
${
XDG_CONFIG_HOME
}
/termite/config"
]] && \
termite_config=
"
${
XDG_CONFIG_HOME
}
/termite/config"
term_font=
"
$(
awk
-F
'= '
'/\[options\]/ {opt=1} /^\s*font/ {if(opt==1) a=$2; opt=0}
term_font=
"
$(
awk
-F
'= '
'/\[options\]/ {opt=1} /^\s*font/ {if(opt==1) a=$2; opt=0}
\
END{print a}'
"/etc/xdg/termite/config"
"
$termite_config
"
)
"
;;
...
...
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