Commit graph

9 commits

Author SHA1 Message Date
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