#for faster testing
#status_command /a/bin/ds/filesystem/usr/local/bin/myi3status
status_command /usr/local/bin/myi3status
-#mode hide
-# hidden_state hide
+# note: old wip command: /p/c/myi3life
+
+
font pango:monospace 18
-# i have no need for the tray icons so far
tray_output primary
-# I found I didn't need these, but, I'm trying them out again.
+# I found I didn't need these.
# workspace_buttons no
-}
-## dont want to see this bar for now
-# bar {
-# status_command /p/c/myi3life
-# tray_output none
-# workspace_buttons no
-# }
+# note /a/c/myx adds the last bit to this file conditionally.
$ex copyq
$ex dunst
-$ex /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd
+# haven't been using it enough to justify automatically running it.]
+#$ex /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd
+$ex /a/opt/activity-watch/aw-qt
# this dies when we restart i3.
exec_always --no-startup-id i3-event-hook
-secondary_out=$(awk '$2 == "connected" && $3 != "primary" {print $1}' $xf)
primary_info=$(awk '$2 == "connected" && $3 == "primary" {print $1,$4}' $xf)
+secondary_out=$(awk '$2 == "connected" && $3 != "primary" {print $1}' $xf)
+# Some systems only have a non-primary connected.
+if [[ ! $primary_info ]]; then
+ primary_info=$(awk '$2 == "connected" {print $1,$3}' $xf)
+ xrandr --output $secondary_out --primary
+ secondary_out=
+fi
+
# res_info eg: 3840x2160+1920+0
read -r primary_out primary_res_info <<<"$primary_info"
fi
-echo d1 ${ws_outputs[@]}
+#echo d1 ${ws_outputs[@]}
rm -f ~/i3-myx.conf
total_ws_count=11
fi
echo "workspace $ws output $ws_out" >>~/i3-myx.conf
done
-if [[ $secondary_out ]]; then
- cat /a/bin/ds/i3-sway/bar.conf >> ~/i3-myx.conf
-fi
+
+{
+ cat /a/bin/ds/i3-sway/bar.conf
+ if [[ $secondary_out ]]; then
+ echo "}"
+ else
+ echo 'mode hide
+hidden_state hide
+}'
+ fi
+} >> ~/i3-myx.conf
+
echo "bindsym \$mod+Shift+t move workspace to output ${move_outputs[*]}" >>~/i3-myx.conf
# give it some time to reload or adjust to new x settings.