-
Notifications
You must be signed in to change notification settings - Fork 9
/
02gtk3-nocsd-mx
43 lines (35 loc) · 1.13 KB
/
02gtk3-nocsd-mx
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
# gtk3-nocsd global configuration
#
# This file overrides 01gtk3-nocsd to allow a user-selectable setting in mx-tweak
#
# Whether to disable CSD on non-GNOME desktops
# 0: disable CSD
# 1: enable CSD
#
# If this setting is left unset, it will default to 0 (CSD disabled)
# unless GTK3_NOCSD_IGNORE is set to 1, in which case it will remain
# unset. (With gtk defaulting to showing CSDs.)
#
#MX defaults to GTK_CSD=1
# Whether to not preload libgtk3-nocsd.so.0 even if GTK_CSD=0
#
# If this setting is set to 1, LD_PRELOAD and GTK_CSD will not be
# touched upon session startup.
#
#MX defaults to GTK3_NOCSD_IGNORE=1
#only do anything if gtk3_nocsd is installed
#debug
#echo "$XDG_SESSION_DESKTOP" > $HOME/fred.txt
if [ -n "$(command -v gtk3-nocsd)" ]; then
mx_csd_setting="GTK_CSD=1"
mx_csd_preload_setting="GTK3_NOCSD_IGNORE=1"
#disable if toggle active
if [ -e "$HOME/.config/MX-Linux/nocsd/$XDG_SESSION_DESKTOP" ]; then
mx_csd_setting="GTK_CSD=0"
mx_csd_preload_setting="GTK3_NOCSD_IGNORE=0"
fi
#debug
#echo "$mx_csd_setting $mx_csd_preload_setting" >> $HOME/fred.txt
export "$mx_csd_setting"
export "$mx_csd_preload_setting"
fi