summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmachi_status2
-rwxr-xr-xtoggle_layout.sh4
2 files changed, 5 insertions, 1 deletions
diff --git a/machi_status b/machi_status
index 9354635..cd962bd 100755
--- a/machi_status
+++ b/machi_status
@@ -1,3 +1,3 @@
#!/usr/bin/env sh
-machictl -watch $WAYBAR_OUTPUT_NAME | jq --unbuffered -r '"W: \(.current_workspace_index + 1)/\(.total_workspaces) | P: \(.workspace_info.current_panel_index + 1)/\(.workspace_info.total_panels) | F: \(.panel_info.total_windows) | \(.window_info.title | if length > 48 then .[0:48] + "..." else . end)"' | sed -u 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/"/\&quot;/g; s/'"'"'/\&#39;/g'
+machictl -watch $WAYBAR_OUTPUT_NAME | jq --unbuffered -r '"W \(.current_workspace_index + 1)/\(.total_workspaces)|P \(.workspace_info.current_panel_index + 1)/\(.workspace_info.total_panels)|F \(.panel_info.total_windows)| \(.window_info.title | if length > 48 then .[0:48] + "..." else . end)"' | sed -u 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/"/\&quot;/g; s/'"'"'/\&#39;/g'
diff --git a/toggle_layout.sh b/toggle_layout.sh
new file mode 100755
index 0000000..d1bd13b
--- /dev/null
+++ b/toggle_layout.sh
@@ -0,0 +1,4 @@
+#!/usr/bin/env sh
+
+FN=/home/tslil/.config/river/config.rh
+cat $FN | sed 's/layout gallium/layout1 us/;s/layout us/layout1 gallium/' | sed 's/layout1/layout/' | sponge $FN