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/.local/bin/chcolors | 20 ++++++++++++++++++++ dotfiles/.local/share/soundalerts/ding.ogg | Bin 0 -> 6932 bytes 2 files changed, 20 insertions(+) create mode 100755 dotfiles/.local/bin/chcolors create mode 100644 dotfiles/.local/share/soundalerts/ding.ogg (limited to 'dotfiles/.local') 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 Binary files /dev/null and b/dotfiles/.local/share/soundalerts/ding.ogg differ -- cgit v1.2.3