Closes #66
This commit is contained in:
53
x/marble-mouse/10-evdev.conf
Normal file
53
x/marble-mouse/10-evdev.conf
Normal file
@@ -0,0 +1,53 @@
|
||||
# - - - Logitech Marble Mouse Settings - - -
|
||||
#
|
||||
# The Logitech Marble Mouse buttons are mapped [A-D] from left to right:
|
||||
# A (large); B (small) | C (small); D (large).
|
||||
#
|
||||
# Preferred options for right-handed usage:
|
||||
# A = normal click [1]
|
||||
# B = middle-click [2]
|
||||
# C = middle-click [2]
|
||||
# D = right-click [3]
|
||||
# Hold button B while rolling trackball to emulate wheel-scrolling.
|
||||
#
|
||||
# Preferred options for left-handed usage:
|
||||
# A = right-click [3]
|
||||
# B = middle-click [2]
|
||||
# C = middle-click [2]
|
||||
# D = normal click [1]
|
||||
# Hold button C while rolling trackball to emulate wheel-scrolling.
|
||||
# Pressing both large buttons simultaneously (b) produces a "back" action.
|
||||
|
||||
Section "InputClass"
|
||||
Identifier "Marble Mouse"
|
||||
MatchProduct "Logitech USB Trackball"
|
||||
MatchIsPointer "on"
|
||||
MatchDevicePath "/dev/input/event*"
|
||||
Driver "evdev"
|
||||
|
||||
# Physical button #s: A b D - - - - B C
|
||||
# Option "ButtonMapping" "1 8 3 4 5 6 7 2 2" right-hand placement
|
||||
# Option "ButtonMapping" "3 8 1 4 5 6 7 2 2" left-hand placement
|
||||
# b = A & D
|
||||
#Option "ButtonMapping" "1 8 3 4 5 6 7 2 2"
|
||||
Option "ButtonMapping" "3 8 1 4 5 6 7 2 2"
|
||||
|
||||
# EmulateWheel: Use Marble Mouse trackball as mouse wheel
|
||||
# Factory Default: 8; Use 9 for right side small button
|
||||
Option "EmulateWheel" "true"
|
||||
Option "EmulateWheelButton" "8"
|
||||
|
||||
# EmulateWheelInertia: How far (in pixels) the pointer must move to
|
||||
# generate button press/release events in wheel emulation mode.
|
||||
# Factory Default: 50
|
||||
Option "EmulateWheelInertia" "10"
|
||||
|
||||
# Axis Mapping: Enable vertical [ZAxis] and horizontal [XAxis] scrolling
|
||||
Option "ZAxisMapping" "4 5"
|
||||
# Option "XAxisMapping" "6 7"
|
||||
|
||||
# Emulate3Buttons: Required to interpret simultaneous press of two large
|
||||
# buttons, A & D, as a seperate command, b.
|
||||
# Factory Default: true
|
||||
Option "Emulate3Buttons" "true"
|
||||
EndSection
|
||||
13
x/marble-mouse/set-config.sh
Executable file
13
x/marble-mouse/set-config.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Get directory variables from script.
|
||||
sh ../../dirs.sh
|
||||
|
||||
config_file_name="10-evdev.conf"
|
||||
sys_layout_file="/etc/X11/xorg.conf.d/$config_file_name"
|
||||
config_dir="$linux_config_dir/x/marble-mouse"
|
||||
|
||||
# Remove system file.
|
||||
sudo rm -rf "$sys_layout_file"
|
||||
# Link config file in repository to system config location.
|
||||
sudo ln -s "$config_dir"/"$config_file_name" "$sys_layout_file"
|
||||
87
x/xkb/NZXT-pc
Normal file
87
x/xkb/NZXT-pc
Normal file
@@ -0,0 +1,87 @@
|
||||
default partial alphanumeric_keys modifier_keys
|
||||
xkb_symbols "pc105" {
|
||||
|
||||
key <ESC> { [ Escape ] };
|
||||
|
||||
// The extra key on many European keyboards:
|
||||
key <LSGT> { [ less, greater, bar, brokenbar ] };
|
||||
|
||||
// The following keys are common to all layouts.
|
||||
key <BKSL> { [ backslash, bar ] };
|
||||
key <SPCE> { [ space ] };
|
||||
|
||||
include "srvr_ctrl(fkey2vt)"
|
||||
include "pc(editing)"
|
||||
include "keypad(x11)"
|
||||
|
||||
key <BKSP> { [ Caps_Lock ] };
|
||||
|
||||
key <TAB> { [ Tab, ISO_Left_Tab ] };
|
||||
key <RTRN> { [ Return ] };
|
||||
|
||||
key <CAPS> { [ BackSpace, BackSpace ] };
|
||||
key <NMLK> { [ Num_Lock ] };
|
||||
|
||||
key <LFSH> { [ Shift_L ] };
|
||||
key <LCTL> { [ Control_L ] };
|
||||
key <LWIN> { [ Super_L ] };
|
||||
|
||||
key <RTSH> { [ Shift_R ] };
|
||||
key <RCTL> { [ Control_R ] };
|
||||
key <RWIN> { [ Super_R ] };
|
||||
key <MENU> { [ Menu ] };
|
||||
|
||||
// Beginning of modifier mappings.
|
||||
modifier_map Shift { Shift_L, Shift_R };
|
||||
modifier_map Lock { Caps_Lock };
|
||||
modifier_map Control{ Control_L, Control_R };
|
||||
modifier_map Mod2 { Num_Lock };
|
||||
modifier_map Mod4 { Super_L, Super_R };
|
||||
|
||||
// Fake keys for virtual<->real modifiers mapping:
|
||||
key <LVL3> { [ ISO_Level3_Shift ] };
|
||||
key <MDSW> { [ Mode_switch ] };
|
||||
modifier_map Mod5 { <LVL3>, <MDSW> };
|
||||
|
||||
key <ALT> { [ NoSymbol, Alt_L ] };
|
||||
include "altwin(meta_alt)"
|
||||
|
||||
key <META> { [ NoSymbol, Meta_L ] };
|
||||
modifier_map Mod1 { <META> };
|
||||
|
||||
key <SUPR> { [ NoSymbol, Super_L ] };
|
||||
modifier_map Mod4 { <SUPR> };
|
||||
|
||||
key <HYPR> { [ NoSymbol, Hyper_L ] };
|
||||
modifier_map Mod4 { <HYPR> };
|
||||
// End of modifier mappings.
|
||||
|
||||
key <OUTP> { [ XF86Display ] };
|
||||
key <KITG> { [ XF86KbdLightOnOff ] };
|
||||
key <KIDN> { [ XF86KbdBrightnessDown ] };
|
||||
key <KIUP> { [ XF86KbdBrightnessUp ] };
|
||||
};
|
||||
|
||||
hidden partial alphanumeric_keys
|
||||
xkb_symbols "editing" {
|
||||
key <PRSC> {
|
||||
type= "PC_ALT_LEVEL2",
|
||||
symbols[Group1]= [ Print, Sys_Req ]
|
||||
};
|
||||
key <SCLK> { [ Scroll_Lock ] };
|
||||
key <PAUS> {
|
||||
type= "PC_CONTROL_LEVEL2",
|
||||
symbols[Group1]= [ Pause, Break ]
|
||||
};
|
||||
key <INS> { [ Insert ] };
|
||||
key <HOME> { [ Home ] };
|
||||
key <PGUP> { [ Prior ] };
|
||||
key <DELE> { [ Delete ] };
|
||||
key <END> { [ End ] };
|
||||
key <PGDN> { [ Next ] };
|
||||
|
||||
key <UP> { [ Up ] };
|
||||
key <LEFT> { [ Left ] };
|
||||
key <DOWN> { [ Down ] };
|
||||
key <RGHT> { [ Right ] };
|
||||
};
|
||||
87
x/xkb/X1-Carbon-pc
Normal file
87
x/xkb/X1-Carbon-pc
Normal file
@@ -0,0 +1,87 @@
|
||||
default partial alphanumeric_keys modifier_keys
|
||||
xkb_symbols "pc105" {
|
||||
|
||||
key <ESC> { [ Escape ] };
|
||||
|
||||
// The extra key on many European keyboards:
|
||||
key <LSGT> { [ less, greater, bar, brokenbar ] };
|
||||
|
||||
// The following keys are common to all layouts.
|
||||
key <BKSL> { [ backslash, bar ] };
|
||||
key <SPCE> { [ space ] };
|
||||
|
||||
include "srvr_ctrl(fkey2vt)"
|
||||
include "pc(editing)"
|
||||
include "keypad(x11)"
|
||||
|
||||
key <END> { [ BackSpace, BackSpace ] };
|
||||
|
||||
key <TAB> { [ Tab, ISO_Left_Tab ] };
|
||||
key <RTRN> { [ Return ] };
|
||||
|
||||
key <CAPS> { [ Caps_Lock ] };
|
||||
key <NMLK> { [ Num_Lock ] };
|
||||
|
||||
key <LFSH> { [ Shift_L ] };
|
||||
key <LCTL> { [ Control_L ] };
|
||||
key <LWIN> { [ Super_L ] };
|
||||
|
||||
key <RTSH> { [ Shift_R ] };
|
||||
key <RCTL> { [ Control_R ] };
|
||||
key <RWIN> { [ Super_R ] };
|
||||
key <MENU> { [ Menu ] };
|
||||
|
||||
// Beginning of modifier mappings.
|
||||
modifier_map Shift { Shift_L, Shift_R };
|
||||
modifier_map Lock { Caps_Lock };
|
||||
modifier_map Control{ Control_L, Control_R };
|
||||
modifier_map Mod2 { Num_Lock };
|
||||
modifier_map Mod4 { Super_L, Super_R };
|
||||
|
||||
// Fake keys for virtual<->real modifiers mapping:
|
||||
key <LVL3> { [ ISO_Level3_Shift ] };
|
||||
key <MDSW> { [ Mode_switch ] };
|
||||
modifier_map Mod5 { <LVL3>, <MDSW> };
|
||||
|
||||
key <ALT> { [ NoSymbol, Alt_L ] };
|
||||
include "altwin(meta_alt)"
|
||||
|
||||
key <META> { [ NoSymbol, Meta_L ] };
|
||||
modifier_map Mod1 { <META> };
|
||||
|
||||
key <SUPR> { [ NoSymbol, Super_L ] };
|
||||
modifier_map Mod4 { <SUPR> };
|
||||
|
||||
key <HYPR> { [ NoSymbol, Hyper_L ] };
|
||||
modifier_map Mod4 { <HYPR> };
|
||||
// End of modifier mappings.
|
||||
|
||||
key <OUTP> { [ XF86Display ] };
|
||||
key <KITG> { [ XF86KbdLightOnOff ] };
|
||||
key <KIDN> { [ XF86KbdBrightnessDown ] };
|
||||
key <KIUP> { [ XF86KbdBrightnessUp ] };
|
||||
};
|
||||
|
||||
hidden partial alphanumeric_keys
|
||||
xkb_symbols "editing" {
|
||||
key <PRSC> {
|
||||
type= "PC_ALT_LEVEL2",
|
||||
symbols[Group1]= [ Print, Sys_Req ]
|
||||
};
|
||||
key <SCLK> { [ Scroll_Lock ] };
|
||||
key <PAUS> {
|
||||
type= "PC_CONTROL_LEVEL2",
|
||||
symbols[Group1]= [ Pause, Break ]
|
||||
};
|
||||
key <INS> { [ Insert ] };
|
||||
key <BKSP> { [ Home ] };
|
||||
key <PGUP> { [ Prior ] };
|
||||
key <HOME> { [ Delete ] };
|
||||
key <DELE> { [ End ] };
|
||||
key <PGDN> { [ Next ] };
|
||||
|
||||
key <UP> { [ Up ] };
|
||||
key <LEFT> { [ Left ] };
|
||||
key <DOWN> { [ Down ] };
|
||||
key <RGHT> { [ Right ] };
|
||||
};
|
||||
14
x/xkb/set-layouts.sh
Executable file
14
x/xkb/set-layouts.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
# Get directory variables from script.
|
||||
. ../dirs.sh
|
||||
|
||||
xkb_config_file_name="pc"
|
||||
sys_layout_file="/usr/share/X11/xkb/symbols/$xkb_config_file_name"
|
||||
xkb_config_dir="$linux_config_dir/xkb"
|
||||
|
||||
# Copy system file into xkb_config_dir.
|
||||
# cp "$sys_layout_file" ./"$pc"-"$xkb_config_file_name"
|
||||
|
||||
# Remove system file.
|
||||
sudo rm -rf "$sys_layout_file"
|
||||
# Link config file in repository to system config location.
|
||||
sudo ln -s "$xkb_config_dir"/"$pc"-"$xkb_config_file_name" "$sys_layout_file"
|
||||
Reference in New Issue
Block a user