Commit Graph

19 Commits

Author SHA1 Message Date
Marty Oehme 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
Marty Oehme ea2dc1bd93 Refactor theme_rofi to new default template 2020-01-31 13:07:45 +01:00
Marty Oehme 613707eb6e Refactor theme_xresources to new deafult template 2020-01-31 13:01:53 +01:00
Marty Oehme 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
Marty Oehme 36383db479 Refactor theme_shell to new default template 2020-01-31 12:42:15 +01:00
Marty Oehme e93ee48632 Fix example template entrypoint calling 2020-01-31 12:40:32 +01:00
Marty Oehme 0f3b9667b6 Fix qutebrowser entrypoint location 2020-01-31 12:33:58 +01:00
Marty Oehme 17bca81232 Refactor theme_vim to follow template layout 2020-01-31 12:31:02 +01:00
Marty Oehme 8106c87633 Add example template for processor 2020-01-31 12:21:41 +01:00
Marty Oehme 7e709be5a0 Refactor theme_qutebrowser to use utility functions 2020-01-31 12:15:39 +01:00
Marty Oehme c29f9528ec Create utility framework for often used functions 2020-01-31 12:14:48 +01:00
Marty Oehme 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
Marty Oehme 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
Marty Oehme 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
Marty Oehme 69e0be77d5 Attach polybar restart script to xresources 2020-01-31 00:54:10 +01:00
Marty Oehme 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
Marty Oehme 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
Marty Oehme eaba8f550e Fix calling local var outside function 2020-01-30 23:13:46 +01:00
Marty Oehme 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