My personal dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. # Disable window borders
  2. for_window [class="^.*"] border pixel 2
  3. hide_edge_borders smart
  4. # Base 16 Config
  5. set $base00 #181818
  6. set $base01 #282828
  7. set $base02 #383838
  8. set $base03 #585858
  9. set $base04 #b8b8b8
  10. set $base05 #d8d8d8
  11. set $base06 #e8e8e8
  12. set $base07 #f8f8f8
  13. set $base08 #ab4642
  14. set $base09 #dc9656
  15. set $base0A #f7ca88
  16. set $base0B #a1b56c
  17. set $base0C #86c1b9
  18. set $base0D #7cafc2
  19. set $base0E #ba8baf
  20. set $base0F #a16946
  21. client.focused $base0D $base0D $base00 $base01
  22. client.focused_inactive $base02 $base02 $base03 $base01
  23. client.unfocused $base01 $base01 $base03 $base01
  24. client.urgent $base02 $base08 $base07 $base08
  25. # Matrix Labritory
  26. for_window [title="^Figure \d+$"] floating enable
  27. for_window [title="^QEMU$"] floating enable
  28. # Adds gaps
  29. #gaps inner 12
  30. #gaps outer 0
  31. #smart_gaps on
  32. # volume keys
  33. bindsym XF86AudioRaiseVolume exec amixer -D pulse sset Master 2%+
  34. bindsym XF86AudioLowerVolume exec amixer -D pulse sset Master 2%-
  35. bindsym XF86AudioMute exec amixer set Master toggle
  36. bindsym --release Print exec scrot -q 100 -s ~/temp.png
  37. # brightness keys
  38. bindsym XF86MonBrightnessUp exec xbacklight -inc 2
  39. bindsym XF86MonBrightnessDown exec xbacklight -dec 2
  40. bindsym XF86KbdBrightnessUp exec "asus-kbd-backlight up"
  41. bindsym XF86KbdBrightnessDown exec "asus-kbd-backlight down"
  42. set $mod Mod4
  43. # Font for window titles. Will also be used by the bar unless a different font
  44. # is used in the bar {} block below.
  45. font pango:monospace 8
  46. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  47. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  48. #font pango:DejaVu Sans Mono 8
  49. # Before i3 v4.8, we used to recommend this one as the default:
  50. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  51. # The font above is very space-efficient, that is, it looks good, sharp and
  52. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  53. # X core fonts rendering does not support right-to-left and this being a bitmap
  54. # font, it doesn’t scale on retina/hidpi displays.
  55. # Use Mouse+$mod to drag floating windows to their wanted position
  56. floating_modifier $mod
  57. # start a terminal
  58. bindsym $mod+Return exec urxvt
  59. bindsym $mod+backslash exec emacsclient -c
  60. bindsym $mod+Shift+backslash exec emacs -light
  61. # kill focused window
  62. bindsym $mod+Shift+q kill
  63. # start dmenu (a program launcher)
  64. bindsym $mod+space exec rofi -show run
  65. bindsym $mod+c exec firefox-developer-edition
  66. bindsym $mod+n exec "~/bin/lock.sh"
  67. # change focus
  68. bindsym $mod+h focus left
  69. bindsym $mod+j focus down
  70. bindsym $mod+k focus up
  71. bindsym $mod+l focus right
  72. # move focused window
  73. bindsym $mod+Shift+h move left
  74. bindsym $mod+Shift+j move down
  75. bindsym $mod+Shift+k move up
  76. bindsym $mod+Shift+l move right
  77. # split in horizontal orientation
  78. bindsym $mod+g split h
  79. # split in vertical orientation
  80. bindsym $mod+v split v
  81. # enter fullscreen mode for the focused container
  82. bindsym $mod+f fullscreen toggle
  83. # change container layout (stacked, tabbed, toggle split)
  84. bindsym $mod+s layout stacking
  85. bindsym $mod+t layout tabbed
  86. bindsym $mod+e layout toggle split
  87. # toggle tiling / floating
  88. bindsym $mod+Shift+space floating toggle
  89. # change focus between tiling / floating windows
  90. bindsym Mod1+space focus mode_toggle
  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+equal workspace 6
  98. bindsym $mod+asterisk 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+equal move container to workspace 6
  108. bindsym $mod+Shift+asterisk 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. # reload the configuration file
  113. bindsym $mod+Shift+c reload
  114. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  115. bindsym $mod+Shift+r restart
  116. # exit i3 (logs you out of your X session)
  117. 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'"
  118. # resize window (you can also use the mouse for that)
  119. mode "resize" {
  120. # These bindings trigger as soon as you enter the resize mode
  121. # Pressing left will shrink the window’s width.
  122. # Pressing right will grow the window’s width.
  123. # Pressing up will shrink the window’s height.
  124. # Pressing down will grow the window’s height.
  125. bindsym h resize shrink width 5 px or 5 ppt
  126. bindsym j resize grow height 5 px or 5 ppt
  127. bindsym k resize shrink height 5 px or 5 ppt
  128. bindsym l resize grow width 5 px or 5 ppt
  129. # back to normal: Enter or Escape
  130. bindsym Return mode "default"
  131. bindsym Escape mode "default"
  132. }
  133. bindsym $mod+r mode "resize"
  134. bar {
  135. status_command i3status
  136. position top
  137. mode hide
  138. hidden_state hide
  139. modifier $mod
  140. font pango:Inconsolata 12
  141. colors {
  142. separator $base03
  143. background $base01
  144. statusline $base05
  145. focused_workspace $base0C $base0D $base00
  146. active_workspace $base02 $base02 $base07
  147. inactive_workspace $base01 $base01 $base03
  148. urgent_workspace $base08 $base08 $base07
  149. }
  150. }
  151. exec --no-startup-id dropbox start
  152. exec --no-startup-id nm-applet
  153. exec --no-startup-id ~/bin/battery_notify
  154. exec_always "xinput set-button-map 14 1 2 3 5 4 6 7 8 9 10 11 12"
  155. exec_always "setxkbmap -option compose:ralt"
  156. exec_always "xsetroot -cursor_name left_ptr"
  157. exec_always "~/bin/caps"
  158. exec_always "~/bin/key-rate"
  159. exec_always feh --bg-scale --randomize ~/Pictures/wallpapers/*