-
$mod+d is normally mapped to a shortcut which starts regolith-control-center. I run that tool very infrequently and it happens to collide with the default i3 keybind for i3's run tooling when access a remote i3 session over, say, SPICE or x2go. So I'd like to demap/mask that keybinding for my own use. I'd like to avoid taking on the maintenance responsibility of overriding any partials or modifying the defaults files on the system and outside of my user's home dir. So I've been trying this:
from my i3 99_conf in ~/.config/regolith3... However, on config reload this causes i3 to complain about a duplicate keybinding for nop. I've been digging around to find where a keybinding to nop might be hiding but the defaults from the packages are a bit, well, it's hard to grok where to look. I find the i3 partials / default but they are variablized with $wm... and I'm not finding where those resource names are being set. Anyone have any advice on how to map that bind to nop so I can re-use it or to change the default keybind for regolith-control-center via my Xresources so as to avoid a collision with remote i3 (non-regolith) sessions? thx |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @trharmon0!
You can find all of the official XResource files in $ find /usr/share/regolith
/usr/share/regolith
/usr/share/regolith/sway
/usr/share/regolith/sway/config.d
/usr/share/regolith/sway/config.d/35_gaps
/usr/share/regolith/sway/config.d/40_childe
/usr/share/regolith/sway/config.d/42_gtklock
/usr/share/regolith/sway/config.d/55_session_keybindings
/usr/share/regolith/sway/config.d/85_polkit
/usr/share/regolith/sway/config.d/96_clamshell
/usr/share/regolith/sway/config.d/80_swaybg
/usr/share/regolith/sway/config.d/10_dbus-activation
/usr/share/regolith/sway/config.d/80_grimshot
/usr/share/regolith/sway/config.d/25_xdg_desktop_portal
/usr/share/regolith/sway/config.d/20_ilia
/usr/share/regolith/sway/config.d/86_unclutter
/usr/share/regolith/sway/config.d/40_default-style
/usr/share/regolith/sway/config.d/70_bar_i3status-rs
/usr/share/regolith/sway/config.d/30_keyboard_layout
/usr/share/regolith/sway/config.d/60_config_keybindings
/usr/share/regolith/sway/config.d/65_media_keybindings
/usr/share/regolith/sway/config.d/82_audio_idle_inhibit
/usr/share/regolith/common
/usr/share/regolith/common/config.d
/usr/share/regolith/common/config.d/50_resize-mode
/usr/share/regolith/common/config.d/88_network-manager
/usr/share/regolith/common/config.d/82_rofication-ilia
/usr/share/regolith/common/config.d/40_workspace-config
/usr/share/regolith/common/config.d/30_navigation
/usr/share/regolith/common/config.d/84_ftue
/usr/share/regolith/common/config.d/15_base_launchers
First let's find the existing mapping for $ find /usr/share/regolith | xargs grep -HsF 'set_from_resource' | grep ' d'
...
/usr/share/regolith/sway/config.d/60_config_keybindings:set_from_resource $wm.binding.display wm.binding.display d
... There is a convention in Regolith XResource files that the programs launched by keybindings are also defined in Regolith. For any $ find /usr/share/regolith | xargs grep -HsF "wm.program.display"
/usr/share/regolith/sway/config.d/60_config_keybindings:set_from_resource $wm.program.display wm.program.display regolith-control-center display
/usr/share/regolith/sway/config.d/60_config_keybindings:bindsym $mod+$wm.binding.display exec --no-startup-id $wm.program.display We can simply redefine the echo "wm.program.display: :" >> ~/.config/regolith3/Xresources After refresh or relogin the |
Beta Was this translation helpful? Give feedback.
Hi @trharmon0!
You can find all of the official XResource files in
/usr/share/regolith
. Here's what mine looks like, although I'm running sway instead of i3 it doesn't really matter.