dev: automated commit - 2025-08-16 22:19:32

This commit is contained in:
Mariano Z. 2025-08-16 22:19:32 -03:00
parent e7b1106123
commit 77a15abcf4
Signed by: marianozunino
GPG key ID: 4C73BAD25156DACE
9 changed files with 95 additions and 12 deletions

View file

@ -2,14 +2,13 @@ return {
selector_cmd = function()
return {
command = "rofi",
args = { "-dmenu", "-p", "Project: " },
args = { "-dmenu", "-i", "-p", "Project: " }, -- Added -i flag for case-insensitive matching
}
end,
editor_cmd = function(path, class)
local dirName = path:match("([^/]+)$")
-- Sanitize dirName for tmux session name (remove special chars)
local tmuxSession = dirName:gsub("[^a-zA-Z0-9_]", "_")
local tmuxCmd = string.format(
[[ tmux has-session -t %s 2>/dev/null && tmux attach -t %s || tmux new -c %s -s %s 'nvim %s' \; split-window -h -c %s ]],
tmuxSession,
@ -39,12 +38,10 @@ return {
-- local projectName = path:match("([^/]+)$") or path
return "📘 " .. path
end,
extract_path_from_title = function(title)
-- Return back the path: 📘 work/project_1 -> work/project_1
return title:gsub("^📘%s*", ""):gsub("\n$", "")
end,
-- Add error handling function
handle_error = function(err)
io.stderr:write("Error: " .. tostring(err) .. "\n")

View file

@ -6,7 +6,7 @@ BINARY_PATH="$TARGET_DIR/$BINARY_NAME"
if [ ! -x "$BINARY_PATH" ]; then
notify-send "📦 Installing $BINARY_NAME" "Installing from $MODULE_URL..."
GO111MODULE=on GOBIN="$TARGET_DIR" go install "$MODULE_URL@latest" || {
GO111MODULE=on GOBIN="$TARGET_DIR" go install "$MODULE_URL@master" || {
notify-send -u critical "Installation Failed" "Failed to install $BINARY_NAME from $MODULE_URL"
exit 1
}

View file

@ -9,7 +9,7 @@ set_wallpaper_sway() {
if [ "$(hostname)" == "main" ]; then
swaymsg -t get_outputs -r | jq -r ".[].name" | parallel 'swaybg -o {} -i $(find ~/Pictures/* -type f | shuf -n 1) &'
elif [ "$(hostname)" == "fw" ]; then
swaybg -m fill -i "/home/forbi/Pictures/hwtioswoamne1.jpeg"
swaybg -m fill -i "/home/mzunino/Pictures/hwtioswoamne1.jpeg"
fi
}