My personal dotfiles
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

config 6.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. exec "xinput set-button-map 14 1 2 3 5 4 6 7 8 9 10 11 12"
  2. exec "setxkbmap -option 'caps:ctrl_modifier'"
  3. exec "xcape -e 'Caps_Lock=Escape'"
  4. exec "xsetroot -cursor_name left_ptr"
  5. exec --no-startup-id dropbox start
  6. exec --no-startup-id nm-applet
  7. exec --no-startup-id ~/bin/battery_notify
  8. exec --no-startup-id powertop --auto-tune
  9. exec --no-startup-id tlp start
  10. exec --no-startup-id xset r rate 225 30
  11. # Disable window borders
  12. for_window [class="^.*"] border pixel 0
  13. # Matrix Labritory
  14. for_window [title="^Figure \d+$"] floating enable
  15. # Adds gaps
  16. gaps inner 12
  17. gaps outer 0
  18. smart_gaps on
  19. # volume keys
  20. bindsym XF86AudioRaiseVolume exec amixer -D pulse sset Master 2%+
  21. bindsym XF86AudioLowerVolume exec amixer -D pulse sset Master 2%-
  22. bindsym XF86AudioMute exec amixer set Master toggle
  23. bindsym --release Print exec ~/bin/shot_upload
  24. # brightness keys
  25. bindsym XF86MonBrightnessUp exec xbacklight -inc 5
  26. bindsym XF86MonBrightnessDown exec xbacklight -dec 5
  27. set $mod Mod4
  28. # Font for window titles. Will also be used by the bar unless a different font
  29. # is used in the bar {} block below.
  30. font pango:monospace 8
  31. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  32. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  33. #font pango:DejaVu Sans Mono 8
  34. # Before i3 v4.8, we used to recommend this one as the default:
  35. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  36. # The font above is very space-efficient, that is, it looks good, sharp and
  37. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  38. # X core fonts rendering does not support right-to-left and this being a bitmap
  39. # font, it doesn’t scale on retina/hidpi displays.
  40. # Use Mouse+$mod to drag floating windows to their wanted position
  41. floating_modifier $mod
  42. # start a terminal
  43. bindsym $mod+Return exec i3-sensible-terminal
  44. bindsym $mod+backslash exec emacs
  45. # kill focused window
  46. bindsym $mod+Shift+q kill
  47. # start dmenu (a program launcher)
  48. bindsym $mod+space exec rofi -show run -font "snap 10" -o 85
  49. bindsym $mod+p exec "~/bin/toggle-layout"
  50. bindsym $mod+c exec chromium
  51. bindsym $mod+n exec "~/bin/lock.sh"
  52. # change focus
  53. bindsym $mod+h focus left
  54. bindsym $mod+j focus down
  55. bindsym $mod+k focus up
  56. bindsym $mod+l focus right
  57. # alternatively, you can use the cursor keys:
  58. bindsym $mod+Left focus left
  59. bindsym $mod+Down focus down
  60. bindsym $mod+Up focus up
  61. bindsym $mod+Right focus right
  62. # move focused window
  63. bindsym $mod+Shift+h move left
  64. bindsym $mod+Shift+j move down
  65. bindsym $mod+Shift+k move up
  66. bindsym $mod+Shift+l move right
  67. # alternatively, you can use the cursor keys:
  68. bindsym $mod+Shift+Left move left
  69. bindsym $mod+Shift+Down move down
  70. bindsym $mod+Shift+Up move up
  71. bindsym $mod+Shift+Right move right
  72. # split in horizontal orientation
  73. bindsym $mod+g split h
  74. # split in vertical orientation
  75. bindsym $mod+v split v
  76. # enter fullscreen mode for the focused container
  77. bindsym $mod+f fullscreen toggle
  78. # change container layout (stacked, tabbed, toggle split)
  79. bindsym $mod+s layout stacking
  80. bindsym $mod+w layout tabbed
  81. bindsym $mod+e layout toggle split
  82. # toggle tiling / floating
  83. bindsym $mod+Shift+space floating toggle
  84. # change focus between tiling / floating windows
  85. #bindsym $mod+space focus mode_toggle
  86. # focus the parent container
  87. bindsym $mod+a focus parent
  88. bindsym $mod+t exec "terminator -e '~/bin/myclock'"
  89. # focus the child container
  90. #bindsym $mod+d focus child
  91. # switch to workspace
  92. bindsym $mod+percent workspace 1
  93. bindsym $mod+bracketleft workspace 2
  94. bindsym $mod+braceleft workspace 3
  95. bindsym $mod+braceright workspace 4
  96. bindsym $mod+parenleft workspace 5
  97. bindsym $mod+asterisk workspace 6
  98. bindsym $mod+astericks workspace 7
  99. bindsym $mod+parenright workspace 8
  100. bindsym $mod+plus workspace 9
  101. bindsym $mod+bracketright workspace 10
  102. bindsym $mod+Shift+percent move container to workspace 1
  103. bindsym $mod+Shift+bracketleft move container to workspace 2
  104. bindsym $mod+Shift+braceleft move container to workspace 3
  105. bindsym $mod+Shift+braceright move container to workspace 4
  106. bindsym $mod+Shift+parenleft move container to workspace 5
  107. bindsym $mod+Shift+asterisk move container to workspace 6
  108. bindsym $mod+Shift+astericks move container to workspace 7
  109. bindsym $mod+Shift+parenright move container to workspace 8
  110. bindsym $mod+Shift+plus move container to workspace 9
  111. bindsym $mod+Shift+bracketright move container to workspace 10
  112. # move focused container to workspace
  113. #bindsym $mod+Shift+1 move container to workspace 1
  114. #bindsym $mod+Shift+2 move container to workspace 2
  115. #bindsym $mod+Shift+3 move container to workspace 3
  116. #bindsym $mod+Shift+4 move container to workspace 4
  117. #bindsym $mod+Shift+5 move container to workspace 5
  118. #bindsym $mod+Shift+6 move container to workspace 6
  119. #bindsym $mod+Shift+7 move container to workspace 7
  120. #bindsym $mod+Shift+8 move container to workspace 8
  121. #bindsym $mod+Shift+9 move container to workspace 9
  122. #bindsym $mod+Shift+0 move container to workspace 10
  123. # reload the configuration file
  124. bindsym $mod+Shift+c reload
  125. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  126. bindsym $mod+Shift+r restart
  127. # exit i3 (logs you out of your X session)
  128. 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'"
  129. # resize window (you can also use the mouse for that)
  130. mode "resize" {
  131. # These bindings trigger as soon as you enter the resize mode
  132. # Pressing left will shrink the window’s width.
  133. # Pressing right will grow the window’s width.
  134. # Pressing up will shrink the window’s height.
  135. # Pressing down will grow the window’s height.
  136. bindsym h resize shrink width 5 px or 5 ppt
  137. bindsym j resize grow height 5 px or 5 ppt
  138. bindsym k resize shrink height 5 px or 5 ppt
  139. bindsym l resize grow width 5 px or 5 ppt
  140. # same bindings, but for the arrow keys
  141. bindsym Left resize shrink width 5 px or 5 ppt
  142. bindsym Down resize grow height 5 px or 5 ppt
  143. bindsym Up resize shrink height 5 px or 5 ppt
  144. bindsym Right resize grow width 5 px or 5 ppt
  145. # back to normal: Enter or Escape
  146. bindsym Return mode "default"
  147. bindsym Escape mode "default"
  148. }
  149. bindsym $mod+r mode "resize"
  150. bar {
  151. status_command i3status
  152. position top
  153. mode hide
  154. hidden_state hide
  155. modifier $mod
  156. }
  157. exec_always feh --bg-scale ~/Pictures/calvin-and-hobbes-night-sky-wallpaper.jpg
  158. #exec --no-startup-id polybar wolfe