diff --git a/.config/nvim/lua/plugins/gitlab.lua b/.config/nvim/lua/plugins/gitlab.lua deleted file mode 100644 index c815be3..0000000 --- a/.config/nvim/lua/plugins/gitlab.lua +++ /dev/null @@ -1,14 +0,0 @@ -return { - "harrisoncramer/gitlab.nvim", - dependencies = { - "MunifTanjim/nui.nvim", - "nvim-lua/plenary.nvim", - "sindrets/diffview.nvim", - "stevearc/dressing.nvim", -- Recommended but not required. Better UI for pickers. - "nvim-tree/nvim-web-devicons", -- Recommended but not required. Icons in discussion tree. - }, - build = function() require("gitlab.server").build(true) end, -- Builds the Go binary - config = function() - require("gitlab").setup() - end, -} diff --git a/.config/nvim/lua/plugins/laravel.lua b/.config/nvim/lua/plugins/laravel.lua new file mode 100644 index 0000000..2e3a45e --- /dev/null +++ b/.config/nvim/lua/plugins/laravel.lua @@ -0,0 +1,46 @@ +return { + "adalessa/laravel.nvim", + dependencies = { + "tpope/vim-dotenv", + "nvim-telescope/telescope.nvim", + "MunifTanjim/nui.nvim", + "kevinhwang91/promise-async", + }, + cmd = { "Laravel" }, + keys = { + { "la", ":Laravel artisan" }, + { "lr", ":Laravel routes" }, + { "lm", ":Laravel related" }, + }, + event = { "VeryLazy" }, + opts = { + lsp_server = "intelephense", + environments = { + default = "docker-compose", + auto_discover = false, + definitions = { + { + name = "docker-compose", + condition = { + file_exists = { "docker-compose.yml" }, + executable = { "docker" }, + }, + commands = { + compose = { "docker", "compose" }, + { + commands = { "php", "composer", "npm" }, + docker = { + container = { + env = "APP_SERVICE", + default = "app-fpm", + }, + exec = { "docker", "compose", "exec", "-it" }, + }, + }, + }, + }, + }, + }, + }, + config = true, +} diff --git a/.local/bin/dwm-autostart b/.local/bin/dwm-autostart index 1ac12b7..1b86692 100755 --- a/.local/bin/dwm-autostart +++ b/.local/bin/dwm-autostart @@ -8,5 +8,6 @@ hsetroot -solid "#1A1A22" # nohup /usr/lib/kdeconnectd >/dev/null 2>&1 & nohup dwmblocks & +.local/bin/ncspot-status-listener & picom -b --config ~/.config/picom/picom.conf diff --git a/.local/bin/ncspot-status-listener b/.local/bin/ncspot-status-listener new file mode 100755 index 0000000..a8151cf --- /dev/null +++ b/.local/bin/ncspot-status-listener @@ -0,0 +1,11 @@ +#!/bin/bash + +playerctl -p ncspot --follow metadata --format "{{ artist }} - {{ title }}" | while read -r song; do + pkill -RTMIN+1 dwmblocks +done & + +playerctl -p ncspot --follow status | while read -r status; do + pkill -RTMIN+1 dwmblocks +done & + +wait diff --git a/.local/bin/spotify-next b/.local/bin/spotify-next index c3e5986..a1a5d52 100755 --- a/.local/bin/spotify-next +++ b/.local/bin/spotify-next @@ -2,3 +2,4 @@ #dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next playerctl -p ncspot next +pkill -RTMIN+1 dwmblocks diff --git a/.local/bin/spotify-prev b/.local/bin/spotify-prev index ed43747..a48dc16 100755 --- a/.local/bin/spotify-prev +++ b/.local/bin/spotify-prev @@ -2,3 +2,4 @@ # dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous playerctl -p ncspot previous +pkill -RTMIN+1 dwmblocks diff --git a/.local/bin/spotify-toggle b/.local/bin/spotify-toggle index 16c61fc..8f31582 100755 --- a/.local/bin/spotify-toggle +++ b/.local/bin/spotify-toggle @@ -2,3 +2,4 @@ # dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause playerctl -p ncspot play-pause +pkill -RTMIN+1 dwmblocks