summaryrefslogtreecommitdiff
path: root/.config/sway/config
diff options
context:
space:
mode:
authorMehdi Sadeghi <mehdi@mehdix.org>2022-03-12 13:47:10 +0100
committerMehdi Sadeghi <mehdi@mehdix.org>2022-03-12 13:50:56 +0100
commit86c3a2253e8761846e79bbf4164766a73bdfd732 (patch)
treeaba624ce82a8e6b85da0a6aceab3eb3e6d8ef6a2 /.config/sway/config
parent001d17542cdda531fa7a2ee8ab90d47e01d251dc (diff)
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
Diffstat (limited to '.config/sway/config')
-rw-r--r--.config/sway/config14
1 files changed, 13 insertions, 1 deletions
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`