#!/bin/bash # this script executes the mainbar script # then pipes it into lemonbar # and pipes the lemonbar's output # to the button-actions script # which handles all the button actions cd /home/zt/.config/lemonbar ./ws_bar | lemonbar -g 1366x21 -b -B '#171520' -p -F '#ffffff' -f "Source Han Sans JP:size=10" -o -3 -f "RobotoMono Nerd Font:style=Regular:size=15" -f -n "mainbar" -o 0 | ./ws_button_actions notify-send "Lemonbar" "Bar(s) crashed/killed" exit