about summary refs log tree commit diff
path: root/script.sh
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2024-10-14 18:04:30 -0400
committerZach DeCook <zachdecook@librem.one>2024-10-14 18:04:30 -0400
commitd087ea29e68014179a6ce1fddd4880b570963a55 (patch)
treead713dab6a4317bc41b4951c7c0163d6904c707c /script.sh
downloadpos-dyntercomms-d087ea29e68014179a6ce1fddd4880b570963a55.tar.gz
initial commit of barely working prototype
Diffstat (limited to 'script.sh')
-rwxr-xr-xscript.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/script.sh b/script.sh
new file mode 100755
index 0000000..3e0732d
--- /dev/null
+++ b/script.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+sed "s/sxmo_type[^ ]* \(\S\)$/'\1'/g"|
+sed "s/sxmo_type[^ ]* -k \(\S\+\)$/'\1'/g"|
+sed "s/sxmo_type[^ ]* -M Ctrl \(\S\)$/'<ctrl>\1'/ig"|
+sed "s/sxmo_type[^ ]* -M Ctrl -k \(\S\+\)$/'<ctrl>\1'/ig"|
+sed "s/sxmo_type[^ ]* -k Ctrl -k \(\S\+\)$/'<ctrl>\1'/ig"|
+sed "s/sxmo_type[^ ]* -M Ctrl \(\S\) -m Ctrl$/'<ctrl>\1'/ig"|
+sed "s/sxmo_type[^ ]* -M Ctrl -k \(\S\+\) -m Ctrl$/'<ctrl>\1'/ig"|
+sed "s/sxmo_type[^ ]* -M Shift \(\S\)$/'<shift>\1'/g"|
+sed "s/sxmo_type[^ ]* -M Shift -k \(\S\+\)$/'<shift>\1'/g"|
+sed "s/sxmo_type[^ ]* -M Shift -M Ctrl \(\S\)$/'<ctrl><shift>\1'/ig"|
+sed "s/sxmo_type[^ ]* -M Shift -M Ctrl -k \(\S\+\)$/'<ctrl><shift>\1'/ig"|
+sed "s/sxmo_type[^ ]* -M Ctrl -M Shift \(\S\)$/'<ctrl><shift>\1'/ig"|
+sed "s/sxmo_type[^ ]* -M Ctrl -M Shift -k \(\S\+\)$/'<ctrl><shift>\1'/ig"|
+sed "s/sxmo_type[^ ]* -k Ctrl -k Shift -k \(\S\+\)$/'<ctrl><shift>\1'/ig"|
+sed "s/sxmo_type[^ ]* -M Shift -M Ctrl -M Shift -k g/<ctrl><shift>g/g"|
+sed "s/sxmo_type[^ ]* -M Ctrl -M Shift -M \(Enter\)$/'<ctrl><shift>\1'/ig"|
+sed "s/sxmo_type[^ ]* -M Alt \(\S\)$/'<alt>\1'/g"|
+sed "s/sxmo_type[^ ]* -M Alt -k \(\S\+\)$/'<alt>\1'/g"|
+sed "s/sxmo_type[^ ]* -M Alt \(\S\) -m Alt$/'<alt>\1'/g"|
+sed "s/sxmo_type[^ ]* -M Alt -k \(\S\+\) -m Alt$/'<alt>\1'/g"|
+cat
+
+
+# gsettings set sm.puri.phosh.osk.Terminal shortcuts "['<ctrl>r', 'Home', 'End', '<ctrl>w', '<alt>b', '<alt>f', '<ctrl>v', '<ctrl>c', '<ctrl><shift>v', '<ctrl><shift>c', '<ctrl>q']"