colorscheme related changes

This commit is contained in:
Tiago Sousa 2024-02-23 21:12:18 +00:00
parent 6fa91bd36e
commit 5ef8b7bba8
Signed by: tiago
SSH key fingerprint: SHA256:odOD9vln9U7qNe1R8o3UCbE3jkQCkr5/q5mgd5hwua0
21 changed files with 34 additions and 241 deletions

View file

@ -1,3 +1,5 @@
#include ".Xresources.d/catppuccin-macchiato" #include ".Xresources.d/catppuccin-dark"
! #include ".Xresources.d/gruvbox-dark" !#include ".Xresources.d/gruvbox-dark"
!#include ".Xresources.d/gruvbox-light" !#include ".Xresources.d/gruvbox-light"
st.alpha: 1

View file

@ -11,7 +11,11 @@ return {
priority = 1000, priority = 1000,
config = function() config = function()
require("catppuccin").setup({ require("catppuccin").setup({
flavour = "macchiato", -- latte, frappe, macchiato, mocha -- flavour = "macchiato", -- latte, frappe, macchiato, mocha
background = {
dark = "macchiato",
light = "mocha",
},
transparent_background = true, transparent_background = true,
term_colors = false, term_colors = false,
integrations = { integrations = {
@ -28,18 +32,15 @@ return {
}, },
{ {
"ellisonleao/gruvbox.nvim", "sainnhe/gruvbox-material",
priority = 1000, priority = 1000,
config = function() config = function()
require("gruvbox").setup({ local contrast = "hard"
italic = { if background == "light" then
strings = false, contrast = "soft"
comments = true, end
operators = false, vim.g.gruvbox_material_background = contrast
folds = true, vim.g.gruvbox_material_foreground = "material"
},
transparent_mode = true,
})
SetColor() SetColor()
end end
}, },

View file

@ -1,16 +0,0 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #222D32FF;
background-alt: #29353BFF;
foreground: #B8C2C6FF;
selected: #00BCD4FF;
active: #21FF90FF;
urgent: #FF4B60FF;
}

View file

@ -1,16 +0,0 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #2F343FFF;
background-alt: #383C4AFF;
foreground: #BAC5D0FF;
selected: #5294E2FF;
active: #98C379FF;
urgent: #E06B74FF;
}

View file

@ -1,16 +0,0 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #000000FF;
background-alt: #101010FF;
foreground: #FFFFFFFF;
selected: #62AEEFFF;
active: #98C379FF;
urgent: #E06B74FF;
}

View file

@ -1,16 +0,0 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #000B1EFF;
background-alt: #0A1528FF;
foreground: #0ABDC6FF;
selected: #0ABDC6FF;
active: #00FF00FF;
urgent: #FF0000FF;
}

View file

@ -1,16 +0,0 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #1E1F29FF;
background-alt: #282A36FF;
foreground: #FFFFFFFF;
selected: #BD93F9FF;
active: #50FA7BFF;
urgent: #FF5555FF;
}

View file

@ -1,16 +0,0 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #323D43FF;
background-alt: #3C474DFF;
foreground: #DAD1BEFF;
selected: #7FBBB3FF;
active: #A7C080FF;
urgent: #E67E80FF;
}

View file

@ -1,16 +0,0 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #1D1F28FF;
background-alt: #282A36FF;
foreground: #FDFDFDFF;
selected: #79E6F3FF;
active: #5ADECDFF;
urgent: #F37F97FF;
}

View file

@ -1,16 +0,0 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #021B21FF;
background-alt: #0C252BFF;
foreground: #F2F1B9FF;
selected: #44B5B1FF;
active: #7CBF9EFF;
urgent: #C2454EFF;
}

View file

@ -1,16 +0,0 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #2E3440FF;
background-alt: #383E4AFF;
foreground: #E5E9F0FF;
selected: #81A1C1FF;
active: #A3BE8CFF;
urgent: #BF616AFF;
}

View file

@ -1,16 +0,0 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #1E2127FF;
background-alt: #282B31FF;
foreground: #FFFFFFFF;
selected: #61AFEFFF;
active: #98C379FF;
urgent: #E06C75FF;
}

View file

@ -1,16 +0,0 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #F1F1F1FF;
background-alt: #E0E0E0FF;
foreground: #252525FF;
selected: #008EC4FF;
active: #10A778FF;
urgent: #C30771FF;
}

View file

@ -1,16 +0,0 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #002B36FF;
background-alt: #073642FF;
foreground: #EEE8D5FF;
selected: #268BD2FF;
active: #859900FF;
urgent: #DC322FFF;
}

View file

@ -1,16 +0,0 @@
/**
*
* Author : Levi Lacoss (fishyfishfish55)
* Github : @fishyfishfish55
*
* Colors
**/
* {
background: #15161EFF;
background-alt: #1A1B26FF;
foreground: #C0CAF5FF;
selected: #33467CFF;
active: #414868FF;
urgent: #F7768EFF;
}

View file

@ -1,16 +0,0 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #F5E7DEFF;
background-alt: #EBDCD2FF;
foreground: #34302DFF;
selected: #D97742FF;
active: #BF8F60FF;
urgent: #B23636FF;
}

View file

@ -98,7 +98,7 @@ configuration {
} }
/*****----- Global Properties -----*****/ /*****----- Global Properties -----*****/
@import "~/.config/rofi/colors/catppuccin.rasi" @import "~/.config/rofi/colors/catppuccin-dark.rasi"
* { * {
border-colour: var(selected); border-colour: var(selected);

View file

@ -1,14 +1,28 @@
#!/bin/bash #!/bin/bash
# defaults # defaults
theme="catppuccin" theme_options=(
background="dark" "catppuccin-dark"
"gruvbox-material-dark"
"catppuccin-light"
"gruvbox-material-light"
)
# rofi script to get what theme to use
chosen=$(printf '%s\n' "${theme_options[@]}" | rofi -dmenu -p "Choose a theme")
theme=$(echo "${chosen}" | cut -d- -f1)
background=$(echo "${chosen}" | cut -d- -f2)
# change rofi theme # change rofi theme
sed -i "s/\(@import \".config\/rofi\/colors\/\).*/\1${theme}.rasi\"/" ~/.config/rofi/config.rasi sed -i "s/\(@import \".config\/rofi\/colors\/\).*/\1${theme}-${background}.rasi\"/" ~/.config/rofi/config.rasi
# change neovim theme # change neovim theme
sed -i "s/\(local color = \).*/\1\"${theme}\"/" ~/.config/nvim/lua/tsousa/plugins/colorscheme.lua sed -i "s/\(local color = \).*/\1\"${theme}\"/" ~/.config/nvim/lua/tsousa/plugins/colorscheme.lua
sed -i "s/\(local background = \).*/\1\"${background}\"/" ~/.config/nvim/lua/tsousa/plugins/colorscheme.lua sed -i "s/\(local background = \).*/\1\"${background}\"/" ~/.config/nvim/lua/tsousa/plugins/colorscheme.lua
# change xresources # change xresources
xresources_themes=".Xresources.d"
sed -i "s/#include \".*\"/#include \"~\/${xresources_themes}\/${theme}-${background}\"/" ~/.Xresources