From 78d87dd61f5312fc5c6d9ac0d4fa18a64bd9ad33 Mon Sep 17 00:00:00 2001 From: Fabio Lenherr Date: Thu, 23 Feb 2023 23:20:59 +0100 Subject: [PATCH] feat: fix cockpit --- eww_laptop/scripts/cockpit_toggle | 2 +- nvim/lua/plugins/dap.lua | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/eww_laptop/scripts/cockpit_toggle b/eww_laptop/scripts/cockpit_toggle index fa672b9..80dfd97 100755 --- a/eww_laptop/scripts/cockpit_toggle +++ b/eww_laptop/scripts/cockpit_toggle @@ -4,7 +4,7 @@ ISOPEN=$(eww windows | grep "*cockpit" | tr -d '*') if [ "$ISOPEN" = "" ]; then -MONITOR=$(hyprctl monitors | grep -B 8 "focused: yes" | grep "ID" | awk -F '(' ' { print $2 } ' | tr -d 'ID ):') +MONITOR=$(hyprctl monitors | grep -B 10 "focused: yes" | grep "ID" | awk -F '(' ' { print $2 } ' | tr -d 'ID ):') eww open cockpit_window_"$MONITOR" else eww close "$ISOPEN" diff --git a/nvim/lua/plugins/dap.lua b/nvim/lua/plugins/dap.lua index 36fa657..d92c302 100644 --- a/nvim/lua/plugins/dap.lua +++ b/nvim/lua/plugins/dap.lua @@ -44,6 +44,11 @@ return { dap.adapters.nlua = function(callback, config) callback({ type = "server", host = config.host or "127.0.0.1", port = config.port or 8086 }) end + dap.adapters.bashdb = { + type = "executable", + command = vim.fn.stdpath("data") .. "/mason/packages/bash-debug-adapter/bash-debug-adapter", + name = "bashdb", + } local rust_dap = vim.fn.getcwd() local filename = ""