Advertisement
Guest User

i3 Conf

a guest
Jun 16th, 2019
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # This file has been auto-generated by i3-config-wizard(1).
  2. # It will not be overwritten, so edit it as you like.
  3. #
  4. # Should you change your keyboard layout some time, delete
  5. # this file and re-run i3-config-wizard(1).
  6. #
  7.  
  8. # i3 config file (v4)
  9. #
  10. # Please see https://i3wm.org/docs/userguide.html for a complete reference!
  11.  
  12. #COLOURS
  13. # class                 border  bground text    indicator child_border
  14. client.focused          #000000 #ECE5CE #000000 #F1D4AF   #774F38
  15. client.focused_inactive #333333 #ECE5CE #000000 #F1D4AF   #E08E79
  16. client.unfocused        #333333 #ECE5CE #000000 #F1D4AF   #E08E79
  17. client.urgent           #2F343A #FF0000 #000000 #900000   #FF0000
  18. client.placeholder      #000000 #0C0C0C #FFFFFF #000000   #0C0C0C
  19.  
  20. client.background       #ECE5CE
  21.  
  22. focus_follows_mouse no
  23.  
  24. exec --no-startup-id synclient TapButton3=2
  25. exec --no-startup-id setxkbmap -model abnt2 -layout br -variant abnt2
  26. exec --no-startup-id xinput set-prop 'FTE1200:00 0B05:0501 Touchpad'  'Synaptics Scrolling Distance'  -40 -40
  27. exec_always --no-startup-id xinput set-prop 17 "Evdev Scrolling Distance" 1 1 1
  28. exec_always --no-startup-id xinput set-prop 16 "Evdev Scrolling Distance" 1 1 1
  29.  
  30. # Pulse Audio controls
  31. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
  32. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
  33. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
  34.  
  35. # Screen brightness controls
  36. bindsym XF86MonBrightnessUp exec xbacklight -inc 20
  37. bindsym XF86MonBrightnessDown exec xbacklight -dec 20
  38.  
  39. #Lock screen
  40. bindsym $mod+Control+L exec i3lock-fancy --font FiraCode-Regular -- scrot -z
  41.  
  42. set $mod Mod1
  43. set $sup Mod4
  44. # Font for window titles. Will also be used by the bar unless a different font
  45. # is used in the bar {} block below.
  46. font pango:monospace 8
  47.  
  48. #The wallpaper!
  49. #exec_always --no-startup-id feh --bg-fill /home/decker/w.jpg
  50. exec_always --no-startup-id hsetroot -solid "#C5E0DC"
  51. #The compton!
  52. #exec_always --no-startup-id killall compton
  53. exec_always --no-startup-id compton --config /home/decker/.config/compton.conf
  54.  
  55. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  56. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  57. #font pango:DejaVu Sans Mono 8
  58.  
  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.  
  66. # Use Mouse+$mod to drag floating windows to their wanted position
  67. floating_modifier $mod
  68.  
  69. # start a terminal
  70. bindsym $mod+Return exec i3-sensible-terminal
  71.  
  72. # kill focused window
  73. bindsym $mod+Shift+q kill
  74.  
  75. # start dmenu (a program launcher)
  76. bindsym $mod+d exec --no-startup-id "dmenu_run -nf '#000000' -nb '#ECE5CE' -sb '#C5E0DC' -sf '#774F38' -fn 'FiraCode'"
  77.  
  78. #bindsym $mod+d exec --no-startup-id dmenu_run
  79. # There also is the (new) i3-dmenu-desktop which only displays applications
  80. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  81. # installed.
  82. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  83.  
  84. # change focus
  85. bindsym $mod+j focus left
  86. bindsym $mod+k focus down
  87. bindsym $mod+l focus up
  88. bindsym $mod+ccedilla focus right
  89.  
  90. # alternatively, you can use the cursor keys:
  91. bindsym $mod+Left focus left
  92. bindsym $mod+Down focus down
  93. bindsym $mod+Up focus up
  94. bindsym $mod+Right focus right
  95.  
  96. # move focused window
  97. bindsym $mod+Shift+j move left
  98. bindsym $mod+Shift+k move down
  99. bindsym $mod+Shift+l move up
  100. bindsym $mod+Shift+ccedilla move right
  101.  
  102. # alternatively, you can use the cursor keys:
  103. bindsym $mod+Shift+Left move left
  104. bindsym $mod+Shift+Down move down
  105. bindsym $mod+Shift+Up move up
  106. bindsym $mod+Shift+Right move right
  107.  
  108. # split in horizontal orientation
  109. bindsym $mod+h split h
  110.  
  111. # split in vertical orientation
  112. bindsym $mod+v split v
  113.  
  114. # enter fullscreen mode for the focused container
  115. bindsym $mod+f fullscreen toggle
  116.  
  117. # change container layout (stacked, tabbed, toggle split)
  118. bindsym $mod+s layout stacking
  119. bindsym $mod+w layout tabbed
  120. bindsym $mod+e layout toggle split
  121.  
  122. # toggle tiling / floating
  123. bindsym $mod+Shift+space floating toggle
  124.  
  125. # change focus between tiling / floating windows
  126. bindsym $mod+space focus mode_toggle
  127.  
  128. # focus the parent container
  129. bindsym $mod+a focus parent
  130.  
  131. # focus the child container
  132. #bindsym $mod+d focus child
  133.  
  134. # Define names for default workspaces for which we configure key bindings later on.
  135. # We use variables to avoid repeating the names in multiple places.
  136. set $ws1 "1"
  137. set $ws2 "2"
  138. set $ws3 "3"
  139. set $ws4 "4"
  140. set $ws5 "5"
  141. set $ws6 "6"
  142. set $ws7 "7"
  143. set $ws8 "8"
  144. set $ws9 "9"
  145. set $ws10 "10"
  146.  
  147. # switch to workspace
  148. bindsym $mod+1 workspace $ws1
  149. bindsym $mod+2 workspace $ws2
  150. bindsym $mod+3 workspace $ws3
  151. bindsym $mod+4 workspace $ws4
  152. bindsym $mod+5 workspace $ws5
  153. bindsym $mod+6 workspace $ws6
  154. bindsym $mod+7 workspace $ws7
  155. bindsym $mod+8 workspace $ws8
  156. bindsym $mod+9 workspace $ws9
  157. bindsym $mod+0 workspace $ws10
  158.  
  159. # move focused container to workspace
  160. bindsym $mod+Shift+1 move container to workspace $ws1
  161. bindsym $mod+Shift+2 move container to workspace $ws2
  162. bindsym $mod+Shift+3 move container to workspace $ws3
  163. bindsym $mod+Shift+4 move container to workspace $ws4
  164. bindsym $mod+Shift+5 move container to workspace $ws5
  165. bindsym $mod+Shift+6 move container to workspace $ws6
  166. bindsym $mod+Shift+7 move container to workspace $ws7
  167. bindsym $mod+Shift+8 move container to workspace $ws8
  168. bindsym $mod+Shift+9 move container to workspace $ws9
  169. bindsym $mod+Shift+0 move container to workspace $ws10
  170.  
  171. # reload the configuration file
  172. bindsym $mod+Shift+c reload
  173. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  174. bindsym $mod+Shift+r restart
  175. # exit i3 (logs you out of your X session)
  176. 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'"
  177.  
  178. # resize window (you can also use the mouse for that)
  179. mode "resize" {
  180.         # These bindings trigger as soon as you enter the resize mode
  181.  
  182.         # Pressing left will shrink the window’s width.
  183.         # Pressing right will grow the window’s width.
  184.         # Pressing up will shrink the window’s height.
  185.         # Pressing down will grow the window’s height.
  186.         bindsym j resize shrink width 10 px or 10 ppt
  187.         bindsym k resize grow height 10 px or 10 ppt
  188.         bindsym l resize shrink height 10 px or 10 ppt
  189.         bindsym ccedilla resize grow width 10 px or 10 ppt
  190.  
  191.         # same bindings, but for the arrow keys
  192.         bindsym Left resize shrink width 10 px or 10 ppt
  193.         bindsym Down resize grow height 10 px or 10 ppt
  194.         bindsym Up resize shrink height 10 px or 10 ppt
  195.         bindsym Right resize grow width 10 px or 10 ppt
  196.  
  197.         # back to normal: Enter or Escape or $mod+r
  198.         bindsym Return mode "default"
  199.         bindsym Escape mode "default"
  200.         bindsym $mod+r mode "default"
  201. }
  202.  
  203. bindsym $mod+r mode "resize"
  204.  
  205. # Start i3bar to display a workspace bar (plus the system information i3status
  206. # finds out, if available)
  207. #bar {
  208. #        status_command i3status
  209. #}
  210. for_window [class="^.*"] border pixel 3
  211. gaps inner 15
  212. #gaps outer 0
  213. exec_always --no-startup-id $HOME/.config/polybar/launch.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement