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
35851d92
Commit
35851d92
authored
Aug 17, 2017
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
theme: Fix issues.
parent
d5dd1ec6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
neofetch
neofetch
+4
-4
No files found.
neofetch
View file @
35851d92
...
@@ -1614,8 +1614,8 @@ get_style() {
...
@@ -1614,8 +1614,8 @@ get_style() {
kde_config_file="
${
kde_config_dir
}
/kdeglobals
"
kde_config_file="
${
kde_config_dir
}
/kdeglobals
"
kde_theme="
$(
grep
"^
${
kde
}
"
"
$kde_config_file
"
)
"
kde_theme="
$(
grep
"^
${
kde
}
"
"
$kde_config_file
"
)
"
kde_theme="
${
theme
/
${
kde
}
*=
}
"
kde_theme="
${
kde_
theme
/
${
kde
}
*=
}
"
kde_theme="
$(
uppercase
"
$
theme
"
)
"
kde_theme="
$(
uppercase
"
$
kde_theme
"
)
[KDE],
"
else
else
err "
Theme
:
KDE config files not found, skipping.
"
err "
Theme
:
KDE config files not found, skipping.
"
fi
fi
...
@@ -1697,10 +1697,9 @@ get_style() {
...
@@ -1697,10 +1697,9 @@ get_style() {
# Toggle visibility of GTK themes.
# Toggle visibility of GTK themes.
[[ "
$gtk2
" == "
off
" ]] && unset gtk2_theme
[[ "
$gtk2
" == "
off
" ]] && unset gtk2_theme
[[ "
$gtk3
" == "
off
" ]] && unset gtk3_theme
[[ "
$gtk3
" == "
off
" ]] && unset gtk3_theme
[[ "
$kde
" == "
off
" ]] && unset kde_theme
# Format the string based on which themes exist.
# Format the string based on which themes exist.
if
[[ "
$gtk2_theme
" && "
$gtk2_theme
" == "
$gtk3_theme
" ]]; then
if [[ "
$gtk2_theme
" && "
$gtk2_theme
" == "
$gtk3_theme
" ]]; then
gtk3_theme+="
[GTK2/3]
"
gtk3_theme+="
[GTK2/3]
"
unset gtk2_theme
unset gtk2_theme
...
@@ -1715,6 +1714,7 @@ get_style() {
...
@@ -1715,6 +1714,7 @@ get_style() {
# Final string.
# Final string.
theme="
${
kde_theme
}${
gtk2_theme
}${
gtk3_theme
}
"
theme="
${
kde_theme
}${
gtk2_theme
}${
gtk3_theme
}
"
theme="
${
theme
%,
}
"
# Make the output shorter by removing "
[GTKX]
" from the string.
# Make the output shorter by removing "
[GTKX]
" from the string.
if [[ "
$gtk_shorthand
" == "
on
" ]]; then
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