From ca99575ce086e957749f75a4822b3ed901eed8b6 Mon Sep 17 00:00:00 2001 From: xero Date: Fri, 4 Sep 2015 17:43:09 -0400 Subject: global vi/m movement keys :key: --- awesome/.xinitrc | 78 --------------------------------------------------- herbstluftwm/.xinitrc | 6 ++-- xmodmap/.xmodmap | 30 ++++++++++++++++++++ 3 files changed, 33 insertions(+), 81 deletions(-) delete mode 100644 awesome/.xinitrc create mode 100644 xmodmap/.xmodmap diff --git a/awesome/.xinitrc b/awesome/.xinitrc deleted file mode 100644 index e49a8aa..0000000 --- a/awesome/.xinitrc +++ /dev/null @@ -1,78 +0,0 @@ -#!/bin/sh -# -# ██ ██ ██ -# ░░ ░░ ░██ -# ██ ██ ██ ███████ ██ ██████ ██████ █████ -# ░░██ ██ ░██░░██░░░██░██░░░██░ ░░██░░█ ██░░░██ -# ░░███ ░██ ░██ ░██░██ ░██ ░██ ░ ░██ ░░ -# ██░██ ░██ ░██ ░██░██ ░██ ░██ ░██ ██ -# ██ ░░██░██ ███ ░██░██ ░░██ ░███ ░░█████ -# ░░ ░░ ░░ ░░░ ░░ ░░ ░░ ░░░ ░░░░░ -# -# ▓▓▓▓▓▓▓▓▓▓ -# ░▓ author ▓ xero -# ░▓ code ▓ http://code.xero.nu/dotfiles -# ░▓ mirror ▓ http://git.io/.files -# ░▓▓▓▓▓▓▓▓▓▓ -# ░░░░░░░░░░ - -# merge custom x resources -xrdb -merge "${HOME}/.Xdefaults" & - -# start the terminal emulator daemon -urxvtd -q -f -o & - -# keyring -gnome-keyring-daemon & - -# wifi -/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & -(sleep 2s && nm-applet --sm-disable) & - -# power management -(sleep 2s && xfce4-power-manager) & - -# sound mixer -(sleep 2s && pnmixer) & - -# volume keys daemon -(sleep 2s && xfce4-volumed) & - -# compositing manager -compton -b --config ~/.config/compton.conf & - -# start thunar daemon -thunar --daemon & - -# wallpaper -nitrogen --restore & - -# configure touchpad -syndaemon -i 0.8 -d & -if egrep -iq 'touchpad' /proc/bus/input/devices; then - synclient VertEdgeScroll=0 & - synclient TapButton1=1 & - synclient HorizTwoFingerScroll=1 & -fi - -# clipboard manager -(sleep 3s && clipit) & - -# keyboard settings - 250 ms delay and 25 cps (characters per second) repeat rate. -xset r rate 250 25 & - -# disable system beep -xset b off & -Xdefaults -# fix cursors. for a minute :/ -xsetroot -cursor_name left_ptr - -# start the rock -mpd & - -# setup fonts -xset +fp ~/.fonts & -xset fp rehash & - -# ░▒▓█ get awesome! █▓▒░ -exec awesome diff --git a/herbstluftwm/.xinitrc b/herbstluftwm/.xinitrc index 7828891..b55f96a 100644 --- a/herbstluftwm/.xinitrc +++ b/herbstluftwm/.xinitrc @@ -18,13 +18,13 @@ # merge custom x resources xrdb -merge "${HOME}/.Xdefaults" & + +# custom keymappings ++xmodmap ~/.xmodmap # start the terminal emulator daemon urxvtd -q -f -o & -# keyring -gnome-keyring-daemon & - # wifi /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & (sleep 2s && nm-applet --sm-disable) & diff --git a/xmodmap/.xmodmap b/xmodmap/.xmodmap new file mode 100644 index 0000000..1d05394 --- /dev/null +++ b/xmodmap/.xmodmap @@ -0,0 +1,30 @@ +! ██ +! ░██ +! ██ ██ ██████████ ██████ ░██ ██████████ ██████ ██████ +! ░░██ ██ ░░██░░██░░██ ██░░░░██ ██████░░██░░██░░██ ░░░░░░██ ░██░░░██ +! ░░███ ░██ ░██ ░██░██ ░██ ██░░░██ ░██ ░██ ░██ ███████ ░██ ░██ +! ██░██ ░██ ░██ ░██░██ ░██░██ ░██ ░██ ░██ ░██ ██░░░░██ ░██████ +! ██ ░░██ ███ ░██ ░██░░██████ ░░██████ ███ ░██ ░██░░████████░██░░░ +! ░░ ░░ ░░░ ░░ ░░ ░░░░░░ ░░░░░░ ░░░ ░░ ░░ ░░░░░░░░ ░██ +! ░░ +! ▓▓▓▓▓▓▓▓▓▓ +! ░▓ author ▓ xero +! ░▓ code ▓ http://code.xero.nu/dotfiles +! ░▓ mirror ▓ http://git.io/.files +! ░▓▓▓▓▓▓▓▓▓▓ +! ░░░░░░░░░░ +! +!█▓▒░ remove caps lock +clear lock +remove Lock = Caps_Lock +remove Shift = Caps_Lock + +!█▓▒░ add mode switch +keycode 66 = NoSymbol NoSymbol +keycode 66 = Mode_switch + +!█▓▒░ set vi movments +keysym h = h H Left NoSymbol NoSymbol NoSymbol +keysym j = j J Down NoSymbol NoSymbol NoSymbol +keysym k = k K Up NoSymbol NoSymbol NoSymbol +keysym l = l L Right NoSymbol lstroke Lstroke -- cgit v1.2.1