Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-unified-theme-switcher
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
1
Merge Requests
1
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
ximper-unified-theme-switcher
Commits
f24f565c
Commit
f24f565c
authored
Jun 30, 2024
by
Roman Alifanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
multiple theme directories are now supported
parent
9b538554
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
3 deletions
+29
-3
ximper-unified-theme-switcher-gui.sh
ximper-unified-theme-switcher-gui.sh
+29
-3
No files found.
ximper-unified-theme-switcher-gui.sh
View file @
f24f565c
...
@@ -52,8 +52,21 @@ gtk3-themes-list() {
...
@@ -52,8 +52,21 @@ gtk3-themes-list() {
local
LIST
local
LIST
local
REPLACE_OBJ
local
REPLACE_OBJ
local
OUTPUT
local
OUTPUT
LIST
=
$(
basename
-a
/usr/share/themes/
*)
local
THEMES_DIRS
local
THEMES_DIR
THEMES_DIRS
=(
"/usr/share/themes/"
"
$HOME
/.themes/"
"
$HOME
/.local/share/themes/"
)
for
THEMES_DIR
in
"
${
THEMES_DIRS
[@]
}
"
;
do
if
[
-z
"
$(
find
"
$THEMES_DIR
"
-maxdepth
0
-empty
)
"
]
;
then
LIST
=
"
${
LIST
}$(
basename
-a
"
$THEMES_DIR
"
/
*)
\n
"
fi
done
if
[
"
$1
"
==
"light"
]
;
then
if
[
"
$1
"
==
"light"
]
;
then
REPLACE_OBJ
=
$(
shell_config_get
"
$EDITABLE_CONFIG_FILE
"
GTK3_LIGHT_THEME
)
REPLACE_OBJ
=
$(
shell_config_get
"
$EDITABLE_CONFIG_FILE
"
GTK3_LIGHT_THEME
)
...
@@ -72,7 +85,20 @@ kv-themes-list() {
...
@@ -72,7 +85,20 @@ kv-themes-list() {
local
LIST
local
LIST
local
REPLACE_OBJ
local
REPLACE_OBJ
local
OUTPUT
local
OUTPUT
LIST
=
$(
basename
-a
/usr/share/color-schemes/Kv
*
|
sed
's/\.colors//'
)
local
THEMES_DIRS
local
THEMES_DIR
THEMES_DIRS
=(
"/usr/share/color-schemes/"
)
for
THEMES_DIR
in
"
${
THEMES_DIRS
[@]
}
"
;
do
if
[
-z
"
$(
find
"
$THEMES_DIR
"
-maxdepth
0
-empty
)
"
]
;
then
LIST
=
"
${
LIST
}$(
basename
-a
"
$THEMES_DIR
"
Kv
*)
\n
"
fi
done
LIST
=
$(
echo
"
$LIST
"
|
sed
's/\.colors//'
)
if
[
"
$1
"
==
"light"
]
;
then
if
[
"
$1
"
==
"light"
]
;
then
REPLACE_OBJ
=
$(
shell_config_get
"
$EDITABLE_CONFIG_FILE
"
KV_LIGHT_THEME
)
REPLACE_OBJ
=
$(
shell_config_get
"
$EDITABLE_CONFIG_FILE
"
KV_LIGHT_THEME
)
...
...
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