diff --git a/desktopenvs/hyprland/scripts/ewwstart-niri.sh b/desktopenvs/hyprland/scripts/ewwstart-niri.sh new file mode 100755 index 0000000..1128a06 --- /dev/null +++ b/desktopenvs/hyprland/scripts/ewwstart-niri.sh @@ -0,0 +1,15 @@ +#!/bin/bash +/usr/bin/eww daemon + +GTK_THEME=cyberqueer + +monitorsum=$(niri msg outputs | grep ID | wc -l) + +for i in $(seq 1 $monitorsum); +do + declare -i curmon=$i-1 + /usr/bin/eww open bar --id bar$curmon --arg monitor=$curmon +done + +/usr/bin/eww open bar --id primary --arg monitor=1 +/usr/bin/eww open bar --id secondary --arg monitor=0 diff --git a/desktopenvs/hyprland/scripts/ulwatchdog.sh b/desktopenvs/hyprland/scripts/ulwatchdog.sh index c22641e..d0ccfa6 100755 --- a/desktopenvs/hyprland/scripts/ulwatchdog.sh +++ b/desktopenvs/hyprland/scripts/ulwatchdog.sh @@ -2,5 +2,8 @@ zoxide import --from z ~/.z --merge while true; do + statecon=$( pgrep ulauncher ) + if [ "$statecon" != '' ]; then ulauncher + fi done