Advertisement
DimaT1

i3conf

Mar 11th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.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 https://i3wm.org/docs/userguide.html for a complete reference!
  11.  
  12. for_window [class="^.*"] border pixel 2
  13. gaps inner 8
  14. gaps outer 8
  15.  
  16. set $mod Mod1
  17.  
  18. # Font for window titles. Will also be used by the bar unless a different font
  19. # is used in the bar {} block below.
  20. font pango:monospace 8
  21.  
  22. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  23. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  24. #font pango:DejaVu Sans Mono 8
  25.  
  26. # Before i3 v4.8, we used to recommend this one as the default:
  27. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  28. # The font above is very space-efficient, that is, it looks good, sharp and
  29. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  30. # X core fonts rendering does not support right-to-left and this being a bitmap
  31. # font, it doesn’t scale on retina/hidpi displays.
  32.  
  33. # Use Mouse+$mod to drag floating windows to their wanted position
  34. floating_modifier $mod
  35.  
  36. # start a terminal
  37. #bindsym $mod+Return exec urxvt
  38.  
  39. # kill focused window
  40. bindsym $mod+q kill
  41.  
  42. # start dmenu (a program launcher)
  43. bindsym $mod+d exec dmenu_run
  44. # There also is the (new) i3-dmenu-desktop which only displays applications
  45. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  46. # installed.
  47. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  48.  
  49. # change focus
  50. bindsym $mod+h focus left
  51. bindsym $mod+Ctrl+h move left 30
  52.  
  53. bindsym $mod+j focus down
  54. bindsym $mod+Ctrl+j move down 30
  55.  
  56. bindsym $mod+k focus up
  57. bindsym $mod+Ctrl+k move up 30
  58.  
  59. bindsym $mod+l focus right
  60. bindsym $mod+Ctrl+l move right 30
  61.  
  62. bindsym $mod+z gaps outer current plus 5
  63. bindsym $mod+Ctrl+z gaps outer current minus 5
  64.  
  65. bindsym $mod+apostrophe split horizontal ;; exec urxvt
  66. bindsym $mod+slash split vertical ;; exec urxvt
  67.  
  68.  
  69. # alternatively, you can use the cursor keys:
  70. bindsym $mod+Left focus left
  71. bindsym $mod+Down focus down
  72. bindsym $mod+Up focus up
  73. bindsym $mod+Right focus right
  74.  
  75. # move focused window
  76.  
  77. # alternatively, you can use the cursor keys:
  78. bindsym $mod+Ctrl+Left move left
  79. bindsym $mod+Ctrl+Down move down
  80. bindsym $mod+Ctrl+Up move up
  81. bindsym $mod+Ctrl+Right move right
  82.  
  83. # split in horizontal orientation
  84.  
  85.  
  86. # split in vertical orientation
  87. bindsym $mod+v split v
  88.  
  89. # enter fullscreen mode for the focused container
  90. bindsym $mod+f fullscreen toggle
  91.  
  92. # change container layout (stacked, tabbed, toggle split)
  93. bindsym $mod+s layout stacking
  94. #bindsym $mod+w layout tabbed
  95. bindsym $mod+e layout toggle split
  96.  
  97. # toggle tiling / floating
  98. bindsym $mod+Ctrl+space floating toggle
  99.  
  100. # change focus between tiling / floating windows
  101. bindsym $mod+space focus mode_toggle
  102.  
  103. # focus the parent container
  104. bindsym $mod+a focus parent
  105.  
  106. # focus the child container
  107. #bindsym $mod+d focus child
  108.  
  109. # Define names for default workspaces for which we configure key bindings later on.
  110. # We use variables to avoid repeating the names in multiple places.
  111. set $ws1 "1"
  112. set $ws2 "2"
  113. set $ws3 "3"
  114. set $ws4 "4"
  115. set $ws5 "5"
  116. set $ws6 "6"
  117. set $ws7 "7"
  118. set $ws8 "8"
  119. set $ws9 "9"
  120. set $ws10 "10"
  121.  
  122. # switch to workspace
  123. bindsym $mod+1 workspace $ws1; exec feh --bg-scale ~/Pictures/wg1.jpg
  124. bindsym $mod+2 workspace $ws2; exec feh --bg-scale ~/Pictures/wg2.jpg
  125. bindsym $mod+3 workspace $ws3; exec feh --bg-scale ~/Pictures/wg3.png
  126. bindsym $mod+4 workspace $ws4; exec feh --bg-scale ~/Pictures/wg4.jpg
  127. bindsym $mod+5 workspace $ws5; exec feh --bg-scale ~/Pictures/wg5.png
  128. bindsym $mod+6 workspace $ws6; exec feh --bg-scale ~/Pictures/wg6.jpg
  129. bindsym $mod+7 workspace $ws7; exec feh --bg-scale ~/Pictures/wg7.jpg
  130. bindsym $mod+8 workspace $ws8; exec feh --bg-scale ~/Pictures/wg8.png
  131. bindsym $mod+9 workspace $ws9; exec feh --bg-scale ~/Pictures/wg9.jpg
  132. bindsym $mod+0 workspace $ws10; exec feh --bg-scale ~/Pictures/custom/lada.png
  133.  
  134.  
  135. # move focused container to workspace
  136. bindsym $mod+Ctrl+1 move container to workspace $ws1
  137. bindsym $mod+Ctrl+2 move container to workspace $ws2
  138. bindsym $mod+Ctrl+3 move container to workspace $ws3
  139. bindsym $mod+Ctrl+4 move container to workspace $ws4
  140. bindsym $mod+Ctrl+5 move container to workspace $ws5
  141. bindsym $mod+Ctrl+6 move container to workspace $ws6
  142. bindsym $mod+Ctrl+7 move container to workspace $ws7
  143. bindsym $mod+Ctrl+8 move container to workspace $ws8
  144. bindsym $mod+Ctrl+9 move container to workspace $ws9
  145. bindsym $mod+Ctrl+0 move container to workspace $ws10
  146.  
  147. # reload the configuration file
  148. bindsym $mod+Ctrl+c reload
  149. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  150. bindsym $mod+Ctrl+r restart
  151. # exit i3 (logs you out of your X session)
  152. bindsym $mod+Ctrl+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'"
  153.  
  154. # resize window (you can also use the mouse for that)
  155. mode "resize" {
  156. # These bindings trigger as soon as you enter the resize mode
  157.  
  158. # Pressing left will shrink the window’s width.
  159. # Pressing right will grow the window’s width.
  160. # Pressing up will shrink the window’s height.
  161. # Pressing down will grow the window’s height.
  162. bindsym l resize shrink width 10 px or 10 ppt
  163. bindsym k resize grow height 10 px or 10 ppt
  164. bindsym j resize shrink height 10 px or 10 ppt
  165. bindsym h resize grow width 10 px or 10 ppt
  166.  
  167. # same bindings, but for the arrow keys
  168. #bindsym Left resize shrink width 10 px or 10 ppt
  169. #bindsym Down resize grow height 10 px or 10 ppt
  170. #bindsym Up resize shrink height 10 px or 10 ppt
  171. #bindsym Right resize grow width 10 px or 10 ppt
  172.  
  173. # back to normal: Enter or Escape or $mod+r
  174. bindsym Return mode "default"
  175. bindsym Escape mode "default"
  176. bindsym $mod+r mode "default"
  177. }
  178.  
  179. bindsym $mod+r mode "resize"
  180.  
  181. # Start i3bar to display a workspace bar (plus the system information i3status
  182. # finds out, if available)
  183. #bar {
  184. # status_command ~/battery.sh
  185. #}
  186. bar {
  187. font pango:mono 8
  188. status_command i3blocks
  189. position bottom
  190. mode dock
  191. modifier None
  192. }
  193.  
  194. #setxkbmap -layout us,ru
  195. #setxkbmap -option 'grp:alt_shift_toggle'
  196. #
  197.  
  198. #bindsym Ctrl+Shift+1 exec --no-startup-id setxkbmap us
  199. #bindsym Ctrl+Shift+2 exec --no-startup-id setxkbmap ru
  200.  
  201. exec --no-startup-id "setxkbmap -model pc105 -layout us,gr -option grp:alt_shift_toggle"
  202.  
  203. #bindsym Shift+$mod exec --no-startup-id setxkbmap ru,us -option 'grp:alt_shift_toggle'
  204.  
  205.  
  206. # Pulse Audio controls
  207. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
  208. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
  209. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
  210.  
  211. # change volume or toggle mute
  212. #bindsym XF86AudioRaiseVolume exec amixer -q -D pulse sset Master 5%+ && pkill -RTMIN+1 i3blocks
  213. #bindsym XF86AudioLowerVolume exec amixer -q -D pulse sset Master 5%- && pkill -RTMIN+1 i3blocks
  214. #bindsym XF86AudioMute exec amixer -q -D pulse sset Master toggle && pkill -RTMIN+1 i3blocks
  215.  
  216. # Sreen brightness controls
  217. bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
  218. bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness
  219.  
  220. bindsym $mod+w exec --no-startup-id firefox
  221. bindsym $mod+t exec --no-startup-id telegram-desktop #/home/dim/.config/i3/connect_wifi.sh
  222. #
  223. #
  224. bindsym $mod+p exec --no-startup-id "killall compton; compton --config ~/.config/compton.conf"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement