personal dotfiles: my Hyprland config
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# Quote everything,
tr , "\t" |
sed 's/\t\([^"\t]\+\)/\t"\1"/g' |
sed 's/\([^"\t]\+\)\t/"\1"\t/g' |
# replace empty with null,
sed 's/\t\t/\tnull\t/g' |
sed 's/\t\t/\tnull\t/g' |
sed 's/\t$/\tnull/g' |
sed 's/^\t/null\t/g' |
tr "\t" , |
# and add parens around each line
sed 's/^/(/g' | sed 's/$/),/g'