Gertjaars

i3.conf

Jul 23rd, 2017
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.22 KB | None | 0 0
  1. set $mod Mod4
  2.  
  3. # Font for window titles. Will also be used by the bar unless a different font
  4. # is used in the bar {} block below. ISO 10646 = Unicode
  5. font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  6. # The font above is very space-efficient, that is, it looks good, sharp and
  7. # clear in small sizes. However, if you need a lot of unicode glyphs or
  8. # right-to-left text rendering, you should instead use pango for rendering and
  9. # chose a FreeType font, such as:
  10. # font pango:DejaVu Sans Mono 10
  11.  
  12. # Use Mouse+$mod to drag floating windows to their wanted position
  13. floating_modifier $mod
  14.  
  15. #floating always
  16. for_window [class="Gmrun"] floating enable
  17.  
  18.  
  19. # start a terminal
  20. bindsym $mod+Return exec terminator
  21.  
  22. # kill focused window
  23. bindsym $mod+Shift+q kill
  24.  
  25. # Apps and settings
  26. bindsym $mod+b exec firefox
  27. bindsym $mod+l exec i3lock -c 111111
  28. bindsym $mod+f exec pcmanfm
  29. bindsym $mod+Shift+f exec gksu pcmanfm
  30. bindsym $mod+g exec gmrun
  31. bindsym $mod+F9 exec synclient TouchPadOff=1
  32. bindsym $mod+F10 exec synclient TouchPadOff=0
  33.  
  34.  
  35. #scratchpad
  36. bindsym $mod+Shift+minus move scratchpad
  37. bindsym $mod+minus scratchpad show
  38.  
  39.  
  40. # startup apps
  41. exec --no-startup-id nm-applet
  42. exec --no-startup-id feh --bg-scale /home/chase/Pictures/ibm.jpg
  43. exec --no-startup-id xfce4-power-manager
  44. exec --no-startup-id compton
  45. # bar
  46. #exec --no-startup-id /home/chase/.config/polybar/launch.sh
  47.  
  48. # change focus
  49. # bindsym $mod+j focus left
  50. # bindsym $mod+k focus down
  51. # bindsym $mod+l focus up
  52. # bindsym $mod+semicolon focus right
  53.  
  54. # alternatively, you can use the cursor keys:
  55. bindsym $mod+Left focus left
  56. bindsym $mod+Down focus down
  57. bindsym $mod+Up focus up
  58. bindsym $mod+Right focus right
  59.  
  60. # move focused window
  61. bindsym $mod+Shift+j move left
  62. bindsym $mod+Shift+k move down
  63. bindsym $mod+Shift+l move up
  64. bindsym $mod+Shift+semicolon move right
  65.  
  66. # alternatively, you can use the cursor keys:
  67. bindsym $mod+Shift+Left move left
  68. bindsym $mod+Shift+Down move down
  69. bindsym $mod+Shift+Up move up
  70. bindsym $mod+Shift+Right move right
  71.  
  72. # split in horizontal orientation
  73. bindsym $mod+v split h
  74.  
  75. # split in vertical orientation
  76. bindsym $mod+h split v
  77.  
  78. # enter fullscreen mode for the focused container
  79. # bindsym $mod+f fullscreen
  80.  
  81. # change container layout (stacked, tabbed, toggle split)
  82. bindsym $mod+s layout stacking
  83. bindsym $mod+w layout tabbed
  84. bindsym $mod+e layout toggle split
  85.  
  86. # toggle tiling / floating
  87. bindsym $mod+Shift+space floating toggle
  88.  
  89. # change focus between tiling / floating windows
  90. bindsym $mod+space focus mode_toggle
  91.  
  92. # focus the parent container
  93. bindsym $mod+a focus parent
  94.  
  95. # focus the child container
  96. #bindsym $mod+d focus child
  97.  
  98. # switch to workspace
  99. bindsym $mod+1 workspace $workspace1
  100. bindsym $mod+2 workspace $workspace2
  101. bindsym $mod+3 workspace $workspace3
  102. bindsym $mod+4 workspace $workspace4
  103. bindsym $mod+5 workspace $workspace5
  104. bindsym $mod+6 workspace $workspace6
  105. bindsym $mod+7 workspace $workspace7
  106. bindsym $mod+8 workspace $workspace8
  107. bindsym $mod+9 workspace $workspace9
  108. bindsym $mod+0 workspace $workspace10
  109.  
  110. # move focused container to workspace
  111. set $workspace1 "I"
  112. set $workspace2 "II"
  113. set $workspace3 "III"
  114. set $workspace4 "IV"
  115. set $workspace5 "V"
  116. set $workspace6 "VI"
  117. set $workspace7 "VII"
  118. set $workspace8 "VIII"
  119. set $workspace9 "IX"
  120. set $workspace10 "X"
  121. bindsym $mod+Shift+1 move container to workspace $workspace1
  122. bindsym $mod+Shift+2 move container to workspace $workspace2
  123. bindsym $mod+Shift+3 move container to workspace $workspace3
  124. bindsym $mod+Shift+4 move container to workspace $workspace4
  125. bindsym $mod+Shift+5 move container to workspace $workspace5
  126. bindsym $mod+Shift+6 move container to workspace $workspace6
  127. bindsym $mod+Shift+7 move container to workspace $workspace7
  128. bindsym $mod+Shift+8 move container to workspace $workspace8
  129. bindsym $mod+Shift+9 move container to workspace $workspace9
  130. bindsym $mod+Shift+0 move container to workspace $workspace10
  131. # reload the configuration file
  132. bindsym $mod+Shift+c reload
  133. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  134. bindsym $mod+Shift+r restart
  135. # exit i3 (logs you out of your X session)
  136. 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'"
  137.  
  138. #shutdown immediately - no warnings...
  139. bindsym $mod+Shift+p exec systemctl poweroff
  140.  
  141. # resize window (you can also use the mouse for that)
  142. mode "resize" {
  143. # These bindings trigger as soon as you enter the resize mode
  144.  
  145. # Pressing left will shrink the window’s width.
  146. # Pressing right will grow the window’s width.
  147. # Pressing up will shrink the window’s height.
  148. # Pressing down will grow the window’s height.
  149. bindsym j resize shrink width 10 px or 10 ppt
  150. bindsym k resize grow height 10 px or 10 ppt
  151. bindsym l resize shrink height 10 px or 10 ppt
  152. bindsym semicolon resize grow width 10 px or 10 ppt
  153.  
  154. # same bindings, but for the arrow keys
  155. bindsym Left resize shrink width 10 px or 10 ppt
  156. bindsym Down resize grow height 10 px or 10 ppt
  157. bindsym Up resize shrink height 10 px or 10 ppt
  158. bindsym Right resize grow width 10 px or 10 ppt
  159.  
  160. # back to normal: Enter or Escape
  161. bindsym Return mode "default"
  162. bindsym Escape mode "default"
  163. }
  164.  
  165. bindsym $mod+r mode "resize"
  166.  
  167. # Start i3bar to display a workspace bar (plus the system information i3status
  168. # finds out, if available)
  169. bar {
  170. status_command i3blocks
  171. }
  172.  
  173.  
  174. bindsym Control+$mod+l exec "lock"
  175. bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer set Master 2%+ && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)"
  176. bindsym XF86AudioLowerVolume exec --no-startup-id "amixer set Master 2%- && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)"
  177. bindsym $mod+XF86AudioMute exec --no-startup-id pactl set-sink-volume 0 50%
  178. bindsym $mod+Shift+XF86AudioMute exec --no-startup-id pactl set-sink-volume 0 100%
  179. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle
  180. exec_always xcompmgr -c -f -n
  181. bindsym XF86AudioPrev exec mpc prev & playerctl previous
  182. bindsym XF86AudioNext exec mpc next & playerctl next
  183. bindsym XF86AudioPlay exec mpc play & playerctl play-pause
  184. bindsym XF86AudioStop exec mpc pause
  185.  
  186. set $bg-color #1e1e1e
  187. set $inactive-bg-color #1e1e1e
  188. set $text-color #ffffff
  189. set $inactive-text-color #676E7D
  190. set $urgent-bg-color #9e9e9e
  191.  
  192. # window colors
  193. # border background text indicator
  194. client.focused $bg-color $bg-color $text-color #ff0ff0D
  195. client.unfocused $inactive-bg-color $inactive-bg-color $inactive-text-color #ffffff
  196. client.focused_inactive $inactive-bg-color $inactive-bg-color $inactive-text-color #ffffff
  197. client.urgent $urgent-bg-color $urgent-bg-color $text-color #ffffff
  198.  
  199. hide_edge_borders both
  200. new_window 1pixel
  201.  
  202. # start rofi
  203. bindsym $mod+d exec rofi -show run 
  204.  
  205. # To auto mount USB's
  206. exec --no-startup-id "devmon --no-gui"
  207.  
  208. # scrot & gimp
  209. bindsym Print exec scrot -e 'mv $f /tmp/ && gimp /tmp/$f'
Advertisement
Add Comment
Please, Sign In to add comment