Migration to ayu.

This commit is contained in:
Bartek Stalewski 2022-10-30 13:53:34 +01:00
parent b6e7de0e5d
commit 62c4507e7e
8 changed files with 68 additions and 42 deletions

View File

@ -13,5 +13,5 @@ for battery in /sys/class/power_supply/BAT?*; do
esac esac
capacity=$(cat "$battery/capacity") capacity=$(cat "$battery/capacity")
# Will make a warn variable if discharging and low # Will make a warn variable if discharging and low
[ "$capacity" -le 20 ] && printf "<span foreground='#ffffff' background='#770000'>${status} ${capacity}%%</span>" || printf "${status} ${capacity}%%" [ "$capacity" -le 20 ] && printf "<span foreground='#000000' background='#ff3333'>${status} ${capacity}%%</span>" || printf "${status} ${capacity}%%"
done && exit 0 done && exit 0

View File

@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
down) printf "<span background='#770000'>no wifi</span>" ;; down) printf "<span foreground='#000000' background='#ff3333'>no wifi</span>" ;;
up) up)
[ -n "$(ip address show dev wlan0 | grep 'inet ')" ] || printf "<span background='#770000'>no ip</span>" [ -n "$(ip address show dev wlan0 | grep 'inet ')" ] || printf "<span foreground='#000000' background='#ff3333'>no ip</span>"
# && printf "$icon $(iwgetid -r)" \ # && printf "$icon $(iwgetid -r)" \
esac esac

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
case $(cat $XDG_CACHE_HOME/yubikey.status) in case $(cat $XDG_CACHE_HOME/yubikey.status) in
*_1) printf " <span foreground='#000000' background='#e8b923'>touch the yubikey</span>" ;; *_1) printf " <span foreground='#000000' background='#e7c547'>touch the yubikey</span>" ;;
*) printf "" ;; *) printf "" ;;
esac esac

View File

@ -96,29 +96,29 @@ unsigned int tabspaces = 8;
/* Terminal colors (16 first used in escape sequence) */ /* Terminal colors (16 first used in escape sequence) */
static const char *colorname[] = { static const char *colorname[] = {
"#272822", "#000000",
"#fd4285", "#ff3333",
"#a6e22d", "#b8cc52",
"#e5da72", "#e7c547",
"#0094d8", "#36a3d9",
"#9a37ff", "#f07178",
"#50b6d8", "#95e6cb",
"#c7c7c7", "#ffffff",
"#676767", "#323232",
"#fa7fac", "#ff6565",
"#bde271", "#eafe84",
"#fff27f", "#fff779",
"#005577", "#68d5ff",
"#bd9eff", "#ffa3aa",
"#5ed6fe", "#c7fffd",
"#feffff", "#ffffff",
[255] = 0, [255] = 0,
/* more colors can be added after 255 to use with DefaultXX */ /* more colors can be added after 255 to use with DefaultXX */
"#272822", /* 256 -> background */ "#0f1419", /* 256 -> background */
"#c7c7c7", /* 257 -> foreground */ "#e6e1cf", /* 257 -> foreground */
"#c7c7c7", /* 258 -> cursor */ "#f29718", /* 258 -> cursor */
"#272822", /* 259 -> cursor text */ "#272822", /* 259 -> cursor text */
}; };

View File

@ -345,7 +345,7 @@
#icon = /path/to/icon #icon = /path/to/icon
[urgency_critical] [urgency_critical]
background = "#770000" background = "#ff3333"
foreground = "#feffff" foreground = "#feffff"
frame_color = "#feffff" frame_color = "#feffff"
timeout = 2 timeout = 2

View File

