Sloansta

configs a

Aug 9th, 2016
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. new configs
  2.  
  3. set $mod Mod1
  4.  
  5. # Font for window titles. Will also be used by the bar unless a different font
  6. # is used in the bar {} block below.
  7. font pango:Neep Regular 6
  8.  
  9. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  10. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  11. #font pango:DejaVu Sans Mono 8
  12.  
  13. # Before i3 v4.8, we used to recommend this one as the default:
  14. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  15. # The font above is very space-efficient, that is, it looks good, sharp and
  16. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  17. # X core fonts rendering does not support right-to-left and this being a bitmap
  18. # font, it doesn’t scale on retina/hidpi displays.
  19.  
  20. # Use Mouse+$mod to drag floating windows to their wanted position
  21. floating_modifier $mod
  22.  
  23. # start a terminal
  24. bindsym $mod+Return exec urxvt
  25.  
  26. # kill focused window
  27. bindsym $mod+Shift+q kill
  28.  
  29. # start dmenu (a program launcher)
  30. #bindsym $mod+d exec dmenu_run
  31. # There also is the (new) i3-dmenu-desktop which only displays applications
  32. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  33. # installed.
  34. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  35.  
  36. # change focus
  37. bindsym $mod+j focus left
  38. bindsym $mod+k focus down
  39. bindsym $mod+l focus up
  40. bindsym $mod+semicolon focus right
  41.  
  42. # alternatively, you can use the cursor keys:
  43. bindsym $mod+Left focus left
  44. bindsym $mod+Down focus down
  45. bindsym $mod+Up focus up
  46. bindsym $mod+Right focus right
  47.  
  48. # move focused window
  49. bindsym $mod+Shift+j move left
  50. bindsym $mod+Shift+k move down
  51. bindsym $mod+Shift+l move up
  52. bindsym $mod+Shift+semicolon move right
  53.  
  54. # alternatively, you can use the cursor keys:
  55. bindsym $mod+Shift+Left move left
  56. bindsym $mod+Shift+Down move down
  57. bindsym $mod+Shift+Up move up
  58. bindsym $mod+Shift+Right move right
  59.  
  60. # split in horizontal orientation
  61. bindsym $mod+h split h
  62.  
  63. # split in vertical orientation
  64. bindsym $mod+v split v
  65.  
  66. # enter fullscreen mode for the focused container
  67. bindsym $mod+f fullscreen toggle
  68.  
  69. # change container layout (stacked, tabbed, toggle split)
  70. bindsym $mod+s layout stacking
  71. bindsym $mod+w layout tabbed
  72. bindsym $mod+e layout toggle split
  73.  
  74. # toggle tiling / floating
  75. bindsym $mod+Shift+space floating toggle
  76.  
  77. # change focus between tiling / floating windows
  78. bindsym $mod+space focus mode_toggle
  79.  
  80. # focus the parent container
  81. bindsym $mod+a focus parent
  82.  
  83. # focus the child container
  84. #bindsym $mod+d focus child
  85.  
  86. # switch to workspace
  87. bindsym $mod+1 workspace 1
  88. bindsym $mod+2 workspace 2
  89. bindsym $mod+3 workspace 3
  90. bindsym $mod+4 workspace 4
  91. bindsym $mod+5 workspace 5
  92. bindsym $mod+6 workspace 6
  93. bindsym $mod+7 workspace 7
  94. bindsym $mod+8 workspace 8
  95. bindsym $mod+9 workspace 9
  96. bindsym $mod+0 workspace 10
  97.  
  98. # move focused container to workspace
  99. bindsym $mod+Shift+1 move container to workspace 1
  100. bindsym $mod+Shift+2 move container to workspace 2
  101. bindsym $mod+Shift+3 move container to workspace 3
  102. bindsym $mod+Shift+4 move container to workspace 4
  103. bindsym $mod+Shift+5 move container to workspace 5
  104. bindsym $mod+Shift+6 move container to workspace 6
  105. bindsym $mod+Shift+7 move container to workspace 7
  106. bindsym $mod+Shift+8 move container to workspace 8
  107. bindsym $mod+Shift+9 move container to workspace 9
  108. bindsym $mod+Shift+0 move container to workspace 10
  109.  
  110. # reload the configuration file
  111. bindsym $mod+Shift+c reload
  112. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  113. bindsym $mod+Shift+r restart
  114. # exit i3 (logs you out of your X session)
  115. 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'"
  116.  
  117. # resize window (you can also use the mouse for that)
  118. mode "resize" {
  119.         # These bindings trigger as soon as you enter the resize mode
  120.  
  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 j resize shrink width 10 px or 10 ppt
  126.         bindsym k resize grow height 10 px or 10 ppt
  127.         bindsym l resize shrink height 10 px or 10 ppt
  128.         bindsym semicolon resize grow width 10 px or 10 ppt
  129.  
  130.         # same bindings, but for the arrow keys
  131.         bindsym Left resize shrink width 10 px or 10 ppt
  132.         bindsym Down resize grow height 10 px or 10 ppt
  133.         bindsym Up resize shrink height 10 px or 10 ppt
  134.         bindsym Right resize grow width 10 px or 10 ppt
  135.  
  136.         # back to normal: Enter or Escape
  137.         bindsym Return mode "default"
  138.         bindsym Escape mode "default"
  139. }
  140.  
  141.  
  142.  
  143. set $bg-color       #556677
  144. set $idle-color     #223344
  145. set $text-color     #8899AA
  146. set $idle-text-color    #8899AA
  147. set $urgent-bg-color    #EACB00
  148.  
  149. set $transparent    #00FFFFFF
  150.  
  151. bindsym $mod+r mode "resize"
  152.  
  153. bindsym $mod+shift+x exec i3lock --color "$bg-color"
  154.  
  155. #Setting the wallpaper and starting the terminal when we boot up i3
  156. exec_always urxvt
  157. exec_always feh --bg-scale /home/sloan/Pictures/snow2.png
  158. exec_always compton -f
  159.  
  160. #Bind that starts rofi
  161. bindsym $mod+d exec rofi -show run -lines 3 -eh 2 -width 100 -padding 100 -opacity "85" -bw 0 -bc "$bg-color" -bg "$bg-color" -fg "$text-color" -hlbg "$bg-color" -hlfg "#957CD"
  162.  
  163. #Getting into coloring now
  164.  
  165.  
  166.  
  167. #Setting windows colors
  168.  
  169. #                   Border      Background  text            indicator
  170. client.focused          $bg-color   $bg-color   $text-color     #00FF00
  171. client.unfocused        $bg-color   $bg-color   $idle-text-color    #00FF00
  172. client.focused_inactive     $bg-color   $bg-color   $idle-text-color    #00FF00
  173.  
  174. client.urgent           $urgent-bg-color $urgent-bg-color $text-color       #00FF00
  175.  
  176. hide_edge_borders both
  177.  
  178.  
  179. #New windows
  180. new_window pixel 5
  181.  
  182.  
  183. #Workspace bar modifications
  184.  
  185. bar {
  186.     status_command i3blocks
  187.     colors {
  188.         background $bg-color
  189.         separator #757575
  190.  
  191.         #           border          background      text
  192.         focused_workspace   $bg-color       $bg-color       $text-color
  193.         inactive_workspace  $idle-color     $idle-color     $idle-text-color
  194.         urgent_workspace    $urgent-bg-color    $urgent-bg-color    $text-color
  195.     }
  196.  
  197.     position top
  198.     font pango: Neep Regular 10
  199.     separator_symbol "|"
  200. }
Advertisement
Add Comment
Please, Sign In to add comment