yithar7153

i3config

Oct 3rd, 2020
565
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 8.28 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 http://i3wm.org/docs/userguide.html for a complete reference!
  11.  
  12. set $mod Mod1
  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:Myriad Condensed Web 12
  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. #bindsym Control+1 exec "sleep 1;xte 'keyup Control_L' 'key Home' 'keydown Control_L'"
  33. #bindsym Control+1 exec "sleep 1s;xte 'key Home' 2>/tmp/log"
  34. bindsym $mod+Control+f exec exec qutebrowser
  35.  
  36. # start a terminal
  37. bindsym $mod+Return exec urxvtc
  38. #bindsym $mod+Return exec exec xterm -fg green -bg black -fa Monospace -fs 12
  39. #bindsym $mod+Return exec i3-sensible-terminal -fg green -bg black -fa Monospace -fs 12
  40. bindsym $mod+Control+t exec lxterminal
  41. #bindsym Control+mod+Y exec qutebrowser
  42. bindsym $mod+Control+c exec chromium  --disk-cache-dir=/tmp/ccache
  43. bindsym $mod+Control+s exec /opt/ghetto-skype/skype
  44. bindsym $mod+Control+h exec hexchat
  45.  
  46. bindsym $mod+m exec amixer sset Master toggle
  47.  
  48. # kill focused window
  49. bindsym $mod+Shift+q kill
  50. #bindsym F8 exec xdotool click 1
  51.  
  52. # start dmenu (a program launcher)
  53. #bindsym $mod+d exec dmenu_run
  54. bindsym $mod+d exec /opt/lauf/lauf
  55. # There also is the (new) i3-dmenu-desktop which only displays applications
  56. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  57. # installed.
  58. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  59.  
  60. # change focus
  61. bindsym $mod+Control+l focus left
  62. bindsym $mod+Control+j focus down
  63. bindsym $mod+Control+k focus up
  64. bindsym $mod+Control+semicolon focus right
  65.  
  66. # alternatively, you can use the cursor keys:
  67. #bindsym $mod+Left focus left
  68. #bindsym $mod+Down focus down
  69. #bindsym $mod+Up focus up
  70. #bindsym $mod+Right focus right
  71.  
  72. # move focused window
  73. bindsym $mod+Shift+l move left
  74. bindsym $mod+Shift+j move down
  75. bindsym $mod+Shift+k move up
  76. bindsym $mod+Shift+semicolon move right
  77.  
  78. # alternatively, you can use the cursor keys:
  79. bindsym $mod+Shift+Left move left
  80. bindsym $mod+Shift+Down move down
  81. bindsym $mod+Shift+Up move up
  82. bindsym $mod+Shift+Right move right
  83.  
  84. # split in horizontal orientation
  85. bindsym $mod+u split h
  86.  
  87. # split in vertical orientation
  88. bindsym $mod+v split v
  89.  
  90. # enter fullscreen mode for the focused container
  91. bindsym $mod+f fullscreen toggle
  92.  
  93. # change container layout (stacked, tabbed, toggle split)
  94. bindsym $mod+s layout stacking
  95. bindsym $mod+w layout tabbed
  96. bindsym $mod+e layout toggle split
  97.  
  98. # toggle tiling / floating
  99. bindsym $mod+Shift+space floating toggle
  100.  
  101. # change focus between tiling / floating windows
  102. bindsym $mod+space focus mode_toggle
  103.  
  104. # focus the parent container
  105. bindsym $mod+a focus parent
  106.  
  107. # focus the child container
  108. #bindsym $mod+d focus child
  109.  
  110. # switch to workspace
  111. bindsym $mod+1 workspace 1
  112. bindsym $mod+2 workspace 2
  113. bindsym $mod+3 workspace 3
  114. bindsym $mod+4 workspace 4
  115. bindsym $mod+5 workspace 5
  116. bindsym $mod+6 workspace 6
  117. bindsym $mod+7 workspace 7
  118. bindsym $mod+8 workspace 8
  119. bindsym $mod+9 workspace 9
  120. bindsym $mod+0 workspace 10
  121.  
  122. # move focused container to workspace
  123. bindsym $mod+Shift+1 move container to workspace 1
  124. bindsym $mod+Shift+2 move container to workspace 2
  125. bindsym $mod+Shift+3 move container to workspace 3
  126. bindsym $mod+Shift+4 move container to workspace 4
  127. bindsym $mod+Shift+5 move container to workspace 5
  128. bindsym $mod+Shift+6 move container to workspace 6
  129. bindsym $mod+Shift+7 move container to workspace 7
  130. bindsym $mod+Shift+8 move container to workspace 8
  131. bindsym $mod+Shift+9 move container to workspace 9
  132. bindsym $mod+Shift+0 move container to workspace 10
  133.  
  134. # reload the configuration file
  135. bindsym $mod+Shift+c reload
  136. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  137. bindsym $mod+Shift+r restart
  138. # exit i3 (logs you out of your X session)
  139. #bindsym $mod+Shift+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'"
  140. bindsym $mod+Shift+e exec i3-msg exit
  141.  
  142. # resize window (you can also use the mouse for that)
  143. mode "resize" {
  144.         # These bindings trigger as soon as you enter the resize mode
  145.  
  146.         # Pressing left will shrink the window’s width.
  147.         # Pressing right will grow the window’s width.
  148.         # Pressing up will shrink the window’s height.
  149.         # Pressing down will grow the window’s height.
  150.         bindsym l resize shrink width 10 px or 10 ppt
  151.         bindsym j resize grow height 10 px or 10 ppt
  152.         bindsym k resize shrink height 10 px or 10 ppt
  153.         bindsym semicolon resize grow width 10 px or 10 ppt
  154.         #bindsym l resize grow width 10 px or 10 ppt
  155.  
  156.         # same bindings, but for the arrow keys
  157.         bindsym Left resize shrink width 10 px or 10 ppt
  158.         bindsym Down resize grow height 10 px or 10 ppt
  159.         bindsym Up resize shrink height 10 px or 10 ppt
  160.         bindsym Right resize grow width 10 px or 10 ppt
  161.  
  162.         # back to normal: Enter or Escape
  163.         bindsym Return mode "default"
  164.         bindsym Escape mode "default"
  165. }
  166.  
  167. bindsym $mod+r mode "resize"
  168.  
  169. new_window pixel 3
  170. new_float pixel 1
  171. hide_edge_borders both
  172.  
  173. #client.focused            #ffffff #000000 #ffffff #ffffff #ffffff
  174. #client.focused_inactive   #ffffff #000000 #ffffff #ffffff #ffffff
  175. #client.unfocused          #ffffff #000000 #ffffff #ffffff #ffffff
  176. #client.urgent             #ffffff #000000 #ffffff #ffffff #ffffff
  177.  
  178. # class                 border  backgr. text    indicator child_border
  179. #client.focused          #4c7899ff #285577ff #ffffffff #2e9ef4ff   #285577ff
  180. #client.focused_inactive #333333ff #5f676aff #ffffffff #484e50ff   #5f676aff
  181. #client.unfocused        #333333ff #222222ff #888888ff #292d2eff   #222222ff
  182. #client.urgent           #2f343aff #900000ff #ffffffff #900000ff   #900000ff
  183. #client.placeholder      #000000ff #0c0c0cff #ffffffff #000000ff   #0c0c0cff
  184.  
  185.  
  186.  
  187. # Start i3bar to display a workspace bar (plus the system information i3status
  188. # finds out, if available)
  189. #bar {
  190. #        status_command i3status
  191. #}
  192.  
  193. # Start i3bar to display a workspace bar (plus the system information i3status
  194. # finds out, if available)
  195. bar {
  196.     colors {
  197.         # Whole color settings
  198.         background #00000080
  199.         statusline #ffffff
  200.         separator  #666666
  201.  
  202.         # Type             border  background font
  203. #       focused_workspace  #008fff #007fff #ffffff
  204. #       active_workspace   #333333 #5f676a #ffffff
  205. #       inactive_workspace #333333 #222222 #888888
  206. #       urgent_workspace   #aa0000 #990000 #ffffff
  207.     }
  208.   #tray_output eDP1
  209.   #tray_padding 2
  210.     # i3bar position
  211.     position top
  212.     # Using custom i3status.conf
  213.     status_command i3status -c /home/john/.config/i3/i3status.conf
  214.   i3bar_command i3bar -t
  215.   height 25
  216. }
  217.  
  218. #workspace 1 output eDP1
  219. #workspace 2 output eDP1
  220. #workspace 3 output HDMI1
  221.  
  222. for_window [class="feh|Keepassx|mpv|Mumble|Pavucontrol|Steam|gimp"] floating enable
  223. for_window [class="qterminal|tilda"] floating enable
  224. for_window [class="mednafen"] floating enable
  225. for_window [class="jetbrains-idea" title="win0"] floating enable
  226.  
  227. #for_window [class="^.*"] border pixel 100
  228.  
  229. gaps inner 5
  230. gaps outer 0
  231.  
  232. exec runsvdir /home/john/service
  233. #exec xrandr --output DVI-I-1 --off
  234. exec feh --bg-fill /mnt/win/Users/John/Pictures/backgrounds/QbNuncA.jpg
  235. #exec xmodmap ~/.Xmodmap
  236. exec xmodmap -e 'clear Lock'
  237. exec xmodmap -e 'keycode 0x42=Escape' ; fi
  238. #exec i3-msg "workspace 1; append_layout /home/john/.config/i3/workspace-1.json"
Advertisement
Add Comment
Please, Sign In to add comment