Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch theme #includes from absolute paths to relative #17

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,26 @@ define the capabilities and flavor of a desktop interface. There is a package
This package houses extra looks created and maintained by the Regolith project.


## Theme directory conventions

### The `root` file

This is the main theme configuration file. It defines the theme's color palette, fonts,
wallpaper, compositor settings, and uses
[C preprocessor `#include` directives](https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html)
to load other config files (window manager config, status bar config, and terminal
config).

These includes should use relative paths in the following style so themes can be
portable to other filesystem locations:

```
#include "i3xrocks"
#include "wm"
#include "gnome-terminal"
```


## Testing changes to this repo

WARNING: `regolith-look-selector` will not pick up look directories that are symbolic
Expand Down
6 changes: 3 additions & 3 deletions usr/share/regolith-look/ayu-dark/root
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ gtk.monospace_font_name: gtk_monospace_font_name
! -- Component resources
! --------------------------------------------

#include "/usr/share/regolith-look/ayu-dark/i3xrocks"
#include "/usr/share/regolith-look/ayu-dark/wm"
#include "/usr/share/regolith-look/ayu-dark/gnome-terminal"
#include "i3xrocks"
#include "wm"
#include "gnome-terminal"

! --------------------------------------------
! -- Loader Path - Path to script responsible
Expand Down
6 changes: 3 additions & 3 deletions usr/share/regolith-look/ayu-mirage/root
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ gtk.monospace_font_name: gtk_monospace_font_name
! -- Component resources
! --------------------------------------------

#include "/usr/share/regolith-look/ayu-mirage/i3xrocks"
#include "/usr/share/regolith-look/ayu-mirage/wm"
#include "/usr/share/regolith-look/ayu-mirage/gnome-terminal"
#include "i3xrocks"
#include "wm"
#include "gnome-terminal"

! --------------------------------------------
! -- Loader Path - Path to script responsible
Expand Down
6 changes: 3 additions & 3 deletions usr/share/regolith-look/ayu/root
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ gtk.monospace_font_name: gtk_monospace_font_name
! -- Component resources
! --------------------------------------------

#include "/usr/share/regolith-look/ayu/i3xrocks"
#include "/usr/share/regolith-look/ayu/wm"
#include "/usr/share/regolith-look/ayu/gnome-terminal"
#include "i3xrocks"
#include "wm"
#include "gnome-terminal"

! --------------------------------------------
! -- Loader Path - Path to script responsible
Expand Down
6 changes: 3 additions & 3 deletions usr/share/regolith-look/blackhole/root
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ gtk.monospace_font_name: gtk_monospace_font_name
! -- Component resources
! --------------------------------------------

#include "/usr/share/regolith-look/blackhole/i3xrocks"
#include "/usr/share/regolith-look/blackhole/wm"
#include "/usr/share/regolith-look/blackhole/gnome-terminal"
#include "i3xrocks"
#include "wm"
#include "gnome-terminal"

! --------------------------------------------
! -- Loader Path - Path to script responsible
Expand Down
6 changes: 3 additions & 3 deletions usr/share/regolith-look/dracula/root
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ gtk.monospace_font_name: gtk_monospace_font_name
! -- Component resources
! --------------------------------------------

#include "/usr/share/regolith-look/dracula/i3xrocks"
#include "/usr/share/regolith-look/dracula/wm"
#include "/usr/share/regolith-look/dracula/gnome-terminal"
#include "i3xrocks"
#include "wm"
#include "gnome-terminal"

! --------------------------------------------
! -- Loader Path - Path to script responsible
Expand Down
6 changes: 3 additions & 3 deletions usr/share/regolith-look/gruvbox/root
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ gtk.monospace_font_name: gtk_monospace_font_name
! -- Component resources
! --------------------------------------------

#include "/usr/share/regolith-look/gruvbox/i3xrocks"
#include "/usr/share/regolith-look/gruvbox/wm"
#include "/usr/share/regolith-look/gruvbox/gnome-terminal"
#include "i3xrocks"
#include "wm"
#include "gnome-terminal"

! --------------------------------------------
! -- Loader Path - Path to script responsible
Expand Down
6 changes: 3 additions & 3 deletions usr/share/regolith-look/i3-default/root
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ gtk.monospace_font_name: gtk_monospace_font_name
! -- Component resources
! --------------------------------------------

#include "/usr/share/regolith-look/i3-default/i3xrocks"
#include "/usr/share/regolith-look/i3-default/wm"
#include "/usr/share/regolith-look/i3-default/gnome-terminal"
#include "i3xrocks"
#include "wm"
#include "gnome-terminal"

! --------------------------------------------
! -- Loader Path - Path to script responsible
Expand Down
6 changes: 3 additions & 3 deletions usr/share/regolith-look/lascaille/root
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ gtk.monospace_font_name: gtk_monospace_font_name
! -- Component resources
! --------------------------------------------

#include "/usr/share/regolith-look/lascaille/i3xrocks"
#include "/usr/share/regolith-look/lascaille/wm"
#include "/usr/share/regolith-look/lascaille/gnome-terminal"
#include "i3xrocks"
#include "wm"
#include "gnome-terminal"

! --------------------------------------------
! -- Loader Path - Path to script responsible
Expand Down
6 changes: 3 additions & 3 deletions usr/share/regolith-look/nevil/root
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ regolith.compositor.picom.config: /usr/share/regolith-look/nevil/picom.conf
! -- Component resources
! --------------------------------------------

#include "/usr/share/regolith-look/nevil/i3xrocks"
#include "/usr/share/regolith-look/nevil/wm"
#include "/usr/share/regolith-look/nevil/gnome-terminal"
#include "i3xrocks"
#include "wm"
#include "gnome-terminal"

! --------------------------------------------
! -- Loader Path - Path to script responsible
Expand Down
6 changes: 3 additions & 3 deletions usr/share/regolith-look/nord/root
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ gtk.monospace_font_name: gtk_monospace_font_name
! -- Component resources
! --------------------------------------------

#include "/usr/share/regolith-look/nord/i3xrocks"
#include "/usr/share/regolith-look/nord/wm"
#include "/usr/share/regolith-look/nord/gnome-terminal"
#include "i3xrocks"
#include "wm"
#include "gnome-terminal"

! --------------------------------------------
! -- Loader Path - Path to script responsible
Expand Down
6 changes: 3 additions & 3 deletions usr/share/regolith-look/solarized-dark/root
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ gtk.monospace_font_name: gtk_monospace_font_name
! -- Component resources
! --------------------------------------------

#include "/usr/share/regolith-look/solarized-dark/i3xrocks"
#include "/usr/share/regolith-look/solarized-dark/wm"
#include "/usr/share/regolith-look/solarized-dark/gnome-terminal"
#include "i3xrocks"
#include "wm"
#include "gnome-terminal"

! --------------------------------------------
! -- Loader Path - Path to script responsible
Expand Down