Advertisement
Guest User

i3config

a guest
Jan 28th, 2017
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.79 KB | None | 0 0
  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 http://i3wm.org/docs/userguide.html for a complete reference!
  11.  
  12. set $mod Mod1
  13.  
  14. # Font for window titles. Will also be used by the bar unless a different font
  15. # is used in the bar {} block below.
  16. font pango:Roboto 10
  17.  
  18. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  19. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  20. #font pango:DejaVu Sans Mono 8
  21.  
  22. # Before i3 v4.8, we used to recommend this one as the default:
  23. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  24. # The font above is very space-efficient, that is, it looks good, sharp and
  25. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  26. # X core fonts rendering does not support right-to-left and this being a bitmap
  27. # font, it doesn’t scale on retina/hidpi displays.
  28.  
  29. # use Mouse+$mod to drag floating windows to their wanted position
  30. floating_modifier $mod
  31.  
  32. # start a terminal
  33. bindsym $mod+Return exec i3-sensible-terminal
  34.  
  35. # kill focused window
  36. bindsym $mod+Shift+q kill
  37.  
  38. # start rofi (a program launcher)
  39. bindsym $mod+d exec rofi -config ~/.config/rofi/config -show run
  40.  
  41. # change focus
  42. bindsym $mod+j focus left
  43. bindsym $mod+k focus down
  44. bindsym $mod+l focus up
  45. bindsym $mod+semicolon focus right
  46.  
  47. # alternatively, you can use the cursor keys:
  48. bindsym $mod+Left focus left
  49. bindsym $mod+Down focus down
  50. bindsym $mod+Up focus up
  51. bindsym $mod+Right focus right
  52.  
  53. # move focused window
  54. bindsym $mod+Shift+j move left
  55. bindsym $mod+Shift+k move down
  56. bindsym $mod+Shift+l move up
  57. bindsym $mod+Shift+semicolon move right
  58.  
  59. # alternatively, you can use the cursor keys:
  60. bindsym $mod+Shift+Left move left
  61. bindsym $mod+Shift+Down move down
  62. bindsym $mod+Shift+Up move up
  63. bindsym $mod+Shift+Right move right
  64.  
  65. # split in horizontal orientation
  66. bindsym $mod+h split h
  67.  
  68. # split in vertical orientation
  69. bindsym $mod+v split v
  70.  
  71. # enter fullscreen mode for the focused container
  72. bindsym $mod+f fullscreen toggle
  73.  
  74. # change container layout (stacked, tabbed, toggle split)
  75. bindsym $mod+s layout stacking
  76. bindsym $mod+w layout tabbed
  77. bindsym $mod+e layout toggle split
  78.  
  79. # toggle tiling / floating
  80. bindsym $mod+Shift+space floating toggle
  81.  
  82. # change focus between tiling / floating windows
  83. bindsym $mod+space focus mode_toggle
  84.  
  85. # focus the parent container
  86. bindsym $mod+a focus parent
  87.  
  88. # focus the child container
  89. #bindsym $mod+d focus child
  90.  
  91. # workspace variables
  92. set $workspace1 "1: Desktop "
  93. set $workspace2 "2: Internet "
  94. set $workspace3 "3: Terminals "
  95. set $workspace4 "4: File Manager "
  96. set $workspace5 "5: Programming "
  97. set $workspace6 "6: Document Editors "
  98. set $workspace7 "7: Media Players "
  99. set $workspace8 "8: Audio Control "
  100. set $workspace9 "9: Image Viewer "
  101. set $workspace10 "10: Torrent Client "
  102.  
  103. # switch to workspace
  104. bindsym $mod+1 workspace $workspace1
  105. bindsym $mod+2 workspace $workspace2
  106. bindsym $mod+3 workspace $workspace3
  107. bindsym $mod+4 workspace $workspace4
  108. bindsym $mod+5 workspace $workspace5
  109. bindsym $mod+6 workspace $workspace6
  110. bindsym $mod+7 workspace $workspace7
  111. bindsym $mod+8 workspace $workspace8
  112. bindsym $mod+9 workspace $workspace9
  113. bindsym $mod+0 workspace $workspace10
  114.  
  115. # move focused container to workspace
  116. bindsym $mod+Shift+1 move container to workspace $workspace1
  117. bindsym $mod+Shift+2 move container to workspace $workspace2
  118. bindsym $mod+Shift+3 move container to workspace $workspace3
  119. bindsym $mod+Shift+4 move container to workspace $workspace4
  120. bindsym $mod+Shift+5 move container to workspace $workspace5
  121. bindsym $mod+Shift+6 move container to workspace $workspace6
  122. bindsym $mod+Shift+7 move container to workspace $workspace7
  123. bindsym $mod+Shift+8 move container to workspace $workspace8
  124. bindsym $mod+Shift+9 move container to workspace $workspace9
  125. bindsym $mod+Shift+0 move container to workspace $workspace10
  126.  
  127. # open a new container in the desired workspace
  128. assign [class="Firefox"] $workspace2
  129. assign [class="Gnome-terminal"] $workspace3
  130. assign [class="Spacefm"] $workspace4
  131. assign [class="jetbrains-clion"] $workspace5
  132. assign [class="^(?i)libreoffice-*"] $workspace6
  133. assign [class="Soffice" title="Options - LibreOffice - User Data"] $workspace6
  134. assign [class="Subl3"] $workspace6
  135. assign [class="Evince"] $workspace6
  136. assign [class="Audacious"] $workspace7
  137. assign [class="Gnome-mplayer"] $workspace7
  138. assign [class="Pavucontrol"] $workspace8
  139. assign [class="Gthumb"] $workspace9
  140. assign [class="Transmission-gtk"] $workspace10
  141.  
  142. # force floating mode for a container
  143. for_window [class="Firefox" title="About Mozilla Firefox"] floating enable
  144. for_window [class="Firefox" title="Library"] floating enable
  145. for_window [class="Soffice" title="Extension Manager"] floating enable
  146.  
  147. # move to urgent container
  148. bindsym $mod+x [urgent=latest] focus
  149.  
  150. # PulseAudio controls
  151. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5%
  152. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5%
  153. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle
  154.  
  155. # media player controls
  156. bindsym $mod+Control+Left exec --no-startup-id playerctl --player=audacious previous
  157. bindsym $mod+Control+Right exec --no-startup-id playerctl --player=audacious next
  158. bindsym $mod+Control+Up exec --no-startup-id playerctl --player=audacious play
  159. bindsym $mod+Control+Down exec --no-startup-id playerctl --player=audacious pause
  160.  
  161. # calculator
  162. bindsym XF86Calculator exec gnome-calculator
  163.  
  164. # screenshot
  165. bindsym Print exec gnome-screenshot -i
  166.  
  167. # reload the configuration file
  168. bindsym $mod+Shift+c reload
  169. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  170. bindsym $mod+Shift+r restart
  171. # exit i3 (logs you out of your X session)
  172. 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'"
  173.  
  174. # exit i3 (logs you out of your X session)
  175. bindsym $mod+Ctrl+s exec "i3-nagbar -t warning -m 'Are you sure you want to shutdown your computer?' -b 'Yes, shutdown.' 'shutdown -h now'"
  176.  
  177. # exit i3 (logs you out of your X session)
  178. bindsym $mod+Ctrl+r exec "i3-nagbar -t warning -m 'Are you sure you want to restart your computer?' -b 'Yes, restart.' 'shutdown -r now'"
  179.  
  180. # resize window (you can also use the mouse for that)
  181. mode "resize" {
  182. # These bindings trigger as soon as you enter the resize mode
  183.  
  184. # Pressing left will shrink the window’s width.
  185. # Pressing right will grow the window’s width.
  186. # Pressing up will shrink the window’s height.
  187. # Pressing down will grow the window’s height.
  188. bindsym j resize shrink width 10 px or 10 ppt
  189. bindsym k resize grow height 10 px or 10 ppt
  190. bindsym l resize shrink height 10 px or 10 ppt
  191. bindsym semicolon resize grow width 10 px or 10 ppt
  192.  
  193. # same bindings, but for the arrow keys
  194. bindsym Left resize shrink width 10 px or 10 ppt
  195. bindsym Down resize grow height 10 px or 10 ppt
  196. bindsym Up resize shrink height 10 px or 10 ppt
  197. bindsym Right resize grow width 10 px or 10 ppt
  198.  
  199. # back to normal: Enter or Escape
  200. bindsym Return mode "default"
  201. bindsym Escape mode "default"
  202. }
  203.  
  204. bindsym $mod+r mode "resize"
  205.  
  206. # color variables
  207. # windows
  208. set $window-normal-text-color #dedede
  209. set $window-focused-color #d64937
  210. set $window-inactive-color #333333
  211. set $window-urgent-text-color #ee0000
  212. set $window-urgent-color #383a3b
  213. set $window-placeholder-color #000000
  214. set $window-unused-color #000000
  215. set $window-background-color #ffffff
  216.  
  217. # bar
  218. set $bar-background-color #2d2d2d
  219. set $bar-statusline-color #dedede
  220. set $bar-separator-color #2d2d2d
  221. set $bar-focused-text-color #dedede
  222. set $bar-focused-border-color #d64937
  223. set $bar-focused-background-color #d64937
  224. set $bar-active-text-color #dedede
  225. set $bar-active-border-color #2d2d2d
  226. set $bar-active-background-color #5f676a
  227. set $bar-inactive-text-color #888888
  228. set $bar-inactive-border-color #2d2d2d
  229. set $bar-inactive-background-color #2d2d2d
  230. set $bar-urgent-text-color #ffffff
  231. set $bar-urgent-border-color #333333
  232. set $bar-urgent-background-color #900000
  233.  
  234. # window colors
  235. # class border background text indicator child_border
  236. client.focused $window-focused-color $window-focused-color $window-normal-text-color $window-unused-color $window-unused-color
  237. client.focused_inactive $window-inactive-color $window-inactive-color $window-normal-text-color $window-unused-color $window-unused-color
  238. client.unfocused $window-inactive-color $window-inactive-color $window-normal-text-color $window-unused-color $window-unused-color
  239. client.urgent $window-urgent-color $window-urgent-color $window-urgent-text-color $window-unused-color $window-unused-color
  240. client.placeholder $window-placeholder-color $window-placeholder-color $window-normal-text-color $window-unused-color $window-unused-color
  241.  
  242. client.background $window-background-color
  243.  
  244. hide_edge_borders both
  245.  
  246. # start i3bar to display a workspace bar (plus the system information i3blocks
  247. # finds out, if available)
  248. bar {
  249. status_command i3blocks
  250. colors {
  251. background $bar-background-color
  252. statusline $bar-statusline-color
  253. separator $bar-separator-color
  254. # border background text
  255. focused_workspace $bar-focused-border-color $bar-focused-background-color $bar-focused-text-color
  256. active_workspace $bar-active-border-color $bar-active-background-color $bar-active-text-color
  257. inactive_workspace $bar-inactive-border-color $bar-inactive-background-color $bar-inactive-text-color
  258. urgent_workspace $bar-urgent-border-color $bar-urgent-background-color $bar-urgent-text-color
  259. }
  260. }
  261.  
  262. # i3lock
  263. bindsym $mod+Shift+x exec --no-startup-id i3lock
  264.  
  265. # xrandr
  266. exec --no-startup-id xrandr --output VGA-0 --off --output DVI-D-0 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DVI-D-1 --off --output HDMI-0 --off
  267.  
  268. # feh
  269. exec --no-startup-id feh --bg-scale /home/luka/Pictures/Wallpaperi/WW2/Trudgian/6.jpg
  270.  
  271. # compton
  272. exec --no-startup-id compton --backend glx --vsync opengl-swc --paint-on-overlay --unredir-if-possible
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement