From 60e3b00d8b62b35530a9889860c75568f3296c32 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Fri, 21 Feb 2020 14:11:54 -0700 Subject: Added some companion files to make things easier when bootstrapping a new device --- extras/sysroot/etc/systemd/system/lock.service | 10 ++ extras/sysroot/usr/share/X11/xkb/symbols/jr | 110 +++++++++++++++++++++ .../usr/share/X11/xorg.conf.d/00-keyboard.conf | 5 + extras/sysroot/usr/share/xsessions/xmonad.desktop | 8 ++ 4 files changed, 133 insertions(+) create mode 100644 extras/sysroot/etc/systemd/system/lock.service create mode 100644 extras/sysroot/usr/share/X11/xkb/symbols/jr create mode 100644 extras/sysroot/usr/share/X11/xorg.conf.d/00-keyboard.conf create mode 100644 extras/sysroot/usr/share/xsessions/xmonad.desktop (limited to 'extras/sysroot') diff --git a/extras/sysroot/etc/systemd/system/lock.service b/extras/sysroot/etc/systemd/system/lock.service new file mode 100644 index 0000000..fc7ec34 --- /dev/null +++ b/extras/sysroot/etc/systemd/system/lock.service @@ -0,0 +1,10 @@ +[Unit] +Description=Lock the screen on resume from suspend + +[Service] +User=rahm +Environment=DISPLAY=:0 +ExecStart=/usr/bin/xsecurelock + +[Install] +WantedBy=suspend.target diff --git a/extras/sysroot/usr/share/X11/xkb/symbols/jr b/extras/sysroot/usr/share/X11/xkb/symbols/jr new file mode 100644 index 0000000..7463659 --- /dev/null +++ b/extras/sysroot/usr/share/X11/xkb/symbols/jr @@ -0,0 +1,110 @@ +// Dvorak international with dead keys +// Olivier Mehani (shtrom-xorg@ssji.net) +// Reproduce the per-key mapping of us(intl) for the dvorak layout +// aka "I just swapped my keys over" + +partial alphanumeric_keys +xkb_symbols "josh-dvorak-intl" { + name[Group1]= "English (Josh, Dvorak, international with dead keys)"; + + include "us(dvorak)" + + key.type = "EIGHT_LEVEL"; + + key { [ Control_L ] }; + key { [ Control_R ] }; + key { [ Super_L ] }; + key { [ISO_Level5_Shift, ISO_Next_Group, U203D, ISO_Prev_Group] }; + key { [Escape, U2615, b, c, U12000, e, f, g] }; + key { [Return, Return] }; // ‹Return› + key { [BackSpace] }; // ‹BackSpace› ⇔ ⇇ ⇉ + // modifier_map Control { , }; + modifier_map Mod4 { }; + + key {type[Group1]="ONE_LEVEL", symbols[Group1]=[ISO_Level3_Shift]}; + modifier_map Mod5 { }; + + key {type[Group1]="ONE_LEVEL", symbols[Group1]=[ISO_Level5_Shift]}; + modifier_map Lock { }; + + key { [ Hyper_R ] }; + modifier_map Mod3 { }; + + key { [grave, asciitilde, dead_grave, dead_tilde ] }; + + key { [ 1, exclam, exclamdown, onesuperior, U2081, U00B9 ] }; + key { [ 2, at, twosuperior, dead_doubleacute, U2082, U00B2 ] }; + key { [ 3, numbersign, threesuperior, dead_macron, U2083, threesuperior ] }; + key { [ 4, dollar, currency, sterling, U2084, U2074 ] }; + key { [ 5, percent, EuroSign, dead_cedilla, U2085, U2075 ] }; + key { [ 6, dead_circumflex, onequarter, asciicircum, U2086, U2076 ] }; + key { [ 7, ampersand, onehalf, dead_horn, U2087, U2077 ] }; + key { [ 8, asterisk, threequarters, dead_ogonek, U2088, U2078 , infinity ] }; + key { [ 9, parenleft, leftsinglequotemark, dead_breve, U2089, U2079 ] }; + key { [ 0, parenright, rightsinglequotemark, dead_abovering, U2080, U2070 ] }; + key { [ bracketleft, braceleft, guillemotleft, leftdoublequotemark ] }; + key { [bracketright, braceright, guillemotright, rightdoublequotemark ] }; + + // key { [ F1, F1, U2200, U2203] }; // ∀ ∃ + // key { [ F2, F2, periodcentered, U2218] }; // · ∘ + // key { [ F3, F3, leftanglebracket, elementof] }; // ‹ ∈ + // key { [ F4, F4, U2145, infinity] }; // ℵ ∞ + // key { [ F5, F5, rightanglebracket, notelementof] }; // › ∉ + + // key { [ F6, F6, U2297, U2295] }; // ⊗ ⊕ + // key { [ F7, F7, U229B, U2205] }; // ⊛ ∅ + // key { [ F8, F8, integral, U2124] }; // ∫ ℤ + // key { [ F9, F9, U222A, U2229] }; // ∪ ∩ + // key { [ F10, F10, U2206, U29FA] }; // ∆ ⧺ + // key { [ F11, F11, U226A, U22D8] }; // ≪ ⋘ + // key { [ F12, F12, U226B, U22D9] }; // ≫ ⋙ + + key { [apostrophe, quotedbl, dead_acute, dead_diaeresis] }; + key { [ comma, less, ccedilla, Ccedilla , leftanglebracket, U2227 ] }; + key { [ period, greater, dead_abovedot, dead_caron , rightanglebracket, periodcentered, U2218, U2228 ]}; + key { [ p, P, odiaeresis, Odiaeresis , Greek_pi, Greek_PI ] }; + key { [ y, Y, udiaeresis, Udiaeresis , Greek_upsilon, Greek_UPSILON ]}; + + key { [ f, F, Greek_alpha, Greek_ALPHA , Greek_phi, Greek_PHI ]}; + key { [ g, G, Greek_epsilon, Greek_EPSILON , Greek_gamma, Greek_GAMMA ] }; + key { [ c, C, copyright, cent , Greek_psi, Greek_PSI ] }; + key { [ r, R, registered, registered , Greek_rho, Greek_RHO ]}; + key { [ l, L, oslash, Ooblique , Greek_lambda, Greek_LAMBDA ] }; + key { [ slash, question, questiondown, dead_hook ] }; + key { [ equal, plus, multiply, division, U2295, U2297, U229B, U29FA] }; // = + × ÷ ⊕ ⊗ ⊛ ∅ + + key { [ a, A, aacute, Aacute, + Greek_alpha, Greek_ALPHA, U2200, U2135] }; + key { [ o, O, oacute, Oacute, + Greek_omicron, Greek_OMICRON, U01A1, U01A0 ] }; + key { [ e, E, eacute, Eacute , Greek_epsilon, Greek_EPSILON ] }; + key { [ u, U, uacute, Uacute , Greek_theta, Greek_THETA ]}; + key { [ i, I, iacute, Iacute , Greek_iota, Greek_IOTA, U2208 ]}; + key { [ d, D, eth, ETH , Greek_delta, Greek_DELTA ]}; + + key { [ h, H, Greek_lambda, Greek_LAMBDA , Greek_eta, Greek_ETA ]}; + key { [ t, T, thorn, THORN ,Greek_tau, Greek_TAU]}; + key { [ n, N, ntilde, Ntilde , Greek_nu, Greek_NU, U2115] }; + key { [ s, S, ssharp, section ,Greek_sigma, Greek_SIGMA, U017f, integral] }; + key { [ minus, underscore, yen, dead_belowdot, U2500 ] }; + + key { [ semicolon, colon, paragraph, degree, Multi_key ] }; + key { [ q, Q, adiaeresis, Adiaeresis ] }; + key { [ j, J, idiaeresis, Idiaeresis ,Greek_xi, Greek_XI ] }; + key { [ k, K, oe, OE ,Greek_kappa, Greek_KAPPA] }; + key { [ x, X, U2713, U2717 ,Greek_chi, Greek_CHI] }; + key { [ b, B, Greek_beta, U2603 ,Greek_beta, Greek_BETA] }; + key { [ m, M, mu, mu , Greek_mu, Greek_MU ] }; + key { [ w, W, aring, Aring , Greek_finalsmallsigma ]}; + key { [ v, V, U1F609, U1F620 , Greek_omega, Greek_OMEGA ] }; + key { [ z, Z, ae, AE , Greek_zeta, Greek_ZETA ] }; + + key { [ backslash, bar, notsign, brokenbar, U2502 ] }; + key { [ Tab, ISO_Left_Tab, U2192, U2190 , U2192, ISO_Left_Tab, U21D2, U21D0] }; + key { [ space, space, U12001, U12002, U12003, U12004, U12005, U12006 ] }; + + key { [ Down, Down, U2193, U21D3] }; + key { [ Up, Up, U2191, U21D1] }; + key { [ Left, Left, U2190, U21D0] }; + key { [ Right, Right, U2192, U21D2] }; +}; diff --git a/extras/sysroot/usr/share/X11/xorg.conf.d/00-keyboard.conf b/extras/sysroot/usr/share/X11/xorg.conf.d/00-keyboard.conf new file mode 100644 index 0000000..d098ade --- /dev/null +++ b/extras/sysroot/usr/share/X11/xorg.conf.d/00-keyboard.conf @@ -0,0 +1,5 @@ +Section "InputClass" + Identifier "system-keyboard" + MatchIsKeyboard "on" + Option "XkbLayout" "jr" +EndSection diff --git a/extras/sysroot/usr/share/xsessions/xmonad.desktop b/extras/sysroot/usr/share/xsessions/xmonad.desktop new file mode 100644 index 0000000..c51b814 --- /dev/null +++ b/extras/sysroot/usr/share/xsessions/xmonad.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=XMonad +Comment=A lightweigt, customizable, tiling window manager. +Exec=/home/rahm/.local/bin/start-xmonad +TryExec=/home/rahm/.local/bin/start-xmonad +Icon= +Type=Application + -- cgit