diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-07-03 16:43:14 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-07-03 16:43:14 +0900 |
| commit | 46a2d06a618f38ee7976b658b01592094cedf962 (patch) | |
| tree | e958c3bdd23607642c0fbd8d48fd38cf266de85a | |
| parent | a575f00e3681ba86e461ea1bb10ba9b1cae200ff (diff) | |
modified bin/extractkeys
| -rwxr-xr-x | ar/.local/bin/extractkeys | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ar/.local/bin/extractkeys b/ar/.local/bin/extractkeys index 5edf544..b45358d 100755 --- a/ar/.local/bin/extractkeys +++ b/ar/.local/bin/extractkeys @@ -60,7 +60,7 @@ for file_path in "${config_files[@]}"; do fi if echo "$line" | grep -q "Keychord"; then - line=$(echo "$line" | sed -e "s/&((Keychord){[0-9], {{\(.*\)}),/\1/g;s/^0/MEDIA/g;s/\([MEDIA\|WIN\|ALT\|ULTRA\|EXTRA\|Shift\|Control]\w\+\),\s\(.*\)}},\s\+\(\w\+\),\s\([^,]*\)/\1|\2|\3|\4/g;s/},{0,//g;s/},{\(Shift\|Ctrl\),/\1/g;s/},{//g") + line=$(echo "$line" | sed -e "s/&((Keychord){[0-9], {{\(.*\)}),/\1/g;s/^0\(.*XF86XK_.*\)/MEDIA\1/g;/XF86XK_/!s/^0/Null/;s/\([MEDIA\|WIN\|ALT\|ULTRA\|EXTRA\|Shift\|Control]\w\+\),\s\(.*\)}},\s\+\(\w\+\),\s\([^,]*\)/\1|\2|\3|\4/g;s/},{0,//g;s/},{\(Shift\|Ctrl\),/\1/g;s/},{//g;s/Null//g") else line=$(echo "$line" | sed -e "s/^{ \(.*\) },/\1/g;s/{ \([^, ]*\), \([^, ]*\), \([^, ]*\), \([^}]*\) }/\1 \2 \3 \4/g;s/,/|/g") fi |
