#!/bin/bash

ws1=$(( $1*10 + 1 ))
ws2=$(( $1*10 + 2 ))
ws3=$(( $1*10 + 3 ))
ws4=$(( $1*10 + 4 ))
ws5=$(( $1*10 + 5 ))
ws6=$(( $1*10 + 6 ))
ws7=$(( $1*10 + 7 ))
ws8=$(( $1*10 + 8 ))
ws9=$(( $1*10 + 9 ))
ws10=$(( $1*10 + 10 ))

#1
i3-msg "exec xdg-open obsidian://open?vault=Black%20Education"

#2
chromium --class=chromium-blackeducation --user-data-dir=$HOME/.config/black-education &


sleep 6
i3-msg "[title=\".* - Black Education - Obsidian.*\"] move container to workspace $ws1"
i3-msg "[class=\"^chromium-blackeducation$\"] move container to workspace $ws2"