README.md 4.9 KB
Newer Older
HJ's avatar
HJ committed
1
Ceres is a traditional and boring theme for MATE and Cinnamon.
HJ's avatar
HJ committed
2

HJ's avatar
HJ committed
3
[![Preview](https://gitlab.com/sixsixfive/ceres-gtk/raw/master/.preview.small.png)](https://gitlab.com/sixsixfive/ceres-gtk/raw/master/.preview.png)
HJ's avatar
HJ committed
4 5 6

### Features:

HJ's avatar
HJ committed
7 8 9
* Includes a GTK+3 theme and one that works without composite(eg for Fluxbox, IceWM etc.).
* Includes [Muffin](https://github.com/linuxmint/muffin)/[Marco](https://mate-desktop.org) themes.
* Includes [Cinnamon](https://github.com/linuxmint/Cinnamon) themes.
HJ's avatar
HJ committed
10 11
* Optionally: [GTK+ <=2.24](https://gitlab.com/sixsixfive/ceres-gtk-old) themes.
* Optionally: [IceWM](https://gitlab.com/sixsixfive/ceres-icewm) themes.
HJ's avatar
HJ committed
12

HJ's avatar
HJ committed
13 14 15 16 17 18 19 20 21 22 23 24
#### Dependencies:

* [Noto font](https://www.google.com/get/noto/) (fallback font for all themes)
* [DMZ cursor theme](https://packages.debian.org/en/source/sid/dmz-cursor-theme) (fallback cursor set on all themes)
* GTK 3 theme needs GTK+ >=3.24

### Howto install/update?

#### Devuan/Debian (exporting the path is a [new Frankenstein thing](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=918754) of Debian >=10)

```
su -c 'PATH=/usr/sbin:/sbin:/usr/local/sbin:$PATH apt install fakeroot git libfile-fcntllock-perl debhelper --no-install-recommends'
HJ's avatar
HJ committed
25 26
cd /tmp && git clone --depth 1 https://gitlab.com/sixsixfive/ceres-gtk.git
cd ceres-gtk/packaging
HJ's avatar
HJ committed
27
sh build_deb.sh
HJ's avatar
HJ committed
28
su -c 'PATH=/usr/sbin:/sbin:/usr/local/sbin:$PATH dpkg -P ceres-theme-gtk;dpkg -i ceres-theme-gtk_*.deb;apt install -f --no-install-recommends'
HJ's avatar
HJ committed
29 30 31 32 33 34
```

##### with sudo installed(eg: LMDE or *buntu)

```
sudo apt install fakeroot git libfile-fcntllock-perl debhelper --no-install-recommends
HJ's avatar
HJ committed
35 36
cd /tmp && git clone --depth 1 https://gitlab.com/sixsixfive/ceres-gtk.git
cd ceres-gtk/packaging
HJ's avatar
HJ committed
37
sh build_deb.sh
HJ's avatar
HJ committed
38
sudo sh -c 'dpkg -P ceres-theme-gtk;dpkg -i ceres-theme-gtk_*.deb;apt install -f --no-install-recommends'
HJ's avatar
HJ committed
39 40 41 42 43 44
```

#### SuSE or Gecko Linux

```
sudo zypper install fakeroot git rpmbuild
HJ's avatar
HJ committed
45 46
cd /tmp && git clone depth -1 https://gitlab.com/sixsixfive/ceres-gtk.git
cd ceres-gtk/packaging
HJ's avatar
HJ committed
47
sh build_rpm.sh
HJ's avatar
HJ committed
48
sudo zypper install --no-recommends ceres-theme-gtk*.rpm
HJ's avatar
HJ committed
49 50 51 52
```

#### Any other

HJ's avatar
HJ committed
53 54 55 56 57 58 59 60 61 62 63 64
* 1: Download and extract the theme
```
cd /tmp && curl -L https://gitlab.com/sixsixfive/ceres-gtk/-/archive/master/ceres-gtk-master.tar.gz |tar zxf -
```
* 2: Copy the content of 'ceres-gtk' to your GTK/Metacity theme dirs (usually $SYSPREFIX/share/themes)
```
cp -R ceres-gtk-master/ceres-gtk/* /usr/local/share/themes
```
* 3: Copy the 'ceres-gtk-icons' folder to your icon theme dir (usually $SYSPREFIX/share/icons)
```
cp -R ceres-gtk-master/ceres-gtk-icons /usr/local/share/icons/
```
HJ's avatar
HJ committed
65

HJ's avatar
HJ committed
66
__NOTE:__ *The icon theme is needed for the GTK3 theme to display arrows and such stuff, it has to be installed systemwide!*
HJ's avatar
HJ committed
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86

### FAQ

#### Howto disable the GTK+3 overlay scrollbars in X11

Note:

* Deb-like: SYSCONFIGDIR = /etc, XSESSIONCONFDIR = $(SYSCONFDIR)/X11/Xsession.d
* SuSE: SYSCONFIGDIR = /etc, XSESSIONCONFDIR = $(SYSCONFDIR)/X11/xinit/xinitrc.d

```
printf '\nexport GTK_OVERLAY_SCROLLING=0\nexport LIBOVERLAY_SCROLLBAR=0'>> $__XSESSIONCONFDIR__/99_disable_gtk_overlay_scrollbars
```

For root applications eg: Synaptic
```
printf '\nGTK_OVERLAY_SCROLLING=0\nLIBOVERLAY_SCROLLBAR=0'>> __$ SYSCONFIGDIR__/environment
```

##### On Wayland and X11 in later GTK+3 versions
HJ's avatar
HJ committed
87

HJ's avatar
HJ committed
88
```
HJ's avatar
HJ committed
89
if [ ! -f ~/.config/gtk-3.0/settings.ini ]; then printf '[Settings]' >> ~/.config/gtk-3.0/settings.ini ;fi && printf '\ngtk-overlay-scrolling=0\n' >> ~/.config/gtk-3.0/settings.ini
HJ's avatar
HJ committed
90 91
```

HJ's avatar
HJ committed
92
#### Enable the CSDs for dialogs eg: file open or about dialogs
HJ's avatar
HJ committed
93
```
HJ's avatar
HJ committed
94
if [ ! -f ~/.config/gtk-3.0/settings.ini ]; then printf '[Settings]' >> ~/.config/gtk-3.0/settings.ini ;fi && printf '\ngtk-dialogs-use-header=1\n' >> ~/.config/gtk-3.0/settings.ini
HJ's avatar
HJ committed
95
```
HJ's avatar
HJ committed
96

HJ's avatar
HJ committed
97
#### Window border are too thin to resize the window?
HJ's avatar
HJ committed
98

HJ's avatar
HJ committed
99
Just use ALT+Mouse 2 to resize windows.
HJ's avatar
HJ committed
100

HJ's avatar
HJ committed
101
#### Howto set the GTK themes manually eg: on IceWM
HJ's avatar
HJ committed
102 103 104 105 106 107 108 109 110 111 112 113

```
if [ ! -f ~/.config/gtk-3.0/settings.ini ]; then printf '[Settings]' >> ~/.config/gtk-3.0/settings.ini ;fi && printf '\ngtk-theme-name=ceres-nocomposite\n' >> ~/.config/gtk-3.0/settings.ini
```
or
```
if [ ! -f ~/.config/gtk-3.0/settings.ini ]; then printf '[Settings]' >> ~/.config/gtk-3.0/settings.ini ;fi && printf '\ngtk-theme-name=ceres-pro-nocomposite\n' >> ~/.config/gtk-3.0/settings.ini
```

#### Print preview does not work?

Since this theme focusing on Cinnamon and MATE it will use [Atril](https://github.com/mate-desktop/atril) as the default document viewer.
HJ's avatar
HJ committed
114
to change this simple remove/comment the "gtk-print-preview-command" in the GTK3 settings.ini's.
HJ's avatar
HJ committed
115 116 117 118

#### Cinnamon theme is flatter than the GTK theme?

Cinnamon does not support full theming with complex gradients and multiple box shadows so I had to use a more flat theme.
HJ's avatar
HJ committed
119 120 121 122 123 124 125 126 127 128 129 130 131 132

#### How to add more buttons to the titlebar?

##### Muffin

```
gsettings set org.cinnamon.desktop.wm.preferences button-layout "menu:shade,stick,above,minimize,maximize,close"
```

##### Marco

```
gsettings set org.mate.Marco.general button-layout "menu:shade,stick,above,minimize,maximize,close"
```