-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup
More file actions
executable file
·86 lines (69 loc) · 2.03 KB
/
setup
File metadata and controls
executable file
·86 lines (69 loc) · 2.03 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/bin/bash
set -e
cd $(dirname $0)
. config
for cfg in $(find . -maxdepth 1 -name 'config-*'); do
. $cfg
done
echo '==> Confirm Config'
echo 'Edit `./config*` files before setup. Reference: `./samples/*`'
echo
echo PREFER_HOTCORNER=$PREFER_HOTCORNER
echo DOUBLE_CLICK=$DOUBLE_CLICK
echo SHUTDOWN_DIRECTLY=$SHUTDOWN_DIRECTLY
echo OPTIMIZE_APPEARANCE=$OPTIMIZE_APPEARANCE
echo OPTIMIZE_KWRITE=$OPTIMIZE_KWRITE
printf 'Confirm to setup? (Y/n) '
read r
case $r in
'' | y | Y) ;;
*) exit ;;
esac
setcfg() {
kwriteconfig5 --file $target $1 $2 $3
}
if [ "$PREFER_HOTCORNER" = 1 ]; then
target=kwinrc
setcfg ElectricBorders TopLeft ApplicationLauncher
setcfg ElectricBorders TopRight KRunner
setcfg Effect-desktopgrid BorderActivate 5
setcfg Effect-windowview BorderActivate 3
fi
if [ "$DOUBLE_CLICK" = 1 ]; then
target=kdeglobals
setcfg KDE SingleClick false
fi
if [ "$SHUTDOWN_DIRECTLY" = 1 ]; then
target=ksmserverrc
setcfg General confirmLogout false
fi
if [ "$OPTIMIZE_APPEARANCE" = 1 ]; then
target=kwinrc
setcfg TabBox ApplicationsMode 1
setcfg Plugins overviewEnabled true
setcfg Windows BorderlessMaximizedWindows true
setcfg Plugins kwin4_effect_dimscreenEnabled true
setcfg Windows Placement UnderMouse
setcfg org.kde.kdecoration2 ButtonsOnLeft MSF
setcfg Plugins slidebackEnabled true
setcfg MouseBindings CommandAllWheel 'Change Opacity'
setcfg MouseBindings CommandActiveTitlebar2 Close
setcfg MouseBindings CommandInactiveTitlebar2 Close
setcfg MouseBindings CommandTitlebarWheel Raise/Lower
target=kcminputrc
setcfg Mouse cursorSize 36
target=breezerc
setcfg Style MnemonicsMode MN_ALWAYS
setcfg Style ScrollBarAddLineButtons 1
setcfg Style ScrollBarSubLineButtons 1
setcfg Windeco ButtonSize ButtonLarge
fi
if [ "$OPTIMIZE_KWRITE" = 1 ]; then
target=katerc
setcfg General 'Show Full Path in Title' true
target=kwriterc
setcfg 'General Options' ShowPath true
fi
echo 'FINISHED!'
echo
echo 'Please Logout to Apply'