summaryrefslogtreecommitdiffstats
path: root/linhes/linhes-system/lh_apply_UI_settings.sh
blob: 2cf98a1843aab8fffa63ed344bf20587def277e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash

cp /usr/share/linhes/templates/plasma-org.kde.plasma.desktop-appletsrc ~/.config/
plasma-apply-colorscheme BreezeDark
kwriteconfig5 --group KDE --key SingleClick false
kwriteconfig5 --file ~/.config/kscreenlockerrc --group Daemon --key Autolock false
kwriteconfig5 --file ~/.config/kscreenlockerrc --group Daemon --key LockOnResume false
kwriteconfig5 --file ~/.config/ksmserverrc --group General --key loginMode emptySession
kwriteconfig5 --file ~/.config/powermanagementprofilesrc --group AC --group DPMSControl --key idleTime --delete
kwriteconfig6 --file ~/.powerdevilrc --group AC --group Display --key DimDisplayWhenIdle false
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"
    echo "[Autologin]" | sudo tee /etc/sddm.conf.d/autologin.conf
    echo "User=$(whoami)" | sudo tee -a /etc/sddm.conf.d/autologin.conf
    echo "Session=plasmax11" | sudo tee -a /etc/sddm.conf.d/autologin.conf
fi

if [ -f "/etc/sddm.conf" ]; then
    sudo rm /etc/sddm.conf
fi

if [ ! -f "/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 "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
fi

#disable file indexing
balooctl6 disable