mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Compare commits
1 Commits
nvim-auto-
...
hey-defaul
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
920e85d97b |
11
bin/omarchy-webapp-handler-hey
Executable file
11
bin/omarchy-webapp-handler-hey
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
url="$1"
|
||||||
|
web_url="https://app.hey.com"
|
||||||
|
|
||||||
|
# Handle mailto: URLs
|
||||||
|
if [[ $url =~ ^mailto: ]]; then
|
||||||
|
email=$(echo "$url" | sed 's/mailto://')
|
||||||
|
web_url="https://app.hey.com/messages/new?to=$email"
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec omarchy-launch-webapp "$web_url"
|
||||||
@@ -1,56 +0,0 @@
|
|||||||
return {
|
|
||||||
-- Load all theme plugins but don't apply them
|
|
||||||
-- This ensures all colorschemes are available for hot-reloading
|
|
||||||
{
|
|
||||||
"ribru17/bamboo.nvim",
|
|
||||||
lazy = true,
|
|
||||||
priority = 1000,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"catppuccin/nvim",
|
|
||||||
name = "catppuccin",
|
|
||||||
lazy = true,
|
|
||||||
priority = 1000,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sainnhe/everforest",
|
|
||||||
lazy = true,
|
|
||||||
priority = 1000,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ellisonleao/gruvbox.nvim",
|
|
||||||
lazy = true,
|
|
||||||
priority = 1000,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rebelot/kanagawa.nvim",
|
|
||||||
lazy = true,
|
|
||||||
priority = 1000,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"tahayvr/matteblack.nvim",
|
|
||||||
lazy = true,
|
|
||||||
priority = 1000,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"loctvl842/monokai-pro.nvim",
|
|
||||||
lazy = true,
|
|
||||||
priority = 1000,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"shaunsingh/nord.nvim",
|
|
||||||
lazy = true,
|
|
||||||
priority = 1000,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rose-pine/neovim",
|
|
||||||
name = "rose-pine",
|
|
||||||
lazy = true,
|
|
||||||
priority = 1000,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"folke/tokyonight.nvim",
|
|
||||||
lazy = true,
|
|
||||||
priority = 1000,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
return {
|
|
||||||
{
|
|
||||||
name = "theme-hotreload",
|
|
||||||
dir = vim.fn.stdpath("config"),
|
|
||||||
lazy = false,
|
|
||||||
priority = 1000,
|
|
||||||
config = function()
|
|
||||||
local transparency_file = vim.fn.stdpath("config") .. "/plugin/after/transparency.lua"
|
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd("User", {
|
|
||||||
pattern = "LazyReload",
|
|
||||||
callback = function()
|
|
||||||
package.loaded["plugins.theme"] = nil
|
|
||||||
|
|
||||||
vim.schedule(function()
|
|
||||||
local ok, theme_spec = pcall(require, "plugins.theme")
|
|
||||||
if not ok then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
for _, spec in ipairs(theme_spec) do
|
|
||||||
if spec[1] == "LazyVim/LazyVim" and spec.opts and spec.opts.colorscheme then
|
|
||||||
local colorscheme = spec.opts.colorscheme
|
|
||||||
|
|
||||||
require("lazy.core.loader").colorscheme(colorscheme)
|
|
||||||
|
|
||||||
vim.defer_fn(function()
|
|
||||||
pcall(vim.cmd.colorscheme, colorscheme)
|
|
||||||
|
|
||||||
if vim.fn.filereadable(transparency_file) == 1 then
|
|
||||||
vim.defer_fn(function()
|
|
||||||
vim.cmd.source(transparency_file)
|
|
||||||
end, 5)
|
|
||||||
end
|
|
||||||
end, 5)
|
|
||||||
|
|
||||||
break
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
8
config/nvim/lua/plugins/theme.lua
Normal file
8
config/nvim/lua/plugins/theme.lua
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
return {
|
||||||
|
{
|
||||||
|
"LazyVim/LazyVim",
|
||||||
|
opts = {
|
||||||
|
colorscheme = "tokyonight",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -33,3 +33,6 @@ xdg-mime default mpv.desktop video/x-ms-asf
|
|||||||
xdg-mime default mpv.desktop video/x-ogm+ogg
|
xdg-mime default mpv.desktop video/x-ogm+ogg
|
||||||
xdg-mime default mpv.desktop video/x-theora+ogg
|
xdg-mime default mpv.desktop video/x-theora+ogg
|
||||||
xdg-mime default mpv.desktop application/ogg
|
xdg-mime default mpv.desktop application/ogg
|
||||||
|
|
||||||
|
# Use Hey for mailto: links
|
||||||
|
xdg-mime default HEY.desktop x-scheme-handler/mailto
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
omarchy-webapp-install "HEY" https://app.hey.com HEY.png
|
omarchy-webapp-install "HEY" https://app.hey.com HEY.png "omarchy-webapp-handler-hey %u" "x-scheme-handler/mailto"
|
||||||
omarchy-webapp-install "Basecamp" https://launchpad.37signals.com Basecamp.png
|
omarchy-webapp-install "Basecamp" https://launchpad.37signals.com Basecamp.png
|
||||||
omarchy-webapp-install "WhatsApp" https://web.whatsapp.com/ WhatsApp.png
|
omarchy-webapp-install "WhatsApp" https://web.whatsapp.com/ WhatsApp.png
|
||||||
omarchy-webapp-install "Google Photos" https://photos.google.com/ "Google Photos.png"
|
omarchy-webapp-install "Google Photos" https://photos.google.com/ "Google Photos.png"
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
echo "Add live themeing to neovim"
|
|
||||||
|
|
||||||
cp -f $OMARCHY_PATH/config/nvim/lua/plugins/all-themes.lua ~/.config/nvim/lua/plugins/
|
|
||||||
cp -f $OMARCHY_PATH/config/nvim/lua/plugins/omarchy-theme-hotreload.lua ~/.config/nvim/lua/plugins/
|
|
||||||
@@ -3,9 +3,12 @@ return {
|
|||||||
"catppuccin/nvim",
|
"catppuccin/nvim",
|
||||||
name = "catppuccin",
|
name = "catppuccin",
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
opts = {
|
config = function()
|
||||||
flavour = "latte",
|
require("catppuccin").setup({
|
||||||
},
|
flavour = "latte", -- other options: "mocha", "frappe", "macchiato"
|
||||||
|
})
|
||||||
|
vim.cmd.colorscheme("catppuccin-latte")
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"LazyVim/LazyVim",
|
"LazyVim/LazyVim",
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
return {
|
return {
|
||||||
{
|
|
||||||
"catppuccin/nvim",
|
|
||||||
name = "catppuccin",
|
|
||||||
priority = 1000,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"LazyVim/LazyVim",
|
"LazyVim/LazyVim",
|
||||||
opts = {
|
opts = {
|
||||||
|
|||||||
@@ -1,13 +1,9 @@
|
|||||||
return {
|
return {
|
||||||
{
|
|
||||||
"ribru17/bamboo.nvim",
|
"ribru17/bamboo.nvim",
|
||||||
|
lazy = false,
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
opts = {},
|
config = function()
|
||||||
},
|
require("bamboo").setup({})
|
||||||
{
|
require("bamboo").load()
|
||||||
"LazyVim/LazyVim",
|
end,
|
||||||
opts = {
|
|
||||||
colorscheme = "bamboo",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,26 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"loctvl842/monokai-pro.nvim",
|
"gthelding/monokai-pro.nvim",
|
||||||
opts = {
|
config = function()
|
||||||
|
require("monokai-pro").setup({
|
||||||
filter = "ristretto",
|
filter = "ristretto",
|
||||||
},
|
override = function()
|
||||||
|
return {
|
||||||
|
NonText = { fg = "#948a8b" },
|
||||||
|
MiniIconsGrey = { fg = "#948a8b" },
|
||||||
|
MiniIconsRed = { fg = "#fd6883" },
|
||||||
|
MiniIconsBlue = { fg = "#85dacc" },
|
||||||
|
MiniIconsGreen = { fg = "#adda78" },
|
||||||
|
MiniIconsYellow = { fg = "#f9cc6c" },
|
||||||
|
MiniIconsOrange = { fg = "#f38d70" },
|
||||||
|
MiniIconsPurple = { fg = "#a8a9eb" },
|
||||||
|
MiniIconsAzure = { fg = "#a8a9eb" },
|
||||||
|
MiniIconsCyan = { fg = "#85dacc" }, -- same value as MiniIconsBlue for consistency
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
vim.cmd([[colorscheme monokai-pro]])
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"LazyVim/LazyVim",
|
"LazyVim/LazyVim",
|
||||||
|
|||||||
@@ -1,12 +1,8 @@
|
|||||||
return {
|
return {
|
||||||
{
|
|
||||||
"folke/tokyonight.nvim",
|
|
||||||
priority = 1000,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"LazyVim/LazyVim",
|
"LazyVim/LazyVim",
|
||||||
opts = {
|
opts = {
|
||||||
colorscheme = "tokyonight-night",
|
colorscheme = "tokyonight",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user