Browse Source

feat: add ncspot-status-listener

master
Tovi Jaeschke-Rogers 2 weeks ago
parent
commit
94350b39de
7 changed files with 61 additions and 14 deletions
  1. +0
    -14
      .config/nvim/lua/plugins/gitlab.lua
  2. +46
    -0
      .config/nvim/lua/plugins/laravel.lua
  3. +1
    -0
      .local/bin/dwm-autostart
  4. +11
    -0
      .local/bin/ncspot-status-listener
  5. +1
    -0
      .local/bin/spotify-next
  6. +1
    -0
      .local/bin/spotify-prev
  7. +1
    -0
      .local/bin/spotify-toggle

+ 0
- 14
.config/nvim/lua/plugins/gitlab.lua View File

@ -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,
}

+ 46
- 0
.config/nvim/lua/plugins/laravel.lua View File

@ -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 = {
{ "<leader>la", ":Laravel artisan<cr>" },
{ "<leader>lr", ":Laravel routes<cr>" },
{ "<leader>lm", ":Laravel related<cr>" },
},
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,
}

+ 1
- 0
.local/bin/dwm-autostart View File

@ -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

+ 11
- 0
.local/bin/ncspot-status-listener View File

@ -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

+ 1
- 0
.local/bin/spotify-next View File

@ -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

+ 1
- 0
.local/bin/spotify-prev View File

@ -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

+ 1
- 0
.local/bin/spotify-toggle View File

@ -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

Loading…
Cancel
Save