config 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. set $mod Mod4
  2. set $left h
  3. set $down j
  4. set $up k
  5. set $right l
  6. # Autoload
  7. exec mako
  8. # Launcher:
  9. bindsym $mod+Return exec dmenu_path | wofi --show run -I | xargs swaymsg exec --
  10. # Aplications:
  11. bindsym $mod+F1 exec kitty
  12. bindsym $mod+F2 exec firefox
  13. bindsym $mod+F3 exec telegram-desktop
  14. bindsym $mod+F4 exec evince
  15. # Screenshots
  16. bindsym Print exec grim ~/Screenshots/screen-"$(date +%s)".png
  17. bindsym $mod+Print exec grim -g "$(slurp)" ~/Screenshots/screen-"$(date +%s)".png
  18. # Audio output:
  19. bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
  20. bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
  21. bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
  22. # Audio input:
  23. bindsym $mod+F12 exec pactl set-source-volume @DEFAULT_SOURCE@ +5%
  24. bindsym $mod+F11 exec pactl set-source-volume @DEFAULT_SOURCE@ -5%
  25. bindsym $mod+F10 exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
  26. # Player
  27. bindsym XF86AudioPlay exec playerctl play-pause
  28. bindsym XF86AudioNext exec playerctl next
  29. bindsym XF86AudioPrev exec playerctl previous
  30. # Brightness:
  31. bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
  32. bindsym XF86MonBrightnessUp exec brightnessctl set 5%+
  33. # Wallpaper:
  34. output * {
  35. bg ~/Pictures/Wallpapers/Fantasy/60-604584_auroral-forest.jpg fill
  36. }
  37. # Keymap:
  38. input * {
  39. xkb_layout us,ru
  40. xkb_options grp:win_space_toggle
  41. }
  42. # Input devices:
  43. input type:touchpad {
  44. tap enabled
  45. }
  46. for_window [tiling] border pixel 2
  47. #smart_borders on
  48. # Basic key bindings:
  49. bindsym $mod+Shift+q kill
  50. floating_modifier $mod normal
  51. bindsym $mod+Shift+c reload
  52. bindsym $mod+Shift+e exec swaynag -t warning -m 'Do you want to exit sway?' -b 'Yes!' 'swaymsg exit'
  53. # Moving around:
  54. bindsym $mod+$left focus left
  55. bindsym $mod+$down focus down
  56. bindsym $mod+$up focus up
  57. bindsym $mod+$right focus right
  58. bindsym $mod+Left focus left
  59. bindsym $mod+Down focus down
  60. bindsym $mod+Up focus up
  61. bindsym $mod+Right focus right
  62. bindsym $mod+Shift+$left move left
  63. bindsym $mod+Shift+$down move down
  64. bindsym $mod+Shift+$up move up
  65. bindsym $mod+Shift+$right move right
  66. bindsym $mod+Shift+Left move left
  67. bindsym $mod+Shift+Down move down
  68. bindsym $mod+Shift+Up move up
  69. bindsym $mod+Shift+Right move right
  70. # Workspaces:
  71. bindsym $mod+1 workspace number 1
  72. bindsym $mod+2 workspace number 2
  73. bindsym $mod+3 workspace number 3
  74. bindsym $mod+4 workspace number 4
  75. bindsym $mod+5 workspace number 5
  76. bindsym $mod+6 workspace number 6
  77. bindsym $mod+7 workspace number 7
  78. bindsym $mod+8 workspace number 8
  79. bindsym $mod+9 workspace number 9
  80. bindsym $mod+0 workspace number 10
  81. bindsym $mod+Shift+1 move container to workspace number 1
  82. bindsym $mod+Shift+2 move container to workspace number 2
  83. bindsym $mod+Shift+3 move container to workspace number 3
  84. bindsym $mod+Shift+4 move container to workspace number 4
  85. bindsym $mod+Shift+5 move container to workspace number 5
  86. bindsym $mod+Shift+6 move container to workspace number 6
  87. bindsym $mod+Shift+7 move container to workspace number 7
  88. bindsym $mod+Shift+8 move container to workspace number 8
  89. bindsym $mod+Shift+9 move container to workspace number 9
  90. bindsym $mod+Shift+0 move container to workspace number 10
  91. # Layout stuff:
  92. bindsym $mod+b splith
  93. bindsym $mod+v splitv
  94. bindsym $mod+s layout stacking
  95. bindsym $mod+w layout tabbed
  96. bindsym $mod+e layout toggle split
  97. bindsym $mod+f fullscreen
  98. bindsym $mod+Shift+space floating toggle
  99. bindsym $mod+space focus mode_toggle
  100. bindsym $mod+a focus parent
  101. # Floating windows
  102. #for_window [app_id=".*"] floating enable
  103. #for_window [app_id=".*"] border normal
  104. #for_window [name="Double pendulum"] floating enable
  105. # Scratchpad:
  106. bindsym $mod+Shift+minus move scratchpad
  107. bindsym $mod+minus scratchpad show
  108. # Resizing containers:
  109. mode "resize" {
  110. bindsym $left resize shrink width 10px
  111. bindsym $down resize grow height 10px
  112. bindsym $up resize shrink height 10px
  113. bindsym $right resize grow width 10px
  114. bindsym Left resize shrink width 10px
  115. bindsym Down resize grow height 10px
  116. bindsym Up resize shrink height 10px
  117. bindsym Right resize grow width 10px
  118. bindsym Return mode "default"
  119. bindsym Escape mode "default"
  120. }
  121. bindsym $mod+r mode "resize"
  122. # Gaps:
  123. gaps inner 5
  124. #smart_gaps on
  125. # Status Bar:
  126. bar {
  127. swaybar_command waybar
  128. }
  129. include /etc/sway/config.d/*