1
1
Fork 0
nixos/options/custom/scripts/mark.sh
Myned 506b2efafc
sway: initial migration to forgejo
Signed-off-by: Myned <dev@bjork.tech>
2024-11-06 11:52:43 -06:00

12 lines
282 B
Bash

#! /usr/bin/env bash
# Exec with mark if mark is not present in tree then go to workspace
#?? mark MARK COMMANDS
trap "notify-send '> mark' 󰃤" ERR
if ! swaymsg -t get_marks | grep "$1"; then
swaymsg -- exec "${@:2}" || exit 1
sleep 0.1
swaymsg -- mark --replace "$1"
fi