added monocle bar to monocle and deck layouts using the layout switcher.

This commit is contained in:
2026-06-06 20:13:50 +02:00
parent be4d7a9b7a
commit 1eb53dd443
4 changed files with 14 additions and 3 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
"fixed-center": "true", "fixed-center": "true",
"output": "HDMI-A-1", "output": "HDMI-A-1",
"margin-top": 0, "margin-top": 0,
"margin-bottom": -2, "margin-bottom": 0,
"margin-left": 0, "margin-left": 0,
"margin-right": 0, "margin-right": 0,
"spacing": 3, "spacing": 3,
+5
View File
@@ -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'
+1 -1
View File
@@ -8,7 +8,7 @@
font-size: 97%; font-size: 97%;
font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"'; font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"';
border: 0px; border: 0px;
padding-top: 4px; padding-top: 2px;
padding-bottom: 2px; padding-bottom: 2px;
padding-left: 4px; padding-left: 4px;
background-color: @surface; background-color: @surface;
+7 -1
View File
@@ -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) CMD=$(cat ~/.config/sdgos/tuis/layouts.list | grep -e "$SELECTED" | cut -d '|' -f 2)
eval $CMD 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