Advertisement
Guest User

i3config

a guest
Sep 23rd, 2018
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.48 KB | None | 0 0
  1. #mod
  2. set $mod Mod4
  3. font pango:FontAwesome 0
  4. floating_modifier $mod
  5.  
  6. # kill
  7. bindsym $mod+Shift+q kill
  8.  
  9. # change focus
  10. bindsym $mod+j focus left
  11. bindsym $mod+k focus down
  12. bindsym $mod+l focus up
  13. bindsym $mod+semicolon focus right
  14.  
  15. # alternatively, you can use the cursor keys:
  16. bindsym $mod+Left focus left
  17. bindsym $mod+Down focus down
  18. bindsym $mod+Up focus up
  19. bindsym $mod+Right focus right
  20.  
  21. # move focused window
  22. bindsym $mod+Shift+j move left 10
  23. bindsym $mod+Shift+k move down 10
  24. bindsym $mod+Shift+l move up 10
  25. bindsym $mod+Shift+semicolon move right 10
  26.  
  27. # alternatively, you can use the cursor keys:
  28. bindsym $mod+Shift+Left move left 50
  29. bindsym $mod+Shift+Down move down 50
  30. bindsym $mod+Shift+Up move up 50
  31. bindsym $mod+Shift+Right move right 50
  32.  
  33. # split in horizontal orientation
  34. bindsym $mod+h split h
  35.  
  36. # split in vertical orientation
  37. bindsym $mod+v split v
  38.  
  39. # enter fullscreen mode for the focused container
  40. bindsym $mod+f fullscreen toggle
  41.  
  42. # change container layout (stacked, tabbed, toggle split)
  43. bindsym $mod+s layout stacking
  44. bindsym $mod+w layout tabbed
  45. bindsym $mod+e layout toggle split
  46.  
  47. # toggle tiling / floating
  48. bindsym $mod+Shift+space floating toggle
  49.  
  50. # change focus between tiling / floating windows
  51. bindsym $mod+space focus mode_toggle
  52. # Define names for default workspaces for which we configure key bindings later on.
  53. # We use variables to avoid repeating the names in multiple places.
  54.  
  55. set $ws1 "1"
  56. set $ws2 "2"
  57. set $ws3 "3"
  58. set $ws4 "4"
  59. set $ws5 "5"
  60. set $ws6 "6"
  61. set $ws7 "7"
  62. set $ws8 "8"
  63. set $ws9 "9"
  64. set $ws10 "10"
  65.  
  66. # switch to workspace
  67. bindsym $mod+1 workspace $ws1
  68. bindsym $mod+2 workspace $ws2
  69. bindsym $mod+3 workspace $ws3
  70. bindsym $mod+4 workspace $ws4
  71. bindsym $mod+5 workspace $ws5
  72. bindsym $mod+6 workspace $ws6
  73. bindsym $mod+7 workspace $ws7
  74. bindsym $mod+8 workspace $ws8
  75. bindsym $mod+9 workspace $ws9
  76. bindsym $mod+0 workspace $ws10
  77.  
  78. # move focused container to workspace
  79. bindsym $mod+Shift+1 move container to workspace $ws1
  80. bindsym $mod+Shift+2 move container to workspace $ws2
  81. bindsym $mod+Shift+3 move container to workspace $ws3
  82. bindsym $mod+Shift+4 move container to workspace $ws4
  83. bindsym $mod+Shift+5 move container to workspace $ws5
  84. bindsym $mod+Shift+6 move container to workspace $ws6
  85. bindsym $mod+Shift+7 move container to workspace $ws7
  86. bindsym $mod+Shift+8 move container to workspace $ws8
  87. bindsym $mod+Shift+9 move container to workspace $ws9
  88. bindsym $mod+Shift+0 move container to workspace $ws10
  89.  
  90. # reload the configuration file
  91. bindsym $mod+Shift+c reload
  92. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  93. bindsym $mod+Shift+r restart
  94. # exit i3 (logs you out of your X session)
  95. bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
  96.  
  97. # resize window (you can also use the mouse for that)
  98. mode "resize" {
  99. # These bindings trigger as soon as you enter the resize mode
  100.  
  101. # Pressing left will shrink the window’s width.
  102. # Pressing right will grow the window’s width.
  103. # Pressing up will shrink the window’s height.
  104. # Pressing down will grow the window’s height.
  105. bindsym j resize shrink width 10 px or 10 ppt
  106. bindsym k resize grow height 10 px or 10 ppt
  107. bindsym l resize shrink height 10 px or 10 ppt
  108. bindsym semicolon resize grow width 10 px or 10 ppt
  109.  
  110. # same bindings, but for the arrow keys
  111. bindsym Left resize shrink width 10 px or 10 ppt
  112. bindsym Down resize grow height 10 px or 10 ppt
  113. bindsym Up resize shrink height 10 px or 10 ppt
  114. bindsym Right resize grow width 10 px or 10 ppt
  115.  
  116. # back to normal: Enter or Escape or $mod+r
  117. bindsym Return mode "default"
  118. bindsym Escape mode "default"
  119. bindsym $mod+r mode "default"
  120. }
  121.  
  122. bindsym $mod+r mode "resize"
  123.  
  124. # Start i3bar to display a workspace bar (plus the system information i3status
  125. # finds out, if available)
  126. #bar {
  127. # status_command i3status
  128. #}
  129.  
  130. # Terminal
  131. bindsym $mod+Return exec --no-startup-id urxvt
  132. bindsym $mod+Tab exec --no-startup-id urxvt -name floating
  133.  
  134.  
  135. # start dmenu (a program launcher)
  136. bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  137.  
  138. bindsym Print exec --no-startup-id scrot -s
  139.  
  140. exec_always --no-startup-id nm-applet &
  141. exec wal -R
  142.  
  143. gaps inner 6
  144. gaps outer 6
  145. bindsym $mod+o gaps outer current set 0; gaps inner current set 10
  146. bindsym $mod+i gaps outer current set 20; gaps inner current set 20
  147.  
  148. for_window [class="^.*"] border pixel 2
  149.  
  150. # class border background text indicator child border
  151. #client.focused # # # # #
  152. #client.unfocused # # # # #
  153. #client.focused_inactive # # # # #
  154. #client.urgent # # # # #
  155. #client.background #
  156.  
  157. client.focused #55cc77 #55cc77 #55cc77 #55cc77
  158. client.urgent #900000 #900000 #55cc77 #55cc77
  159.  
  160. exec --no-startup-id compton -cb --config ~/.config/compton/compton.conf
  161. for_window [instance="floating"] floating enable
  162. #for_window [instance="floating"] resize set 600 450
  163. for_window [instance="floating"] move absolute position center
  164.  
  165. # audio controls
  166. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5%
  167. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5%
  168. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle
  169.  
  170. exec_always --no-startup-id ~/.config/polybar/launch.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement