aboutsummaryrefslogtreecommitdiff
path: root/dotfiles
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles')
-rw-r--r--dotfiles/.config/alacritty/alacritty.yml256
-rw-r--r--dotfiles/.config/sway/config1
-rw-r--r--dotfiles/.config/zsh/.zshrc2
-rwxr-xr-xdotfiles/.local/bin/chcolors20
-rw-r--r--dotfiles/.local/share/soundalerts/ding.oggbin0 -> 6932 bytes
5 files changed, 171 insertions, 108 deletions
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
diff --git a/dotfiles/.local/bin/chcolors b/dotfiles/.local/bin/chcolors
new file mode 100755
index 0000000..7732267
--- /dev/null
+++ b/dotfiles/.local/bin/chcolors
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+COLORSCHEME="dark"
+
+if [ -f $HOME/.cache/colorscheme ]; then
+ source $HOME/.cache/colorscheme
+fi
+
+case $COLORSCHEME in
+ dark)
+ COLORSCHEME="light" ;;
+ *)
+ COLORSCHEME="dark" ;;
+esac
+
+sed -i --follow-symlinks \
+ "s/^colors:.*/colors: \*$COLORSCHEME/g" \
+ $HOME/.config/alacritty/alacritty.yml
+
+echo "export COLORSCHEME=$COLORSCHEME" > $HOME/.cache/colorscheme
diff --git a/dotfiles/.local/share/soundalerts/ding.ogg b/dotfiles/.local/share/soundalerts/ding.ogg
new file mode 100644
index 0000000..ca3bd93
--- /dev/null
+++ b/dotfiles/.local/share/soundalerts/ding.ogg
Binary files differ