diff --git a/dot_config/sway/config.tmpl b/dot_config/sway/config.tmpl index 8cea84a..ca2df9b 100644 --- a/dot_config/sway/config.tmpl +++ b/dot_config/sway/config.tmpl @@ -4,8 +4,6 @@ font Cascadia Code 9 # Remove title default_border pixel 2 -default_orientation auto - # Logo key. Use Mod1 for Alt. set $mod Mod4 @@ -18,21 +16,11 @@ set $right l # Terminal emulator set $term foot -# Your preferred application launcher -# Note: pass the final command to swaymsg so that the resulting window can be opened -# on the original workspace that the command was run on. -set $menu dmenu_path | dmenu | xargs swaymsg exec -- - +# Application launcher exec /usr/bin/python3 /usr/bin/ulauncher --no-window-shadow --hide-window 1 > /dev/null -set $menu ulauncher-toggle - +set $menu ulauncher-toggle` for_window [title="Ulauncher - Application Launcher"] border none -input * { - xkb_layout "us,ru" - xkb_options "grp:caps_toggle" -} - #input xkb_model "pc101" ### Output configuration @@ -58,23 +46,18 @@ output * bg /home/v/.config/sway/wallpaper_1.png fill # your displays after another 300 seconds, and turn your screens back on when # resumed. It will also lock your screen before your computer goes to sleep. +# Input config + +input * { + xkb_layout "us,ru" + xkb_options "grp:caps_toggle" +} input type:touchpad { tap enabled - natural_scroll enabled + #natural_scroll enabled + #dwt enabled } -### Input configuration -# -# Example configuration: -# -# input "2:14:SynPS/2_Synaptics_TouchPad" { -# dwt enabled -# tap enabled -# natural_scroll enabled -# middle_emulation enabled -# } -# - bindsym $mod+F1 exec "firefox-developer-edition" bindsym $mod+F2 exec "code --enable-features=UseOzonePlatform --ozone-platform=wayland" bindsym $mod+F3 exec $term ranger @@ -137,6 +120,11 @@ bindsym $mod+Shift+e exec swaymsg exit bindsym $mod+Shift+Down move down bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right + + bindsym $mod+Alt+$left workspace prev + bindsym $mod+Alt+$right workspace next + bindsym $mod+Alt+Left workspace prev + bindsym $mod+Alt+Right workspace next # # Workspaces: #