Advertisement
Guest User

Untitled

a guest
May 26th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.50 KB | None | 0 0
  1. # Set the modkey.
  2. set $mod Mod1
  3.  
  4. # Set the font.
  5. font pango:DejaVa Sans Mono 13
  6.  
  7. # Set the floating modifier.
  8. floating_modifier $mod
  9.  
  10. # Set the terminal.
  11. bindsym $mod+Return exec alacritty
  12.  
  13. # Kill the focused window.
  14. bindsym $mod+Shift+q kill
  15.  
  16. # Set the program launcher to dmenu.
  17. bindsym $mod+d exec dmenu_run
  18.  
  19. # Lock the screen.
  20. bindsym $mod+Pause exec ricelock
  21.  
  22. # Screenshot.
  23. bindsym Print exec grim -g "$(slurp)" - | wl-copy
  24.  
  25. # Change the focus.
  26. bindsym $mod+h focus left
  27. bindsym $mod+j focus down
  28. bindsym $mod+k focus up
  29. bindsym $mod+l focus right
  30.  
  31. # Move the focused window.
  32. bindsym $mod+Shift+h move left
  33. bindsym $mod+Shift+j move down
  34. bindsym $mod+Shift+k move up
  35. bindsym $mod+Shift+l move right
  36.  
  37. # Split in horitizontal orientation.
  38. bindsym $mod+b split h
  39.  
  40. # Split in vertical orientation.
  41. bindsym $mod+v split v
  42.  
  43. # Enter fullscreen mode for the focused container.
  44. bindsym $mod+f fullscreen toggle
  45.  
  46. # Change container layout.
  47. bindsym $mod+s layout stacking
  48. bindsym $mod+w layout tabbed
  49. bindsym $mod+e layout toggle split
  50.  
  51. # Toggle between tiling and floating.
  52. bindsym $mod+Shift+space floating toggle
  53.  
  54. # Change focus between tiling and floating windows.
  55. bindsym $mod+space focus mode_toggle
  56.  
  57. # Focus the parent container.
  58. bindsym $mod+a focus parent
  59.  
  60. # Switch to workspace.
  61. bindsym $mod+1 workspace 1
  62. bindsym $mod+2 workspace 2
  63. bindsym $mod+3 workspace 3
  64. bindsym $mod+4 workspace 4
  65. bindsym $mod+5 workspace 5
  66. bindsym $mod+6 workspace 6
  67. bindsym $mod+7 workspace 7
  68. bindsym $mod+8 workspace 8
  69. bindsym $mod+9 workspace 9
  70. bindsym $mod+0 workspace 10
  71.  
  72. # Move focused container to workspace.
  73. bindsym $mod+Shift+1 move container to workspace 1
  74. bindsym $mod+Shift+2 move container to workspace 2
  75. bindsym $mod+Shift+3 move container to workspace 3
  76. bindsym $mod+Shift+4 move container to workspace 4
  77. bindsym $mod+Shift+5 move container to workspace 5
  78. bindsym $mod+Shift+6 move container to workspace 6
  79. bindsym $mod+Shift+7 move container to workspace 7
  80. bindsym $mod+Shift+8 move container to workspace 8
  81. bindsym $mod+Shift+9 move container to workspace 9
  82. bindsym $mod+Shift+0 move container to workspace 10
  83.  
  84. # Auto load applications in certain workspaces.
  85. assign [class="Firefox"] 1
  86. assign [class="keepassxc"] 2
  87.  
  88. # Reload the configuration file.
  89. bindsym $mod+Shift+c reload
  90.  
  91. # Restart sway inplace.
  92. bindsym $mod+Shift+r reload
  93.  
  94. # Exit sway.
  95. bindsym $mod+Shift+e exit
  96.  
  97. # Resize window.
  98. bindsym $mod+r mode "resize"
  99.  
  100. mode "resize" {
  101. bindsym l resize shrink width 10 px or 10 ppt
  102. bindsym k resize grow height 10 px or 10 ppt
  103. bindsym j resize shrink height 10 px or 10 ppt
  104. bindsym h resize grow width 10 px or 10 ppt
  105. bindsym $mod+r mode "default"
  106. }
  107.  
  108. # Bar.
  109. bar {
  110. tray_output none
  111. status_command i3blocks -c ~/projects/arch_rice/sway/i3blocks.conf
  112. colors {
  113. background "#2f343f"
  114. }
  115. }
  116.  
  117. # Alsa audio controls.
  118. bindsym XF86AudioRaiseVolume exec amixer -q sset Master 5%+
  119. bindsym XF86AudioLowerVolume exec amixer -q sset Master 5%-
  120. bindsym XF86AudioMute exec amixer -q sset Master toggle
  121.  
  122. # Sreen brightness controls.
  123. bindsym XF86MonBrightnessUp exec light -A 5
  124. bindsym XF86MonBrightnessDown exec light -U 5
  125.  
  126. # Set background.
  127. output * background ~/pictures/wallpaper.png fill
  128.  
  129. # Disable window titlebars.
  130. default_border none
  131.  
  132. # TODO: is this bad?
  133. # Enable numlock.
  134. input * xkb_numlock enabled
  135.  
  136. # Enable tap to click.
  137. input * tap enabled
  138.  
  139. # Gaps.
  140. gaps inner 15
  141.  
  142. # Enable lock on sleep.
  143. exec xss-lock ricelock
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement