Advertisement
Guest User

Untitled

a guest
May 28th, 2020
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.18 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 https://i3wm.org/docs/userguide.html for a complete reference!
  11.  
  12. set $mod Mod4
  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:monospace 8
  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. bindsym $mod+Return exec cool-retro-term
  35.  
  36. # kill focused window
  37. bindsym $mod+Shift+q kill
  38.  
  39. # start dmenu (a program launcher)
  40. # bindsym $mod+d exec dmenu_run
  41. bindsym $mod+d exec rofi -show combi
  42. # There also is the (new) i3-dmenu-desktop which only displays applications
  43. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  44. # installed.
  45. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  46.  
  47. # change focus
  48. bindsym $mod+h focus left
  49. bindsym $mod+j focus down
  50. bindsym $mod+k focus up
  51. bindsym $mod+l focus right
  52.  
  53. # alternatively, you can use the cursor keys:
  54. bindsym $mod+Left focus left
  55. bindsym $mod+Down focus down
  56. bindsym $mod+Up focus up
  57. bindsym $mod+Right focus right
  58.  
  59. # move focused window
  60. bindsym $mod+Shift+h move left
  61. bindsym $mod+Shift+j move down
  62. bindsym $mod+Shift+k move up
  63. bindsym $mod+Shift+l move right
  64.  
  65. # alternatively, you can use the cursor keys:
  66. bindsym $mod+Shift+Left move left
  67. bindsym $mod+Shift+Down move down
  68. bindsym $mod+Shift+Up move up
  69. bindsym $mod+Shift+Right move right
  70.  
  71. # split in horizontal orientation
  72. bindsym $mod+o split h
  73.  
  74. # split in vertical orientation
  75. bindsym $mod+v split v
  76.  
  77. # enter fullscreen mode for the focused container
  78. bindsym $mod+f fullscreen toggle
  79.  
  80. # change container layout (stacked, tabbed, toggle split)
  81. bindsym $mod+s layout stacking
  82. bindsym $mod+w layout tabbed
  83. bindsym $mod+e layout toggle split
  84.  
  85. # toggle tiling / floating
  86. bindsym $mod+Shift+space floating toggle
  87.  
  88. # change focus between tiling / floating windows
  89. bindsym $mod+space focus mode_toggle
  90.  
  91. # focus the parent container
  92. bindsym $mod+a focus parent
  93.  
  94. # focus the child container
  95. #bindsym $mod+d focus child
  96.  
  97. # Define names for default workspaces for which we configure key bindings later on.
  98. # We use variables to avoid repeating the names in multiple places.
  99. set $ws1 "1"
  100. set $ws2 "2"
  101. set $ws3 "3"
  102. set $ws4 "4"
  103. set $ws5 "5"
  104. set $ws6 "6"
  105. set $ws7 "7"
  106. set $ws8 "8"
  107. set $ws9 "9"
  108. set $ws10 "10"
  109.  
  110. # switch to workspace
  111. bindsym $mod+1 workspace $ws1
  112. bindsym $mod+2 workspace $ws2
  113. bindsym $mod+3 workspace $ws3
  114. bindsym $mod+4 workspace $ws4
  115. bindsym $mod+5 workspace $ws5
  116. bindsym $mod+6 workspace $ws6
  117. bindsym $mod+7 workspace $ws7
  118. bindsym $mod+8 workspace $ws8
  119. bindsym $mod+9 workspace $ws9
  120. bindsym $mod+0 workspace $ws10
  121.  
  122. # move focused container to workspace
  123. bindsym $mod+Shift+1 move container to workspace $ws1
  124. bindsym $mod+Shift+2 move container to workspace $ws2
  125. bindsym $mod+Shift+3 move container to workspace $ws3
  126. bindsym $mod+Shift+4 move container to workspace $ws4
  127. bindsym $mod+Shift+5 move container to workspace $ws5
  128. bindsym $mod+Shift+6 move container to workspace $ws6
  129. bindsym $mod+Shift+7 move container to workspace $ws7
  130. bindsym $mod+Shift+8 move container to workspace $ws8
  131. bindsym $mod+Shift+9 move container to workspace $ws9
  132. bindsym $mod+Shift+0 move container to workspace $ws10
  133.  
  134. # reload the configuration file
  135. bindsym $mod+Shift+c reload
  136. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  137. bindsym $mod+Shift+r restart
  138. # exit i3 (logs you out of your X session)
  139. 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'"
  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 h resize shrink width 10 px or 10 ppt
  150. bindsym j resize grow height 10 px or 10 ppt
  151. bindsym k resize shrink height 10 px or 10 ppt
  152. bindsym l 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 or $mod+r
  161. bindsym Return mode "default"
  162. bindsym Escape mode "default"
  163. bindsym $mod+r mode "default"
  164. }
  165.  
  166. bindsym $mod+r mode "resize"
  167.  
  168. # Start i3bar to display a workspace bar (plus the system information i3status
  169. # finds out, if available)
  170. bar {
  171. status_command ~/.local/bin/bumblebee-status -m weather pomodoro cpu sensors memory nic bluetooth brightness battery_all pasink pasource datetime -p pomodoro.notify='notify-send TimeIsUp' nic.states="up" -t solarized-powerline
  172.  
  173. font pango:inconsolata 10
  174. position top
  175. colors {
  176. background #002b36
  177. statusline #839496
  178. separator #586e75
  179. focused_workspace #b58900 #b58900 #002b36
  180. active_workspace #586e75 #586e75 #002b36
  181. inactive_workspace #073642 #002b36 #839496
  182. urgent_workspace #dc322f #dc322f #fdf6e3
  183. }
  184.  
  185. }
  186. focus_follows_mouse no
  187. focus_wrapping no
  188. hide_edge_borders smart
  189.  
  190. assign [class="Chromium" window_type="normal"] 2
  191. assign [class="pycharm" window_type="normal"] 3
  192. assign [class="jetbrains-phpstorm" window_type="normal"] 3
  193. assign [class="jetbrains-pycharm" window_type="normal"] 3
  194. assign [class="jetbrains-studio" window_type="normal"] 3
  195.  
  196. # Startup
  197. exec --no-startup-id gxkb
  198. exec --no-startup-id xautolock -time 5 -locker "i3lock-fancy" -corners -000 -notify 30 -notifier "notify-send -u critical -t 10000 -- 'Locking screen in 30 seconds'"
  199. exec --no-startup-id nm-applet
  200. exec --no-startup-id blueman-applet
  201. #exec --no-startup-id xcape -e "Shift_L=Escape"
  202. exec --no-startup-id nitrogen --restore
  203. #exec --no-startup-id copyq
  204.  
  205. # Force screenlock
  206. bindsym $mod+x exec --no-startup-id xautolock -locknow
  207.  
  208. # Volume controls
  209. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +10% #increase sound volume
  210. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -10% #decrese sound volume
  211. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle #decrese sound volume
  212. bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute 1 toggle
  213.  
  214. # Sreen brightness controls
  215. bindsym XF86MonBrightnessUp exec xbacklight -inc 10 # increase screen brightness
  216. bindsym XF86MonBrightnessDown exec xbacklight -dec 10 # decrease screen brightness
  217.  
  218. # Enable float for dialog windows
  219. for_window [window_role="pop-up"] floating enable
  220. for_window [window_role="bubble"] floating enable
  221. for_window [window_role="task_dialog"] floating enable
  222. for_window [window_role="Preferences"] floating enable
  223. for_window [window_type="dialog"] floating enable
  224. for_window [window_type="menu"] floating enable
  225.  
  226. # i3-gaps config
  227. for_window [class="^.*"] border pixel 3
  228. for_window [class="copyq"] floating enable
  229. for_window [title=".*Emulator.*"] floating enable
  230. gaps outer 5
  231. gaps inner 5
  232. smart_gaps inverse_outer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement