summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfilip <“filip.rabiega@gmail.com”>2026-03-10 09:52:09 +0100
committerfilip <“filip.rabiega@gmail.com”>2026-03-10 09:52:09 +0100
commit940118eba8178d177eec73ab100ceacdb2526715 (patch)
tree92910e93a36001815e97f31714cda18819b4cdbf
parent4a6efe57f9bd34924df17bf23ec955f0ec9ea548 (diff)
downloadchadscripts-master.tar.gz
chadscripts-master.tar.bz2
chadscripts-master.zip
add polish locale in remaps and add rmemojisHEADmaster
-rwxr-xr-xremaps3
-rwxr-xr-xrmemojis21
2 files changed, 23 insertions, 1 deletions
diff --git a/remaps b/remaps
index 983522a..ad43b0e 100755
--- a/remaps
+++ b/remaps
@@ -1,11 +1,12 @@
#!/bin/sh
# Remap stuff
+# TODO: fix polish locale
# Increase key speed
xset r rate 200 80
# Switch caps and esc
-setxkbmap us -option caps:swapescape
+setxkbmap us,pl -option caps:swapescape
# When caps lock is pressed only once, treat it as escape
killall xcape 2>/dev/null
diff --git a/rmemojis b/rmemojis
new file mode 100755
index 0000000..1d47db0
--- /dev/null
+++ b/rmemojis
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+# Exit on error
+set -e
+
+if [ "$#" -ne 1 ]; then
+ echo "Usage: $0 <file>" >&2
+ exit 1
+fi
+
+FILE="$1"
+
+if [ ! -f "$FILE" ]; then
+ echo "Error: File not found: $FILE" >&2
+ exit 1
+fi
+
+# Remove emojis in-place (Unicode aware via perl)
+perl -CSDA -i -pe 's/\p{Extended_Pictographic}//g' "$FILE"
+
+echo "Emojis removed from $FILE"