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

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