@ -94,7 +94,7 @@ dgroups_app_rules = [] # type: list
layouts = [ layouts = [
layout.Columns( layout.Columns(
border_focus='#ffffff', border_focus='#ffffff',
border_normal="#272822", border_normal='#0f1419',
border_on_single = False, border_on_single = False,
border_width=2, border_width=2,
insert_position=1, insert_position=1,
@ -103,10 +103,10 @@ layouts = [
] ]
widget_defaults = dict( widget_defaults = dict(
foreground="#f8f8f2", foreground='#e6e1cf',
background="#272822", background='#0f1419',
font="RobotoMono Nerd Font", font="RobotoMono Nerd Font",
fontsize=13, fontsize=14,
) )
extension_defaults = widget_defaults.copy() extension_defaults = widget_defaults.copy()
@ -116,12 +116,11 @@ screens = [
[ [
widget.GroupBox( widget.GroupBox(
disable_drag=True, disable_drag=True,
highlight_method='block', #highlight_method='block',
rounded=False, rounded=False,
this_current_screen_border='#005577', this_current_screen_border='#36a3d9',
this_screen_border='#f8f8f2', urgent_alert_method='block',
urgent_border='#770000', urgent_border='#ff3333',
urgent_text='#ffffff',
), ),
widget.GenPollText( widget.GenPollText(
update_interval=0.5, update_interval=0.5,

View File

@ -23,6 +23,31 @@ color13: magenta: #bd9eff
color14: cyan: #5ed6fe color14: cyan: #5ed6fe
color15: white: #feffff color15: white: #feffff
# ftpd ayu
foreground: #e6e1cf
background: #0f1419
cursor: #f29718
cursor text: #272822
selection: #c1ddff
selection text: #000000
color0: black: #272822 // #161616
color1: red: #fd4285
color2: green: #a6e22d
color3: yellow: #e5da72
color4: blue: #0094d8
color5: magenta: #9a37ff
color6: cyan: #50b6d8
color7: white: #c7c7c7
color8: black: #676767
color9: red: #fa7fac
color10: green: #bde271
color11: yellow: #fff27f
color12: blue: #005577
color13: magenta: #bd9eff
color14: cyan: #5ed6fe
color15: white: #feffff
# ftpd gruvbox # ftpd gruvbox
foreground: #ebdbb2 foreground: #ebdbb2
background: #1d2021 background: #1d2021

View File

@ -1,4 +1,5 @@
call plug#begin('$XDG_DATA_HOME/nvim/vim-plugins') call plug#begin('$XDG_DATA_HOME/nvim/vim-plugins')
Plug 'ayu-theme/ayu-vim'
Plug 'kamykn/skyknight' Plug 'kamykn/skyknight'
Plug 'junegunn/fzf' Plug 'junegunn/fzf'
Plug 'junegunn/fzf.vim' Plug 'junegunn/fzf.vim'
@ -47,18 +48,19 @@ map <leader>s <Esc>:set spell!<CR>
set bg=dark set bg=dark
set termguicolors set termguicolors
colorscheme skyknight let ayucolor='dark'
colorscheme ayu
hi Comment gui=italic hi Comment gui=italic
hi BadWhitespace guibg=#770000 hi BadWhitespace guibg=#770000
hi ColorColumn guibg=#770000 hi ColorColumn guibg=#770000
hi DiffChange guibg=#465457 hi DiffChange guibg=#0f1419
hi DiffText guifg=#ff8700 guibg=#465457 hi DiffText guifg=#ff8700
hi FoldColumn guifg=#465457 guibg=#272822 " hi FoldColumn guifg=#465457 guibg=#272822
hi GitGutterChange guifg=#bbbb00 guibg=#272822 " hi GitGutterChange guifg=#bbbb00 guibg=#272822
hi LineNr guifg=#465457 guibg=#272822 " hi LineNr guifg=#465457 guibg=#272822
hi NonText guifg=#465457 guibg=#272822 " hi NonText guifg=#465457 guibg=#272822
hi SignColumn guifg=#465457 guibg=#272822 hi SignColumn guibg=#0f1419
hi Visual guibg=#005577 hi Visual guibg=#005577
hi SpellBad guibg=#770000 hi SpellBad guibg=#770000
@ -74,7 +76,7 @@ let g:gitgutter_sign_modified = '~'
let g:Hexokinase_highlighters = [ 'backgroundfull' ] let g:Hexokinase_highlighters = [ 'backgroundfull' ]
let g:lightline = { let g:lightline = {
\ 'colorscheme': 'powerline', \ 'colorscheme': 'ayu',
\ 'active': { \ 'active': {
\ 'left': [ [ 'mode', 'paste' ], \ 'left': [ [ 'mode', 'paste' ],
\ [ 'readonly', 'filename' ] ], \ [ 'readonly', 'filename' ] ],