My i3 configurations and scripts.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config 9.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. # @see: $ xmodmap
  2. set $window Mod4
  3. set $altleft Mod1
  4. set $shift Shift
  5. set $space space
  6. set $enter Return
  7. set $escape Escape
  8. set $ctrl control
  9. set $backspace BackSpace
  10. set $left Left
  11. set $up Up
  12. set $right Right
  13. set $down Down
  14. set $wp1 "1. IRC"
  15. set $wp2 "2. WWW"
  16. set $wp3 "3. MAIL"
  17. set $wp4 "4"
  18. set $wp5 "5"
  19. set $wp6 "6. MEDIA"
  20. set $wp7 "7. WORK"
  21. set $wp8 "8"
  22. set $wp9 "9"
  23. set $wp10 "10"
  24. set $wp11 "11"
  25. set $wp12 "12"
  26. # class border backgr. text indicator
  27. client.focused #9B2A5D #000000 #ffffff #2e9ef4
  28. client.focused_inactive #333333 #5f676a #ffffff #484e50
  29. client.unfocused #333333 #222222 #888888 #292d2e
  30. client.urgent #2f343a #87af15 #ffffff #900000
  31. workspace_auto_back_and_forth yes
  32. # @see fc-list, fc-cache -f -v
  33. font pango:Bitstream Vera Sans Mono, 9
  34. #font pango:System San Francisco Display 8
  35. #
  36. # Use Mouse+$window to drag floating windows to their wanted position
  37. floating_modifier $window
  38. # start a terminal
  39. # bindsym $window+$enter exec i3-sensible-terminal
  40. bindsym $window+$enter exec ~/bin/urxvt
  41. # kill focused window
  42. bindsym $window+$shift+A kill
  43. # start dmenu (a program launcher)
  44. bindsym $window+d exec dmenu_run -nb '#333333' -nf '#ffffff' -sb '#982323' -p "$" -fn 'Bitstream Vera Sans Mono-9'
  45. bindsym $window+$shift+d exec xfce4-appfinder
  46. # change focus
  47. bindsym $window+j focus left
  48. bindsym $window+k focus down
  49. #bindsym $window+l focus u
  50. bindsym $window+m focus right
  51. # alternatively, you can use the cursor keys:
  52. bindsym $window+$left focus left
  53. bindsym $window+$down focus down
  54. bindsym $window+$up focus up
  55. bindsym $window+$right focus right
  56. # move focused window
  57. bindsym $window+$shift+J move left
  58. bindsym $window+$shift+K move down
  59. bindsym $window+$shift+L move up
  60. bindsym $window+$shift+M move right
  61. # alternatively, you can use the cursor keys:
  62. bindsym $window+$shift+$left move left
  63. bindsym $window+$shift+$down move down
  64. bindsym $window+$shift+$up move up
  65. bindsym $window+$shift+$right move right
  66. bindsym $window+h split h
  67. bindsym $window+v split v
  68. bindsym $window+$shift+q kill
  69. bindsym $window+f fullscreen
  70. # change container layout (stacked, tabbed, default)
  71. bindsym $window+s layout stacking
  72. bindsym $window+z layout tabbed
  73. bindsym $window+e layout default
  74. # toggle tiling / floating
  75. bindsym $window+$shift+$space floating toggle
  76. bindsym $window+$space focus mode_toggle
  77. # focus the parent container
  78. bindsym $window+q focus parent
  79. bindsym $window+b workspace back_and_forth
  80. # Go to a workspace
  81. bindsym $window+F1 workspace $wp1
  82. bindsym $window+F2 workspace $wp2
  83. bindsym $window+F3 workspace $wp3
  84. bindsym $window+F4 workspace $wp4
  85. bindsym $window+F5 workspace $wp5
  86. bindsym $window+F6 workspace $wp6
  87. bindsym $window+F7 workspace $wp7
  88. bindsym $window+F8 workspace $wp8
  89. bindsym $window+F9 workspace $wp9
  90. bindsym $window+F10 workspace $wp10
  91. bindsym $window+F11 workspace $wp11
  92. bindsym $window+F12 workspace $wp12
  93. bindsym $window+$shift+F1 move container to workspace $wp1
  94. bindsym $window+$shift+F2 move container to workspace $wp2
  95. bindsym $window+$shift+F3 move container to workspace $wp3
  96. bindsym $window+$shift+F4 move container to workspace $wp4
  97. bindsym $window+$shift+F5 move container to workspace $wp5
  98. bindsym $window+$shift+F6 move container to workspace $wp6
  99. bindsym $window+$shift+F7 move container to workspace $wp7
  100. bindsym $window+$shift+F8 move container to workspace $wp8
  101. bindsym $window+$shift+F9 move container to workspace $wp9
  102. bindsym $window+$shift+F10 move container to workspace $wp10
  103. bindsym $window+$shift+F11 move container to workspace $wp11
  104. bindsym $window+$shift+F12 move container to workspace $wp12
  105. bindsym $window+$shift+C reload
  106. bindsym $window+$shift+R restart
  107. bindsym $window+$shift+E exit
  108. bindsym $window+r mode "resize"
  109. mode "resize" {
  110. bindsym h resize shrink width 5 px or 5 ppt
  111. bindsym j resize grow height 5 px or 5 ppt
  112. bindsym u resize shrink height 5 px or 5 ppt
  113. bindsym k resize grow width 5 px or 5 ppt
  114. # same bindings, but for the arrow keys
  115. bindsym $right resize shrink width 5 px or 5 ppt
  116. bindsym $up resize grow height 5 px or 5 ppt
  117. bindsym $down resize shrink height 5 px or 5 ppt
  118. bindsym $left resize grow width 5 px or 5 ppt
  119. bindsym $enter mode "default"
  120. bindsym $escape mode "default"
  121. }
  122. bindsym Print exec ~/bin/screenshot
  123. bindsym $altleft+F10 exec ~/bin/screenshot_zone
  124. bindsym $window+Print exec ~/bin/upload_wall
  125. bindsym $window+$altleft+l exec ~/bin/lock
  126. bindsym $window+$shift+t exec monitordisplay -t
  127. bindsym $window+$backspace move scratchpad
  128. bindsym $window+$shift+$backspace scratchpad show
  129. bindsym XF86MonBrightness$up exec xbacklight + 7
  130. bindsym XF86MonBrightness$down exec xbacklight - 7
  131. bindsym $shift+$window+h exec xbacklight + 7
  132. bindsym $shift+$window+n exec xbacklight - 7
  133. bindsym $window+$altleft+$shift+n exec mpc next
  134. bindsym $window+$altleft+$shift+h exec mpc prev
  135. bindsym $window+$altleft+$shift+p exec mpc toggle
  136. bindsym $window+$altleft+n exec playerctl -p spotify next
  137. bindsym $window+$altleft+h exec playerctl -p spotify previous
  138. bindsym $window+$altleft+p exec playerctl -p spotify play-pause
  139. bindsym XF86HomePage exec ~/bin/uzbl
  140. bindsym XF86AudioRaiseVolume exec amixer set Master 2%+
  141. bindsym XF86AudioLowerVolume exec amixer set Master 2%-
  142. bindsym $altleft+g exec amixer set Master 2%+
  143. bindsym $altleft+b exec amixer set Master 2%-
  144. bindsym $window+p exec ~/bin/i3_switch_workspace.php previous
  145. bindsym $window+n exec ~/bin/i3_switch_workspace.php next
  146. bindsym $altleft+F1 exec ~/bin/i3_switch_focus_container.php 1
  147. bindsym $altleft+F2 exec ~/bin/i3_switch_focus_container.php 2
  148. bindsym $altleft+F3 exec ~/bin/i3_switch_focus_container.php 3
  149. bindsym $altleft+F4 exec ~/bin/i3_switch_focus_container.php 4
  150. bindsym $altleft+F5 exec ~/bin/i3_switch_focus_container.php 5
  151. bindsym $altleft+F6 exec ~/bin/i3_switch_focus_container.php 6
  152. bindsym $window+x move workspace to output left
  153. bindsym $window+c exec ~/bin/i3_switch_monitor_wrapper.sh
  154. bindsym $altleft+$shift+h exec ~/bin/i3_move_mouse.sh left
  155. bindsym $altleft+$shift+k exec ~/bin/i3_move_mouse.sh right
  156. bindsym $altleft+$shift+u exec ~/bin/i3_move_mouse.sh up
  157. bindsym $altleft+$shift+j exec ~/bin/i3_move_mouse.sh down
  158. bindsym $window+$shift+y exec ~/bin/i3_mouse_click.sh
  159. bindsym $ctrl+$shift+f exec ~/bin/search
  160. bindsym $ctrl+$altleft+$shift+e exec sudo shutdown -h now
  161. bindsym $ctrl+$altleft+$shift+r exec sudo shutdown -r now
  162. bindsym $ctrl+$window+e exec pcmanfm
  163. bindsym XF86Calculator exec qalculate
  164. bindsym $window+l exec mlclipboard
  165. bindsym $window+$shift+S exec i3-msg "sticky toggle"
  166. for_window [title="Deluge"] floating enable
  167. for_window [title="VirtualBox"] floating enable
  168. for_window [title="Thème du panel tint2"] floating enable
  169. for_window [title="Gestionnaire de tâches"] floating enable
  170. for_window [title="Liste des applications"] floating enable
  171. for_window [title="crire un SMS"] floating enable
  172. for_window [title="OBS"] floating enable
  173. for_window [title="SimpleScreenRecorder"] floating enable
  174. for_window [title="QuickSynergy"] floating enable
  175. for_window [title="recordMyDesktop"] floating enable
  176. for_window [title="Redmine - Desktop client"] floating enable
  177. for_window [title="Sozi"] floating enable
  178. for_window [title="Volti"] floating enable
  179. for_window [title="Choqok"] floating enable
  180. for_window [title="xmessage_upload"] floating enable
  181. for_window [title="ouvrir une session"] floating enable
  182. for_window [title="Wicd"] floating enable
  183. for_window [title="Qalculate!"] floating enable
  184. for_window [title="Gnuplot"] floating enable
  185. for_window [title="Network Connect"] floating enable
  186. for_window [title="Android Emulator"] floating enable
  187. for_window [title="Guake"] floating enable
  188. for_window [title=".*"] border 1pixel
  189. bar {
  190. status_command i3blocks -c ~/.i3/bar/bar1.conf
  191. position top
  192. tray_output primary
  193. output DP1
  194. output HDMI1
  195. output eDP1
  196. colors {
  197. background #000000
  198. statusline #ffffff
  199. #border bg text
  200. focused_workspace #a74068 #bd4875 #ffffff
  201. active_workspace #333333 #5f676a #ffffff
  202. inactive_workspace #111111 #111111 #888888
  203. urgent_workspace #5aaad8 #6ac6ff #ffffff
  204. }
  205. }
  206. bar {
  207. status_command ~/.i3/processList.sh
  208. workspace_buttons no
  209. position bottom
  210. tray_output none
  211. output eDP1
  212. output HDMI1
  213. output DP1
  214. mode hide
  215. modifier $altleft
  216. colors {
  217. background #000000
  218. statusline #ffffff
  219. #border bg text
  220. focused_workspace #a74068 #bd4875 #ffffff
  221. active_workspace #333333 #5f676a #ffffff
  222. inactive_workspace #111111 #111111 #888888
  223. urgent_workspace #5aaad8 #6ac6ff #ffffff
  224. }
  225. }
  226. exec tint2
  227. exec rofi -key-run 'SuperL+Alt+d' -Key-ssh 'SuperL+Alt+s' -key-window 'SuperL+Alt+w'
  228. exec feh --bg-fill ~/wallpaper.jpg
  229. exec setxkbmap fr oss
  230. exec mpd
  231. exec nextcloud
  232. exec gpg-agent --daemon
  233. exec wicd-gtk -t
  234. exec alsactl init -c 1
  235. exec volumeicon
  236. exec ~/bin/sshplus.py
  237. exec systemctl --user start xfce4-notifyd
  238. exec sleep 3 && monitordisplay -s -m laptop
  239. exec sleep 3 && monitordisplay -s -m hdmi
  240. exec ~/bin/reload_wallpaper
  241. exec redshift-gtk -l 47.51659:6.7809
  242. exec blueman-applet
  243. exec /home/simon/bin/remote_i3_server
  244. exec flatpak run com.github.bajoja.indicator-kdeconnect/x86_64/stable
  245. exec xbacklight + 100