add theme switcher

This commit is contained in:
Thomas
2024-11-08 16:03:46 +01:00
parent 7dfecfe1b4
commit 077b942657
605 changed files with 56186 additions and 12244 deletions
+1
View File
@@ -5,6 +5,7 @@ bind = $mainMod SHIFT, L, exec, hyprlock
bind = ALT, TAB, exec, rofi -show window -theme ~/.config/rofi/window.rasi
bind = , XF86Calculator, exec, gnome-calculator
bind = $mainMod, space, exec, rofi -show drun -theme ~/.config/rofi/launcher.rasi
bind = $mainMod, T, exec, $HOME/.config/hypr/scripts/theme-switcher.sh
binde =, XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
binde =, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bind =, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
+78
View File
@@ -0,0 +1,78 @@
$rosewater = rgb(dc8a78)
$rosewaterAlpha = dc8a78
$flamingo = rgb(dd7878)
$flamingoAlpha = dd7878
$pink = rgb(ea76cb)
$pinkAlpha = ea76cb
$mauve = rgb(8839ef)
$mauveAlpha = 8839ef
$red = rgb(d20f39)
$redAlpha = d20f39
$maroon = rgb(e64553)
$maroonAlpha = e64553
$peach = rgb(fe640b)
$peachAlpha = fe640b
$yellow = rgb(df8e1d)
$yellowAlpha = df8e1d
$green = rgb(40a02b)
$greenAlpha = 40a02b
$teal = rgb(179299)
$tealAlpha = 179299
$sky = rgb(04a5e5)
$skyAlpha = 04a5e5
$sapphire = rgb(209fb5)
$sapphireAlpha = 209fb5
$blue = rgb(1e66f5)
$blueAlpha = 1e66f5
$lavender = rgb(7287fd)
$lavenderAlpha = 7287fd
$text = rgb(4c4f69)
$textAlpha = 4c4f69
$subtext1 = rgb(5c5f77)
$subtext1Alpha = 5c5f77
$subtext0 = rgb(6c6f85)
$subtext0Alpha = 6c6f85
$overlay2 = rgb(7c7f93)
$overlay2Alpha = 7c7f93
$overlay1 = rgb(8c8fa1)
$overlay1Alpha = 8c8fa1
$overlay0 = rgb(9ca0b0)
$overlay0Alpha = 9ca0b0
$surface2 = rgb(acb0be)
$surface2Alpha = acb0be
$surface1 = rgb(bcc0cc)
$surface1Alpha = bcc0cc
$surface0 = rgb(ccd0da)
$surface0Alpha = ccd0da
$base = rgb(eff1f5)
$baseAlpha = eff1f5
$mantle = rgb(e6e9ef)
$mantleAlpha = e6e9ef
$crust = rgb(dce0e8)
$crustAlpha = dce0e8
+2 -2
View File
@@ -15,7 +15,7 @@
# You can split this configuration into multiple files
# Create your files separately and then link them to this file like this:
source = ~/.config/hypr/theme/macchiato.conf
source = ~/.config/hypr/conf.d/theme.conf
################
@@ -119,7 +119,7 @@ decoration {
drop_shadow = true
shadow_range = 4
shadow_render_power = 3
col.shadow = $crust
col.shadow = 0xee1a1a1a
# https://wiki.hyprland.org/Configuring/Variables/#blur
blur {
+1 -1
View File
@@ -1,4 +1,4 @@
source = $HOME/.config/hypr/theme/macchiato.conf
source = $HOME/.config/hypr/conf.d/theme.conf
$accent = $mauve
$accentAlpha = $mauveAlpha
+61
View File
@@ -0,0 +1,61 @@
#!/usr/bin/env zsh
source ~/.zshrc
entries="Macchiato\nLatte"
source='source = ~/.config/hypr/themes/'
selected=$(echo -e $entries|rofi -dmenu $2 -theme ~/.config/rofi/theme.rasi)
case $selected in
Macchiato)
# GTK
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
gsettings set org.gnome.desktop.interface gtk-theme 'catppuccin-macchiato-blue-standard+default'
cp ~/.themes/catppuccin-macchiato-blue-standard+default/gtk-4.0/gtk.css ~/.config/gtk-4.0/gtk.css
cp ~/.themes/catppuccin-macchiato-blue-standard+default/gtk-4.0/gtk-dark.css ~/.config/gtk-4.0/gtk-dark.css
# ROFI
cp ~/.config/rofi/colors/macchiato.rasi ~/.config/rofi/colors/theme.rasi
# HYPRLAND + HYPRLOCK
cp ~/.config/hypr/themes/macchiato.conf ~/.config/hypr/conf.d/theme.conf
# HYPRPANEL
ags -r "useTheme('$HOME/.config/ags/themes/catppuccin_macchiato.json')" > /dev/null
# KITTY + ZSH + NVIM
kitty +kitten themes --reload-in=all Catppuccin-Macchiato
fast-theme 'XDG:catppuccin-macchiato' > /dev/null
sed -i '25s/latte/macchiato/' ~/.config/nvim/init.lua
# BTOP
cp ~/.config/btop/themes/catppuccin_macchiato.theme ~/.config/btop/themes/catppuccin.theme
# Zathura
cp ~/.config/zathura/themes/catppuccin-macchiato ~/.config/zathura/theme
# SPOTIFY
spicetify config color_scheme macchiato && spicetify apply
# OBS
sed -i 's/^Theme=.*/Theme=com.obsproject.Catppuccin.Macchiato/' ~/.config/obs-studio/global.ini
;;
Latte)
# GTK
gsettings set org.gnome.desktop.interface color-scheme 'prefer-light'
gsettings set org.gnome.desktop.interface gtk-theme 'catppuccin-latte-blue-standard+default'
cp ~/.themes/catppuccin-latte-blue-standard+default/gtk-4.0/gtk.css ~/.config/gtk-4.0/gtk.css
cp ~/.themes/catppuccin-latte-blue-standard+default/gtk-4.0/gtk-dark.css ~/.config/gtk-4.0/gtk-dark.css
# ROFI
cp ~/.config/rofi/colors/latte.rasi ~/.config/rofi/colors/theme.rasi
# HYPRLAND + HYPRLOCK
cp ~/.config/hypr/themes/latte.conf ~/.config/hypr/conf.d/theme.conf
# HYPRPANEL
ags -r "useTheme('$HOME/.config/ags/themes/catppuccin_latte.json')" > /dev/null
# KITTY + ZSH + NVIM
kitty +kitten themes --reload-in=all Catppuccin-Latte
fast-theme 'XDG:catppuccin-latte' > /dev/null
sed -i '25s/macchiato/latte/' ~/.config/nvim/init.lua
# BTOP
cp ~/.config/btop/themes/catppuccin_latte.theme ~/.config/btop/themes/catppuccin.theme
# Zathura
cp ~/.config/zathura/themes/catppuccin-latte ~/.config/zathura/theme
# SPOTIFY
spicetify config color_scheme latte && spicetify apply
# OBS
sed -i 's/^Theme=.*/Theme=com.obsproject.Catppuccin.Latte/' ~/.config/obs-studio/global.ini
;;
esac
+78
View File
@@ -0,0 +1,78 @@
$rosewater = rgb(dc8a78)
$rosewaterAlpha = dc8a78
$flamingo = rgb(dd7878)
$flamingoAlpha = dd7878
$pink = rgb(ea76cb)
$pinkAlpha = ea76cb
$mauve = rgb(8839ef)
$mauveAlpha = 8839ef
$red = rgb(d20f39)
$redAlpha = d20f39
$maroon = rgb(e64553)
$maroonAlpha = e64553
$peach = rgb(fe640b)
$peachAlpha = fe640b
$yellow = rgb(df8e1d)
$yellowAlpha = df8e1d
$green = rgb(40a02b)
$greenAlpha = 40a02b
$teal = rgb(179299)
$tealAlpha = 179299
$sky = rgb(04a5e5)
$skyAlpha = 04a5e5
$sapphire = rgb(209fb5)
$sapphireAlpha = 209fb5
$blue = rgb(1e66f5)
$blueAlpha = 1e66f5
$lavender = rgb(7287fd)
$lavenderAlpha = 7287fd
$text = rgb(4c4f69)
$textAlpha = 4c4f69
$subtext1 = rgb(5c5f77)
$subtext1Alpha = 5c5f77
$subtext0 = rgb(6c6f85)
$subtext0Alpha = 6c6f85
$overlay2 = rgb(7c7f93)
$overlay2Alpha = 7c7f93
$overlay1 = rgb(8c8fa1)
$overlay1Alpha = 8c8fa1
$overlay0 = rgb(9ca0b0)
$overlay0Alpha = 9ca0b0
$surface2 = rgb(acb0be)
$surface2Alpha = acb0be
$surface1 = rgb(bcc0cc)
$surface1Alpha = bcc0cc
$surface0 = rgb(ccd0da)
$surface0Alpha = ccd0da
$base = rgb(eff1f5)
$baseAlpha = eff1f5
$mantle = rgb(e6e9ef)
$mantleAlpha = e6e9ef
$crust = rgb(dce0e8)
$crustAlpha = dce0e8
+78
View File
@@ -0,0 +1,78 @@
$rosewater = rgb(f4dbd6)
$rosewaterAlpha = f4dbd6
$flamingo = rgb(f0c6c6)
$flamingoAlpha = f0c6c6
$pink = rgb(f5bde6)
$pinkAlpha = f5bde6
$mauve = rgb(c6a0f6)
$mauveAlpha = c6a0f6
$red = rgb(ed8796)
$redAlpha = ed8796
$maroon = rgb(ee99a0)
$maroonAlpha = ee99a0
$peach = rgb(f5a97f)
$peachAlpha = f5a97f
$yellow = rgb(eed49f)
$yellowAlpha = eed49f
$green = rgb(a6da95)
$greenAlpha = a6da95
$teal = rgb(8bd5ca)
$tealAlpha = 8bd5ca
$sky = rgb(91d7e3)
$skyAlpha = 91d7e3
$sapphire = rgb(7dc4e4)
$sapphireAlpha = 7dc4e4
$blue = rgb(8aadf4)
$blueAlpha = 8aadf4
$lavender = rgb(b7bdf8)
$lavenderAlpha = b7bdf8
$text = rgb(cad3f5)
$textAlpha = cad3f5
$subtext1 = rgb(b8c0e0)
$subtext1Alpha = b8c0e0
$subtext0 = rgb(a5adcb)
$subtext0Alpha = a5adcb
$overlay2 = rgb(939ab7)
$overlay2Alpha = 939ab7
$overlay1 = rgb(8087a2)
$overlay1Alpha = 8087a2
$overlay0 = rgb(6e738d)
$overlay0Alpha = 6e738d
$surface2 = rgb(5b6078)
$surface2Alpha = 5b6078
$surface1 = rgb(494d64)
$surface1Alpha = 494d64
$surface0 = rgb(363a4f)
$surface0Alpha = 363a4f
$base = rgb(24273a)
$baseAlpha = 24273a
$mantle = rgb(1e2030)
$mantleAlpha = 1e2030
$crust = rgb(181926)
$crustAlpha = 181926