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
8b0d6a20
Commit
8b0d6a20
authored
Jun 12, 2016
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GTK Theme: Group subsitutions
parent
52a8cd49
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
neofetch
neofetch
+6
-6
No files found.
neofetch
View file @
8b0d6a20
...
...
@@ -1614,7 +1614,6 @@ getstyle () {
*"
Cinnamon
")
if type -p gsettings >/dev/null 2>&1; then
gtk3theme=
$(
gsettings get org.cinnamon.desktop.interface
$gsettings
)
gtk3theme=
${
gtk3theme
//
"'"
}
gtk2theme=
${
gtk3theme
}
fi
;;
...
...
@@ -1622,7 +1621,6 @@ getstyle () {
"
Gnome
"* | "
Unity
"* | "
Budgie
")
if type -p gsettings >/dev/null 2>&1; then
gtk3theme=
$(
gsettings get org.gnome.desktop.interface
$gsettings
)
gtk3theme=
${
gtk3theme
//
"'"
}
gtk2theme=
${
gtk3theme
}
elif type -p gconftool-2 >/dev/null 2>&1; then
...
...
@@ -1654,7 +1652,6 @@ getstyle () {
fi
gtk2theme=
${
gtk2theme
/
${
name
}
*=
}
gtk2theme=
${
gtk2theme
//\
"}
fi
# Check for gtk3 theme
...
...
@@ -1674,9 +1671,14 @@ getstyle () {
fi
gtk3theme=${gtk3theme/${name}*=}
gtk3theme=${gtk3theme//\"}
fi
# Remove quotes
gtk2theme=${gtk2theme//\"}
gtk2theme=${gtk2theme//\'
}
gtk3theme=
${
gtk3theme
//\
"}
gtk3theme=
${
gtk3theme
//\
'}
# Uppercase the first letter of each gtk theme
if [ "$version" -ge 4 ]; then
gtk2theme=${gtk2theme^}
...
...
@@ -1702,8 +1704,6 @@ getstyle () {
# Final string
theme="${gtk2theme}${gtk3theme}"
theme=${theme//\"}
theme=${theme//\'
}
# Make the output shorter by removing "[GTKX]" from the string
if [ "$gtk_shorthand" == "on" ]; then
...
...
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