Advertisement
Guest User

Untitled

a guest
Jan 3rd, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.21 KB | None | 0 0
  1. # This file has been auto-generated by i3-config-wizard(1).
  2. # It will not be overwritten, so edit it as you like.
  3. #
  4. # Should you change your keyboard layout some time, delete
  5. # this file and re-run i3-config-wizard(1).
  6. #
  7.  
  8. # i3 config file (v4)
  9. #
  10. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  11.  
  12. set $mod Mod4
  13.  
  14. # Font for window titles. Will also be used by the bar unless a different font
  15. # is used in the bar {} block below.
  16. font pango:Ubuntu Mono 10
  17. # font pango:monospace 8
  18.  
  19. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  20. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  21. #font pango:DejaVu Sans Mono 8
  22.  
  23. # Before i3 v4.8, we used to recommend this one as the default:
  24. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  25. # The font above is very space-efficient, that is, it looks good, sharp and
  26. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  27. # X core fonts rendering does not support right-to-left and this being a bitmap
  28. # font, it doesn’t scale on retina/hidpi displays.
  29.  
  30.  
  31. #Starting compton with i3 on start up only, not restart
  32. exec compton
  33. #Start xrandr with startup written out
  34. #exec xrandr --output HDMI1 --mode 2560x1440 --pos 1920x0 --rotate normal --output VIRTUAL1 --off --output eDP1 --mode 1366x768 --pos 4480x0 --rotate normal --output VGA1 --mode 1920x1080 --pos 0x0 --rotate normal
  35.  
  36. #setting up xrandr as a script with compton afterwards.
  37. exec ~/.screenlayout/.dank.sh
  38. exec compton
  39.  
  40. #start bluetooth fix -- do not change this without thought
  41.  
  42. exec pactl load-module module-bluetooth-discover
  43.  
  44. #Start mouse acceleration on startup
  45. exec xinput --set-prop "USB Optical Mouse" "Device Accel Constant Deceleration" 0.75
  46.  
  47. # Use Mouse+$mod to drag floating windows to their wanted position
  48. floating_modifier $mod
  49.  
  50. # start a terminal
  51. bindsym $mod+Return exec i3-sensible-terminal
  52.  
  53. # kill focused window
  54. bindsym $mod+x kill
  55.  
  56. # start dmenu (a program launcher)
  57. bindsym $mod+d exec dmenu_run -b
  58. # There also is the (new) i3-dmenu-desktop which only displays applications
  59. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  60. # installed.
  61. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  62.  
  63.  
  64. #trying to get caps lock to bind to escape
  65. xmodmap -e "clear Lock"
  66. xmodmap -e "keycode 9 = Caps_Lock NoSymbol Caps_Lock"
  67. xmodmap -e "keycode 66 = Escape NoSymbol Escape"
  68. xmodmap -pke > ~/.xmodmap
  69.  
  70.  
  71.  
  72. # change focus
  73. bindsym $mod+j focus left
  74. bindsym $mod+k focus down
  75. bindsym $mod+l focus up
  76. bindsym $mod+semicolon focus right
  77.  
  78. # alternatively, you can use the cursor keys:
  79. bindsym $mod+Left focus left
  80. bindsym $mod+Down focus down
  81. bindsym $mod+Up focus up
  82. bindsym $mod+Right focus right
  83.  
  84. # move focused window
  85. bindsym $mod+Shift+j move left
  86. bindsym $mod+Shift+k move down
  87. bindsym $mod+Shift+l move up
  88. bindsym $mod+Shift+semicolon move right
  89.  
  90. # alternatively, you can use the cursor keys:
  91. bindsym $mod+Shift+Left move left
  92. bindsym $mod+Shift+Down move down
  93. bindsym $mod+Shift+Up move up
  94. bindsym $mod+Shift+Right move right
  95.  
  96. # split in horizontal orientation
  97. bindsym $mod+h split h
  98.  
  99. # split in vertical orientation
  100. bindsym $mod+v split v
  101.  
  102. # enter fullscreen mode for the focused container
  103. bindsym $mod+f fullscreen toggle
  104.  
  105. # change container layout (stacked, tabbed, toggle split)
  106. bindsym $mod+s layout stacking
  107. bindsym $mod+w layout tabbed
  108. bindsym $mod+e layout toggle split
  109.  
  110. # toggle tiling / floating
  111. bindsym $mod+Shift+space floating toggle
  112.  
  113. # change focus between tiling / floating windows
  114. bindsym $mod+space focus mode_toggle
  115.  
  116. # focus the parent container
  117. bindsym $mod+a focus parent
  118.  
  119. # focus the child container
  120. #bindsym $mod+d focus child
  121.  
  122. # switch to workspace
  123. bindsym $mod+1 workspace 1: Ext
  124. bindsym $mod+2 workspace 2: Work
  125. bindsym $mod+3 workspace 3: Web
  126. bindsym $mod+4 workspace 4
  127. bindsym $mod+5 workspace 5
  128. bindsym $mod+6 workspace 6
  129. bindsym $mod+7 workspace 7
  130. bindsym $mod+8 workspace 8
  131. bindsym $mod+9 workspace 9
  132. bindsym $mod+0 workspace 10
  133.  
  134. # move focused container to workspace
  135. bindsym $mod+Shift+1 move container to workspace 1: Ext
  136. bindsym $mod+Shift+2 move container to workspace 2: Work
  137. bindsym $mod+Shift+3 move container to workspace 3: Web
  138. bindsym $mod+Shift+4 move container to workspace 4
  139. bindsym $mod+Shift+5 move container to workspace 5
  140. bindsym $mod+Shift+6 move container to workspace 6
  141. bindsym $mod+Shift+7 move container to workspace 7
  142. bindsym $mod+Shift+8 move container to workspace 8
  143. bindsym $mod+Shift+9 move container to workspace 9
  144. bindsym $mod+Shift+0 move container to workspace 10
  145.  
  146. # reload the configuration file
  147. bindsym $mod+Shift+c reload
  148. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  149. bindsym $mod+Shift+r restart
  150. # exit i3 (logs you out of your X session)
  151. 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'"
  152.  
  153. # resize window (you can also use the mouse for that)
  154. mode "resize" {
  155. # These bindings trigger as soon as you enter the resize mode
  156.  
  157. # Pressing left will shrink the window’s width.
  158. # Pressing right will grow the window’s width.
  159. # Pressing up will shrink the window’s height.
  160. # Pressing down will grow the window’s height.
  161. bindsym j resize shrink width 10 px or 10 ppt
  162. bindsym k resize grow height 10 px or 10 ppt
  163. bindsym l resize shrink height 10 px or 10 ppt
  164. bindsym semicolon resize grow width 10 px or 10 ppt
  165.  
  166. # same bindings, but for the arrow keys
  167. bindsym Left resize shrink width 10 px or 10 ppt
  168. bindsym Down resize grow height 10 px or 10 ppt
  169. bindsym Up resize shrink height 10 px or 10 ppt
  170. bindsym Right resize grow width 10 px or 10 ppt
  171.  
  172. # back to normal: Enter or Escape
  173. bindsym Return mode "default"
  174. bindsym Escape mode "default"
  175. }
  176.  
  177. bindsym $mod+r mode "resize"
  178.  
  179. # Start i3bar to display a workspace bar (plus the system information i3status
  180. # finds out, if available)
  181. bar {
  182. position top
  183. status_command i3status
  184. tray_output primary
  185. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement