Advertisement
Guest User

Untitled

a guest
Feb 24th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.46 KB | None | 0 0
  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.  
  7. ### Variables
  8. #
  9. # Logo key. Use Mod1 for Alt.
  10. set $mod Mod4
  11. # Home row direction keys, like vim
  12. set $left h
  13. set $down j
  14. set $up k
  15. set $right l
  16. # Your preferred terminal emulator
  17. set $term termite
  18. # Your preferred application launcher
  19. set $menu termite -t swaymenu -c ~/.config/termite/swaymenu --exec ~/.config/sway/swaymenu.sh
  20. # set $menu dmenu_run
  21.  
  22. gaps inner 28
  23. gaps outer 0
  24. default_border pixel 3
  25.  
  26. ### Output configuration
  27. #
  28. # Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
  29. #output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
  30. output * bg /home/void/img/nier_2b_industrial.jpg fill
  31. #
  32. # Example configuration:
  33. #
  34. # output HDMI-A-1 resolution 1920x1080 position 1920,0
  35. #
  36. # You can get the names of your outputs by running: swaymsg -t get_outputs
  37.  
  38. ### Input configuration
  39. #
  40. # Example configuration:
  41. #
  42. # input "2:14:SynPS/2_Synaptics_TouchPad" {
  43. # dwt enabled
  44. # tap enabled
  45. # natural_scroll enabled
  46. # middle_emulation enabled
  47. # }
  48. #
  49. # You can get the names of your inputs by running: swaymsg -t get_inputs
  50. # Read `man 5 sway-input` for more information about this section.
  51.  
  52. ### Key bindings
  53. #
  54. # Basics:
  55. #
  56. # start a terminal
  57. bindsym $mod+Return exec $term
  58.  
  59. # kill focused window
  60. bindsym $mod+Shift+q kill
  61.  
  62. # start your launcher
  63. bindsym $mod+d exec $menu
  64.  
  65. # Drag floating windows by holding down $mod and left mouse button.
  66. # Resize them with right mouse button + $mod.
  67. # Despite the name, also works for non-floating windows.
  68. # Change normal to inverse to use left mouse button for resizing and right
  69. # mouse button for dragging.
  70. floating_modifier $mod normal
  71.  
  72. # reload the configuration file
  73. bindsym $mod+Shift+c reload
  74.  
  75. # exit sway (logs you out of your wayland session)
  76. bindsym $mod+Shift+e exit
  77. #
  78. # Moving around:
  79. #
  80. # Move your focus around
  81. bindsym $mod+$left focus left
  82. bindsym $mod+$down focus down
  83. bindsym $mod+$up focus up
  84. bindsym $mod+$right focus right
  85. # or use $mod+[up|down|left|right]
  86. bindsym $mod+Left focus left
  87. bindsym $mod+Down focus down
  88. bindsym $mod+Up focus up
  89. bindsym $mod+Right focus right
  90.  
  91. # _move_ the focused window with the same, but add Shift
  92. bindsym $mod+Shift+$left move left
  93. bindsym $mod+Shift+$down move down
  94. bindsym $mod+Shift+$up move up
  95. bindsym $mod+Shift+$right move right
  96. # ditto, with arrow keys
  97. bindsym $mod+Shift+Left move left
  98. bindsym $mod+Shift+Down move down
  99. bindsym $mod+Shift+Up move up
  100. bindsym $mod+Shift+Right move right
  101. #
  102. # Workspaces:
  103. #
  104. # switch to workspace
  105. bindsym $mod+1 workspace 1
  106. bindsym $mod+2 workspace 2
  107. bindsym $mod+3 workspace 3
  108. bindsym $mod+4 workspace 4
  109. bindsym $mod+5 workspace 5
  110. bindsym $mod+6 workspace 6
  111. bindsym $mod+7 workspace 7
  112. bindsym $mod+8 workspace 8
  113. bindsym $mod+9 workspace 9
  114. bindsym $mod+0 workspace 10
  115. # move focused container to workspace
  116. bindsym $mod+Shift+1 move container to workspace 1
  117. bindsym $mod+Shift+2 move container to workspace 2
  118. bindsym $mod+Shift+3 move container to workspace 3
  119. bindsym $mod+Shift+4 move container to workspace 4
  120. bindsym $mod+Shift+5 move container to workspace 5
  121. bindsym $mod+Shift+6 move container to workspace 6
  122. bindsym $mod+Shift+7 move container to workspace 7
  123. bindsym $mod+Shift+8 move container to workspace 8
  124. bindsym $mod+Shift+9 move container to workspace 9
  125. bindsym $mod+Shift+0 move container to workspace 10
  126. # Note: workspaces can have any name you want, not just numbers.
  127. # We just use 1-10 as the default.
  128. #
  129. # Layout stuff:
  130. #
  131. # You can "split" the current object of your focus with
  132. # $mod+b or $mod+v, for horizontal and vertical splits
  133. # respectively.
  134. bindsym $mod+b splith
  135. bindsym $mod+v splitv
  136.  
  137. # Switch the current container between different layout styles
  138. bindsym $mod+s layout stacking
  139. bindsym $mod+w layout tabbed
  140. bindsym $mod+e layout toggle split
  141.  
  142. # Make the current focus fullscreen
  143. bindsym $mod+f fullscreen
  144.  
  145. # Toggle the current focus between tiling and floating mode
  146. bindsym $mod+Shift+space floating toggle
  147.  
  148. # Swap focus between the tiling area and the floating area
  149. bindsym $mod+space focus mode_toggle
  150.  
  151. # move focus to the parent container
  152. bindsym $mod+a focus parent
  153. #
  154. # Scratchpad:
  155. #
  156. # Sway has a "scratchpad", which is a bag of holding for windows.
  157. # You can send windows there and get them back later.
  158.  
  159. # Move the currently focused window to the scratchpad
  160. bindsym $mod+Shift+minus move scratchpad
  161.  
  162. # Show the next scratchpad window or hide the focused scratchpad window.
  163. # If there are multiple scratchpad windows, this command cycles through them.
  164. bindsym $mod+minus scratchpad show
  165. #
  166. # Resizing containers:
  167. #
  168. mode "resize" {
  169. # left will shrink the containers width
  170. # right will grow the containers width
  171. # up will shrink the containers height
  172. # down will grow the containers height
  173. bindsym $left resize shrink width 10 px or 10 ppt
  174. bindsym $down resize grow height 10 px or 10 ppt
  175. bindsym $up resize shrink height 10 px or 10 ppt
  176. bindsym $right resize grow width 10 px or 10 ppt
  177.  
  178. # ditto, with arrow keys
  179. bindsym Left resize shrink width 10 px or 10 ppt
  180. bindsym Down resize grow height 10 px or 10 ppt
  181. bindsym Up resize shrink height 10 px or 10 ppt
  182. bindsym Right resize grow width 10 px or 10 ppt
  183.  
  184. # return to default mode
  185. bindsym Return mode "default"
  186. bindsym Escape mode "default"
  187. }
  188. bindsym $mod+r mode "resize"
  189.  
  190. #
  191. # Status Bar:
  192. #
  193. # Read `man 5 sway-bar` for more information about this section.
  194. bar {
  195. position bottom
  196. colors {
  197. statusline #ffffff
  198. background #323232
  199. inactive_workspace #32323200 #32323200 #5c5c5c
  200. }
  201. }
  202.  
  203. include /etc/sway/config.d/*
  204. include ~/.config/sway/conf.d/*
  205.  
  206. # media keys
  207. bindsym XF86MonBrightnessUp exec brightnessctl s +5%
  208. bindsym XF86MonBrightnessDown exec brightnessctl s 5%-
  209. bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +10%
  210. bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -10%
  211. bindsym XF86AudioMute exec pactl set-sink-mute 0 toggle
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement