feat: a functional version, which I'm testing myself
This commit is contained in:
46
README.md
46
README.md
@@ -1,3 +1,45 @@
|
||||
# userctx
|
||||
# themer
|
||||
|
||||
A tool for switching user's software configs
|
||||
Apply visual themes to various apps with ease.
|
||||
|
||||
## Kitty
|
||||
Themer symlinks ~/.config/kitty/current-theme.conf to the
|
||||
file found within theme directory.
|
||||
So:
|
||||
1. touch ~/.config/kitty/current-theme.conf
|
||||
2. echo 'include current-theme.conf' >> ~/.config/kitty/kitty.conf
|
||||
If you even called kitten theme 'Some Theme' then
|
||||
your setup is fine and ready for Themer.
|
||||
|
||||
## Niri
|
||||
If ~/.config/niri/configs/ dir exists then
|
||||
config is assembled from this dir + theme.
|
||||
Else niri.kdl from theme directory is considered the whole config and
|
||||
Themer symlinks ~/.config/niri/config.kdl to you niri.kdl inside
|
||||
theme directory.
|
||||
|
||||
## Sway
|
||||
Replaces either ~/.config/sway/theme.conf or whole config.
|
||||
|
||||
## Swaybg
|
||||
If using swaybg in other compositor besides sway
|
||||
then it must be a systemd unit for Themer to manage it.
|
||||
|
||||
Put the following to ~/.config/systemd/user/swaybg.service
|
||||
```
|
||||
[Unit]
|
||||
PartOf=graphical-session.target
|
||||
After=graphical-session.target
|
||||
Requisite=graphical-session.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/swaybg -m fill -i "%h/.config/swaybg/wallpaper"
|
||||
Restart=on-failure
|
||||
```
|
||||
|
||||
1. mkdir ~/.config/swaybg
|
||||
2. ln -s /path/to/any/wallpaper ~/.config/swaybg/wallpaper
|
||||
3. systemctl --user daemon-reload
|
||||
4. systemctl --user add-wants niri.service swaybg.service
|
||||
|
||||
https://github.com/YaLTeR/niri/wiki/Example-systemd-Setup
|
||||
|
||||
Reference in New Issue
Block a user