diff --git a/install.py b/install.py index a173c05..954715d 100755 --- a/install.py +++ b/install.py @@ -17,9 +17,16 @@ import yaml BASE16_TEMPLATES_URL = 'https://raw.githubusercontent.com/chriskempson/base16-templates-source/master/list.yaml' BASE16_TEMPLATES = yaml.safe_load(requests.get(BASE16_TEMPLATES_URL).text) +# Pending https://github.com/chriskempson/base16-templates-source/pull/106 +BASE16_TEMPLATES['wofi-colors'] = 'https://github.com/agausmann/base16-wofi-colors' + def get_base16(scheme, app, template='default'): - base_url = BASE16_TEMPLATES[app].replace('github.com', 'raw.githubusercontent.com') + '/master/'; + base_url = BASE16_TEMPLATES[app] + if 'github.com' in base_url: + base_url = base_url.replace('github.com', 'raw.githubusercontent.com') + '/master/' + else: + base_url += '/blob/master/' config = yaml.safe_load(requests.get(base_url + 'templates/config.yaml').text) output = config[template]['output'] extension = config[template]['extension'] diff --git a/templates/.cache/wal/colors b/templates/.cache/wal/colors new file mode 100644 index 0000000..2a710de --- /dev/null +++ b/templates/.cache/wal/colors @@ -0,0 +1 @@ +${get_base16('wofi-colors')} diff --git a/templates/.config/sway/config b/templates/.config/sway/config index dcd03bf..c0c9f95 100644 --- a/templates/.config/sway/config +++ b/templates/.config/sway/config @@ -58,7 +58,7 @@ bindsym $mod+Shift+e swaynag -t warning -m 'You pressed the exit shortcut. Do yo bindsym $mod+Shift+q kill bindsym $mod+Shift+p exec swaylock -c 000000 -bindsym $mod+d exec dmenu-wl_run +bindsym $mod+d exec wofi --show run bindsym $mod+p exec passmenu bindsym $mod+Return exec ${host.get('terminal', 'alacritty')} diff --git a/templates/.config/wofi/config b/templates/.config/wofi/config new file mode 100644 index 0000000..db01b2d --- /dev/null +++ b/templates/.config/wofi/config @@ -0,0 +1 @@ +insensitive=true diff --git a/templates/.config/wofi/style.css b/templates/.config/wofi/style.css new file mode 100644 index 0000000..32f2a18 --- /dev/null +++ b/templates/.config/wofi/style.css @@ -0,0 +1,19 @@ +window { + background-color: --wofi-color1; + color: --wofi-color5; +} + +#input { + background-color: --wofi-color0; + color: --wofi-color5; + border-color: --wofi-color1; +} + +#input:selected { + border-color: --wofi-color2; +} + +#entry:selected { + background-color: --wofi-color2; +} +