You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
851 B
Bash

#!/usr/bin/env bash
MAKO_CONFIG="$HOME/.config/hypr/mako/config"
BAR_CONFIG="$HOME/.config/hypr/waybar/config"
BAR_STYLE="$HOME/.config/hypr/waybar/style.css"
_ps=(waybar mako)
for _prs in "${_ps[@]}"; do
if [[ `pidof ${_prs}` ]]; then
killall -9 ${_prs}config
fi
done
if [[ ! `pidof mako` ]]; then
mako --config ${MAKO_CONFIG} &
fi
if [[ ! `pidof waybar` ]]; then
waybar --bar hyprbar --config ${BAR_CONFIG} --style ${BAR_STYLE} &
fi
hyprctl dispatch "exec [workspace 2 silent] kitty $HOME/.local/bin/term_startup.sh"
sleep 2
hyprctl dispatch "exec [workspace 2 silent] signal-desktop --use-tray-icon --enable-features=UseOzonePlatform --enable-features=WaylandWindowDecorations --ozone-platform=wayland"
sleep 2
hyprctl dispatch "exec [workspace 2 silent] schildichat-desktop --enable-features=UseOzonePlatform --ozone-platform=wayland"