Transition to wofi from dmenu
This commit is contained in:
parent
aa0e5a99a6
commit
5084ae5876
5 changed files with 30 additions and 2 deletions
|
@ -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']
|
||||
|
|
1
templates/.cache/wal/colors
Normal file
1
templates/.cache/wal/colors
Normal file
|
@ -0,0 +1 @@
|
|||
${get_base16('wofi-colors')}
|
|
@ -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')}
|
||||
|
||||
|
|
1
templates/.config/wofi/config
Normal file
1
templates/.config/wofi/config
Normal file
|
@ -0,0 +1 @@
|
|||
insensitive=true
|
19
templates/.config/wofi/style.css
Normal file
19
templates/.config/wofi/style.css
Normal file
|
@ -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;
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue