Advertisement
discrust

i3wm config [NEW] 🔥

May 5th, 2020 (edited)
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.85 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:DejaVu Sans Mono 8.5
  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 tilix
  34.  
  35. # kill focused window
  36. bindsym $mod+Shift+q kill
  37.  
  38. # start dmenu (a program launcher)
  39. bindsym $mod+d exec dmenu_run -fn 'DejaVu Sans Mono-8.5'
  40. # There also is the (new) i3-dmenu-desktop which only displays applications
  41. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  42. # installed.
  43. #bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  44.  
  45. # change focus
  46. bindsym $mod+j focus left
  47. bindsym $mod+k focus down
  48. bindsym $mod+l focus up
  49. bindsym $mod+semicolon focus right
  50.  
  51. # alternatively, you can use the cursor keys:
  52. bindsym $mod+Left focus left
  53. bindsym $mod+Down focus down
  54. bindsym $mod+Up focus up
  55. bindsym $mod+Right focus right
  56.  
  57. # move focused window
  58. bindsym $mod+Shift+j move left
  59. bindsym $mod+Shift+k move down
  60. bindsym $mod+Shift+l move up
  61. bindsym $mod+Shift+semicolon move right
  62.  
  63. # alternatively, you can use the cursor keys:
  64. bindsym $mod+Shift+Left move left
  65. bindsym $mod+Shift+Down move down
  66. bindsym $mod+Shift+Up move up
  67. bindsym $mod+Shift+Right move right
  68.  
  69. # split in horizontal orientation
  70. bindsym $mod+h split h
  71.  
  72. # split in vertical orientation
  73. bindsym $mod+v split v
  74.  
  75. # enter fullscreen mode for the focused container
  76. bindsym $mod+f fullscreen toggle
  77.  
  78. # change container layout (stacked, tabbed, toggle split)
  79. bindsym $mod+s layout stacking
  80. bindsym $mod+w layout tabbed
  81. bindsym $mod+e layout toggle split
  82. bindsym $mod+x layout toggle split tabbed stacking
  83.  
  84. # toggle tiling / floating
  85. bindsym $mod+Shift+space floating toggle
  86.  
  87. # change focus between tiling / floating windows
  88. bindsym $mod+space focus mode_toggle
  89.  
  90. # floating apps
  91. for_window [class="Thunar"] floating enable
  92. for_window [class="PNMixer"] floating enable
  93. for_window [class="Nitrogen"] floating enable
  94. for_window [class="Application Finder"] floating enable
  95. for_window [class="Gajim"] floating enable
  96. for_window [class="Aktualizacja Systemu"] floating enable
  97. for_window [class="APTus Upgrade Checker"] floating enable
  98. for_window [class="Mousepad"] floating enable
  99. for_window [class="Gedit"] floating enable
  100. for_window [class="PCManFM"] floating enable
  101. for_window [class="gThumb"] floating enable
  102.  
  103. # focus the parent container
  104. bindsym $mod+a focus parent
  105. bindsym $mod+t split toggle
  106.  
  107. # focus the child container
  108. #bindsym $mod+d focus child
  109.  
  110. # switch to workspace
  111. bindsym $mod+1 workspace net
  112. bindsym $mod+2 workspace irc
  113. bindsym $mod+3 workspace rss
  114. bindsym $mod+4 workspace mail
  115. bindsym $mod+5 workspace png
  116. bindsym $mod+6 workspace gem
  117. bindsym $mod+7 workspace ogg
  118. bindsym $mod+8 workspace term
  119. bindsym $mod+9 workspace term
  120. bindsym $mod+0 workspace sys
  121.  
  122.  
  123. # move focused container to workspace
  124. bindsym $mod+Shift+1 move container to workspace net
  125. bindsym $mod+Shift+2 move container to workspace irc
  126. bindsym $mod+Shift+3 move container to workspace rss
  127. bindsym $mod+Shift+4 move container to workspace mail
  128. bindsym $mod+Shift+5 move container to workspace png
  129. bindsym $mod+Shift+6 move container to workspace gem
  130. bindsym $mod+Shift+7 move container to workspace ogg
  131. bindsym $mod+Shift+8 move container to workspace term
  132. bindsym $mod+Shift+9 move container to workspace term
  133. bindsym $mod+Shift+0 move container to workspace sys
  134.  
  135. # switch between the current and the previously focused one
  136. bindsym $mod+b workspace back_and_forth
  137. bindsym $mod+Shift+b move container to workspace back_and_forth
  138.  
  139. # move the whole workspace to the next output
  140. #bindsym $mod+x move workspace to output right
  141.  
  142. # reload the configuration file
  143. bindsym $mod+Shift+c reload
  144. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  145. bindsym $mod+Shift+r restart
  146. # exit i3 (logs you out of your X session)
  147. bindsym $mod+Shift+e exec "i3-nagbar -t warning -m '[WYJŚCIE] ?' -b '[OPUŚĆ i3wm]' 'i3-msg exit'"
  148.  
  149. # resize window (you can also use the mouse for that)
  150. mode "resize" {
  151. # These bindings trigger as soon as you enter the resize mode
  152.  
  153. # Pressing left will shrink the window’s width.
  154. # Pressing right will grow the window’s width.
  155. # Pressing up will shrink the window’s height.
  156. # Pressing down will grow the window’s height.
  157. bindsym j resize shrink width 10 px or 10 ppt
  158. bindsym k resize grow height 10 px or 10 ppt
  159. bindsym l resize shrink height 10 px or 10 ppt
  160. bindsym semicolon resize grow width 10 px or 10 ppt
  161.  
  162. # same bindings, but for the arrow keys
  163. bindsym Left resize shrink width 10 px or 10 ppt
  164. bindsym Down resize grow height 10 px or 10 ppt
  165. bindsym Up resize shrink height 10 px or 10 ppt
  166. bindsym Right resize grow width 10 px or 10 ppt
  167.  
  168. # back to normal: Enter or Escape
  169. bindsym Return mode "default"
  170. bindsym Escape mode "default"
  171. }
  172.  
  173. bindsym $mod+r mode "resize"
  174. bindsym $mod+y exec xfce4-screenshooter
  175. bindsym $mod+g exec xfce4-appfinder
  176. bindsym $mod+m exec flatpak run fi.skyjake.Lagrange
  177.  
  178. #client.focused #3a89ff #3a89ff #ffffff #3a89ff #3a89ff
  179.  
  180. # color defines for zenburn styled i3
  181. set $bg #373737
  182. set $fg #EBDBB2
  183. set $hi #efef8f
  184. set $ac #215d9c
  185. set $tx #ffffff
  186. set $ia #dbdbdb
  187. set $be #8faf9f
  188. set $yw #9d9ced
  189. set $gn #88b090
  190. set $rd #FB4934
  191.  
  192. # set some nice colors border background text
  193. client.focused $ac $ac $tx $ac
  194. client.unfocused $bg $bg $ia
  195. client.focused_inactive $bg $bg $ac
  196. client.urgent $rd $rd $tx
  197.  
  198.  
  199.  
  200. #Start i3bar to display a workspace bar (plus the system information i3status
  201. # finds out, if available)
  202.  
  203. #bar {
  204. # status_command i3status --config ~/.config/i3/i3status.conf
  205. # separator_symbol "|"
  206. # strip_workspace_numbers yes
  207. # binding_mode_indicator yes
  208. # workspace_buttons yes
  209. # tray_padding 2
  210. # mode dock
  211. # position bottom
  212. # colors {
  213. # background #111111
  214. # statusline #ffffff
  215. # separator #ffffff
  216. # focused_workspace #215d9c #215d9c #ffffff
  217. # active_workspace #555555 #555555 #555555
  218. # inactive_workspace #111111 #111111 #ffffff
  219. # urgent_workspace #111111 #111111 #76a5d7
  220. # }
  221. #}
  222.  
  223.  
  224.  
  225. ### logout / hibernate / poweroff ###
  226.  
  227. #set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) #shutdown
  228. #mode "$mode_system" {
  229. # bindsym l exec --no-startup-id $Locker, mode "default"
  230. # bindsym e exec --no-startup-id i3-msg exit, mode "default"
  231. # bindsym s exec --no-startup-id $Locker && systemctl suspend, mode "default"
  232. # bindsym h exec --no-startup-id $Locker && systemctl hibernate, mode "default"
  233. # bindsym r exec --no-startup-id systemctl reboot, mode "default"
  234. # bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"
  235. #
  236. # # back to normal: Enter or Escape
  237. # bindsym Return mode "default"
  238. # bindsym Escape mode "default"
  239. #}
  240.  
  241. #set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
  242. #bindsym $mod+Insert mode "$mode_system"
  243.  
  244. ### różne ###
  245. hide_edge_borders smart
  246. default_border pixel 1
  247. #for_window [class="XTerm"] floating enable
  248.  
  249.  
  250. #######################################################################
  251. # automatically start i3-config-wizard to offer the user to create a
  252. # keysym-based config which used their favorite modifier (alt or windows)
  253. #
  254. # i3-config-wizard will not launch if there already is a config file
  255. # in ~/.i3/config.
  256. #
  257. # Please remove the following exec line:
  258. #######################################################################
  259. exec --no-startup-id i3-config-wizard
  260. exec --no-startup-id polybar &
  261. exec --no-startup-id /usr/bin/flameshot &
  262. exec --no-startup-id nm-applet &
  263. exec --no-startup-id gnome-settings-daemon &
  264. #exec --no-startup-id gxkb &
  265. exec --no-startup-id sleep 5 && xfce4-clipman &
  266. exec --no-startup-id blueman-manager &
  267. exec --no-startup-id compton &
  268. exec --no-startup-id setxkbmap -option grp:alt_shift_toggle,grp_led:scroll pl,epo,'ru(phonetic)' &
  269. exec --no-startup-id nitrogen --restore
  270. exec --no-startup-id sleep 10 && pnmixer &
  271. exec --no-startup-id /usr/bin/sparky-aptus-upgrade-checker &
  272.  
  273.  
  274. #exec xcompmgr -c -F -t-2 -l-4 -r4 -o.80 &
  275. #exec --no-startup-id fbxkb &
  276. #exec --no-startup-id mpd &
  277. #-cCGfF -o 0.38 -O 200 -I 200 -t 0 -l 0 -r 3 -D2 -m 0.88 &
  278. #exec --no-startup-id wal -R
  279. #exec --no-startup-id /usr/lib/x86_64-linux-gnu/polkit-mate/polkit-mate-authentication-agent-1
  280.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement