feat: differentiate between laptop and desktop
This commit is contained in:
parent
3a59d32f55
commit
5bb44594bb
50 changed files with 3432 additions and 1 deletions
11
eww_laptop/scripts/cockpit_toggle
Executable file
11
eww_laptop/scripts/cockpit_toggle
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#! /bin/bash
|
||||
|
||||
ISOPEN=$(eww windows | grep "*cockpit" | tr -d '*')
|
||||
|
||||
|
||||
if [ "$ISOPEN" = "" ]; then
|
||||
MONITOR=$(hyprctl monitors | grep -B 8 "focused: yes" | grep "ID" | awk -F '(' ' { print $2 } ' | tr -d 'ID ):')
|
||||
eww open cockpit_window_"$MONITOR"
|
||||
else
|
||||
eww close "$ISOPEN"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue