Advertisement
Guest User

Untitled

a guest
Jul 20th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 to st.
  11. bindsym $mod+Return exec st
  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 i3lock -i ~/Pictures/lock.png
  21.  
  22. # Change the focus.
  23. bindsym $mod+h focus left
  24. bindsym $mod+j focus down
  25. bindsym $mod+k focus up
  26. bindsym $mod+l focus right
  27.  
  28. # Move the focused window.
  29. bindsym $mod+Shift+h move left
  30. bindsym $mod+Shift+j move down
  31. bindsym $mod+Shift+k move up
  32. bindsym $mod+Shift+l move right
  33.  
  34. # Split in horitizontal orientation.
  35. bindsym $mod+b split h
  36.  
  37. # Split in vertical orientation.
  38. bindsym $mod+v split v
  39.  
  40. # Enter fullscreen mode for the focused container.
  41. bindsym $mod+f fullscreen toggle
  42.  
  43. # Change container layout.
  44. bindsym $mod+s layout stacking
  45. bindsym $mod+w layout tabbed
  46. bindsym $mod+e layout toggle split
  47.  
  48. # Toggle between tiling and floating.
  49. bindsym $mod+Shift+space floating toggle
  50.  
  51. # Change focus between tiling and floating windows.
  52. bindsym $mod+space focus mode_toggle
  53.  
  54. # Focus the parent container.
  55. bindsym $mod+a focus parent
  56.  
  57. # Switch to workspace.
  58. bindsym $mod+1 workspace 1
  59. bindsym $mod+2 workspace 2
  60. bindsym $mod+3 workspace 3
  61. bindsym $mod+4 workspace 4
  62. bindsym $mod+5 workspace 5
  63. bindsym $mod+6 workspace 6
  64. bindsym $mod+7 workspace 7
  65. bindsym $mod+8 workspace 8
  66. bindsym $mod+9 workspace 9
  67. bindsym $mod+0 workspace 10
  68.  
  69. # Move focused container to workspace.
  70. bindsym $mod+Shift+1 move container to workspace 1
  71. bindsym $mod+Shift+2 move container to workspace 2
  72. bindsym $mod+Shift+3 move container to workspace 3
  73. bindsym $mod+Shift+4 move container to workspace 4
  74. bindsym $mod+Shift+5 move container to workspace 5
  75. bindsym $mod+Shift+6 move container to workspace 6
  76. bindsym $mod+Shift+7 move container to workspace 7
  77. bindsym $mod+Shift+8 move container to workspace 8
  78. bindsym $mod+Shift+9 move container to workspace 9
  79. bindsym $mod+Shift+0 move container to workspace 10
  80.  
  81. # Auto load applications in certain workspaces using xprop.
  82. assign [class="Firefox"] 1
  83. assign [class="keepassxc"] 2
  84.  
  85. # Reload the configuration file.
  86. bindsym $mod+Shift+c reload
  87.  
  88. # Restart i3 inplace.
  89. bindsym $mod+Shift+r restart
  90.  
  91. # Exit i3.
  92. bindsym $mod+Shift+e exec i3-msg exit
  93.  
  94. # Resize window.
  95. bindsym $mod+r mode "resize"
  96.  
  97. mode "resize" {
  98.     bindsym l resize shrink width 10 px or 10 ppt
  99.     bindsym k resize grow height 10 px or 10 ppt
  100.     bindsym j resize shrink height 10 px or 10 ppt
  101.     bindsym h resize grow width 10 px or 10 ppt
  102.     bindsym $mod+r mode "default"
  103. }
  104.  
  105. # i3blocks bar.
  106. bar {
  107.     tray_output none
  108.     status_command i3blocks -c ~/Github/dotfiles/i3/i3blocks.conf
  109.     colors {
  110.         background "#2f343f"
  111.     }
  112. }
  113.  
  114. # Screenshot.
  115. bindsym Print exec maim -s | xclip -selection clipboard -t image/png
  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 xbacklight -inc 5
  124. bindsym XF86MonBrightnessDown exec xbacklight -dec 5
  125.  
  126. # Start compton.
  127. exec compton -b --config ~/.config/compton.conf
  128.  
  129. # i3lock on lid close.
  130. exec xss-lock -l -- i3lock -i ~/Pictures/lock.png
  131.  
  132. # Set background.
  133. exec_always feh --bg-scale ~/Pictures/wallpaper.png
  134.  
  135. # Disable window titlebars.
  136. for_window [class="^.*"] border pixel 0
  137.  
  138. # Gaps.
  139. gaps inner 15
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement