config 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. # Default config for sway
  2. #
  3. # Copy this to ~/.config/sway/config and edit it to your liking.
  4. #
  5. # Read `man 5 sway` for a complete reference.
  6. ### Variables
  7. #
  8. # Logo key. Use Mod1 for Alt.
  9. set $mod Mod4
  10. # Home row direction keys, like vim
  11. set $left h
  12. set $down j
  13. set $up k
  14. set $right l
  15. # Your preferred terminal emulator
  16. set $term lxterminal
  17. # Your preferred application launcher
  18. # Note: pass the final command to swaymsg so that the resulting window can be opened
  19. # on the original workspace that the command was run on.
  20. set $menu swaymsg exec 'wofi --show drun'
  21. ###Colors
  22. ## Base16 Monokai
  23. # Author: Wimer Hazenberg (http://www.monokai.nl)
  24. set $base00 #272822
  25. set $base01 #383830
  26. set $base03 #75715e
  27. set $base05 #f8f8f2
  28. set $base08 #fa2772
  29. set $base0D #36af90
  30. # Border BG Text Ind Child Border
  31. client.focused $base05 $base0D $base00 $base0D $base0D
  32. client.focused_inactive $base01 $base01 $base05 $base03 $base01
  33. client.unfocused $base01 $base00 $base05 $base01 $base01
  34. client.urgent $base08 $base08 $base00 $base08 $base08
  35. ### Output configuration
  36. #
  37. # Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
  38. output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
  39. #
  40. # Example configuration:
  41. #
  42. # output HDMI-A-1 resolution 1920x1080 position 1920,0
  43. #
  44. # You can get the names of your outputs by running: swaymsg -t get_outputs
  45. ### Idle configuration
  46. #
  47. # Example configuration:
  48. #
  49. # exec swayidle -w \
  50. # timeout 300 'swaylock -f -c 000000' \
  51. # timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
  52. # before-sleep 'swaylock -f -c 000000'
  53. #
  54. # This will lock your screen after 300 seconds of inactivity, then turn off
  55. # your displays after another 300 seconds, and turn your screens back on when
  56. # resumed. It will also lock your screen before your computer goes to sleep.
  57. ### Input configuration
  58. #
  59. # Example configuration:
  60. #
  61. # input "2:14:SynPS/2_Synaptics_TouchPad" {
  62. # dwt enabled
  63. # tap enabled
  64. # natural_scroll enabled
  65. # middle_emulation enabled
  66. # }
  67. #
  68. # You can get the names of your inputs by running: swaymsg -t get_inputs
  69. # Read `man 5 sway-input` for more information about this section.
  70. ### Key bindings
  71. #
  72. # Basics:
  73. #
  74. # Start a terminal
  75. bindsym $mod+Return exec $term
  76. # Kill focused window
  77. bindsym $mod+Shift+q kill
  78. # Start your launcher
  79. bindsym $mod+d exec $menu
  80. # Drag floating windows by holding down $mod and left mouse button.
  81. # Resize them with right mouse button + $mod.
  82. # Despite the name, also works for non-floating windows.
  83. # Change normal to inverse to use left mouse button for resizing and right
  84. # mouse button for dragging.
  85. floating_modifier $mod normal
  86. # Reload the configuration file
  87. bindsym $mod+Shift+c reload
  88. # Exit sway (logs you out of your Wayland session)
  89. 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'
  90. #
  91. # Moving around:
  92. #
  93. # Move your focus around
  94. bindsym $mod+$left focus left
  95. bindsym $mod+$down focus down
  96. bindsym $mod+$up focus up
  97. bindsym $mod+$right focus right
  98. # Or use $mod+[up|down|left|right]
  99. bindsym $mod+Left focus left
  100. bindsym $mod+Down focus down
  101. bindsym $mod+Up focus up
  102. bindsym $mod+Right focus right
  103. # Move the focused window with the same, but add Shift
  104. bindsym $mod+Shift+$left move left
  105. bindsym $mod+Shift+$down move down
  106. bindsym $mod+Shift+$up move up
  107. bindsym $mod+Shift+$right move right
  108. # Ditto, with arrow keys
  109. bindsym $mod+Shift+Left move left
  110. bindsym $mod+Shift+Down move down
  111. bindsym $mod+Shift+Up move up
  112. bindsym $mod+Shift+Right move right
  113. #
  114. # Workspaces:
  115. #
  116. # Switch to workspace
  117. bindsym $mod+1 workspace number 1
  118. bindsym $mod+2 workspace number 2
  119. bindsym $mod+3 workspace number 3
  120. bindsym $mod+4 workspace number 4
  121. bindsym $mod+5 workspace number 5
  122. bindsym $mod+6 workspace number 6
  123. bindsym $mod+7 workspace number 7
  124. bindsym $mod+8 workspace number 8
  125. bindsym $mod+9 workspace number 9
  126. bindsym $mod+0 workspace number 10
  127. # Move focused container to workspace
  128. bindsym $mod+Shift+1 move container to workspace number 1
  129. bindsym $mod+Shift+2 move container to workspace number 2
  130. bindsym $mod+Shift+3 move container to workspace number 3
  131. bindsym $mod+Shift+4 move container to workspace number 4
  132. bindsym $mod+Shift+5 move container to workspace number 5
  133. bindsym $mod+Shift+6 move container to workspace number 6
  134. bindsym $mod+Shift+7 move container to workspace number 7
  135. bindsym $mod+Shift+8 move container to workspace number 8
  136. bindsym $mod+Shift+9 move container to workspace number 9
  137. bindsym $mod+Shift+0 move container to workspace number 10
  138. # Note: workspaces can have any name you want, not just numbers.
  139. # We just use 1-10 as the default.
  140. #
  141. # Layout stuff:
  142. #
  143. # You can "split" the current object of your focus with
  144. # $mod+b or $mod+v, for horizontal and vertical splits
  145. # respectively.
  146. bindsym $mod+b splith
  147. bindsym $mod+v splitv
  148. # Switch the current container between different layout styles
  149. bindsym $mod+s layout stacking
  150. bindsym $mod+w layout tabbed
  151. bindsym $mod+e layout toggle split
  152. # Make the current focus fullscreen
  153. bindsym $mod+f fullscreen
  154. # Toggle the current focus between tiling and floating mode
  155. bindsym $mod+Shift+space floating toggle
  156. # Swap focus between the tiling area and the floating area
  157. bindsym $mod+space focus mode_toggle
  158. # Move focus to the parent container
  159. bindsym $mod+a focus parent
  160. #
  161. # Scratchpad:
  162. #
  163. # Sway has a "scratchpad", which is a bag of holding for windows.
  164. # You can send windows there and get them back later.
  165. # Move the currently focused window to the scratchpad
  166. bindsym $mod+Shift+minus move scratchpad
  167. # Show the next scratchpad window or hide the focused scratchpad window.
  168. # If there are multiple scratchpad windows, this command cycles through them.
  169. bindsym $mod+minus scratchpad show
  170. #
  171. # Resizing containers:
  172. #
  173. mode "resize" {
  174. # left will shrink the containers width
  175. # right will grow the containers width
  176. # up will shrink the containers height
  177. # down will grow the containers height
  178. bindsym $left resize shrink width 10px
  179. bindsym $down resize grow height 10px
  180. bindsym $up resize shrink height 10px
  181. bindsym $right resize grow width 10px
  182. # Ditto, with arrow keys
  183. bindsym Left resize shrink width 10px
  184. bindsym Down resize grow height 10px
  185. bindsym Up resize shrink height 10px
  186. bindsym Right resize grow width 10px
  187. # Return to default mode
  188. bindsym Return mode "default"
  189. bindsym Escape mode "default"
  190. }
  191. bindsym $mod+r mode "resize"
  192. #
  193. # Status Bar:
  194. #
  195. # Read `man 5 sway-bar` for more information about this section.
  196. # bar {
  197. # position top
  198. #
  199. # # When the status_command prints a new line to stdout, swaybar updates.
  200. # # The default just shows the current date and time.
  201. # status_command while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done
  202. #
  203. # colors {
  204. # statusline #ffffff
  205. # background #323232
  206. # inactive_workspace #32323200 #32323200 #5c5c5c
  207. # }
  208. }
  209. exec waybar
  210. include /etc/sway/config.d/*