From 9fd8314ee18dea1e101b7a11e522e7e3792ce1f1 Mon Sep 17 00:00:00 2001 From: afonsofrancof Date: Tue, 13 Feb 2024 02:31:12 +0000 Subject: [PATCH] [MAJOR] Added theme change script to raycast and fix a bunch of theme related stuff --- .config/alacritty/alacritty.toml | 6 +- .../catppuccin_frappe.toml} | 0 .../alacritty/themes/catppuccin_latte.toml | 75 +++++++++++ .../themes/gruvbox_material_dark.toml | 28 ++++ .../themes/gruvbox_material_light.toml | 28 ++++ .config/kitty/.jukit/.jukit_info.json | 1 - .config/nvim/lazy-lock.json | 1 + .config/nvim/lua/core/theme.lua | 43 +----- .config/nvim/lua/core/variables.lua | 3 + .../nvim/lua/plugins/.jukit/.jukit_info.json | 1 - .config/nvim/lua/plugins/bufferline.lua | 3 +- .config/nvim/lua/plugins/lazy.lua | 45 ++++--- .config/nvim/lua/plugins/lualine.lua | 2 +- .config/nvim/lua/plugins/themery.lua | 125 ------------------ .config/nvim/lua/winbar.lua | 21 ++- .config/tmux/24-bit-color.sh | 99 -------------- .config/tmux/tmux_general.conf | 5 +- .config/tmux/tmux_plugins.conf | 26 ++-- .config/zsh/replacements.zsh | 2 - ...highlighting.zsh => catppuccin_frappe.zsh} | 0 ...-highlighting.zsh => catppuccin_latte.zsh} | 0 ...ccin_macchiato-zsh-syntax-highlighting.zsh | 74 ----------- ...tppuccin_mocha-zsh-syntax-highlighting.zsh | 74 ----------- .config/zsh/themes/gruvbox_dark.zsh | 74 +++++++++++ .config/zsh/themes/gruvbox_light.zsh | 74 +++++++++++ .local/bin/change-theme.sh | 76 +++++++++++ .local/bin/open-in-iina.sh | 13 ++ .local/bin/rofi-change-theme | 34 ----- 28 files changed, 443 insertions(+), 490 deletions(-) rename .config/alacritty/{catppuccin-latte.toml => themes/catppuccin_frappe.toml} (100%) create mode 100644 .config/alacritty/themes/catppuccin_latte.toml create mode 100644 .config/alacritty/themes/gruvbox_material_dark.toml create mode 100644 .config/alacritty/themes/gruvbox_material_light.toml delete mode 100644 .config/kitty/.jukit/.jukit_info.json delete mode 100644 .config/nvim/lua/plugins/.jukit/.jukit_info.json delete mode 100644 .config/nvim/lua/plugins/themery.lua delete mode 100644 .config/tmux/24-bit-color.sh rename .config/zsh/themes/{catppuccin_frappe-zsh-syntax-highlighting.zsh => catppuccin_frappe.zsh} (100%) rename .config/zsh/themes/{catppuccin_latte-zsh-syntax-highlighting.zsh => catppuccin_latte.zsh} (100%) delete mode 100644 .config/zsh/themes/catppuccin_macchiato-zsh-syntax-highlighting.zsh delete mode 100644 .config/zsh/themes/catppuccin_mocha-zsh-syntax-highlighting.zsh create mode 100644 .config/zsh/themes/gruvbox_dark.zsh create mode 100644 .config/zsh/themes/gruvbox_light.zsh create mode 100755 .local/bin/change-theme.sh create mode 100755 .local/bin/open-in-iina.sh delete mode 100755 .local/bin/rofi-change-theme diff --git a/.config/alacritty/alacritty.toml b/.config/alacritty/alacritty.toml index 8dbb976..0422d9f 100644 --- a/.config/alacritty/alacritty.toml +++ b/.config/alacritty/alacritty.toml @@ -1,6 +1,4 @@ -import = [ -"~/.config/alacritty/catppuccin-latte.toml" -] +import = ["~/.config/alacritty/themes/gruvbox_material_dark.toml"] [env] TERM = "xterm-256color" @@ -10,7 +8,7 @@ size = 14.0 [font.normal] family = "FiraCode Nerd Font Mono" -style = "Light" +style = "Retina" [window] opacity = 0.95 diff --git a/.config/alacritty/catppuccin-latte.toml b/.config/alacritty/themes/catppuccin_frappe.toml similarity index 100% rename from .config/alacritty/catppuccin-latte.toml rename to .config/alacritty/themes/catppuccin_frappe.toml diff --git a/.config/alacritty/themes/catppuccin_latte.toml b/.config/alacritty/themes/catppuccin_latte.toml new file mode 100644 index 0000000..2255dfd --- /dev/null +++ b/.config/alacritty/themes/catppuccin_latte.toml @@ -0,0 +1,75 @@ +[colors.primary] +background = "#EFF1F5" +foreground = "#4C4F69" +dim_foreground = "#4C4F69" +bright_foreground = "#4C4F69" + +[colors.cursor] +text = "#EFF1F5" +cursor = "#DC8A78" + +[colors.vi_mode_cursor] +text = "#EFF1F5" +cursor = "#7287FD" + +[colors.search.matches] +foreground = "#EFF1F5" +background = "#6C6F85" + +[colors.search.focused_match] +foreground = "#EFF1F5" +background = "#40A02B" + +[colors.footer_bar] +foreground = "#EFF1F5" +background = "#6C6F85" + +[colors.hints.start] +foreground = "#EFF1F5" +background = "#DF8E1D" + +[colors.hints.end] +foreground = "#EFF1F5" +background = "#6C6F85" + +[colors.selection] +text = "#EFF1F5" +background = "#DC8A78" + +[colors.normal] +black = "#5C5F77" +red = "#D20F39" +green = "#40A02B" +yellow = "#DF8E1D" +blue = "#1E66F5" +magenta = "#EA76CB" +cyan = "#179299" +white = "#ACB0BE" + +[colors.bright] +black = "#6C6F85" +red = "#D20F39" +green = "#40A02B" +yellow = "#DF8E1D" +blue = "#1E66F5" +magenta = "#EA76CB" +cyan = "#179299" +white = "#BCC0CC" + +[colors.dim] +black = "#5C5F77" +red = "#D20F39" +green = "#40A02B" +yellow = "#DF8E1D" +blue = "#1E66F5" +magenta = "#EA76CB" +cyan = "#179299" +white = "#ACB0BE" + +[[colors.indexed_colors]] +index = 16 +color = "#FE640B" + +[[colors.indexed_colors]] +index = 17 +color = "#DC8A78" diff --git a/.config/alacritty/themes/gruvbox_material_dark.toml b/.config/alacritty/themes/gruvbox_material_dark.toml new file mode 100644 index 0000000..1bbbfe8 --- /dev/null +++ b/.config/alacritty/themes/gruvbox_material_dark.toml @@ -0,0 +1,28 @@ +# Colors (Gruvbox Material Medium Dark) + +# Default colors +[colors.primary] +background = '#282828' +foreground = '#d4be98' + +# Normal colors +[colors.normal] +black = '#3c3836' +red = '#ea6962' +green = '#a9b665' +yellow = '#d8a657' +blue = '#7daea3' +magenta = '#d3869b' +cyan = '#89b482' +white = '#d4be98' + +# Bright colors (same as normal colors) +[colors.bright] +black = '#3c3836' +red = '#ea6962' +green = '#a9b665' +yellow = '#d8a657' +blue = '#7daea3' +magenta = '#d3869b' +cyan = '#89b482' +white = '#d4be98' diff --git a/.config/alacritty/themes/gruvbox_material_light.toml b/.config/alacritty/themes/gruvbox_material_light.toml new file mode 100644 index 0000000..d43ac16 --- /dev/null +++ b/.config/alacritty/themes/gruvbox_material_light.toml @@ -0,0 +1,28 @@ +# Colors (Gruvbox Material Medium Light) + +# Default colors +[colors.primary] +background = '#fbf1c7' +foreground = '#654735' + +# Normal colors +[colors.normal] +black = '#654735' +red = '#c14a4a' +green = '#6c782e' +yellow = '#b47109' +blue = '#45707a' +magenta = '#945e80' +cyan = '#4c7a5d' +white = '#eee0b7' + +# Bright colors (same as normal colors) +[colors.bright] +black = '#654735' +red = '#c14a4a' +green = '#6c782e' +yellow = '#b47109' +blue = '#45707a' +magenta = '#945e80' +cyan = '#4c7a5d' +white = '#eee0b7' diff --git a/.config/kitty/.jukit/.jukit_info.json b/.config/kitty/.jukit/.jukit_info.json deleted file mode 100644 index c49d4e0..0000000 --- a/.config/kitty/.jukit/.jukit_info.json +++ /dev/null @@ -1 +0,0 @@ -{"terminal": "tmux"} \ No newline at end of file diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index cf98b89..efa58eb 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -15,6 +15,7 @@ "dressing.nvim": { "branch": "master", "commit": "94b0d24483d56f3777ee0c8dc51675f21709318c" }, "fidget.nvim": { "branch": "main", "commit": "a4a7edfea37e557dbff5509ee374ffb57051bba9" }, "friendly-snippets": { "branch": "main", "commit": "53d3df271d031c405255e99410628c26a8f0d2b0" }, + "gruvbox-material": { "branch": "master", "commit": "b17fe51688b76e2ccf118e5f76f3978b9a8c503e" }, "gruvbox.nvim": { "branch": "main", "commit": "4176b0b720db0c90ab4030e5c1b4893faf41fd51" }, "impatient.nvim": { "branch": "main", "commit": "47302af74be7b79f002773011f0d8e85679a7618" }, "lazy.nvim": { "branch": "main", "commit": "96584866b9c5e998cbae300594d0ccfd0c464627" }, diff --git a/.config/nvim/lua/core/theme.lua b/.config/nvim/lua/core/theme.lua index 6d1553f..4b81f67 100644 --- a/.config/nvim/lua/core/theme.lua +++ b/.config/nvim/lua/core/theme.lua @@ -1,39 +1,4 @@ --- Themery block --- This block will be replaced by Themery. -require("catppuccin").setup({ -flavour = "latte", -- latte, frappe, macchiato, mocha -styles = { -comments = { "italic" }, -conditionals = { "italic" }, -}, -integrations = { -cmp = true, -treesitter = true, -treesitter_context = true, -fidget = true, -telescope = true, -leap = true, -mason = true, -native_lsp = { -enabled = true, -virtual_text = { -errors = { "italic" }, -hints = { "italic" }, -warnings = { "italic" }, -information = { "italic" }, -}, -underlines = { -errors = { "underline" }, -hints = { "underline" }, -warnings = { "underline" }, -information = { "underline" }, -}, -}, -}, -}) -vim.opt.background = "light" - - -vim.cmd("colorscheme catppuccin-latte") -vim.g.theme_id = 4 --- end themery block +vim.g.gruvbox_material_better_performance = 1 +vim.g.gruvbox_material_background = 'medium' +vim.opt.background = 'dark' +vim.cmd('colorscheme gruvbox-material') diff --git a/.config/nvim/lua/core/variables.lua b/.config/nvim/lua/core/variables.lua index 591553d..83e4810 100644 --- a/.config/nvim/lua/core/variables.lua +++ b/.config/nvim/lua/core/variables.lua @@ -27,6 +27,9 @@ vim.opt.expandtab = true --quickfix keybinds vim.keymap.set("n", "", "cnextzz") vim.keymap.set("n", "", "cprevzz") +--buffer keybinds +vim.keymap.set("n", "", "bp") +vim.keymap.set("n", "", "bn") --Undo dir vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir" vim.opt.undofile = true diff --git a/.config/nvim/lua/plugins/.jukit/.jukit_info.json b/.config/nvim/lua/plugins/.jukit/.jukit_info.json deleted file mode 100644 index c49d4e0..0000000 --- a/.config/nvim/lua/plugins/.jukit/.jukit_info.json +++ /dev/null @@ -1 +0,0 @@ -{"terminal": "tmux"} \ No newline at end of file diff --git a/.config/nvim/lua/plugins/bufferline.lua b/.config/nvim/lua/plugins/bufferline.lua index ea0c1d5..15c2d86 100644 --- a/.config/nvim/lua/plugins/bufferline.lua +++ b/.config/nvim/lua/plugins/bufferline.lua @@ -71,6 +71,5 @@ require("bufferline").setup({ return true end end, - }, - highlights = require("catppuccin.groups.integrations.bufferline").get() + } }) diff --git a/.config/nvim/lua/plugins/lazy.lua b/.config/nvim/lua/plugins/lazy.lua index 7c1f71f..e55c0ee 100644 --- a/.config/nvim/lua/plugins/lazy.lua +++ b/.config/nvim/lua/plugins/lazy.lua @@ -5,22 +5,28 @@ lazy.setup({ 'lewis6991/impatient.nvim', -------------------------------------------THEMES------------------------------------------ - { - 'zaldih/themery.nvim', - config = function() - require('plugins.themery') - end - }, { 'catppuccin/nvim', name = "catppuccin", lazy = false, priority = 1000, + config = function() + require("catppuccin").setup({ + integrations = { + cmp = true, + treesitter = true, + treesitter_context = true, + fidget = true, + telescope = true, + leap = true, + mason = true, + }, + }) + end }, - { "ellisonleao/gruvbox.nvim", priority = 1000 }, + 'sainnhe/gruvbox-material', - 'rose-pine/neovim', -------------------------------------------------------MFP--------------------------------- { 'susliko/tla.nvim', @@ -53,7 +59,8 @@ lazy.setup({ 'luk400/vim-jukit', config = function() require 'plugins.jukit' - end + end, + ft = { 'python', 'json' } }, --org mode { @@ -68,8 +75,8 @@ lazy.setup({ -- Setup orgmode require('orgmode').setup({ - org_agenda_files = '~/orgfiles/**/*', - org_default_notes_file = '~/orgfiles/refile.org', + org_agenda_files = '~/org/**/*', + org_default_notes_file = '~/org/refile.org', }) end, }, @@ -363,14 +370,14 @@ lazy.setup({ "runoshun/vim-alloy", --Tabs - { - 'akinsho/bufferline.nvim', - version = 'v3.*', - dependencies = 'nvim-tree/nvim-web-devicons', - config = function() - require("plugins.bufferline") - end - }, + --{ + -- 'akinsho/bufferline.nvim', + -- version = 'v3.*', + -- dependencies = 'nvim-tree/nvim-web-devicons', + -- config = function() + -- require("plugins.bufferline") + -- end + --}, --does so much { diff --git a/.config/nvim/lua/plugins/lualine.lua b/.config/nvim/lua/plugins/lualine.lua index f842f56..da876dd 100644 --- a/.config/nvim/lua/plugins/lualine.lua +++ b/.config/nvim/lua/plugins/lualine.lua @@ -1,7 +1,7 @@ require('lualine').setup { options = { icons_enabled = true, - theme = 'catppuccin', + theme = 'auto', component_separators = { left = '', right = ''}, section_separators = { left = '', right = ''}, disabled_filetypes = { diff --git a/.config/nvim/lua/plugins/themery.lua b/.config/nvim/lua/plugins/themery.lua deleted file mode 100644 index 5bcd52a..0000000 --- a/.config/nvim/lua/plugins/themery.lua +++ /dev/null @@ -1,125 +0,0 @@ -require("themery").setup({ - themes = { { - name = "Gruvbox dark", - colorscheme = "gruvbox", - before = [[ - vim.opt.background = "dark" - ]], - }, - { - name = "Gruvbox light", - colorscheme = "gruvbox", - before = [[ - vim.opt.background = "light" - ]] - }, - { - name = "Catppuccin Frappe", - colorscheme = "catppuccin-frappe", - before = [[ - require("catppuccin").setup({ - flavour = "frappe", -- latte, frappe, macchiato, mocha - styles = { - comments = { "italic" }, - conditionals = { "italic" }, - }, - integrations = { - cmp = true, - treesitter = true, - treesitter_context = true, - fidget = true, - telescope = true, - leap = true, - mason = true, - native_lsp = { - enabled = true, - virtual_text = { - errors = { "italic" }, - hints = { "italic" }, - warnings = { "italic" }, - information = { "italic" }, - }, - underlines = { - errors = { "underline" }, - hints = { "underline" }, - warnings = { "underline" }, - information = { "underline" }, - }, - }, - }, - }) - vim.opt.background = "dark" - ]] - }, - { - name = "Catppuccin Latte", - colorscheme = "catppuccin-latte", - before = [[ - require("catppuccin").setup({ - flavour = "latte", -- latte, frappe, macchiato, mocha - styles = { - comments = { "italic" }, - conditionals = { "italic" }, - }, - integrations = { - cmp = true, - treesitter = true, - treesitter_context = true, - fidget = true, - telescope = true, - leap = true, - mason = true, - native_lsp = { - enabled = true, - virtual_text = { - errors = { "italic" }, - hints = { "italic" }, - warnings = { "italic" }, - information = { "italic" }, - }, - underlines = { - errors = { "underline" }, - hints = { "underline" }, - warnings = { "underline" }, - information = { "underline" }, - }, - }, - }, - }) - vim.opt.background = "light" - ]] - }, - { - name = "Rosé Pine", - colorscheme = "rose-pine", - before = [[ - require('rose-pine').setup({ - variant = "main" - }) - vim.opt.background = "dark" - ]] - }, - { - name = "Rosé Pine Moon", - colorscheme = "rose-pine", - before = [[ - require('rose-pine').setup({ - variant = "moon" - }) - vim.opt.background = "dark" - ]] - }, - { - name = "Rosé Pine Dawn", - colorscheme = "rose-pine", - before = [[ - require('rose-pine').setup({ - variant = "dawn" - }) - vim.opt.background = "light" - ]] - }, - }, - themeConfigFile = "~/.config/nvim/lua/core/theme.lua", -- Described below - livePreview = true, -- Apply theme while browsing. Default to true. -}) diff --git a/.config/nvim/lua/winbar.lua b/.config/nvim/lua/winbar.lua index 243670d..9130fcc 100644 --- a/.config/nvim/lua/winbar.lua +++ b/.config/nvim/lua/winbar.lua @@ -41,6 +41,21 @@ function M.render() -- Remove leading slash. path = path:gsub('^/', '') + -- Get the background color of the Normal highlight group + local normal_bg_color = vim.api.nvim_get_hl_by_name('Normal', true).background + -- Get the foreground color of the Normal highlight group + local normal_fg_color = vim.api.nvim_get_hl_by_name('Normal', true).foreground + + -- Convert the RGB color to a hex string + local bg_hex_color = string.format('#%06x', normal_bg_color) + -- Convert the RGB color to a hex string + local fg_hex_color = string.format('#%06x', normal_fg_color) + + -- Define the Winbar highlight group with the same background color + vim.api.nvim_command('highlight Winbar guibg=' .. bg_hex_color) + -- Define the Winbar highlight group with the same foreground color + vim.api.nvim_command('highlight Winbar guifg=' .. fg_hex_color) + return table.concat { ' ', prefix, @@ -58,10 +73,10 @@ vim.api.nvim_create_autocmd('BufWinEnter', { desc = 'Attach winbar', callback = function(args) if - not vim.api.nvim_win_get_config(0).zindex -- Not a floating window - and vim.bo[args.buf].buftype == '' -- Normal buffer + not vim.api.nvim_win_get_config(0).zindex -- Not a floating window + and vim.bo[args.buf].buftype == '' -- Normal buffer and vim.api.nvim_buf_get_name(args.buf) ~= '' -- Has a file name - and not vim.wo[0].diff -- Not in diff mode + and not vim.wo[0].diff -- Not in diff mode then vim.wo.winbar = "%{%v:lua.require'winbar'.render()%}" end diff --git a/.config/tmux/24-bit-color.sh b/.config/tmux/24-bit-color.sh deleted file mode 100644 index 81db6af..0000000 --- a/.config/tmux/24-bit-color.sh +++ /dev/null @@ -1,99 +0,0 @@ -#!/bin/bash -# -# This file echoes a bunch of 24-bit color codes -# to the terminal to demonstrate its functionality. -# The foreground escape sequence is ^[38;2;;;m -# The background escape sequence is ^[48;2;;;m -# range from 0 to 255 inclusive. -# The escape sequence ^[0m returns output to default - -setBackgroundColor() -{ - echo -en "\x1b[48;2;$1;$2;$3""m" -} - -resetOutput() -{ - echo -en "\x1b[0m\n" -} - -# Gives a color $1/255 % along HSV -# Who knows what happens when $1 is outside 0-255 -# Echoes "$red $green $blue" where -# $red $green and $blue are integers -# ranging between 0 and 255 inclusive -rainbowColor() -{ - let h=$1/43 - let f=$1-43*$h - let t=$f*255/43 - let q=255-t - - if [ $h -eq 0 ] - then - echo "255 $t 0" - elif [ $h -eq 1 ] - then - echo "$q 255 0" - elif [ $h -eq 2 ] - then - echo "0 255 $t" - elif [ $h -eq 3 ] - then - echo "0 $q 255" - elif [ $h -eq 4 ] - then - echo "$t 0 255" - elif [ $h -eq 5 ] - then - echo "255 0 $q" - else - # execution should never reach here - echo "0 0 0" - fi -} - -for i in `seq 0 127`; do - setBackgroundColor $i 0 0 - echo -en " " -done -resetOutput -for i in `seq 255 128`; do - setBackgroundColor $i 0 0 - echo -en " " -done -resetOutput - -for i in `seq 0 127`; do - setBackgroundColor 0 $i 0 - echo -n " " -done -resetOutput -for i in `seq 255 128`; do - setBackgroundColor 0 $i 0 - echo -n " " -done -resetOutput - -for i in `seq 0 127`; do - setBackgroundColor 0 0 $i - echo -n " " -done -resetOutput -for i in `seq 255 128`; do - setBackgroundColor 0 0 $i - echo -n " " -done -resetOutput - -for i in `seq 0 127`; do - setBackgroundColor `rainbowColor $i` - echo -n " " -done -resetOutput -for i in `seq 255 128`; do - setBackgroundColor `rainbowColor $i` - echo -n " " -done -resetOutput - diff --git a/.config/tmux/tmux_general.conf b/.config/tmux/tmux_general.conf index 8c20e63..67fff10 100644 --- a/.config/tmux/tmux_general.conf +++ b/.config/tmux/tmux_general.conf @@ -12,5 +12,6 @@ set -g set-clipboard on set -g status-position top set -g renumber-windows on setw -g mode-keys vi -set -g pane-active-border-style 'fg=magenta,bg=default' -set -g pane-border-style 'fg=brightblack,bg=default' +set -g status-style 'bg=#181926 fg=#cad3f5' +set -g status-right "" +set -g status-left-length 20 diff --git a/.config/tmux/tmux_plugins.conf b/.config/tmux/tmux_plugins.conf index 5d831b6..c280ef2 100644 --- a/.config/tmux/tmux_plugins.conf +++ b/.config/tmux/tmux_plugins.conf @@ -3,17 +3,23 @@ # List of plugins set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' -set -g @plugin 'catppuccin/tmux' -set -g @plugin 'tmux-plugins/tmux-resurrect' -set -g @plugin 'tmux-plugins/tmux-continuum' -set -g @plugin 'tomhey/tmux-remote-sessions' +set -g @plugin 'niksingh710/minimal-tmux-status' +#set -g @plugin 'catppuccin/tmux' +#set -g @plugin 'tmux-plugins/tmux-resurrect' +#set -g @plugin 'tmux-plugins/tmux-continuum' +#set -g @plugin 'tomhey/tmux-remote-sessions' # Plugin settings -set -g @catppuccin_flavour 'latte' -set -g @catppuccin_window_tabs_enabled on -set -g @resurrect-strategy-nvim 'session' -set -g @resurrect-capture-pane-contents 'on' +set -g @minimal-tmux-justify "left" +set -g @minimal-tmux-indicator-str "" +set -g @minimal-tmux-indicator false +set -g @minimal-tmux-status "top" +set -g @minimal-tmux-bg "#698DDA" +#set -g @catppuccin_flavour 'latte' +#set -g @catppuccin_window_tabs_enabled on +#set -g @resurrect-strategy-nvim 'session' +#set -g @resurrect-capture-pane-contents 'on' #set -g @continuum-restore 'on' -set -g @continuum-save-interval '10' -set -g @continuum-boot 'on' +#set -g @continuum-save-interval '10' +#set -g @continuum-boot 'on' diff --git a/.config/zsh/replacements.zsh b/.config/zsh/replacements.zsh index 2ccd003..8eadaa1 100644 --- a/.config/zsh/replacements.zsh +++ b/.config/zsh/replacements.zsh @@ -15,5 +15,3 @@ vim() { alias find="fd" alias df="duf" alias lg="lazygit" - - diff --git a/.config/zsh/themes/catppuccin_frappe-zsh-syntax-highlighting.zsh b/.config/zsh/themes/catppuccin_frappe.zsh similarity index 100% rename from .config/zsh/themes/catppuccin_frappe-zsh-syntax-highlighting.zsh rename to .config/zsh/themes/catppuccin_frappe.zsh diff --git a/.config/zsh/themes/catppuccin_latte-zsh-syntax-highlighting.zsh b/.config/zsh/themes/catppuccin_latte.zsh similarity index 100% rename from .config/zsh/themes/catppuccin_latte-zsh-syntax-highlighting.zsh rename to .config/zsh/themes/catppuccin_latte.zsh diff --git a/.config/zsh/themes/catppuccin_macchiato-zsh-syntax-highlighting.zsh b/.config/zsh/themes/catppuccin_macchiato-zsh-syntax-highlighting.zsh deleted file mode 100644 index de6f512..0000000 --- a/.config/zsh/themes/catppuccin_macchiato-zsh-syntax-highlighting.zsh +++ /dev/null @@ -1,74 +0,0 @@ -# Catppuccin Macchiato Theme (for zsh-syntax-highlighting) -# -# Paste this files contents inside your ~/.zshrc before you activate zsh-syntax-highlighting -ZSH_HIGHLIGHT_HIGHLIGHTERS=(main cursor) -typeset -gA ZSH_HIGHLIGHT_STYLES - -# Main highlighter styling: https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters/main.md -# -## General -### Diffs -### Markup -## Classes -## Comments -ZSH_HIGHLIGHT_STYLES[comment]='fg=#5b6078' -## Constants -## Entitites -## Functions/methods -ZSH_HIGHLIGHT_STYLES[alias]='fg=#a6da95' -ZSH_HIGHLIGHT_STYLES[suffix-alias]='fg=#a6da95' -ZSH_HIGHLIGHT_STYLES[global-alias]='fg=#a6da95' -ZSH_HIGHLIGHT_STYLES[function]='fg=#a6da95' -ZSH_HIGHLIGHT_STYLES[command]='fg=#a6da95' -ZSH_HIGHLIGHT_STYLES[precommand]='fg=#a6da95,italic' -ZSH_HIGHLIGHT_STYLES[autodirectory]='fg=#f5a97f,italic' -ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=#f5a97f' -ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=#f5a97f' -ZSH_HIGHLIGHT_STYLES[back-quoted-argument]='fg=#c6a0f6' -## Keywords -## Built ins -ZSH_HIGHLIGHT_STYLES[builtin]='fg=#a6da95' -ZSH_HIGHLIGHT_STYLES[reserved-word]='fg=#a6da95' -ZSH_HIGHLIGHT_STYLES[hashed-command]='fg=#a6da95' -## Punctuation -ZSH_HIGHLIGHT_STYLES[commandseparator]='fg=#ed8796' -ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter]='fg=#cad3f5' -ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter-unquoted]='fg=#cad3f5' -ZSH_HIGHLIGHT_STYLES[process-substitution-delimiter]='fg=#cad3f5' -ZSH_HIGHLIGHT_STYLES[back-quoted-argument-delimiter]='fg=#ed8796' -ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]='fg=#ed8796' -ZSH_HIGHLIGHT_STYLES[back-dollar-quoted-argument]='fg=#ed8796' -## Serializable / Configuration Languages -## Storage -## Strings -ZSH_HIGHLIGHT_STYLES[command-substitution-quoted]='fg=#eed49f' -ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter-quoted]='fg=#eed49f' -ZSH_HIGHLIGHT_STYLES[single-quoted-argument]='fg=#eed49f' -ZSH_HIGHLIGHT_STYLES[single-quoted-argument-unclosed]='fg=#ee99a0' -ZSH_HIGHLIGHT_STYLES[double-quoted-argument]='fg=#eed49f' -ZSH_HIGHLIGHT_STYLES[double-quoted-argument-unclosed]='fg=#ee99a0' -ZSH_HIGHLIGHT_STYLES[rc-quote]='fg=#eed49f' -## Variables -ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]='fg=#cad3f5' -ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument-unclosed]='fg=#ee99a0' -ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]='fg=#cad3f5' -ZSH_HIGHLIGHT_STYLES[assign]='fg=#cad3f5' -ZSH_HIGHLIGHT_STYLES[named-fd]='fg=#cad3f5' -ZSH_HIGHLIGHT_STYLES[numeric-fd]='fg=#cad3f5' -## No category relevant in spec -ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=#ee99a0' -ZSH_HIGHLIGHT_STYLES[path]='fg=#cad3f5,underline' -ZSH_HIGHLIGHT_STYLES[path_pathseparator]='fg=#ed8796,underline' -ZSH_HIGHLIGHT_STYLES[path_prefix]='fg=#cad3f5,underline' -ZSH_HIGHLIGHT_STYLES[path_prefix_pathseparator]='fg=#ed8796,underline' -ZSH_HIGHLIGHT_STYLES[globbing]='fg=#cad3f5' -ZSH_HIGHLIGHT_STYLES[history-expansion]='fg=#c6a0f6' -#ZSH_HIGHLIGHT_STYLES[command-substitution]='fg=?' -#ZSH_HIGHLIGHT_STYLES[command-substitution-unquoted]='fg=?' -#ZSH_HIGHLIGHT_STYLES[process-substitution]='fg=?' -#ZSH_HIGHLIGHT_STYLES[arithmetic-expansion]='fg=?' -ZSH_HIGHLIGHT_STYLES[back-quoted-argument-unclosed]='fg=#ee99a0' -ZSH_HIGHLIGHT_STYLES[redirection]='fg=#cad3f5' -ZSH_HIGHLIGHT_STYLES[arg0]='fg=#cad3f5' -ZSH_HIGHLIGHT_STYLES[default]='fg=#cad3f5' -ZSH_HIGHLIGHT_STYLES[cursor]='fg=#cad3f5' diff --git a/.config/zsh/themes/catppuccin_mocha-zsh-syntax-highlighting.zsh b/.config/zsh/themes/catppuccin_mocha-zsh-syntax-highlighting.zsh deleted file mode 100644 index 3958790..0000000 --- a/.config/zsh/themes/catppuccin_mocha-zsh-syntax-highlighting.zsh +++ /dev/null @@ -1,74 +0,0 @@ -# Catppuccin Mocha Theme (for zsh-syntax-highlighting) -# -# Paste this files contents inside your ~/.zshrc before you activate zsh-syntax-highlighting -ZSH_HIGHLIGHT_HIGHLIGHTERS=(main cursor) -typeset -gA ZSH_HIGHLIGHT_STYLES - -# Main highlighter styling: https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters/main.md -# -## General -### Diffs -### Markup -## Classes -## Comments -ZSH_HIGHLIGHT_STYLES[comment]='fg=#585b70' -## Constants -## Entitites -## Functions/methods -ZSH_HIGHLIGHT_STYLES[alias]='fg=#a6e3a1' -ZSH_HIGHLIGHT_STYLES[suffix-alias]='fg=#a6e3a1' -ZSH_HIGHLIGHT_STYLES[global-alias]='fg=#a6e3a1' -ZSH_HIGHLIGHT_STYLES[function]='fg=#a6e3a1' -ZSH_HIGHLIGHT_STYLES[command]='fg=#a6e3a1' -ZSH_HIGHLIGHT_STYLES[precommand]='fg=#a6e3a1,italic' -ZSH_HIGHLIGHT_STYLES[autodirectory]='fg=#fab387,italic' -ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=#fab387' -ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=#fab387' -ZSH_HIGHLIGHT_STYLES[back-quoted-argument]='fg=#cba6f7' -## Keywords -## Built ins -ZSH_HIGHLIGHT_STYLES[builtin]='fg=#a6e3a1' -ZSH_HIGHLIGHT_STYLES[reserved-word]='fg=#a6e3a1' -ZSH_HIGHLIGHT_STYLES[hashed-command]='fg=#a6e3a1' -## Punctuation -ZSH_HIGHLIGHT_STYLES[commandseparator]='fg=#f38ba8' -ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter]='fg=#cdd6f4' -ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter-unquoted]='fg=#cdd6f4' -ZSH_HIGHLIGHT_STYLES[process-substitution-delimiter]='fg=#cdd6f4' -ZSH_HIGHLIGHT_STYLES[back-quoted-argument-delimiter]='fg=#f38ba8' -ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]='fg=#f38ba8' -ZSH_HIGHLIGHT_STYLES[back-dollar-quoted-argument]='fg=#f38ba8' -## Serializable / Configuration Languages -## Storage -## Strings -ZSH_HIGHLIGHT_STYLES[command-substitution-quoted]='fg=#f9e2af' -ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter-quoted]='fg=#f9e2af' -ZSH_HIGHLIGHT_STYLES[single-quoted-argument]='fg=#f9e2af' -ZSH_HIGHLIGHT_STYLES[single-quoted-argument-unclosed]='fg=#e64553' -ZSH_HIGHLIGHT_STYLES[double-quoted-argument]='fg=#f9e2af' -ZSH_HIGHLIGHT_STYLES[double-quoted-argument-unclosed]='fg=#e64553' -ZSH_HIGHLIGHT_STYLES[rc-quote]='fg=#f9e2af' -## Variables -ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]='fg=#cdd6f4' -ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument-unclosed]='fg=#e64553' -ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]='fg=#cdd6f4' -ZSH_HIGHLIGHT_STYLES[assign]='fg=#cdd6f4' -ZSH_HIGHLIGHT_STYLES[named-fd]='fg=#cdd6f4' -ZSH_HIGHLIGHT_STYLES[numeric-fd]='fg=#cdd6f4' -## No category relevant in spec -ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=#e64553' -ZSH_HIGHLIGHT_STYLES[path]='fg=#cdd6f4,underline' -ZSH_HIGHLIGHT_STYLES[path_pathseparator]='fg=#f38ba8,underline' -ZSH_HIGHLIGHT_STYLES[path_prefix]='fg=#cdd6f4,underline' -ZSH_HIGHLIGHT_STYLES[path_prefix_pathseparator]='fg=#f38ba8,underline' -ZSH_HIGHLIGHT_STYLES[globbing]='fg=#cdd6f4' -ZSH_HIGHLIGHT_STYLES[history-expansion]='fg=#cba6f7' -#ZSH_HIGHLIGHT_STYLES[command-substitution]='fg=?' -#ZSH_HIGHLIGHT_STYLES[command-substitution-unquoted]='fg=?' -#ZSH_HIGHLIGHT_STYLES[process-substitution]='fg=?' -#ZSH_HIGHLIGHT_STYLES[arithmetic-expansion]='fg=?' -ZSH_HIGHLIGHT_STYLES[back-quoted-argument-unclosed]='fg=#e64553' -ZSH_HIGHLIGHT_STYLES[redirection]='fg=#cdd6f4' -ZSH_HIGHLIGHT_STYLES[arg0]='fg=#cdd6f4' -ZSH_HIGHLIGHT_STYLES[default]='fg=#cdd6f4' -ZSH_HIGHLIGHT_STYLES[cursor]='fg=#cdd6f4' diff --git a/.config/zsh/themes/gruvbox_dark.zsh b/.config/zsh/themes/gruvbox_dark.zsh new file mode 100644 index 0000000..8610971 --- /dev/null +++ b/.config/zsh/themes/gruvbox_dark.zsh @@ -0,0 +1,74 @@ +# Gruvbox Material Dark Medium Theme (for zsh-syntax-highlighting) +# +# Paste this file's contents inside your ~/.zshrc before you activate zsh-syntax-highlighting +ZSH_HIGHLIGHT_HIGHLIGHTERS=(main cursor) +typeset -gA ZSH_HIGHLIGHT_STYLES + +# Main highlighter styling: https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters/main.md +# +## General +### Diffs +### Markup +## Classes +## Comments +ZSH_HIGHLIGHT_STYLES[comment]='fg=#928374' +## Constants +## Entitites +## Functions/methods +ZSH_HIGHLIGHT_STYLES[alias]='fg=#b8bb26' +ZSH_HIGHLIGHT_STYLES[suffix-alias]='fg=#b8bb26' +ZSH_HIGHLIGHT_STYLES[global-alias]='fg=#b8bb26' +ZSH_HIGHLIGHT_STYLES[function]='fg=#b8bb26' +ZSH_HIGHLIGHT_STYLES[command]='fg=#b8bb26' +ZSH_HIGHLIGHT_STYLES[precommand]='fg=#b8bb26,italic' +ZSH_HIGHLIGHT_STYLES[autodirectory]='fg=#fe8019,italic' +ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=#fe8019' +ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=#fe8019' +ZSH_HIGHLIGHT_STYLES[back-quoted-argument]='fg=#d3869b' +## Keywords +## Built ins +ZSH_HIGHLIGHT_STYLES[builtin]='fg=#b8bb26' +ZSH_HIGHLIGHT_STYLES[reserved-word]='fg=#b8bb26' +ZSH_HIGHLIGHT_STYLES[hashed-command]='fg=#b8bb26' +## Punctuation +ZSH_HIGHLIGHT_STYLES[commandseparator]='fg=#fabd2f' +ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter]='fg=#83a598' +ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter-unquoted]='fg=#83a598' +ZSH_HIGHLIGHT_STYLES[process-substitution-delimiter]='fg=#83a598' +ZSH_HIGHLIGHT_STYLES[back-quoted-argument-delimiter]='fg=#ebdbb2' +ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]='fg=#ebdbb2' +ZSH_HIGHLIGHT_STYLES[back-dollar-quoted-argument]='fg=#ebdbb2' +## Serializable / Configuration Languages +## Storage +## Strings +ZSH_HIGHLIGHT_STYLES[command-substitution-quoted]='fg=#fabd2f' +ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter-quoted]='fg=#fabd2f' +ZSH_HIGHLIGHT_STYLES[single-quoted-argument]='fg=#83a598' +ZSH_HIGHLIGHT_STYLES[single-quoted-argument-unclosed]='fg=#fb4934' +ZSH_HIGHLIGHT_STYLES[double-quoted-argument]='fg=#83a598' +ZSH_HIGHLIGHT_STYLES[double-quoted-argument-unclosed]='fg=#fb4934' +ZSH_HIGHLIGHT_STYLES[rc-quote]='fg=#83a598' +## Variables +ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]='fg=#83a598' +ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument-unclosed]='fg=#fb4934' +ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]='fg=#83a598' +ZSH_HIGHLIGHT_STYLES[assign]='fg=#83a598' +ZSH_HIGHLIGHT_STYLES[named-fd]='fg=#83a598' +ZSH_HIGHLIGHT_STYLES[numeric-fd]='fg=#83a598' +## No category relevant in spec +ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=#fb4934' +ZSH_HIGHLIGHT_STYLES[path]='fg=#83a598,underline' +ZSH_HIGHLIGHT_STYLES[path_pathseparator]='fg=#fabd2f,underline' +ZSH_HIGHLIGHT_STYLES[path_prefix]='fg=#83a598,underline' +ZSH_HIGHLIGHT_STYLES[path_prefix_pathseparator]='fg=#fabd2f,underline' +ZSH_HIGHLIGHT_STYLES[globbing]='fg=#83a598' +ZSH_HIGHLIGHT_STYLES[history-expansion]='fg=#d3869b' +#ZSH_HIGHLIGHT_STYLES[command-substitution]='fg=?' +#ZSH_HIGHLIGHT_STYLES[command-substitution-unquoted]='fg=?' +#ZSH_HIGHLIGHT_STYLES[process-substitution]='fg=?' +#ZSH_HIGHLIGHT_STYLES[arithmetic-expansion]='fg=?' +ZSH_HIGHLIGHT_STYLES[back-quoted-argument-unclosed]='fg=#fb4934' +ZSH_HIGHLIGHT_STYLES[redirection]='fg=#83a598' +ZSH_HIGHLIGHT_STYLES[arg0]='fg=#83a598' +ZSH_HIGHLIGHT_STYLES[default]='fg=#83a598' +ZSH_HIGHLIGHT_STYLES[cursor]='fg=#83a598' diff --git a/.config/zsh/themes/gruvbox_light.zsh b/.config/zsh/themes/gruvbox_light.zsh new file mode 100644 index 0000000..bc2d666 --- /dev/null +++ b/.config/zsh/themes/gruvbox_light.zsh @@ -0,0 +1,74 @@ +# Gruvbox Light Theme (for zsh-syntax-highlighting) +# +# Paste this file's contents inside your ~/.zshrc before you activate zsh-syntax-highlighting +ZSH_HIGHLIGHT_HIGHLIGHTERS=(main cursor) +typeset -gA ZSH_HIGHLIGHT_STYLES + +# Main highlighter styling: https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters/main.md +# +## General +### Diffs +### Markup +## Classes +## Comments +ZSH_HIGHLIGHT_STYLES[comment]='fg=#928374' +## Constants +## Entitites +## Functions/methods +ZSH_HIGHLIGHT_STYLES[alias]='fg=#8ec07c' +ZSH_HIGHLIGHT_STYLES[suffix-alias]='fg=#8ec07c' +ZSH_HIGHLIGHT_STYLES[global-alias]='fg=#8ec07c' +ZSH_HIGHLIGHT_STYLES[function]='fg=#8ec07c' +ZSH_HIGHLIGHT_STYLES[command]='fg=#8ec07c' +ZSH_HIGHLIGHT_STYLES[precommand]='fg=#8ec07c,italic' +ZSH_HIGHLIGHT_STYLES[autodirectory]='fg=#fe8019,italic' +ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=#fe8019' +ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=#fe8019' +ZSH_HIGHLIGHT_STYLES[back-quoted-argument]='fg=#d3869b' +## Keywords +## Built ins +ZSH_HIGHLIGHT_STYLES[builtin]='fg=#8ec07c' +ZSH_HIGHLIGHT_STYLES[reserved-word]='fg=#8ec07c' +ZSH_HIGHLIGHT_STYLES[hashed-command]='fg=#8ec07c' +## Punctuation +ZSH_HIGHLIGHT_STYLES[commandseparator]='fg=#fabd2f' +ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter]='fg=#83a598' +ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter-unquoted]='fg=#83a598' +ZSH_HIGHLIGHT_STYLES[process-substitution-delimiter]='fg=#83a598' +ZSH_HIGHLIGHT_STYLES[back-quoted-argument-delimiter]='fg=#ebdbb2' +ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]='fg=#ebdbb2' +ZSH_HIGHLIGHT_STYLES[back-dollar-quoted-argument]='fg=#ebdbb2' +## Serializable / Configuration Languages +## Storage +## Strings +ZSH_HIGHLIGHT_STYLES[command-substitution-quoted]='fg=#fabd2f' +ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter-quoted]='fg=#fabd2f' +ZSH_HIGHLIGHT_STYLES[single-quoted-argument]='fg=#83a598' +ZSH_HIGHLIGHT_STYLES[single-quoted-argument-unclosed]='fg=#fb4934' +ZSH_HIGHLIGHT_STYLES[double-quoted-argument]='fg=#83a598' +ZSH_HIGHLIGHT_STYLES[double-quoted-argument-unclosed]='fg=#fb4934' +ZSH_HIGHLIGHT_STYLES[rc-quote]='fg=#83a598' +## Variables +ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]='fg=#83a598' +ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument-unclosed]='fg=#fb4934' +ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]='fg=#83a598' +ZSH_HIGHLIGHT_STYLES[assign]='fg=#83a598' +ZSH_HIGHLIGHT_STYLES[named-fd]='fg=#83a598' +ZSH_HIGHLIGHT_STYLES[numeric-fd]='fg=#83a598' +## No category relevant in spec +ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=#fb4934' +ZSH_HIGHLIGHT_STYLES[path]='fg=#83a598,underline' +ZSH_HIGHLIGHT_STYLES[path_pathseparator]='fg=#fabd2f,underline' +ZSH_HIGHLIGHT_STYLES[path_prefix]='fg=#83a598,underline' +ZSH_HIGHLIGHT_STYLES[path_prefix_pathseparator]='fg=#fabd2f,underline' +ZSH_HIGHLIGHT_STYLES[globbing]='fg=#83a598' +ZSH_HIGHLIGHT_STYLES[history-expansion]='fg=#d3869b' +#ZSH_HIGHLIGHT_STYLES[command-substitution]='fg=?' +#ZSH_HIGHLIGHT_STYLES[command-substitution-unquoted]='fg=?' +#ZSH_HIGHLIGHT_STYLES[process-substitution]='fg=?' +#ZSH_HIGHLIGHT_STYLES[arithmetic-expansion]='fg=?' +ZSH_HIGHLIGHT_STYLES[back-quoted-argument-unclosed]='fg=#fb4934' +ZSH_HIGHLIGHT_STYLES[redirection]='fg=#83a598' +ZSH_HIGHLIGHT_STYLES[arg0]='fg=#83a598' +ZSH_HIGHLIGHT_STYLES[default]='fg=#83a598' +ZSH_HIGHLIGHT_STYLES[cursor]='fg=#83a598' diff --git a/.local/bin/change-theme.sh b/.local/bin/change-theme.sh new file mode 100755 index 0000000..eca22e6 --- /dev/null +++ b/.local/bin/change-theme.sh @@ -0,0 +1,76 @@ +#!/bin/bash + +# Required parameters: +# @raycast.schemaVersion 1 +# @raycast.title Theme Switcher +# @raycast.mode silent +# @raycast.argument1 { "type": "dropdown","placeholder":"Theme", "data": [{"title": "Catppuccin Frappe", "value": "catppuccin-frappe"},{"title": "Catppuccin Latte", "value": "catppuccin-latte"},{"title": "Gruvbox Material Dark", "value": "gruvbox-material-dark"},{"title": "Gruvbox Material Light", "value": "gruvbox-material-light"}]} +# + +alacritty_theme_name="" +zsh_theme_name="" + +case $1 in + "catppuccin-latte") + alacritty_theme_name="catppuccin_latte" + zsh_theme_name="catppuccin_latte" + + set +e + #Clear nvim theme file + > ~/.config/nvim/lua/core/theme.lua + echo "vim.cmd('colorscheme catppuccin-latte')" >> ~/.config/nvim/lua/core/theme.lua + nvim --server /tmp/nvim.pipe --remote-send ':colorscheme catppuccin-latte' + set -e + ;; + + "catppuccin-frappe") + alacritty_theme_name="catppuccin_frappe" + zsh_theme_name="catppuccin_frappe" + + set +e + #Clear nvim theme file + > ~/.config/nvim/lua/core/theme.lua + nvim --server /tmp/nvim.pipe --remote-send ':colorscheme catppuccin-frappe' + echo "vim.cmd('colorscheme catppuccin-frappe')" >> ~/.config/nvim/lua/core/theme.lua + set -e + ;; + + "gruvbox-material-dark") + alacritty_theme_name="gruvbox_material_dark" + zsh_theme_name="gruvbox_dark" + + set +e + #Clear nvim theme file + > ~/.config/nvim/lua/core/theme.lua + nvim --server /tmp/nvim.pipe --remote-send ':lua vim.g.gruvbox_material_better_performance = 1' + echo "vim.g.gruvbox_material_better_performance = 1" >> ~/.config/nvim/lua/core/theme.lua + nvim --server /tmp/nvim.pipe --remote-send ':lua vim.g.gruvbox_material_background = "medium"' + echo "vim.g.gruvbox_material_background = 'medium'" >> ~/.config/nvim/lua/core/theme.lua + nvim --server /tmp/nvim.pipe --remote-send ':lua vim.opt.background = "dark"' + echo "vim.opt.background = 'dark'" >> ~/.config/nvim/lua/core/theme.lua + nvim --server /tmp/nvim.pipe --remote-send ':colorscheme gruvbox-material' + echo "vim.cmd('colorscheme gruvbox-material')" >> ~/.config/nvim/lua/core/theme.lua + set -e + ;; + + "gruvbox-material-light") + alacritty_theme_name="gruvbox_material_light" + zsh_theme_name="gruvbox_light" + + set +e + #Clear nvim theme file + > ~/.config/nvim/lua/core/theme.lua + nvim --server /tmp/nvim.pipe --remote-send ':lua vim.g.gruvbox_material_better_performance = 1' + echo "vim.g.gruvbox_material_better_performance = 1" >> ~/.config/nvim/lua/core/theme.lua + nvim --server /tmp/nvim.pipe --remote-send ':lua vim.g.gruvbox_material_background = "soft"' + echo "vim.g.gruvbox_material_background = 'soft'" >> ~/.config/nvim/lua/core/theme.lua + nvim --server /tmp/nvim.pipe --remote-send ':lua vim.opt.background = "light"' + echo "vim.opt.background = 'light'" >> ~/.config/nvim/lua/core/theme.lua + nvim --server /tmp/nvim.pipe --remote-send ':colorscheme gruvbox-material' + echo "vim.cmd('colorscheme gruvbox-material')" >> ~/.config/nvim/lua/core/theme.lua + set -e + ;; +esac + +sed -i '' -e "s|import = \[\"~/.config/alacritty/themes/.*\"\]|import = [\"~/.config/alacritty/themes/${alacritty_theme_name}.toml\"]|g" ~/.config/alacritty/alacritty.toml +sed -i '' -e "s|source \$HOME/.config/zsh/themes/.*zsh|source \$HOME/.config/zsh/themes/${zsh_theme_name}.zsh|g" ~/.zshrc diff --git a/.local/bin/open-in-iina.sh b/.local/bin/open-in-iina.sh new file mode 100755 index 0000000..5a105bf --- /dev/null +++ b/.local/bin/open-in-iina.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# Required parameters: +# @raycast.schemaVersion 1 +# @raycast.title IINA +# @raycast.mode silent + +# Optional parameters: +# @raycast.icon /Applications/IINA.app/Contents/Resources/AppIcon.icns +# @raycast.packageName Open urls in IINA +# @raycast.argument1 { "type": "text", "placeholder": "url..." } + +open ${1// /%20} -a IINA diff --git a/.local/bin/rofi-change-theme b/.local/bin/rofi-change-theme deleted file mode 100755 index de60dd1..0000000 --- a/.local/bin/rofi-change-theme +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash - -# Define a list of themes -themes="latte\nfrappe" - -# Display theme options in Rofi -selected_theme=$(echo -e "${themes[@]}" | rofi -dmenu -p "Select a theme:") - -case $selected_theme in - "latte") - # Change to Latte theme - #kitty - kitty +kitten themes --reload-in=all catppuccin-latte - sed -i 's/flavour = ".*"/flavour = "latte"/' "$HOME"/.config/nvim/lua/plugins/catppuccin.lua - nvim --server /tmp/nvim.pipe --remote-send ':colorscheme catppuccin-latte' - sed -i 's/set -g @catppuccin_flavour .*/set -g @catppuccin_flavour '\''latte'\''/' "$HOME"/.config/tmux/tmux.conf - fish -c "echo \"Y\" | fish_config theme save \"Catppuccin Latte\"" - ;; - "frappe") - # Change to Frappe theme - #kitty - kitty +kitten themes --reload-in=all catppuccin-frappe - sed -i 's/flavour = ".*"/flavour = "frappe"/' "$HOME"/.config/nvim/lua/plugins/catppuccin.lua - nvim --server /tmp/nvim.pipe --remote-send ':colorscheme catppuccin-frappe' - sed -i 's/set -g @catppuccin_flavour .*/set -g @catppuccin_flavour '\''frappe'\''/' "$HOME"/.config/tmux/tmux.conf - fish -c "echo \"Y\" | fish_config theme save \"Catppuccin Frappe\"" - ;; - *) - # Handle an invalid selection or cancel - echo "Invalid selection or canceled." - ;; -esac - -tmux source-file "$HOME/.config/tmux/tmux.conf"