Commit 257e6ca3 authored by Protesilaos Stavrou's avatar Protesilaos Stavrou

Fix mod3 configs (expands on commit ec885d16)

There are many parts to getting this right.

+ Some changes were necessary in Xmodmap.
+ A few options need to be specified.
+ The Maté settings daemon had to be disabled.

I tried switching layouts between the ones I use: US QWERTY and Greek.
The mod3 setup flawlessly now.

Concerning the settings daemon, I still need to find a solution, because
it provides some nice functionality I wish to keep.  Perhaps a more
lightweight daemon could be used here.  Will need to investigate.
parent 809345ee
......@@ -37,34 +37,22 @@
! Modifications !
!!!!!!!!!!!!!!!!!
! Sometimes the Hyper key is bundled with Mod4 (Super). So what we want
! is to remove it from that group. Mod4 should just cover Super. Then
! I choose to bind Hyper to the Caps key and the right Win key
! (Super_R).
! I know that many Emacs users use Caps as an extra Ctrl, but I have
! never gotten used to that. Whereas now I can use Hyper for my tiling
! window manager, and leave Ctrl, Meta, Super for Emacs. Furthermore, I
! am aware that Emacs can bind different keys to Meta and Alt, but I
! still have no use for that and do not want to increase the complexity
! of my key bindings.
! Clear affected keys
clear lock
clear mod3
clear mod4
! Set the Menu key as Compose
keycode 135 = Multi_key
! Caps Lock as left Hyper
keycode 66 = Hyper_L
! Right Super as Right Hyper
! Keep Super in left Win
keycode 133 = Super_L
! Right Super as right Hyper
keycode 134 = Hyper_R
! Set mod3 to capslock/hyper
! Set hyper
add mod3 = Hyper_L Hyper_R
! Keep Super in tact
add mod4 = Super_L Super_R
\ No newline at end of file
! Set super
add mod4 = Super_L Super_R
......@@ -96,6 +96,21 @@ _bc presel_feedback_color "#2a2829"
# autostart
# =========
# Specify keyboard layout. For the key chord that performs the layout
# switching between US QWERTY and Greek see my `sxhkdrc`.
#
# Found the options in this location (Debian Buster):
# /usr/share/X11/xkb/rules/base.lst
#
# caps:hyper Make Caps Lock an additional Hyper
# compose:menu Menu keys behaves as Compose
#
# The options are required in order for Xmodmap to work properly (see
# below).
if _check setxkbmap; then
setxkbmap -layout 'us,el' -option 'caps:hyper,compose:menu'
fi
# Parse my custom key mappings. These enable Mod3 ("Hyper") and make
# some necessary adjustments to that end. We need to evaluate this
# first otherwise it might mess up with SXHKD.
......@@ -128,20 +143,10 @@ _check compton && compton --config "$HOME"/.config/compton.conf &
# xfdesktop --sm-client-disable --disable-wm-check &
_check feh && "$HOME"/.fehbg &
# specify keyboard layout and compose key
if _check setxkbmap; then
# setxkbmap -layout 'us,gr' -option 'grp:alt_caps_toggle'
setxkbmap -layout 'us'
setxkbmap -option compose:menu
# For the key chord that performs the layout switching between US
# QWERTY and Greek see my `sxhkdrc`. The script:
# `own_script_current_keyboard_layout`
fi
# start the MATE settings daemon to apply GTK themes to running
### DISABLED because it breaks the Xmodmap settings
# Start the MATE settings daemon to apply GTK themes to running
# applications as well as flatpaks (see the `tempus` script).
_check mate-settings-daemon && mate-settings-daemon &
# _check mate-settings-daemon && mate-settings-daemon &
# start music server
_check mpd && mpd
......
......@@ -76,7 +76,7 @@
# the us,gr layout. All this is done to be able to get the active
# keyboard layout and print its name to my system panel (custom lemonbar
# called "melonpanel").
{alt + Caps_Lock,mod3 + Escape}
mod3 + Escape
own_script_current_keyboard_layout
# Environment
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment