#!/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=База%20знаний" #2 chromium --class=chromium-main & #3 chromium --class=chromium-invest --user-data-dir=$HOME/.config/Invest & #8-10 i3-msg "workspace ${ws8}; exec i3-sensible-terminal --title \"term_main_8\"" i3-msg "workspace ${ws8}; exec i3-sensible-terminal --title \"term_main_9\"" i3-msg "workspace ${ws8}; exec i3-sensible-terminal --title \"term_main_10\"" sleep 6 i3-msg "[title=\".* - База знаний - Obsidian.*\"] move container to workspace ${ws1}" i3-msg "[title=\"term_main_8\"] move container to workspace ${ws8}" i3-msg "[title=\"term_main_9\"] move container to workspace ${ws9}" i3-msg "[title=\"term_main_10\"] move container to workspace ${ws10}" i3-msg "[class=\"^chromium-main$\"] move container to workspace ${ws2}" i3-msg "[class=\"^chromium-invest$\"] move container to workspace ${ws3}"