feat: desktop config as base

This commit is contained in:
Fabio Lenherr / DashieTM 2022-12-31 14:50:10 +01:00
parent d589775634
commit 7dba0b18be
34 changed files with 1148 additions and 890 deletions

View file

@ -1,8 +1,11 @@
#! /bin/bash
ISOPEN=$(eww windows | grep "*cockpit")
ISOPEN=$(eww windows | grep "*cockpit" | tr -d '*')
if [ "$ISOPEN" = "" ]; then
eww open cockpit_window
MONITOR=$(hyprctl monitors | grep -B 7 "focused: yes" | grep "ID" | awk -F '(' ' { print $2 } ' | tr -d 'ID ):')
eww open cockpit_window_"$MONITOR"
else
eww close cockpit_window
eww close "$ISOPEN"
fi