summaryrefslogtreecommitdiffstats
path: root/ubuntu/_base/core/tdebase/debian/80ubuntu-xmodmap
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-11-15 19:23:30 +0800
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-11-15 19:23:30 +0800
commit0277521b268b21caf0ee21202b92784f302baadc (patch)
tree5d856f96adfbe46b57da31cf60daa1084b4e7a1e /ubuntu/_base/core/tdebase/debian/80ubuntu-xmodmap
parenteb16e7c7281e182297581fa8d565561869c81bca (diff)
downloadtde-packaging-0277521b268b21caf0ee21202b92784f302baadc.tar.gz
tde-packaging-0277521b268b21caf0ee21202b92784f302baadc.zip
DEB: adjusted to new 'core' folder for main packages.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'ubuntu/_base/core/tdebase/debian/80ubuntu-xmodmap')
-rw-r--r--ubuntu/_base/core/tdebase/debian/80ubuntu-xmodmap15
1 files changed, 15 insertions, 0 deletions
diff --git a/ubuntu/_base/core/tdebase/debian/80ubuntu-xmodmap b/ubuntu/_base/core/tdebase/debian/80ubuntu-xmodmap
new file mode 100644
index 000000000..fa60a4107
--- /dev/null
+++ b/ubuntu/_base/core/tdebase/debian/80ubuntu-xmodmap
@@ -0,0 +1,15 @@
+# Set the Ubuntu laptop keycode -> xkeysyms mapping (used by TDE)
+#
+# This file is sourced by Xsession(5), not executed.
+# The "|| true" is to ensure that the Xsession script does not terminate on error
+
+USRMODMAP="$HOME/.Xmodmap"
+
+if [ -x /usr/bin/xmodmap ]; then
+ if [ -f /usr/share/apps/kxkb/ubuntu.xmodmap ]; then
+ /usr/bin/xmodmap /usr/share/apps/kxkb/ubuntu.xmodmap || true
+ fi
+ if [ -f "$USRMODMAP" ]; then
+ /usr/bin/xmodmap "$USRMODMAP" || true
+ fi
+fi