diff --git a/assets/icons/housecallpro.png b/assets/icons/housecallpro.png new file mode 100644 index 0000000..8003bbf Binary files /dev/null and b/assets/icons/housecallpro.png differ diff --git a/assets/icons/oryx.png b/assets/icons/oryx.png new file mode 100644 index 0000000..31b4e34 Binary files /dev/null and b/assets/icons/oryx.png differ diff --git a/hypr/wallpaper.png b/assets/wallpapers/wall1.png similarity index 100% rename from hypr/wallpaper.png rename to assets/wallpapers/wall1.png diff --git a/hypr/hyprpaper.conf b/hypr/hyprpaper.conf index 49cb579..4e8cd41 100644 --- a/hypr/hyprpaper.conf +++ b/hypr/hyprpaper.conf @@ -1,3 +1,3 @@ -preload = /home/michael/.config/hypr/wallpaper.png -wallpaper = ,/home/michael/.config/hypr/wallpaper.png +preload = /home/michael/.dotfiles/assets/wallpapers/wall1.png +wallpaper = ,/home/michael/.dotfiles/assets/wallpapers/wall1.png splash = true diff --git a/nvim/lazynvim/init.lua b/nvim/lazynvim/init.lua index fa18e02..a5ebf23 100644 --- a/nvim/lazynvim/init.lua +++ b/nvim/lazynvim/init.lua @@ -1,3 +1,15 @@ -- bootstrap lazy.nvim, LazyVim and your plugin vim.g.netrw_browsex_viewer = "xdg-open" + require("config.lazy") + +vim.filetype.add({ + pattern = { + [".*"] = function(path, bufnr) + local first_line = vim.api.nvim_buf_get_lines(bufnr, 0, 1, false)[1] or "" + if first_line:match("^#!.*zsh") then + return "bash" + end + end, + }, +}) diff --git a/nvim/lazynvim/lua/config/autocmds.lua b/nvim/lazynvim/lua/config/autocmds.lua index dc03d64..03d274f 100644 --- a/nvim/lazynvim/lua/config/autocmds.lua +++ b/nvim/lazynvim/lua/config/autocmds.lua @@ -63,3 +63,13 @@ createCmd("TextYankPost", { vim.highlight.on_yank() end, }) + +vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, { + pattern = "*", + callback = function(args) + local first_line = vim.api.nvim_buf_get_lines(args.buf, 0, 1, false)[1] or "" + if first_line:match("^#!.*zsh") then + vim.bo[args.buf].filetype = "bash" + end + end, +}) diff --git a/nvim/lazynvim/lua/plugins/init.lua b/nvim/lazynvim/lua/plugins/init.lua index ad1eb6d..b974bc7 100644 --- a/nvim/lazynvim/lua/plugins/init.lua +++ b/nvim/lazynvim/lua/plugins/init.lua @@ -19,10 +19,10 @@ return { "TmuxNavigatorProcessList", }, keys = { - { "", "TmuxNavigateLeft" }, - { "", "TmuxNavigateDown" }, - { "", "TmuxNavigateUp" }, - { "", "TmuxNavigateRight" }, + { "", "TmuxNavigateLeft" }, + { "", "TmuxNavigateDown" }, + { "", "TmuxNavigateUp" }, + { "", "TmuxNavigateRight" }, { "", "TmuxNavigatePrevious" }, }, }, diff --git a/scripts/arch/clear-clipboard-history b/scripts/arch/clear-clipboard-history new file mode 100755 index 0000000..6c691de --- /dev/null +++ b/scripts/arch/clear-clipboard-history @@ -0,0 +1,5 @@ +#!/bin/zsh + +wl-copy --clear && \ + rm ~/.local/share/clipse/clipboard_history.json >/dev/null 2>&1 + diff --git a/scripts/enable-services b/scripts/enable-services.sh similarity index 100% rename from scripts/enable-services rename to scripts/enable-services.sh diff --git a/scripts/install-pkg-arch.sh b/scripts/install-pkg-arch.sh index ba4a368..c389a6f 100755 --- a/scripts/install-pkg-arch.sh +++ b/scripts/install-pkg-arch.sh @@ -23,6 +23,7 @@ yay -S --noconfirm --needed \ fastfetch \ fzf \ git \ + git-lfs \ github-cli \ gum \ hyprpaper \ diff --git a/scripts/install-webapps.sh b/scripts/install-webapps.sh new file mode 100755 index 0000000..ed4a136 --- /dev/null +++ b/scripts/install-webapps.sh @@ -0,0 +1,61 @@ +#!/bin/zsh + +source ~/.dotfiles/scripts/arch/install-webapp \ + --name "Excalidraw" \ + --url "https://draw.housh.dev" \ + --icon "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/excalidraw.png" + +source ~/.dotfiles/scripts/arch/install-webapp \ + --name "Gitea" \ + --url "https://git.housh.dev" \ + --icon "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/gitea.png" + +source ~/.dotfiles/scripts/arch/install-webapp \ + --name "GitHub" \ + --url "https://github.com" \ + --icon "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/github-light.png" + +source ~/.dotfiles/scripts/arch/install-webapp \ + --name "HouseCall Pro" \ + --url "https://pro.housecallpro.com" \ + --icon "~/.dotfiles/assets/icons/housecallpro.png" + +source ~/.dotfiles/scripts/arch/install-webapp \ + --name "Hyprland Wiki" \ + --url "https://https://wiki.hypr.land" \ + --icon "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/hyprland.png" + +source ~/.dotfiles/scripts/arch/install-webapp \ + --name "Immich" \ + --url "https://photos.housh.dev" \ + --icon "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/immich.png" + +source ~/.dotfiles/scripts/arch/install-webapp \ + --name "Oryx" \ + --url "https://configure.zsa.io/voyager/layouts/v9LLL/latest/0" \ + --icon "~/.dotfiles/assets/icons/oryx.png" +# +source ~/.dotfiles/scripts/arch/install-webapp \ + --name "Proton Mail" \ + --url "https://mail.proton.me" \ + --icon "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/proton-mail.png" + +source ~/.dotfiles/scripts/arch/install-webapp \ + --name "Proton Pass" \ + --url "https://pass.proton.me" \ + --icon "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/proton-pass.png" + +source ~/.dotfiles/scripts/arch/install-webapp \ + --name "Unifi Drive" \ + --url "https://192.168.10.105/drive/dashboard" \ + --icon "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/unifi-drive.png" + +source ~/.dotfiles/scripts/arch/install-webapp \ + --name "Unifi" \ + --url "https://unifi.ui.com" \ + --icon "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/unifi.png" + +source ~/.dotfiles/scripts/arch/install-webapp \ + --name "YouTube" \ + --url "https://youtube.com" \ + --icon "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/youtube.png" diff --git a/scripts/link-config b/scripts/link-config.sh similarity index 100% rename from scripts/link-config rename to scripts/link-config.sh diff --git a/scripts/setup-dirs.sh b/scripts/setup-dirs.sh index ec0caf3..948dd8a 100755 --- a/scripts/setup-dirs.sh +++ b/scripts/setup-dirs.sh @@ -2,7 +2,5 @@ # Set up clipse (clipboard history) storage directories / files. mkdir -p ~/.local/share/clipse/tmp_files -touch ~/.local/share/clipse/clipboard_history.json -chmod 600 ~/.local/share/clipse/clipboard_history.json mkdir ~/Pictures >/dev/null 2>&1