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.1KB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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 drun
  65. bindsym $mod+d exec rofi-pass
  66. bindsym $mod+Shift+d exec "rofi-pass --insert"
  67. bindsym $mod+c exec firefox-developer-edition
  68. bindsym $mod+n exec "~/bin/lock.sh"
  69. # change focus
  70. bindsym $mod+h focus left
  71. bindsym $mod+j focus down
  72. bindsym $mod+k focus up
  73. bindsym $mod+l focus right
  74. # move focused window
  75. bindsym $mod+Shift+h move left
  76. bindsym $mod+Shift+j move down
  77. bindsym $mod+Shift+k move up
  78. bindsym $mod+Shift+l move right
  79. # split in horizontal orientation
  80. bindsym $mod+g split h
  81. # split in vertical orientation
  82. bindsym $mod+v split v
  83. # enter fullscreen mode for the focused container
  84. bindsym $mod+f fullscreen toggle
  85. # change container layout (stacked, tabbed, toggle split)
  86. bindsym $mod+s layout stacking
  87. bindsym $mod+t layout tabbed
  88. bindsym $mod+e layout toggle split
  89. # toggle tiling / floating
  90. bindsym $mod+Shift+space floating toggle
  91. # change focus between tiling / floating windows
  92. bindsym Mod1+space focus mode_toggle
  93. # switch to workspace
  94. bindsym $mod+percent workspace 1
  95. bindsym $mod+bracketleft workspace 2
  96. bindsym $mod+braceleft workspace 3
  97. bindsym $mod+braceright workspace 4
  98. bindsym $mod+parenleft workspace 5
  99. bindsym $mod+equal workspace 6
  100. bindsym $mod+asterisk workspace 7
  101. bindsym $mod+parenright workspace 8
  102. bindsym $mod+plus workspace 9
  103. bindsym $mod+bracketright workspace 10
  104. bindsym $mod+Shift+percent move container to workspace 1
  105. bindsym $mod+Shift+bracketleft move container to workspace 2
  106. bindsym $mod+Shift+braceleft move container to workspace 3
  107. bindsym $mod+Shift+braceright move container to workspace 4
  108. bindsym $mod+Shift+parenleft move container to workspace 5
  109. bindsym $mod+Shift+equal move container to workspace 6
  110. bindsym $mod+Shift+asterisk move container to workspace 7
  111. bindsym $mod+Shift+parenright move container to workspace 8
  112. bindsym $mod+Shift+plus move container to workspace 9
  113. bindsym $mod+Shift+bracketright move container to workspace 10
  114. # reload the configuration file
  115. bindsym $mod+Shift+c reload
  116. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  117. bindsym $mod+Shift+r restart
  118. # exit i3 (logs you out of your X session)
  119. 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'"
  120. # resize window (you can also use the mouse for that)
  121. mode "resize" {
  122. # These bindings trigger as soon as you enter the resize mode
  123. # Pressing left will shrink the window’s width.
  124. # Pressing right will grow the window’s width.
  125. # Pressing up will shrink the window’s height.
  126. # Pressing down will grow the window’s height.
  127. bindsym h resize shrink width 5 px or 5 ppt
  128. bindsym j resize grow height 5 px or 5 ppt
  129. bindsym k resize shrink height 5 px or 5 ppt
  130. bindsym l resize grow width 5 px or 5 ppt
  131. # back to normal: Enter or Escape
  132. bindsym Return mode "default"
  133. bindsym Escape mode "default"
  134. }
  135. bindsym $mod+r mode "resize"
  136. bar {
  137. status_command i3status
  138. position top
  139. mode hide
  140. hidden_state hide
  141. modifier $mod
  142. font pango:Inconsolata 12
  143. colors {
  144. separator $base03
  145. background $base01
  146. statusline $base05
  147. focused_workspace $base0C $base0D $base00
  148. active_workspace $base02 $base02 $base07
  149. inactive_workspace $base01 $base01 $base03
  150. urgent_workspace $base08 $base08 $base07
  151. }
  152. }
  153. exec --no-startup-id dropbox start
  154. exec --no-startup-id nm-applet
  155. exec --no-startup-id ~/bin/battery_notify
  156. exec_always "xinput set-button-map 14 1 2 3 5 4 6 7 8 9 10 11 12"
  157. exec_always "setxkbmap -option compose:ralt"
  158. exec_always "xsetroot -cursor_name left_ptr"
  159. exec_always "~/bin/caps"
  160. exec_always "~/bin/key-rate"
  161. exec_always feh --bg-scale --randomize ~/Pictures/wallpapers/*