Commit graph

50 commits

Author SHA1 Message Date
12474e85dd
Fix qutebrowser quoting and formatting 2022-01-16 14:51:05 +01:00
3d45d759d8
Add experimental kitty processor
Can set the theme for future kitty instances,
but will not theme the current kitty. For that
the ANSI processor is necessary to be invoked.
2022-01-16 13:01:48 +01:00
668a9776ec
Add waybar theming to processors 2021-12-06 11:41:10 +01:00
993fe5a2b3
Update stylesheet
Improved archlinux forum readability
2021-10-26 15:59:18 +02:00
b4cb275a24
Update stylesheet
Improve wallabag and moodle rendering.
2020-12-22 11:28:11 +01:00
f0f3f6661b
Improve utilities dbg_msg documentation
Added documentation for the various severity levels a dbg_msg function
call can have (info, warn, error).
2020-12-22 11:27:23 +01:00
dfe8e03d66
Fix polybar hardcoding
Polybar restarting is now done through its provided ipc interface,
instead of relying on a hardcoded script on the system.

Previously, the system needed access to a `polybar-launch` script.
Now, it invokes the `polybar-msg` command which is provided by polybar
itself.

It is important that polybar has ipc enabled in its configuration for
the restart to work.
2020-12-22 11:25:51 +01:00
2375cfe8a6
Make use of alacritty include functionality
Alacritty processor will now add the colorscheme via include statement
in the original configuration file instead of adding the theme directly
to the file.
2020-12-22 11:23:53 +01:00
044f2e8a5c
Fix css processor not working without theme dir
Processor will now automatically create the necessary directory to put
the css stylesheet into if the directory does not exist yet,
instead of failing to apply the theme.
2020-12-22 11:22:49 +01:00
9d4e143bbe
Update stylesheet
Improve wallabag article list rendering.
2020-10-22 09:17:28 +02:00
c4826a0d3c
Update stylesheet
Add reddit comment area.

Improve medium text rendering.
2020-10-19 10:01:03 +02:00
97d49aaae4
Update stylesheet 2020-09-30 22:20:35 +02:00
21162bd5cd
Update stylesheet 2020-09-28 21:41:22 +02:00
452ed51eb8
Fix debug information printing
Will print debug info to libnotify but additionally print everything to
stdout now.

This should help when explicitly invoking styler from a shell (by
setting `export STYLER_DEBUG=2` or `=3`) and either reading the output
there or redirecting it to a file.
2020-09-23 16:41:36 +02:00
238fa0ed65
Update css template
Add todoist 'upcoming' coloring.
2020-09-23 16:41:05 +02:00
2056c665cc
Update stylesheet 2020-08-01 09:06:05 +02:00
b1b8ad2cc7
Update css stylesheet 2020-08-01 09:05:46 +02:00
a24921941b
Update css template for gitlab 2020-08-01 09:05:04 +02:00
38dbe4592c
Update stylesheet 2020-08-01 09:04:58 +02:00
8b586bbd56
Add simple todoist css theming 2020-07-31 12:17:12 +02:00
605b66d6f8
Add experimental zathura processor 2020-02-27 21:35:51 +01:00
dee01df492
Update stylesheet for shaarli 2020-02-27 21:35:01 +01:00
8c1c448e21
Update stylesheet for gitlab docs 2020-02-18 09:32:08 +01:00
27f0988a5e
Add libnotify notification if found
If `send-notify` is recognized as valid command, the dbg_msg function
will send it there instead of printing it to stdout. The urgency of the
message corresponds with low/normal/critical to the debug levels
info/warn/error.
2020-02-16 09:58:58 +01:00
467cea919c
Add additional stylesheet settings 2020-02-16 09:12:23 +01:00
b3feee8b04
Add additional stylesheet settings 2020-02-15 21:40:49 +01:00
6af1d58133
Fix importing of stylesheet template
Processor was looking for the template relative to calling directory,
instead of relative to script file. This fixes it mostly.
2020-02-15 19:08:22 +01:00
4e565fad2d
Add experimental css styler
Takes a prepared stylesheet template, inserts the values into it and
puts it into fixed qutebrowser stylesheet directory, calling qutebrowser
to set it automatically.

Much of this is hardcoded and not applicable to different setups!
2020-02-15 19:00:34 +01:00
226b666739
Add experimental dunst support
Added simple support for dunst files. Since files can, similar to
alacritty, not be included in dunstrc, the processor invokes a similarly
invasive replacement method to add the base16 at the end of the config
file.

