summaryrefslogtreecommitdiff
path: root/.config/sway/config
diff options
context:
space:
mode:
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`