From 86c3a2253e8761846e79bbf4164766a73bdfd732 Mon Sep 17 00:00:00 2001 From: Mehdi Sadeghi Date: Sat, 12 Mar 2022 13:47:10 +0100 Subject: Adjust KB layout. Add xdg desktop portal config. - Swap right meta and control. - Add xdg-portal-desktop-wlroot - Set term to foot (foot-extra was a mistake) - Remove Plan9 from generic path --- .config/sway/config | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to '.config/sway/config') diff --git a/.config/sway/config b/.config/sway/config index 92af8b1..060895e 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -53,6 +53,11 @@ input * { xkb_options "lv3:caps_switch,grp:lctrl_lwin_toggle,shift:both_shiftlock" } +input "9456:320:Metadot_-_Das_Keyboard_Das_Keyboard" { + xkb_layout "de(nodeadkeys),ir" + xkb_options "lv3:caps_switch,grp:lctrl_lwin_toggle,shift:both_shiftlock,ctrl:swap_rwin_rctl" +} + input type:touchpad { tap disabled natural_scroll enabled @@ -208,11 +213,15 @@ bindsym XF86Search exec bemenu-run # Screen capture # Thanks to Gentoo wiki at https://wiki.gentoo.org/wiki/Sway # +# Screen to clipboard set $ps1 Print +# Selection to clipboard set $ps2 Control+Print +# Screen to file set $ps3 Alt+Print +# Selection to file set $ps4 Alt+Control+Print - + bindsym $ps1 exec grim - | wl-copy bindsym $ps2 exec grim -g "$(slurp)" - | wl-copy bindsym $ps3 exec grim $(xdg-user-dir PICTURES)/Screenshots/ps_$(date +"%Y%m%d%H%M%S").png @@ -243,5 +252,8 @@ bar { status_command exec ~/.local/bin/any_position_wrapper.sh } +# Prepare for xdg-desktop-portal-wlr +exec ~/.config/sway/xdpw + # Load machine specific configuration include ~/.config/sway/`hostname` -- cgit v1.2.3