The procedure is similar to alacritty processor, the danger is also the
same -- it works directly on the config file and will worst case delete
the complete contents of this file. Since the processor is not tested
(other than manually looking that it does what it's supposed to) the
case of this happening is not negligible.
2020-02-15 16:52:14 +01:00
89fa02749c
Alacritty processor remove temporary files
Remember to remove any temporary files at the end of processing.
2020-02-15 16:15:02 +01:00
f4991b11e1
Add experimental alacritty support
Alacritty does not support including other files into
its configuration yet. As such, this processor needs to
change the user's configuration file *itself*.

This will generally not be a problem, though it can lead
to corrupted configurations in exceptional circumstances
(such as every line being preceded by the process control
regex, for whatever reason).

In general, the processor looks for a specific line in the
following format:
'# Base16 [theme name] - alacritty color config'
from which it will delete everything until it finds a line:
'# Base16End [theme name] - alacritty color config'
So, if you don't want to lose anything -
Do NOT put anything important between those two lines.

This processor is very experimental and will probably still
break every now and again!
2020-02-15 15:26:24 +01:00
7ec6dc98c9
Fix utility sourcing
Utilities should always be sourced, even in the case that the processor
is not designated for any of the templates provided.
2020-02-15 15:25:20 +01:00
ea2dc1bd93 Refactor theme_rofi to new default template 2020-01-31 13:07:45 +01:00
613707eb6e Refactor theme_xresources to new deafult template 2020-01-31 13:01:53 +01:00
c193fc7221 Fix theme_vim to only warn when no config dir found
Fixed warning being displayed when either vim or nvim config directory
was found but not both. Now only displays a warning when neither is
found.
2020-01-31 12:46:59 +01:00
36383db479 Refactor theme_shell to new default template 2020-01-31 12:42:15 +01:00
e93ee48632 Fix example template entrypoint calling 2020-01-31 12:40:32 +01:00
0f3b9667b6 Fix qutebrowser entrypoint location 2020-01-31 12:33:58 +01:00
17bca81232 Refactor theme_vim to follow template layout 2020-01-31 12:31:02 +01:00
8106c87633 Add example template for processor 2020-01-31 12:21:41 +01:00
7e709be5a0 Refactor theme_qutebrowser to use utility functions 2020-01-31 12:15:39 +01:00
c29f9528ec Create utility framework for often used functions 2020-01-31 12:14:48 +01:00
d230ae9218 Add initial shell theming processor
Uses ANSI escape sequences to switch all open terminals to desired
theme. Does not yet include capability to permanently set themes, since
this would have to be handled either through xresources or dependent on
the individual terminals color settings (e.g. `.config/alacritty.yml`
for alacritty). Needs further investigation.
2020-01-31 10:19:25 +01:00
7bab853c64 HACK Add initial rofi processor
Follows my personal rofi setup, which is presumably non-default. Puts
the line including colorscheme into `.config/rofi/themes/settings.rasi`,
I don't remember if that is default. TODO

Also uses base16 templates from the `themes` folder of the package,
which set some *layout* properties of rofi not just color changes.
Should probably look at rofi and create a 'nullifying' rofi rasi file
similar to css plate cleansers and build a default layout from that.

Other way is to use `colors` subfolder of the package, but this does not
connect the colors to uses in the themes, so would be more work to
include.
2020-01-31 10:15:53 +01:00
b64529c535 Fix xresources theme switch
Will now correctly add theme colors, even if not applying permanently.
Will also quietly restart polybar instead of polluting terminal output.
2020-01-31 01:00:48 +01:00
69e0be77d5 Attach polybar restart script to xresources 2020-01-31 00:54:10 +01:00
14c69c674b Add xresources theming
Xresources processor is very customized and not useable for default
Xresources deployment. It depends on Xresources being available as an
XDG-compliant directory in $XDG_CONFIG_HOME/xresources.

Future work on this processor should start from the default xresources
deployment and allow customization to change it (e.g. through stylerrc
file, setting custom options and paths per processor)
2020-01-31 00:24:21 +01:00
ae34a9c94d Add qutebrowser processor
Will switch colors for running qutebrowser instance.

Will add `colorscheme.py` into default qutebrowser config directory and
make sure the file is sourced from default qutebrowser config file
`config.py`. This makes the theme change permanent.
2020-01-30 23:14:07 +01:00
eaba8f550e Fix calling local var outside function 2020-01-30 23:13:46 +01:00
2c4fe1397a Add vim theming processor
Will theme vim on-the-fly when it is running within tmux.

When permanently setting a theme, will add a
colorscheme.vim file into the vim config directory (or nvim) for which a
source statement is added to vimrc/init.vim.
2020-01-30 22:46:30 +01:00