From 4516b146acaf1692488a9e9d795e5c07092f867a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Mon, 30 Nov 2020 19:11:03 +0300 Subject: Colorschemes, terminal emulator config * Easy way to change color scheme from dark to light on the fly * Sound alert for bell in alacritty --- dotfiles/.config/alacritty/alacritty.yml | 256 ++++++++++++++++++------------- dotfiles/.config/sway/config | 1 + dotfiles/.config/zsh/.zshrc | 2 + 3 files changed, 151 insertions(+), 108 deletions(-) (limited to 'dotfiles/.config') diff --git a/dotfiles/.config/alacritty/alacritty.yml b/dotfiles/.config/alacritty/alacritty.yml index 311de61..9a76a16 100644 --- a/dotfiles/.config/alacritty/alacritty.yml +++ b/dotfiles/.config/alacritty/alacritty.yml @@ -163,114 +163,155 @@ font: #draw_bold_text_with_bright_colors: false # Colors -colors: - # Ultramar - primary: - background: '#1b1e25' - foreground: '#e5e9f0' - - # Bright and dim foreground colors - # - # The dimmed foreground color is calculated automatically if it is not present. - # If the bright foreground color is not set, or `draw_bold_text_with_bright_colors` - # is `false`, the normal foreground color will be used. - #dim_foreground: '#828482' - #bright_foreground: '#eaeaea' - - # Cursor colors - # - # Colors which should be used to draw the terminal cursor. - # - # Allowed values are CellForeground and CellBackground, which reference the - # affected cell, or hexadecimal colors like #ff00ff. - cursor: - cursor: '#ffffff' - # text: CellBackground - - # Vi mode cursor colors - # - # Colors for the cursor when the vi mode is active. - # - # Allowed values are CellForeground and CellBackground, which reference the - # affected cell, or hexadecimal colors like #ff00ff. - #vi_mode_cursor: - # text: CellBackground - # cursor: CellForeground - - # Selection colors - # - # Colors which should be used to draw the selection area. - # - # Allowed values are CellForeground and CellBackground, which reference the - # affected cell, or hexadecimal colors like #ff00ff. - #selection: - # text: CellBackground - # background: CellForeground - - # Search colors - # - # Colors used for the search bar and match highlighting. - search: - # Allowed values are CellForeground and CellBackground, which reference the - # affected cell, or hexadecimal colors like #ff00ff. - matches: - foreground: '#000000' - background: '#b2872f' - - bar: - background: '#252832' - foreground: '#e5e9f0' - - # Normal colors - normal: - black: '#1d2021' - red: '#b73030' - green: '#7ea95a' - yellow: '#b2872f' - blue: '#3f6e90' - magenta: '#9c6992' - cyan: '#5b8277' - white: '#a1a6b2' - - # Bright colors - bright: - black: '#434c5e' - red: '#c45c5c' - green: '#9eba86' - yellow: '#e2b55a' - blue: '#81acc1' - magenta: '#b48ead' - cyan: '#7fac96' - white: '#e5e9f0' - - # Dim colors - # - # If the dim colors are not set, they will be calculated automatically based - # on the `normal` colors. - #dim: - # black: '#131415' - # red: '#864343' - # green: '#777c44' - # yellow: '#9e824c' - # blue: '#556a7d' - # magenta: '#75617b' - # cyan: '#5b7d78' - # white: '#828482' - - # Indexed Colors - # - # The indexed colors include all colors from 16 to 256. - # When these are not set, they're filled with sensible defaults. - # - # Example: - # `- { index: 16, color: '#ff00ff' }` - # - #indexed_colors: [] +schemes: + # Ultramar + ultramar_dark: &dark + primary: + background: '#1b1e25' + foreground: '#ece7d4' + + # Bright and dim foreground colors + # + # The dimmed foreground color is calculated automatically if it is not present. + # If the bright foreground color is not set, or `draw_bold_text_with_bright_colors` + # is `false`, the normal foreground color will be used. + #dim_foreground: '#828482' + #bright_foreground: '#eaeaea' + + # Cursor colors + # + # Colors which should be used to draw the terminal cursor. + # + # Allowed values are CellForeground and CellBackground, which reference the + # affected cell, or hexadecimal colors like #ff00ff. + cursor: + cursor: '#ffffff' + # text: CellBackground + + # Vi mode cursor colors + # + # Colors for the cursor when the vi mode is active. + # + # Allowed values are CellForeground and CellBackground, which reference the + # affected cell, or hexadecimal colors like #ff00ff. + #vi_mode_cursor: + # text: CellBackground + # cursor: CellForeground + + # Selection colors + # + # Colors which should be used to draw the selection area. + # + # Allowed values are CellForeground and CellBackground, which reference the + # affected cell, or hexadecimal colors like #ff00ff. + #selection: + # text: CellBackground + # background: CellForeground + + # Search colors + # + # Colors used for the search bar and match highlighting. + search: + # Allowed values are CellForeground and CellBackground, which reference the + # affected cell, or hexadecimal colors like #ff00ff. + matches: + foreground: '#000000' + background: '#b2872f' + + bar: + background: '#252832' + foreground: '#e5e9f0' + + # Normal colors + normal: + black: '#1d2021' + red: '#b73030' + green: '#7ea95a' + yellow: '#b2872f' + blue: '#3f6e90' + magenta: '#9c6992' + cyan: '#5b8277' + white: '#a1a6b2' + + # Bright colors + bright: + black: '#434c5e' + red: '#c45c5c' + green: '#9eba86' + yellow: '#e2b55a' + blue: '#81acc1' + magenta: '#b48ead' + cyan: '#7fac96' + white: '#e5e9f0' + + # Dim colors + # + # If the dim colors are not set, they will be calculated automatically based + # on the `normal` colors. + #dim: + # black: '#131415' + # red: '#864343' + # green: '#777c44' + # yellow: '#9e824c' + # blue: '#556a7d' + # magenta: '#75617b' + # cyan: '#5b7d78' + # white: '#828482' + + # Indexed Colors + # + # The indexed colors include all colors from 16 to 256. + # When these are not set, they're filled with sensible defaults. + # + # Example: + # `- { index: 16, color: '#ff00ff' }` + # + #indexed_colors: [] + + ultramar_light: &light + primary: + background: '#fbf3d1' + foreground: '#1b1e25' + + cursor: + cursor: '#1b1e25' + search: + matches: + foreground: '#000000' + background: '#b2872f' + + bar: + background: '#252832' + foreground: '#e5e9f0' + + # Normal colors + normal: + black: '#1d2021' + red: '#b73030' + green: '#7ea95a' + yellow: '#b2872f' + blue: '#3f6e90' + magenta: '#9c6992' + cyan: '#5b8277' + white: '#a1a6b2' + + # Bright colors + bright: + black: '#434c5e' + red: '#c45c5c' + green: '#9eba86' + yellow: '#e2b55a' + blue: '#81acc1' + magenta: '#b48ead' + cyan: '#7fac96' + white: '#e5e9f0' + +colors: *dark # Bell # # The bell is rung every time the BEL control character is received. -#bell: +bell: # Visual Bell Animation # # Animation effect for flashing the screen when the visual bell is rung. @@ -301,10 +342,9 @@ colors: # # When set to `command: None`, no command will be executed. # - # Example: - # command: - # program: notify-send - # args: ["Hello, World!"] + command: + program: mpv + args: ["/home/yaroslav/.local/share/soundalerts/ding.ogg"] # #command: None diff --git a/dotfiles/.config/sway/config b/dotfiles/.config/sway/config index 2485be3..fbdad45 100644 --- a/dotfiles/.config/sway/config +++ b/dotfiles/.config/sway/config @@ -183,6 +183,7 @@ bindsym --to-code { $mod+F2 exec menumako $mod+F3 exec menudisplay $mod+F4 exec menublk + $mod+F10 exec chcolors $mod+F12 exec menutz $mod+r exec $term -t "ranger" -e ranger $mod+t exec --no-startup-id toggletorrent diff --git a/dotfiles/.config/zsh/.zshrc b/dotfiles/.config/zsh/.zshrc index 717a34c..66e7880 100644 --- a/dotfiles/.config/zsh/.zshrc +++ b/dotfiles/.config/zsh/.zshrc @@ -63,5 +63,7 @@ zle -N zle-keymap-select [ -f "$HOME/.config/zsh/shortcuts" ] && . "$HOME/.config/zsh/shortcuts" +[ -f "$HOME/.cache/colorscheme" ] && trap "source $HOME/.cache/colorscheme" DEBUG + [ -f /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ] && . /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh -- cgit v1.2.3