Skip to content

Commit

Permalink
Add copy file kdeglobals
Browse files Browse the repository at this point in the history
  • Loading branch information
talesam committed Feb 9, 2024
1 parent 6369b7b commit 9af74ed
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
#
# From gtk gnome theme to kvantum theme
# By Bruno Goncalves < www.biglinux.com.br >
# 2023/02/08
# Create in: 2023/02/08


ColorScheme="$(dconf read /org/gnome/desktop/interface/color-scheme)"
KvantumTheme="$(grep 'theme=' ~/.config/Kvantum/kvantum.kvconfig)"
Expand All @@ -13,6 +14,9 @@ if [ "$ColorScheme" = "'prefer-dark'" -a "$KvantumTheme" != "theme=KvLibadwaitaD
echo '[General]
theme=KvLibadwaitaDark' > ~/.config/Kvantum/kvantum.kvconfig

# Copy the configuration file for the dark theme
cp -f /usr/share/biglinux/themes/breeze-dark/.config/kdeglobals ~/.config/kdeglobals

IconFolder="$(ls -d /usr/share/icons/*/ ~/.local/share/icons/*/ 2> /dev/null | grep -i dark | grep -im1 "/${IconTheme//\'/}")"
IconFolderClean1=${IconFolder%/}
IconFolderClean2=${IconFolderClean1##*/}
Expand All @@ -29,6 +33,9 @@ if [ "$ColorScheme" != "'prefer-dark'" -a "$KvantumTheme" != "theme=KvLibadwaita
echo '[General]
theme=KvLibadwaita' > ~/.config/Kvantum/kvantum.kvconfig

# Copy the configuration file for the non-dark theme
cp -f /usr/share/biglinux/themes/breeze/.config/kdeglobals ~/.config/kdeglobals

IconThemeWithoutDark="$(echo $IconTheme | sed 's|-dark||gi;s|dark||gi')"
IconFolder="$(ls -d /usr/share/icons/*/ ~/.local/share/icons/*/ 2> /dev/null | grep -vi dark | grep -im1 "/${IconThemeWithoutDark//\'/}")"
IconFolderClean1=${IconFolder%/}
Expand Down

0 comments on commit 9af74ed

Please sign in to comment.