diff --git a/sdgos/monocle/config b/sdgos/monocle/config index d22de78..a2698e0 100644 --- a/sdgos/monocle/config +++ b/sdgos/monocle/config @@ -4,7 +4,7 @@ "fixed-center": "true", "output": "HDMI-A-1", "margin-top": 0, - "margin-bottom": -2, + "margin-bottom": 0, "margin-left": 0, "margin-right": 0, "spacing": 3, diff --git a/sdgos/monocle/monocledaemon.sh b/sdgos/monocle/monocledaemon.sh new file mode 100644 index 0000000..08042b0 --- /dev/null +++ b/sdgos/monocle/monocledaemon.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +echo "off" > ~/.config/monocledaemon.state + +# constant command: mmsg watch all-monitors | jq -r '.monitors[] | select(.tags[] | select(.is_active == true) | .layout | test("M|K|VK")) | .name' \ No newline at end of file diff --git a/sdgos/monocle/style.css b/sdgos/monocle/style.css index 18789a3..0539667 100644 --- a/sdgos/monocle/style.css +++ b/sdgos/monocle/style.css @@ -8,7 +8,7 @@ font-size: 97%; font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"'; border: 0px; - padding-top: 4px; + padding-top: 2px; padding-bottom: 2px; padding-left: 4px; background-color: @surface; diff --git a/sdgos/tuis/layout-switch.sh b/sdgos/tuis/layout-switch.sh index 15b7abd..e8902a5 100755 --- a/sdgos/tuis/layout-switch.sh +++ b/sdgos/tuis/layout-switch.sh @@ -7,4 +7,10 @@ SELECTED=$(cat ~/.config/sdgos/tuis/layouts.list | cut -d '|' -f 1 | fzf --layou CMD=$(cat ~/.config/sdgos/tuis/layouts.list | grep -e "$SELECTED" | cut -d '|' -f 2) -eval $CMD \ No newline at end of file +eval $CMD + +if [[ "$SELECTED" == "Monocle " ]] || [[ "$SELECTED" == "Deck - horizontal " ]] || [[ "$SELECTED" == "Deck - vertical " ]]; then + mmsg dispatch spawn_shell,'waybar -c ~/.config/sdgos/monocle/config -s ~/.config/sdgos/monocle/style.css' +else + pkill -9 waybar +fi \ No newline at end of file