Conversation

wondering what order does sway load includes, if i have include ~/.config/sway/conf.d/* what order does it load the files in conf.d. i really DONT wanna test this manually .

4
0
0
i need to know this cause i need to set variables before using them and currently it's giving me errors the way im doing it. hm
1
0
0
i really DONT wanna use bash scripts to set everything to control the order
1
0
0
@eris globbing probably happens lexicographically
1
0
1

@eris though you can probably force it by doing ~/.config/sway/conf.d/<backtick>for file in ~/.config/sway/conf.d/*; do basename $file; done<backtick>

1
0
1
@nbsp good idea. i tried it and it looks like `swaymsg` doesn't allow use of the include statement, so i guess i have to just hope it's consistently alphabetical, or instead of using sway config files set everything in them via bash and swaymsg ;-;
1
0
0
@nbsp although. iterate over every line in those config files and feed them to swaymsg?? maybe..
1
0
0

@eris if i understand it loads them the same way ls does so you could append the files with numbers and they would load like

~ ❱ ls *.txt
1.txt  2.txt  a3.txt
0
0
1
@eris hasn't Everything agreed on alphabetical being the best? so 00-abc would get loaded before 99-def
0
0
0