Guest User

Untitled

a guest
Jul 8th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.37 KB | None | 0 0
  1. #!/usr/bin/env python
  2. #!/bin/sh
  3.  
  4.  
  5. set $mod mod4
  6.  
  7. # app to start on launch i3
  8. exec_always compton -f
  9.  
  10. exec_always --no-startup-id $HOME/.config/polybar/launch.sh
  11.  
  12. bindsym $mod+i exec --no-startup-id $HOME/camera.py
  13.  
  14. bindsym $mod+o exec --no-startup-id $HOME/pyobd-pi/obd_gui.py
  15.  
  16. bindsym $mod+u exec --no-startup-id $HOME/hw.sh
  17.  
  18.  
  19. # Font for window titles. Will also be used by the bar unless a different font
  20. # is used in the bar {} block below.
  21. font pango:monospace 8
  22.  
  23. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  24. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  25. #font pango:DejaVu Sans Mono 8
  26.  
  27. # Before i3 v4.8, we used to recommend this one as the default:
  28. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  29. # The font above is very space-efficient, that is, it looks good, sharp and
  30. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  31. # X core fonts rendering does not support right-to-left and this being a bitmap
  32. # font, it doesn▒^`^yt scale on retina/hidpi displays.
  33.  
  34. # Use Mouse+$mod to drag floating windows to their wanted position
  35. floating_modifier $mod
  36.  
  37. # start a terminal
  38. bindsym $mod+Return exec rxvt-unicode
  39.  
  40. # kill focused window
  41. bindsym $mod+Shift+q kill
  42.  
  43. # start dmenu (a program launcher)
  44. bindsym $mod+d exec dmenu_run
  45. # There also is the (new) i3-dmenu-desktop which only displays applications
  46. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  47. # installed.
  48. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  49.  
  50. # change focus
  51. bindsym $mod+j focus left
  52. bindsym $mod+k focus down
  53. bindsym $mod+l focus up
  54. bindsym $mod+semicolon focus right
  55.  
  56. # alternatively, you can use the cursor keys:
  57. bindsym $mod+Left focus left
  58. bindsym $mod+Down focus down
  59. bindsym $mod+Up focus up
  60. bindsym $mod+Right focus right
  61.  
  62. # move focused window
  63. bindsym $mod+Shift+j move left
  64. bindsym $mod+Shift+k move down
  65. bindsym $mod+Shift+l move up
  66. bindsym $mod+Shift+semicolon move right
  67.  
  68. # alternatively, you can use the cursor keys:
  69. bindsym $mod+Shift+Left move left
  70. bindsym $mod+Shift+Down move down
  71. bindsym $mod+Shift+Up move up
  72. bindsym $mod+Shift+Right move right
  73.  
  74. # split in horizontal orientation
  75. bindsym $mod+h split h
  76.  
  77. # split in vertical orientation
  78. bindsym $mod+v split v
  79.  
  80. # enter fullscreen mode for the focused container
  81.  
  82. # start dmenu (a program launcher)
  83. bindsym $mod+d exec dmenu_run
  84. # There also is the (new) i3-dmenu-desktop which only displays applications
  85. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  86. # installed.
  87. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  88.  
  89. # change focus
  90. bindsym $mod+j focus left
  91. bindsym $mod+k focus down
  92. bindsym $mod+l focus up
  93. bindsym $mod+semicolon focus right
  94.  
  95. # alternatively, you can use the cursor keys:
  96. bindsym $mod+Left focus left
  97. bindsym $mod+Down focus down
  98. bindsym $mod+Up focus up
  99. bindsym $mod+Right focus right
  100.  
  101. # move focused window
  102. bindsym $mod+Shift+j move left
  103. bindsym $mod+Shift+k move down
  104. bindsym $mod+Shift+l move up
  105. bindsym $mod+Shift+semicolon move right
  106.  
  107. # alternatively, you can use the cursor keys:
  108. bindsym $mod+Shift+Left move left
  109. bindsym $mod+Shift+Down move down
  110. bindsym $mod+Shift+Up move up
  111. bindsym $mod+Shift+Right move right
  112.  
  113. # split in horizontal orientation
  114. bindsym $mod+h split h
  115.  
  116. # split in vertical orientation
  117. bindsym $mod+v split v
  118.  
  119. # enter fullscreen mode for the focused container
  120. bindsym $mod+f fullscreen toggle
  121.  
  122. # change container layout (stacked, tabbed, toggle split)
  123. bindsym $mod+s layout stacking
  124. bindsym $mod+w layout tabbed
  125. bindsym $mod+e layout toggle split
  126.  
  127. # toggle tiling / floating
  128. bindsym $mod+Shift+space floating toggle
  129.  
  130. # change focus between tiling / floating windows
  131. bindsym $mod+space focus mode_toggle
  132.  
  133. # focus the parent container
  134. bindsym $mod+a focus parent
  135.  
  136. # focus the child container
  137. #bindsym $mod+d focus child
  138.  
  139. set $menu1 1:Engine-Reading
  140. set $menu2 2:Parking-Camera
  141.  
  142. # switch to workspace
  143. bindsym $mod+1 workspace $menu1
  144. bindsym $mod+2 workspace $menu2
  145. bindsym $mod+3 workspace 3
  146. bindsym $mod+4 workspace 4
  147. bindsym $mod+5 workspace 5
  148. bindsym $mod+6 workspace 6
  149. bindsym $mod+7 workspace 7
  150. bindsym $mod+8 workspace 8
  151. bindsym $mod+9 workspace 9
  152. bindsym $mod+0 workspace 10
  153.  
  154. # move focused container to workspace
  155. bindsym $mod+Shift+1 move container to workspace $menu1
  156. bindsym $mod+Shift+2 move container to workspace $menu2
  157. bindsym $mod+Shift+3 move container to workspace 3
  158. bindsym $mod+Shift+4 move container to workspace 4
  159. bindsym $mod+Shift+5 move container to workspace 5
  160. bindsym $mod+Shift+6 move container to workspace 6
  161.  
  162. # change container layout (stacked, tabbed, toggle split)
  163. bindsym $mod+s layout stacking
  164. bindsym $mod+w layout tabbed
  165. bindsym $mod+e layout toggle split
  166.  
  167. # toggle tiling / floating
  168. bindsym $mod+Shift+space floating toggle
  169.  
  170. # change focus between tiling / floating windows
  171. bindsym $mod+space focus mode_toggle
  172.  
  173. # focus the parent container
  174. bindsym $mod+a focus parent
  175.  
  176. # focus the child container
  177. #bindsym $mod+d focus child
  178.  
  179. set $menu1 1:Engine-Reading
  180. set $menu2 2:Parking-Camera
  181.  
  182. # switch to workspace
  183. bindsym $mod+1 workspace $menu1
  184. bindsym $mod+2 workspace $menu2
  185. bindsym $mod+3 workspace 3
  186. bindsym $mod+4 workspace 4
  187. bindsym $mod+5 workspace 5
  188. bindsym $mod+6 workspace 6
  189. bindsym $mod+7 workspace 7
  190. bindsym $mod+8 workspace 8
  191. bindsym $mod+9 workspace 9
  192. bindsym $mod+0 workspace 10
  193.  
  194. # move focused container to workspace
  195. bindsym $mod+Shift+1 move container to workspace $menu1
  196. bindsym $mod+Shift+2 move container to workspace $menu2
  197. bindsym $mod+Shift+3 move container to workspace 3
  198. bindsym $mod+Shift+4 move container to workspace 4
  199. bindsym $mod+Shift+5 move container to workspace 5
  200. bindsym $mod+Shift+6 move container to workspace 6
  201. bindsym $mod+Shift+7 move container to workspace 7
  202. bindsym $mod+Shift+8 move container to workspace 8
  203. bindsym $mod+Shift+9 move container to workspace 9
  204. bindsym $mod+Shift+0 move container to workspace 10
  205.  
  206. # reload the configuration file
  207. bindsym $mod+Shift+c reload
  208. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  209. bindsym $mod+Shift+r restart
  210. # exit i3 (logs you out of your X session)
  211. bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i$
  212.  
  213. # resize window (you can also use the mouse for that)
  214. mode "resize" {
  215. # These bindings trigger as soon as you enter the resize mode
  216.  
  217. # Pressing left will shrink the window▒^`^ys width.
  218. # Pressing right will grow the window▒^`^ys width.
  219. # Pressing up will shrink the window▒^`^ys height.
  220. # Pressing down will grow the window▒^`^ys height.
  221. bindsym j resize shrink width 10 px or 10 ppt
  222. bindsym k resize grow height 10 px or 10 ppt
  223. bindsym l resize shrink height 10 px or 10 ppt
  224. bindsym semicolon resize grow width 10 px or 10 ppt
  225.  
  226. # same bindings, but for the arrow keys
  227. bindsym Left resize shrink width 10 px or 10 ppt
  228. bindsym Down resize grow height 10 px or 10 ppt
  229. bindsym Up resize shrink height 10 px or 10 ppt
  230. bindsym Right resize grow width 10 px or 10 ppt
  231.  
  232. # back to normal: Enter or Escape
  233. bindsym Return mode "default"
  234. bindsym Escape mode "default"
  235. }
  236.  
  237. bindsym $mod+r mode "resize"
Add Comment
Please, Sign In to add comment