Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 

213 Zeilen
6.4 KiB

  1. # Read `man 5 sway` for a complete reference.
  2. ### Variables
  3. #
  4. # Mod4 = Logo key. Mod1 = Alt.
  5. # Using Mod1 for now since nothing better is available on the virtual keyboard.
  6. set $mod Mod1
  7. # Home row direction keys, like vim
  8. set $left h
  9. set $down j
  10. set $up k
  11. set $right l
  12. # Your preferred terminal emulator
  13. set $term termite
  14. # Your preferred application launcher
  15. # Note: pass the final command to swaymsg so that the resulting window can be opened
  16. # on the original workspace that the command was run on.
  17. set $menu bemenu-run | xargs swaymsg exec --
  18. ### Output configuration
  19. #
  20. # Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
  21. output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
  22. #
  23. # Example configuration:
  24. #
  25. # output HDMI-A-1 resolution 1920x1080 position 1920,0
  26. #
  27. # You can get the names of your outputs by running: swaymsg -t get_outputs
  28. ### Idle configuration
  29. #
  30. # Example configuration:
  31. #
  32. # exec swayidle -w \
  33. # timeout 300 'swaylock -f -c 000000' \
  34. # timeout 600 'swaymsg "output * dpms off"' \
  35. # resume 'swaymsg "output * dpms on"' \
  36. # before-sleep 'swaylock -f -c 000000'
  37. #
  38. # This will lock your screen after 300 seconds of inactivity, then turn off
  39. # your displays after another 300 seconds, and turn your screens back on when
  40. # resumed. It will also lock your screen before your computer goes to sleep.
  41. ### Input configuration
  42. #
  43. # Example configuration:
  44. #
  45. # input "2:14:SynPS/2_Synaptics_TouchPad" {
  46. # dwt enabled
  47. # tap enabled
  48. # natural_scroll enabled
  49. # middle_emulation enabled
  50. # }
  51. #
  52. # You can get the names of your inputs by running: swaymsg -t get_inputs
  53. # Read `man 5 sway-input` for more information about this section.
  54. ### Key bindings
  55. #
  56. # Basics:
  57. #
  58. # Start a terminal
  59. bindsym $mod+Return exec $term
  60. # Kill focused window
  61. bindsym $mod+q kill
  62. # Start your launcher
  63. bindsym $mod+d exec $menu
  64. # Drag floating windows by holding down $mod and left mouse button.
  65. # Resize them with right mouse button + $mod.
  66. # Despite the name, also works for non-floating windows.
  67. # Change normal to inverse to use left mouse button for resizing and right
  68. # mouse button for dragging.
  69. floating_modifier $mod normal
  70. # Reload the configuration file
  71. bindsym $mod+Shift+c reload
  72. # Exit sway (logs you out of your Wayland session)
  73. bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
  74. #
  75. # Moving around:
  76. #
  77. # Move your focus around
  78. bindsym $mod+$left focus left
  79. bindsym $mod+$down focus down
  80. bindsym $mod+$up focus up
  81. bindsym $mod+$right focus right
  82. # Or use $mod+[up|down|left|right]
  83. bindsym $mod+Left focus left
  84. bindsym $mod+Down focus down
  85. bindsym $mod+Up focus up
  86. bindsym $mod+Right focus right
  87. # Move the focused window with the same, but add Shift
  88. bindsym $mod+Shift+$left move left
  89. bindsym $mod+Shift+$down move down
  90. bindsym $mod+Shift+$up move up
  91. bindsym $mod+Shift+$right move right
  92. # Ditto, with arrow keys
  93. bindsym $mod+Shift+Left move left
  94. bindsym $mod+Shift+Down move down
  95. bindsym $mod+Shift+Up move up
  96. bindsym $mod+Shift+Right move right
  97. #
  98. # Workspaces:
  99. #
  100. # Switch to workspace
  101. bindsym $mod+1 workspace 1
  102. bindsym $mod+2 workspace 2
  103. bindsym $mod+3 workspace 3
  104. bindsym $mod+4 workspace 4
  105. bindsym $mod+5 workspace 5
  106. bindsym $mod+6 workspace 6
  107. bindsym $mod+7 workspace 7
  108. bindsym $mod+8 workspace 8
  109. bindsym $mod+9 workspace 9
  110. bindsym $mod+0 workspace 10
  111. # Move focused container to workspace
  112. bindsym $mod+Shift+1 move container to workspace 1
  113. bindsym $mod+Shift+2 move container to workspace 2
  114. bindsym $mod+Shift+3 move container to workspace 3
  115. bindsym $mod+Shift+4 move container to workspace 4
  116. bindsym $mod+Shift+5 move container to workspace 5
  117. bindsym $mod+Shift+6 move container to workspace 6
  118. bindsym $mod+Shift+7 move container to workspace 7
  119. bindsym $mod+Shift+8 move container to workspace 8
  120. bindsym $mod+Shift+9 move container to workspace 9
  121. bindsym $mod+Shift+0 move container to workspace 10
  122. # Note: workspaces can have any name you want, not just numbers.
  123. # We just use 1-10 as the default.
  124. #
  125. # Layout stuff:
  126. #
  127. # You can "split" the current object of your focus with
  128. # $mod+b or $mod+v, for horizontal and vertical splits
  129. # respectively.
  130. bindsym $mod+b splith
  131. bindsym $mod+v splitv
  132. # Switch the current container between different layout styles
  133. bindsym $mod+s layout stacking
  134. bindsym $mod+w layout tabbed
  135. bindsym $mod+e layout toggle split
  136. # Make the current focus fullscreen
  137. bindsym $mod+f fullscreen
  138. # Toggle the current focus between tiling and floating mode
  139. bindsym $mod+Shift+space floating toggle
  140. # Swap focus between the tiling area and the floating area
  141. bindsym $mod+space focus mode_toggle
  142. # Move focus to the parent container
  143. bindsym $mod+a focus parent
  144. #
  145. # Scratchpad:
  146. #
  147. # Sway has a "scratchpad", which is a bag of holding for windows.
  148. # You can send windows there and get them back later.
  149. # Move the currently focused window to the scratchpad
  150. bindsym $mod+Shift+minus move scratchpad
  151. # Show the next scratchpad window or hide the focused scratchpad window.
  152. # If there are multiple scratchpad windows, this command cycles through them.
  153. bindsym $mod+minus scratchpad show
  154. #
  155. # Resizing containers:
  156. #
  157. mode "resize" {
  158. # left will shrink the containers width
  159. # right will grow the containers width
  160. # up will shrink the containers height
  161. # down will grow the containers height
  162. bindsym $left resize shrink width 10px
  163. bindsym $down resize grow height 10px
  164. bindsym $up resize shrink height 10px
  165. bindsym $right resize grow width 10px
  166. # Ditto, with arrow keys
  167. bindsym Left resize shrink width 10px
  168. bindsym Down resize grow height 10px
  169. bindsym Up resize shrink height 10px
  170. bindsym Right resize grow width 10px
  171. # Return to default mode
  172. bindsym Return mode "default"
  173. bindsym Escape mode "default"
  174. }
  175. bindsym $mod+r mode "resize"
  176. # Scale the touchscreen LCD 2x
  177. output DSI-1 scale 2
  178. # Keyboard
  179. exec squeekboard
  180. # Gesture detection
  181. exec lisgd
  182. # Top and bottom status bar
  183. exec "waybar -c ~/.config/waybar/config_0 -b b0"
  184. exec "waybar -c ~/.config/waybar/config_1 -b b1"