mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-04 18:48:52 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 50abd5aa30 | |||
| 082e27fb0a | |||
| e05e68f5d1 | |||
| 074c169e3c |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -10,6 +10,7 @@ config/cheat/cheatsheets/tldr/*
|
|||||||
config/git/credentials
|
config/git/credentials
|
||||||
config/npm/npmrc
|
config/npm/npmrc
|
||||||
config/zsh/.zcompdump
|
config/zsh/.zcompdump
|
||||||
|
config/alacritty/theme-active.toml
|
||||||
ssh/local.d/*
|
ssh/local.d/*
|
||||||
!ssh/local.d/.gitkeep
|
!ssh/local.d/.gitkeep
|
||||||
!.gitkeep
|
!.gitkeep
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
import = [
|
import = [
|
||||||
"~/.dotfiles/config/alacritty/theme-active.toml"
|
# Default to night if the copied one doesn't exist.
|
||||||
|
"~/.dotfiles/config/alacritty/theme-night.toml",
|
||||||
|
"~/.config/alacritty/theme-active.toml"
|
||||||
]
|
]
|
||||||
|
|
||||||
[env]
|
[env]
|
||||||
|
|||||||
@@ -1,40 +0,0 @@
|
|||||||
# TokyoNight Alacritty Colors: Day
|
|
||||||
# Default colors
|
|
||||||
[colors.primary]
|
|
||||||
background = '#e1e2e7'
|
|
||||||
foreground = '#3760bf'
|
|
||||||
|
|
||||||
#[colors.cursor]
|
|
||||||
#cursor = '#3760bf'
|
|
||||||
#text = '#e1e2e7'
|
|
||||||
|
|
||||||
# Normal colors
|
|
||||||
[colors.normal]
|
|
||||||
black = '#e9e9ed'
|
|
||||||
red = '#f52a65'
|
|
||||||
green = '#587539'
|
|
||||||
yellow = '#8c6c3e'
|
|
||||||
blue = '#2e7de9'
|
|
||||||
magenta = '#9854f1'
|
|
||||||
cyan = '#007197'
|
|
||||||
white = '#6172b0'
|
|
||||||
|
|
||||||
# Bright colors
|
|
||||||
[colors.bright]
|
|
||||||
black = '#a1a6c5'
|
|
||||||
red = '#f52a65'
|
|
||||||
green = '#587539'
|
|
||||||
yellow = '#8c6c3e'
|
|
||||||
blue = '#2e7de9'
|
|
||||||
magenta = '#9854f1'
|
|
||||||
cyan = '#007197'
|
|
||||||
white = '#3760bf'
|
|
||||||
|
|
||||||
# Indexed Colors
|
|
||||||
[[colors.indexed_colors]]
|
|
||||||
index = 16
|
|
||||||
color = '#b15c00'
|
|
||||||
|
|
||||||
[[colors.indexed_colors]]
|
|
||||||
index = 17
|
|
||||||
color = '#c64343'
|
|
||||||
@@ -34,6 +34,18 @@ have()
|
|||||||
bkt -- which "$1" >&/dev/null
|
bkt -- which "$1" >&/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# function to run dark-notify and change alacritty theme
|
||||||
|
# it uses flock to prevent running multiple instances
|
||||||
|
# install flock with `brew install flock` on macOS
|
||||||
|
function darknotify-alacritty {
|
||||||
|
have flock && [[ -f /tmp/dark-notify-alacritty.lock ]] && return
|
||||||
|
have dark-notify && {
|
||||||
|
# true is used to prevent the command show it was backgrounded
|
||||||
|
true & flock /tmp/dark-notify-alacritty.lock dark-notify -c "$HOME/.dotfiles/local/bin/x-change-alacritty-theme" &
|
||||||
|
}
|
||||||
|
}
|
||||||
|
darknotify-alacritty
|
||||||
|
|
||||||
brew_installed()
|
brew_installed()
|
||||||
{
|
{
|
||||||
bkt -- brew list
|
bkt -- brew list
|
||||||
|
|||||||
Submodule config/nvim-kickstart updated: 35893d9d32...122c6938c1
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# msgr / Messanger helper
|
# msgr / Messenger helper
|
||||||
# Copyright (c) 2023 Ismo Vuorinen. All Rights Reserved.
|
# Copyright (c) 2023 Ismo Vuorinen. All Rights Reserved.
|
||||||
# MIT License, https://opensource.org/license/mit/
|
# MIT License, https://opensource.org/license/mit/
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# Adapted from https://gist.github.com/xqm32/17777d035930d622d0ff7530bfab61fd
|
# Adapted from https://gist.github.com/xqm32/17777d035930d622d0ff7530bfab61fd
|
||||||
#
|
#
|
||||||
|
|
||||||
A_DIR="$HOME/.dotfiles/config/alacritty"
|
A_DIR="$HOME/.config/alacritty"
|
||||||
|
|
||||||
set_alacritty_theme() {
|
set_alacritty_theme() {
|
||||||
cp -f "$A_DIR/theme-$1.toml" "$A_DIR/theme-active.toml"
|
cp -f "$A_DIR/theme-$1.toml" "$A_DIR/theme-active.toml"
|
||||||
Reference in New Issue
Block a user