added monocle bar to monocle and deck layouts using the layout switcher.
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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'
|
||||||
@@ -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;
|
||||||
|
|||||||
@@ -8,3 +8,9 @@ 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
|
||||||
Reference in New Issue
Block a user