Advertisement
Guest User

i3.conf

a guest
Sep 15th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.12 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 Mod4
  13. set $base00 #101218
  14. set $base01 #1f222d
  15. set $base02 #252936
  16. set $base03 #7780a1
  17. set $base04 #C0C5CE
  18. set $base05 #d1d4e0
  19. set $base06 #C9CCDB
  20. set $base07 #ffffff
  21. set $base08 #ee829f
  22. set $base09 #f99170
  23. set $base0A #ffefcc
  24. set $base0B #a5ffe1
  25. set $base0C #97e0ff
  26. set $base0D #97bbf7
  27. set $base0E #c0b7f9
  28. set $base0F #fcc09e
  29.  
  30. set $transparent #00000000
  31. # Font for window titles. Will also be used by the bar unless a different font
  32. # is used in the bar {} block below.
  33. # font pango:monospace 8
  34. font pango:System San Francisco Display 10
  35.  
  36.  
  37. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  38. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  39. #font pango:DejaVu Sans Mono 8
  40.  
  41. # Before i3 v4.8, we used to recommend this one as the default:
  42. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  43. # The font above is very space-efficient, that is, it looks good, sharp and
  44. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  45. # X core fonts rendering does not support right-to-left and this being a bitmap
  46. # font, it doesn’t scale on retina/hidpi displays.
  47.  
  48. # Use Mouse+$mod to drag floating windows to their wanted position
  49. floating_modifier $mod
  50.  
  51. # Disable focus switch when hovering over window
  52. focus_follows_mouse no
  53.  
  54. # start a terminal
  55. bindsym $mod+Return exec terminator
  56.  
  57. # kill focused window
  58. bindsym $mod+Shift+q kill
  59.  
  60. # start dmenu (a program launcher)
  61. # bindsym $mod+d exec dmenu_run
  62. # bindsym $mod+space exec rofi -show drun -config ~/.Xresources
  63. bindsym $mod+space exec rofi -show combi -combi-modi "window#run#ssh" -modi combi -config ~/.Xresources
  64.  
  65. # There also is the (new) i3-dmenu-desktop which only displays applications
  66. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  67. # installed.
  68. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  69.  
  70. # change focus
  71. bindsym $mod+h focus left
  72. bindsym $mod+j focus down
  73. bindsym $mod+k focus up
  74. bindsym $mod+l focus right
  75.  
  76. # alternatively, you can use the cursor keys:
  77. bindsym $mod+Left focus left
  78. bindsym $mod+Down focus down
  79. bindsym $mod+Up focus up
  80. bindsym $mod+Right focus right
  81.  
  82. # move focused window
  83. bindsym $mod+Shift+h move left
  84. bindsym $mod+Shift+j move down
  85. bindsym $mod+Shift+k move up
  86. bindsym $mod+Shift+l move right
  87.  
  88. # alternatively, you can use the cursor keys:
  89. bindsym $mod+Shift+Left move left
  90. bindsym $mod+Shift+Down move down
  91. bindsym $mod+Shift+Up move up
  92. bindsym $mod+Shift+Right move right
  93.  
  94. # split in horizontal orientation
  95. bindsym $mod+o split h
  96.  
  97. # split in vertical orientation
  98. bindsym $mod+x split v
  99.  
  100. # enter fullscreen mode for the focused container
  101. bindsym $mod+f fullscreen toggle
  102.  
  103. # change container layout (stacked, tabbed, toggle split)
  104. bindsym $mod+s layout stacking
  105. bindsym $mod+w layout tabbed
  106. bindsym $mod+e layout toggle split
  107.  
  108. # toggle tiling / floating
  109. bindsym $mod+Shift+space floating toggle
  110.  
  111. # change focus between tiling / floating windows
  112. #bindsym $mod+space focus mode_toggle
  113.  
  114. # focus the parent container
  115. bindsym $mod+a focus parent
  116.  
  117. # focus the child container
  118. #bindsym $mod+d focus child
  119.  
  120. set $workspace1 "1: Mail "
  121. set $workspace7 "7: Chat "
  122. set $workspace2 "2: Web "
  123. set $workspace3 "3: Coding "
  124. set $workspace5 "5: Writing "
  125. set $workspace4 "4: Coding2 "
  126. set $workspace6 "6: Writing2 "
  127. set $workspace10 "10: Music "
  128.  
  129.  
  130. # switch to workspace
  131. bindsym $mod+1 workspace $workspace1
  132. bindsym $mod+2 workspace $workspace2
  133. bindsym $mod+3 workspace $workspace3
  134. bindsym $mod+4 workspace $workspace4
  135. bindsym $mod+5 workspace $workspace5
  136. bindsym $mod+6 workspace $workspace6
  137. bindsym $mod+7 workspace $workspace7
  138. bindsym $mod+8 workspace 8
  139. bindsym $mod+9 workspace 9
  140. bindsym $mod+0 workspace $workspace10
  141.  
  142. # move focused container to workspace
  143. bindsym $mod+Shift+1 move container to workspace $workspace1
  144. bindsym $mod+Shift+2 move container to workspace $workspace2
  145. bindsym $mod+Shift+3 move container to workspace $workspace3
  146. bindsym $mod+Shift+4 move container to workspace $workspace4
  147. bindsym $mod+Shift+5 move container to workspace $workspace5
  148. bindsym $mod+Shift+6 move container to workspace $workspace6
  149. bindsym $mod+Shift+7 move container to workspace $workspace7
  150. bindsym $mod+Shift+8 move container to workspace 8
  151. bindsym $mod+Shift+9 move container to workspace 9
  152. bindsym $mod+Shift+0 move container to workspace $workspace10
  153.  
  154. assign [class="Chromium-browser"] $workspace2
  155. assign [class="Thunderbird"] $workspace1
  156. assign [class="Franz"] $workspace1
  157.  
  158. # reload the configuration file
  159. bindsym $mod+Shift+c reload
  160. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  161. bindsym $mod+Shift+r restart
  162. # exit i3 (logs you out of your X session)
  163.  
  164. # resize window (you can also use the mouse for that)
  165. mode "resize" {
  166. # These bindings trigger as soon as you enter the resize mode
  167.  
  168. # Pressing left will shrink the window’s width.
  169. # Pressing right will grow the window’s width.
  170. # Pressing up will shrink the window’s height.
  171. # Pressing down will grow the window’s height.
  172. bindsym h resize shrink width 10 px or 10 ppt
  173. bindsym j resize grow height 10 px or 10 ppt
  174. bindsym k resize shrink height 10 px or 10 ppt
  175. bindsym l resize grow width 10 px or 10 ppt
  176.  
  177. # same bindings, but for the arrow keys
  178. bindsym Left resize shrink width 10 px or 10 ppt
  179. bindsym Down resize grow height 10 px or 10 ppt
  180. bindsym Up resize shrink height 10 px or 10 ppt
  181. bindsym Right resize grow width 10 px or 10 ppt
  182.  
  183. # back to normal: Enter or Escape bindsym Return mode "default" bindsym Escape mode "default"
  184. bindsym Return mode "default"
  185. bindsym Escape mode "default"
  186. }
  187.  
  188. bindsym $mod+r mode "resize"
  189.  
  190. 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'"
  191. # bindsym $mod+shift+x exec i3lock --color "$base01"
  192. bindsym $mod+Shift+x exec i3lock-fancy
  193. exec_always feh --bg-scale ~/Pictures/Wallpapers/razer2.png
  194. exec chromium-browser
  195. exec_always compton -f
  196. exec dropbox
  197. exec dunst
  198. # exec xrandr --output eDP-1 --mode 1920x1080 --dpi 220 --scale 2.0x2.0
  199. # exec_always xrandr --output HDMI2 --off --output HDMI1 --primary --mode 1920x1200 --pos 1920x0 --rotate normal --output VIRTUAL1 --off --output VGA1 --mode 1920x1200 --pos 0x0 --rotate normal
  200.  
  201. # Start i3bar to display a workspace bar (plus the system information i3status
  202. # finds out, if available)
  203.  
  204. # Widow Colours
  205. # border background text indicator
  206. client.focused $base01 $base01 $base07 $base0F
  207. client.focused_inactive $base02 $base02 $base03 $base0F
  208. client.unfocused $base02 $base02 $base03 $base0F
  209. client.urgent $base02 $base08 $base00 $base0F
  210.  
  211.  
  212.  
  213. bar {
  214. status_command i3blocks -c ~/.config/i3/i3blocks.conf
  215. i3bar_command i3bar -t
  216. position top
  217. tray_output eDP1
  218. height 25
  219. font pango: System San Francisco Display, FontAwesome 20
  220. # font pango: Terminus 20 # (TTF), FontAwesome 20
  221. separator_symbol "■"
  222. colors {
  223. background #021215
  224. separator #2aa198
  225. statusline #93a1a1
  226. # border background text
  227. focused_workspace $base01 $base01 $base07
  228. active_workspace $base01 $base02 $base03
  229. inactive_workspace $base01 $base01 $base03
  230. urgent_workspace $base01 $base01 $base08
  231. }
  232. }
  233.  
  234.  
  235. # Pulse Audio controls
  236. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
  237. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
  238. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
  239.  
  240. # Sreen brightness controls
  241. bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
  242. bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness
  243.  
  244. # Touchpad controls
  245. bindsym XF86TouchpadToggle exec ~/.i3/toggletouchpad.sh # toggle touchpad
  246.  
  247. # Media player controls
  248. bindsym XF86AudioPlay exec playerctl play
  249. bindsym XF86AudioPause exec playerctl pause
  250. bindsym XF86AudioNext exec playerctl next
  251. bindsym XF86AudioPrev exec playerctl previous
  252.  
  253. # Set wallpaper (need to install feh)
  254. #exec_always feh --bg-scale /path_to_image_file
  255.  
  256. # Set display mode
  257. #exec_always xrandr --output Virtual1 --mode 1360x768
  258.  
  259. # Fix Nautilius issue on Ubuntu
  260. exec_always gsettings set org.gnome.desktop.background show-desktop-icons false
  261. exec_always gsettings set org.nemo.desktop show-desktop-icons false
  262.  
  263. exec_always compton -f
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement