Advertisement
Guest User

Untitled

a guest
May 26th, 2019
462
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.79 KB | None | 0 0
  1. # Read `man 5 sway` for a complete reference.
  2.  
  3. ### Variables
  4. # Logo key. Use Mod1 for Alt.
  5. set $mod Mod4
  6.  
  7. # Home row direction keys, like vim
  8. set $left h
  9. set $down j
  10. set $up k
  11. set $right l
  12.  
  13. # Your preferred terminal emulator
  14. set $term kitty
  15.  
  16. # Your preferred application launcher
  17. set $menu "rofi -show run"
  18.  
  19. # Font
  20. font pango: Tinos Bold for Powerline Bold 12
  21.  
  22. ### Output configuration
  23. #
  24. # Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
  25. output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
  26.  
  27. #
  28. # Example configuration:
  29.  
  30. output HDMI-A-1 resolution 1920x1080 position 0,0
  31.  
  32. # You can get the names of your outputs by running: swaymsg -t get_outputs
  33.  
  34. ### Idle configuration
  35. exec swayidle -w \
  36. timeout 600 'swaylock -f -c 000000' \
  37. timeout 900 'swaymsg "output * dpms off"' \
  38. resume 'swaymsg "output * dpms on"' \
  39. before-sleep 'swaylock -f -c 000000'
  40. #
  41. # This will lock your screen after 600 seconds of inactivity, then turn off
  42. # your displays after another 300 seconds.
  43.  
  44. ### Input configuration
  45. #
  46. # Example configuration:
  47. #
  48. # input "2:14:SynPS/2_Synaptics_TouchPad" {
  49. # dwt enabled
  50. # tap enabled
  51. # natural_scroll enabled
  52. # middle_emulation enabled
  53. # }
  54. #
  55. # You can get the names of your inputs by running: swaymsg -t get_inputs
  56. # Read `man 5 sway-input` for more information about this section.
  57.  
  58. ### Key bindings
  59. #
  60. # Basics:
  61. #
  62. # start a terminal
  63. bindsym $mod+Return exec $term
  64.  
  65. # kill focused window
  66. bindsym $mod+Shift+q kill
  67.  
  68. # start your launcher
  69. bindsym $mod+d exec $menu
  70.  
  71. # Drag floating windows by holding down $mod and left mouse button.
  72. # Resize them with right mouse button + $mod.
  73. # Change normal to inverse to use left mouse button for resizing and right
  74. # mouse button for dragging.
  75. floating_modifier $mod normal
  76.  
  77. # reload the configuration file
  78. bindsym $mod+Shift+c reload
  79.  
  80. #screenshot
  81. bindsym Print exec grim ~/Screenshots/"$(date '+%d-%m-%Y %H:%M')".png
  82.  
  83. # exit sway (logs you out of your Wayland session)
  84. bindsym $mod+Shift+e exec swaynag -t warning -m 'Do you really want to exit sway?' -b 'Yes' 'swaymsg exit'
  85. #
  86. # Moving around:
  87. #
  88. # Move your focus around
  89. bindsym $mod+$left focus left
  90. bindsym $mod+$down focus down
  91. bindsym $mod+$up focus up
  92. bindsym $mod+$right focus right
  93. # or use $mod+[up|down|left|right]
  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.  
  99. # _move_ the focused window with the same, but add Shift
  100. bindsym $mod+Shift+$left move left
  101. bindsym $mod+Shift+$down move down
  102. bindsym $mod+Shift+$up move up
  103. bindsym $mod+Shift+$right move right
  104. # ditto, with arrow keys
  105. bindsym $mod+Shift+Left move left
  106. bindsym $mod+Shift+Down move down
  107. bindsym $mod+Shift+Up move up
  108. bindsym $mod+Shift+Right move right
  109. #
  110. # Workspaces:
  111. #
  112. set $ws1 "1 "
  113. set $ws2 "2 "
  114. set $ws3 "3 "
  115. set $ws4 "4 "
  116. set $ws5 "5 "
  117. set $ws6 "6 "
  118. set $ws7 "7 "
  119. set $ws8 "8 "
  120. set $ws9 "9 "
  121.  
  122. # switch to workspace
  123. bindsym $mod+1 workspace $ws1
  124. bindsym $mod+2 workspace $ws2
  125. bindsym $mod+3 workspace $ws3
  126. bindsym $mod+4 workspace $ws4
  127. bindsym $mod+5 workspace $ws5
  128. bindsym $mod+6 workspace $ws6
  129. bindsym $mod+7 workspace $ws7
  130. bindsym $mod+8 workspace $ws8
  131. bindsym $mod+9 workspace $ws9
  132. # move focused container to workspace
  133. bindsym $mod+Shift+1 move container to workspace $ws1
  134. bindsym $mod+Shift+2 move container to workspace $ws2
  135. bindsym $mod+Shift+3 move container to workspace $ws3
  136. bindsym $mod+Shift+4 move container to workspace $ws4
  137. bindsym $mod+Shift+5 move container to workspace $ws5
  138. bindsym $mod+Shift+6 move container to workspace $ws6
  139. bindsym $mod+Shift+7 move container to workspace $ws7
  140. bindsym $mod+Shift+8 move container to workspace $ws8
  141. bindsym $mod+Shift+9 move container to workspace $ws9
  142. #move and switch
  143. bindsym $mod+Alt+1 move container to workspace $ws1; workspace $ws1
  144. bindsym $mod+Alt+2 move container to workspace $ws2; workspace $ws2
  145. bindsym $mod+Alt+3 move container to workspace $ws3; workspace $ws3
  146. bindsym $mod+Alt+4 move container to workspace $ws4; workspace $ws4
  147. bindsym $mod+Alt+5 move container to workspace $ws5; workspace $ws5
  148. bindsym $mod+Alt+6 move container to workspace $ws6; workspace $ws6
  149. bindsym $mod+Alt+7 move container to workspace $ws7; workspace $ws7
  150. bindsym $mod+Alt+8 move container to workspace $ws8; workspace $ws8
  151. bindsym $mod+Alt+9 move container to workspace $ws9; workspace $ws9
  152.  
  153.  
  154. #
  155. # Layout
  156. #
  157. # You can "split" the current object of your focus with
  158. # $mod+b or $mod+v, for horizontal and vertical splits
  159. # respectively.
  160. bindsym $mod+b splith
  161. bindsym $mod+v splitv
  162.  
  163. # Switch the current container between different layout styles
  164. bindsym $mod+s layout stacking
  165. bindsym $mod+w layout tabbed
  166. bindsym $mod+e layout toggle split
  167.  
  168. # Make the current focus fullscreen
  169. bindsym $mod+f fullscreen
  170.  
  171. # Toggle the current focus between tiling and floating mode
  172. bindsym $mod+Shift+space floating toggle
  173.  
  174. # Swap focus between the tiling area and the floating area
  175. bindsym $mod+space focus mode_toggle
  176.  
  177. # move focus to the parent container
  178. bindsym $mod+a focus parent
  179. #
  180. # Scratchpad:
  181. #
  182. # Sway has a "scratchpad", which is a bag of holding for windows.
  183. # You can send windows there and get them back later.
  184.  
  185. # Move the currently focused window to the scratchpad
  186. bindsym $mod+Shift+minus move scratchpad
  187.  
  188. # Show the next scratchpad window or hide the focused scratchpad window.
  189. # If there are multiple scratchpad windows, this command cycles through them.
  190. bindsym $mod+minus scratchpad show
  191. #
  192. # Resizing containers:
  193. #
  194.  
  195. mode "resize" {
  196. bindsym $left resize shrink width 10px
  197. bindsym $down resize grow height 10px
  198. bindsym $up resize shrink height 10px
  199. bindsym $right resize grow width 10px
  200.  
  201. # ditto, with arrow keys
  202. bindsym Left resize shrink width 10px
  203. bindsym Down resize grow height 10px
  204. bindsym Up resize shrink height 10px
  205. bindsym Right resize grow width 10px
  206.  
  207. # return to default mode
  208. bindsym Return mode "default"
  209. bindsym Escape mode "default"
  210. }
  211. bindsym $mod+r mode "resize"
  212.  
  213. #
  214. # Status Bar:
  215. #
  216. # Read `man 5 sway-bar` for more information about this section.
  217. #
  218.  
  219. set $barBg #323232
  220. set $wsTransparent #ffffff00
  221. set $wsText #5c5c5c
  222.  
  223. bar {
  224. font pango: Iosevka Custom, FontAwesome 13
  225. position top
  226.  
  227. # When the status_command prints a new line to stdout, swaybar updates.
  228. status_command /home/adaj/bin/i3status-rs /home/adaj/.config/sway/status.toml
  229.  
  230.  
  231.  
  232. colors {
  233. background $barBg
  234. focused_workspace $wsTransparent $wsTransparent $wsText
  235. inactive_workspace $barBg $barBg $wsTransparent
  236. }
  237. }
  238.  
  239. include /etc/sway/config.d/*
  240.  
  241. # Appereance
  242. default_border none
  243. hide_edge_borders both
  244. gaps inner 2px
  245. gaps outer 2px
  246. # class border backgr. text indicator child_border
  247. client.focused $barBg $barBg #dbdbdb $barBg $barBg
  248. #client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a
  249. client.unfocused $barBg $barBg #959397 $barBg $barBg
  250. #client.urgent #2f343a #900000 #ffffff #900000 #900000
  251. #client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
  252.  
  253. #client.background #ffffff
  254.  
  255. # Assingments
  256. assign [class="Firefox"] $ws3
  257. assign [class="Pinta"] $ws4
  258. assign [class="Messenger"] $ws9
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement