Advertisement
Guest User

i3config

a guest
Feb 26th, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.10 KB | None | 0 0
  1. set $mod Mod4
  2. font pango:monospace 9
  3. floating_modifier $mod
  4.  
  5. bindsym $mod+Return exec termite
  6. bindsym $mod+f exec firefox
  7. bindsym $mod+space exec emacsclient -c
  8. bindsym $mod+u exec ~/.local/bin/dmenumount
  9. bindsym $mod+Shift+U exec ~/.local/bin/browseusb
  10. bindsym $mod+ugrave exec sleep 0.1 && /usr/bin/slock
  11. bindsym $mod+Shift+h exec termite -e "htop"
  12. bindsym $mod+Control+f exec emacsclient -c "~/"
  13. bindsym $mod+d exec rofi -show run -theme solarized
  14. bindsym $mod+p exec ~/.local/bin/dmenupass
  15.  
  16.  
  17. bindsym $mod+Shift+A kill
  18.  
  19. # change focus
  20. bindsym $mod+j focus left
  21. bindsym $mod+k focus down
  22. bindsym $mod+l focus up
  23. bindsym $mod+m focus right
  24.  
  25. # alternatively, you can use the cursor keys:
  26. bindsym $mod+Left focus left
  27. bindsym $mod+Down focus down
  28. bindsym $mod+Up focus up
  29. bindsym $mod+Right focus right
  30.  
  31. # move focused window
  32. bindsym $mod+Shift+j move left
  33. bindsym $mod+Shift+k move down
  34. bindsym $mod+Shift+l move up
  35. bindsym $mod+Shift+M move right
  36.  
  37. # alternatively, you can use the cursor keys:
  38. bindsym $mod+Shift+Left move left
  39. bindsym $mod+Shift+Down move down
  40. bindsym $mod+Shift+Up move up
  41. bindsym $mod+Shift+Right move right
  42.  
  43. # split in horizontal orientation
  44. bindsym $mod+h split h
  45.  
  46. # split in vertical orientation
  47. bindsym $mod+v split v
  48.  
  49. # enter fullscreen mode for the focused container
  50. bindsym $mod+Shift+f fullscreen toggle
  51.  
  52. # change container layout (stacked, tabbed, toggle split)
  53. bindsym $mod+s layout stacking
  54. bindsym $mod+z layout tabbed
  55. bindsym $mod+e layout toggle split
  56.  
  57. # toggle tiling / floating
  58. bindsym $mod+Shift+space floating toggle
  59.  
  60. # focus the parent container
  61. bindsym $mod+q focus parent
  62.  
  63.  
  64. # focus the child container
  65. #bindsym $mod+d focus child
  66.  
  67. # Define names for default workspaces for which we configure key bindings later on.
  68. # We use variables to avoid repeating the names in multiple places.
  69. set $ws1 "1"
  70. set $ws2 "2"
  71. set $ws3 "3"
  72. set $ws4 "4"
  73. set $ws5 "5"
  74. set $ws6 "6"
  75. set $ws7 "7"
  76. set $ws8 "8"
  77. set $ws9 "9"
  78. set $ws10 "10"
  79.  
  80. # switch to workspace
  81. bindsym $mod+ampersand workspace $ws1
  82. bindsym $mod+eacute workspace $ws2
  83. bindsym $mod+quotedbl workspace $ws3
  84. bindsym $mod+apostrophe workspace $ws4
  85. bindsym $mod+parenleft workspace $ws5
  86. bindsym $mod+minus workspace $ws6
  87. bindsym $mod+egrave workspace $ws7
  88. bindsym $mod+underscore workspace $ws8
  89. bindsym $mod+ccedilla workspace $ws9
  90. bindsym $mod+agrave workspace $ws10
  91.  
  92. # move focused container to workspace
  93. bindsym $mod+Shift+1 move container to workspace $ws1
  94. bindsym $mod+Shift+eacute move container to workspace $ws2
  95. bindsym $mod+Shift+3 move container to workspace $ws3
  96. bindsym $mod+Shift+4 move container to workspace $ws4
  97. bindsym $mod+Shift+5 move container to workspace $ws5
  98. bindsym $mod+Shift+6 move container to workspace $ws6
  99. bindsym $mod+Shift+egrave move container to workspace $ws7
  100. bindsym $mod+Shift+8 move container to workspace $ws8
  101. bindsym $mod+Shift+ccedilla move container to workspace $ws9
  102. bindsym $mod+Shift+agrave move container to workspace $ws10
  103.  
  104. # reload the configuration file
  105. bindsym $mod+Shift+c reload
  106. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  107. bindsym $mod+Shift+r restart
  108. # exit i3 (logs you out of your X session)
  109. 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'"
  110.  
  111. # resize window (you can also use the mouse for that)
  112. mode "resize" {
  113. # These bindings trigger as soon as you enter the resize mode
  114.  
  115. # Pressing left will shrink the window’s width.
  116. # Pressing right will grow the window’s width.
  117. # Pressing up will shrink the window’s height.
  118. # Pressing down will grow the window’s height.
  119. bindsym j resize shrink width 10 px or 10 ppt
  120. bindsym k resize grow height 10 px or 10 ppt
  121. bindsym l resize shrink height 10 px or 10 ppt
  122. bindsym m resize grow width 10 px or 10 ppt
  123.  
  124. # same bindings, but for the arrow keys
  125. bindsym Left resize shrink width 10 px or 10 ppt
  126. bindsym Down resize grow height 10 px or 10 ppt
  127. bindsym Up resize shrink height 10 px or 10 ppt
  128. bindsym Right resize grow width 10 px or 10 ppt
  129.  
  130. # back to normal: Enter or Escape or $mod+rlor2 $bg $fg $fg $fg
  131. bindsym Return mode "default"
  132. bindsym Escape mode "default"
  133. bindsym $mod+r mode "default"
  134. }
  135.  
  136. bindsym $mod+r mode "resize"
  137.  
  138. # Start i3bar to display a workspace bar (plus the system information i3status
  139. # finds out, if available)
  140.  
  141. default_border pixel 0
  142. default_floating_border none
  143.  
  144. set_from_resource $fg #0a0a0a
  145. set_from_resource $bg #1d1f21
  146.  
  147. set $white #ffffff
  148. set $black #000000
  149.  
  150. # BORDER BACKGROUND TEXT INDICATOR CHILD_BORDER
  151. client.focused $white $black $white $black $white
  152. client.unfocused $black $black $white $black $black
  153. client.focused_inactive $black $black $white $black $black
  154. client.background #ffffff
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement