#!/bin/bash PATH="/usr/local/bin/:$PATH" TEAL='\033[0;36m' RED='\033[0;31m' NC='\033[0m' current_desktop=$(chunkc tiling::query --desktop id) last_desktop=$(chunkc get _last_active_desktop) monitor=$(chunkc tiling::query --monitor-for-desktop $current_desktop) desktops=$(chunkc tiling::query --desktops-for-monitor $monitor) highlighted="" for desktop in $desktops do if (( $desktop == $current_desktop )) then highlighted+=" ${TEAL}$desktop${NC}" elif (( $desktop == $last_desktop )) then highlighted+=" ${RED}$desktop${NC}" else highlighted+=" $desktop" fi done echo -e ${highlighted} echo "---" for i in ~/.chunkwm_layouts/* do echo "Load $(basename $i) | terminal=false bash='/usr/local/bin/chunkc' param1='tiling::desktop' param2='--deserialize' param3='$i'" echo "Save $(basename $i) | alternate=true terminal=false bash='/usr/local/bin/chunkc' param1='tiling::desktop' param2='--serialize' param3='$i'" done