~mehdix/dotfiles

86c3a2253e8761846e79bbf4164766a73bdfd732 — Mehdi Sadeghi 2 years ago 001d175
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
5 files changed, 22 insertions(+), 5 deletions(-)

M .config/isync/mbsyncrc
M .config/sway/config
A .config/sway/xdpw
M .ssh/config
M .vimrc
M .config/isync/mbsyncrc => .config/isync/mbsyncrc +1 -1
@@ 1,7 1,7 @@
IMAPAccount main
Host mail.mehdix.org
User mehdi@mehdix.org
PassCmd "pass mail/mx"
PassCmd "pass Email/mail.mehdix.org"
SSLType IMAPS
AuthMechs LOGIN


M .config/sway/config => .config/sway/config +13 -1
@@ 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`

A .config/sway/xdpw => .config/sway/xdpw +7 -0
@@ 0,0 1,7 @@
#!/bin/sh
# Import the WAYLAND_DISPLAY env var from sway into the systemd user session.
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway

# Stop any services that are running, so that they receive the new env var when they restart.
systemctl --user stop pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr
systemctl --user start pipewire-media-session

M .ssh/config => .ssh/config +1 -0
@@ 1,6 1,7 @@
Include ~/.ssh/config.d/*

AddKeysToAgent yes
SetEnv TERM=vt100

Host *
  ControlMaster auto

M .vimrc => .vimrc +0 -3
@@ 17,9 17,6 @@ nnoremap <C-H> <C-W><C-H>
set exrc
set secure


:source /home/rock/.vim/right_align.vim

set arabicshape!
let g:RightAlign_RightBorder = 80
imap <silent> <C-b>    <Plug>RightAlign