xorg-twm: set key for switching keyboard layouts and make adjustments

This commit is contained in:
Protesilaos Stavrou 2025-01-26 11:23:02 +02:00
parent 0274e05301
commit a2b1fd5222
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA
4 changed files with 7 additions and 9 deletions

View file

@ -37,9 +37,7 @@ _kill_processes() {
# In case something stops working, we can call this script
# (Ctrl+Alt+Delete on my sxhkdrc) and apply the modifications again.
_kbd_reset() {
setxkbmap -layout 'us,gr' -option '' -option 'ctrl:nocaps' \
-option 'altwin:menu_win' -option 'caps:none' \
-option 'compose:ins' -option 'grp:win_space_toggle'
setxkbmap -layout 'us,gr' -option '' -option 'grp:win_space_toggle' -option 'compose:menu'
}
_check_systemd() {

View file

@ -146,13 +146,13 @@ mod4 + {_, shift + }t
mod4 + m
bspc desktop -l next
# Toggle floating, tiled, fullscreen view. Tiled is what is used by
# Toggle floating/tiled and fullscreen view. Tiled is what is used by
# default. Floating windows have their own dimensions and can be stacked
# on top of each other.
# on top of each other. The 's' key is a mnemonic for "stacking".
#
# NOTE the presence of the tilde ~. If current state matches the given
# state, then the argument is interpreted as the last state.
mod4 + {shift + space,f}
mod4 + {s,f}
bspc node -t ~{floating,fullscreen}
# Set the node flags. Locked is a node that cannot be closed with `bspc

View file

@ -43,8 +43,8 @@ mod4 + {_,shift +} {0-9}
herbstclient {use_index,move_index} {0-9}
# Toggle the fullscreen and tiling/floating state of the currently
# focused window.
mod4 + {f,space}
# focused window. The 's' key is a mnemonic for "stacking".
mod4 + {f,s}
herbstclient {fullscreen toggle,set_attr clients.focus.floating toggle}
# Alt + Tab to cycle all windows and frames in the current tag (how

View file

@ -48,7 +48,7 @@ then
# setxkbmap -layout 'us,gr' -option '' -option 'ctrl:nocaps' \
# -option 'altwin:menu_win' -option 'caps:none' \
# -option 'compose:ins' -option 'grp:win_space_toggle'
setxkbmap -layout 'us,gr' -option '' -option 'compose:menu'
setxkbmap -layout 'us,gr' -option '' -option 'grp:win_space_toggle' -option 'compose:menu'
fi
# The hotkey daemon that handles all custom key bindings. I split the