Advertisement
DimaT1

i3basic

May 16th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.67 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 0
  14. gaps outer 0
  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 st
  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 st
  66. bindsym $mod+slash split vertical ;; exec st
  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.  
  112. set $ws1 "1 (web)"
  113. set $ws2 "2 (dev)"
  114. set $ws3 "3 (web)"
  115. set $ws4 "4 (dev)"
  116. set $ws5 "5"
  117. set $ws6 "6"
  118. set $ws7 "7"
  119. set $ws8 "8"
  120. set $ws9 "9"
  121. set $ws10 "10 (run)"
  122.  
  123. # switch to workspace
  124. bindsym $mod+1 workspace $ws1;
  125. bindsym $mod+2 workspace $ws2;
  126. bindsym $mod+3 workspace $ws3;
  127. bindsym $mod+4 workspace $ws4;
  128. bindsym $mod+5 workspace $ws5;
  129. bindsym $mod+6 workspace $ws6;
  130. bindsym $mod+7 workspace $ws7;
  131. bindsym $mod+8 workspace $ws8;
  132. bindsym $mod+9 workspace $ws9;
  133. bindsym $mod+0 workspace $ws10;
  134.  
  135.  
  136. # move focused container to workspace
  137. bindsym $mod+Ctrl+1 move container to workspace $ws1
  138. bindsym $mod+Ctrl+2 move container to workspace $ws2
  139. bindsym $mod+Ctrl+3 move container to workspace $ws3
  140. bindsym $mod+Ctrl+4 move container to workspace $ws4
  141. bindsym $mod+Ctrl+5 move container to workspace $ws5
  142. bindsym $mod+Ctrl+6 move container to workspace $ws6
  143. bindsym $mod+Ctrl+7 move container to workspace $ws7
  144. bindsym $mod+Ctrl+8 move container to workspace $ws8
  145. bindsym $mod+Ctrl+9 move container to workspace $ws9
  146. bindsym $mod+Ctrl+0 move container to workspace $ws10
  147.  
  148. # reload the configuration file
  149. bindsym $mod+Ctrl+c reload
  150. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  151. bindsym $mod+Ctrl+r restart
  152. # exit i3 (logs you out of your X session)
  153. 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'"
  154.  
  155. # resize window (you can also use the mouse for that)
  156. mode "resize" {
  157. # These bindings trigger as soon as you enter the resize mode
  158.  
  159. # Pressing left will shrink the window’s width.
  160. # Pressing right will grow the window’s width.
  161. # Pressing up will shrink the window’s height.
  162. # Pressing down will grow the window’s height.
  163. bindsym l resize shrink width 10 px or 10 ppt
  164. bindsym k resize grow height 10 px or 10 ppt
  165. bindsym j resize shrink height 10 px or 10 ppt
  166. bindsym h resize grow width 10 px or 10 ppt
  167.  
  168. # same bindings, but for the arrow keys
  169. #bindsym Left resize shrink width 10 px or 10 ppt
  170. #bindsym Down resize grow height 10 px or 10 ppt
  171. #bindsym Up resize shrink height 10 px or 10 ppt
  172. #bindsym Right resize grow width 10 px or 10 ppt
  173.  
  174. # back to normal: Enter or Escape or $mod+r
  175. bindsym Return mode "default"
  176. bindsym Escape mode "default"
  177. bindsym $mod+r mode "default"
  178. }
  179.  
  180. bindsym $mod+r mode "resize"
  181.  
  182. # Start i3bar to display a workspace bar (plus the system information i3status
  183. # finds out, if available)
  184. #bar {
  185. # status_command ~/battery.sh
  186. #}
  187. bar {
  188. font pango:mono 8
  189. status_command i3blocks
  190. position bottom
  191. mode dock
  192. modifier None
  193. }
  194.  
  195. #setxkbmap -layout us,ru
  196. #setxkbmap -option 'grp:alt_shift_toggle'
  197. #
  198.  
  199. #bindsym Ctrl+Shift+1 exec --no-startup-id setxkbmap us
  200. #bindsym Ctrl+Shift+2 exec --no-startup-id setxkbmap ru
  201.  
  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 F12 exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
  209.  
  210. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
  211. bindsym F11 exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
  212.  
  213. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
  214.  
  215. # change volume or toggle mute
  216. #bindsym XF86AudioRaiseVolume exec amixer -q -D pulse sset Master 5%+ && pkill -RTMIN+1 i3blocks
  217. #bindsym XF86AudioLowerVolume exec amixer -q -D pulse sset Master 5%- && pkill -RTMIN+1 i3blocks
  218. #bindsym XF86AudioMute exec amixer -q -D pulse sset Master toggle && pkill -RTMIN+1 i3blocks
  219.  
  220. # Sreen brightness controls
  221. bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
  222. bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness
  223.  
  224. bindsym $mod+w exec --no-startup-id firefox
  225. bindsym $mod+t exec --no-startup-id telegram-desktop #/home/dim/.config/i3/connect_wifi.sh
  226. bindsym $mod+e exec --no-startup-id st -e ranger
  227. bindsym $mod+y exec --no-startup-id ~/scripts/rc_list.sh 2>/dev/null
  228. bindsym $mod+c exec --no-startup-id st -e calcurse
  229. bindsym $mod+n exec --no-startup-id ~/scripts/alarm.sh
  230. bindsym $mod+m exec --no-startup-id tabbed -r 2 st -w '' -e tmux
  231. #
  232. #
  233. #bindsym $mod+p exec --no-startup-id "killall compton; compton --config ~/.config/compton/compton.conf"
  234. bindsym $mod+p exec --no-startup-id ~/scripts/starter.sh
  235. bindsym Print exec --no-startup-id "maim ~/screenshot.png"
  236. bindsym Shift+Print exec --no-startup-id "maim -s ~/screenshot.png"
  237.  
  238. # Float term
  239. # General dropdown window traits. The order can matter.
  240. for_window [title="dropdown"] floating enable
  241. for_window [title="dropdown"] move scratchpad
  242. for_window [title="dropdown"] sticky enable
  243. for_window [title="dropdown"] scratchpad show
  244. for_window [title="dropdown"] resize set 800 300
  245. for_window [title="dropdown"] border pixel 4
  246. for_window [title="dropdown"] move position center
  247.  
  248. bindsym $mod+u exec --no-startup-id urxvt -name dropdown
  249.  
  250.  
  251. # exec --no-startup-id "setxkbmap -model pc105 -layout us,gr -option grp:alt_shift_toggle"
  252. exec --no-startup-id setxkbmap -model pc105 -layout us,ru -option grp:alt_shift_toggle
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement