solarized light/dark

This commit is contained in:
Nemo 2021-01-18 18:28:46 +05:30
parent 3f3c743eec
commit 3bbd401d02
5 changed files with 20 additions and 3 deletions

View File

@ -73,13 +73,19 @@ composer-unlink() {
# 3. TODO
export ALACRITTY_COLOR_DIR=/home/nemo/projects/personal/dotfiles/files/themes/.config/alacritty/themes/colors
# Default setup is light
export BAT_THEME="Solarized (light)"
function dark() {
export BAT_THEME="Solarized (dark)"
alacritty-colorscheme -C "$ALACRITTY_COLOR_DIR" -a base16-solarized-dark.yml
xfconf-query -c xsettings -p /Net/ThemeName -s "NumixSolarizedDarkViolet"
# sed -i '11s$.*$"color_scheme": "Packages/Solarized Color Scheme/Solarized (dark).sublime-color-scheme",$' /home/nemo/.config/sublime-text-3/Packages/User/Preferences.sublime-settings
}
function light() {
export BAT_THEME="Solarized (light)"
xfconf-query -c xsettings -p /Net/ThemeName -s "NumixSolarizedLightGreen"
alacritty-colorscheme -C "$ALACRITTY_COLOR_DIR" -a base16-solarized-light.yml
# sed -i '11s$.*$"color_scheme": "Packages/Solarized Color Scheme/Solarized (light).sublime-color-scheme",$' /home/nemo/.config/sublime-text-3/Packages/User/Preferences.sublime-settings
}

View File

@ -12,3 +12,7 @@ export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin
export npm_config_prefix=~/.node_modules
export GOPATH="/home/nemo/projects/go"
PATH="/usr/sbin:/usr/games:$PATH"
# Make sure qt5-styleplugins is installed for this to work
# https://wiki.archlinux.org/index.php/Uniform_look_for_Qt_and_GTK_applications#Theme_engines
export QT_QPA_PLATFORMTHEME=gtk2

View File

@ -1,5 +1,9 @@
# Set the theme to "TwoDark"
--theme="OneHalfDark"
# This is `bat`s configuration file. Each line either contains a comment or
# a command-line option that you want to pass to `bat` by default. You can
# run `bat --help` to get a list of all possible configuration options.
# The theme is set by the light/dark functions
# in bashrc
# Show line numbers, Git modifications and file header (but no grid)
# --style="changes,header"
@ -15,4 +19,4 @@
--map-syntax h:cpp
# Use "gitignore" highlighting for ".ignore" files
--map-syntax .ignore:.gitignore
--map-syntax .ignore:.gitignore

View File

@ -76,3 +76,4 @@
useUnicodeRuler = false
[init]
templateDir = ~/.githooks/templates
defaultBranch = main

View File

@ -15,6 +15,8 @@ set $WS4 4:
exec --no-startup-id nitrogen --restore
exec --no-startup-id redshift-gtk
exec yubikey-touch-detector --libnotify
# This ensures that GTK changes are applied immediately
exec xfsettingsd --replace --no-daemon
# Launch the VPN app, but turn it off
exec riseup-vpn-git --start-vpn off