summaryrefslogtreecommitdiffstats
path: root/linhes/linhes-system/lh_apply_UI_settings.sh
diff options
context:
space:
mode:
Diffstat (limited to 'linhes/linhes-system/lh_apply_UI_settings.sh')
-rwxr-xr-xlinhes/linhes-system/lh_apply_UI_settings.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/linhes/linhes-system/lh_apply_UI_settings.sh b/linhes/linhes-system/lh_apply_UI_settings.sh
index 2a8250d..e49d98f 100755
--- a/linhes/linhes-system/lh_apply_UI_settings.sh
+++ b/linhes/linhes-system/lh_apply_UI_settings.sh
@@ -1,7 +1,9 @@
#!/bin/bash
cp /usr/share/linhes/templates/plasma-org.kde.plasma.desktop-appletsrc ~/.config/
+plasma-apply-wallpaperimage /usr/share/linhes/templates/lights-bud-abstract-4k-cq.jpg
plasma-apply-colorscheme BreezeDark
+
kwriteconfig6 --group KDE --key SingleClick false
kwriteconfig6 --file ~/.config/kscreenlockerrc --group Daemon --key Autolock false
kwriteconfig6 --file ~/.config/kscreenlockerrc --group Daemon --key LockOnResume false
@@ -11,8 +13,6 @@ kwriteconfig6 --file ~/.powerdevilrc --group AC --group Display --key DimDisplay
kwriteconfig6 --file ~/.powerdevilrc --group AC --group Display --key TurnOffDisplayWhenIdle false
kwriteconfig6 --file ~/.powerdevilrc --group AC --group SuspendAndShutdown --key AutoSuspendAction 0
-plasma-apply-wallpaperimage /usr/share/linhes/templates/lights-bud-abstract-4k-cq.jpg
-
#sddm settings
if grep -Fxq "User=km" /etc/sddm.conf.d/autologin.conf; then
echo "Updating /etc/sddm.conf.d/autologin.conf"
@@ -25,11 +25,10 @@ if [ -f "/etc/sddm.conf" ]; then
sudo rm /etc/sddm.conf
fi
-if [ ! -f "/etc/sddm.conf.d/theme.conf" ]; then
+if ! grep -Fxq "[General]" /etc/sddm.conf.d/theme.conf; then
echo "[General]" | sudo tee /etc/sddm.conf.d/theme.conf
echo "Numlock=on" | sudo tee -a /etc/sddm.conf.d/theme.conf
-
- echo "[Theme]" | sudo tee /etc/sddm.conf.d/theme.conf
+ echo "[Theme]" | sudo tee -a /etc/sddm.conf.d/theme.conf
echo "Current=breeze" | sudo tee -a /etc/sddm.conf.d/theme.conf
echo "CursorTheme=breeze_cursors" | sudo tee -a /etc/sddm.conf.d/theme.conf
echo "Font=Noto Sans,10,-1,0,400,0,0,0,0,0,0,0,0,0,0,1" | sudo tee -a /etc/sddm.conf.d/theme.conf