my configs
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.
 
 
 
 
 
 

172 lines
5.3 KiB

  1. # i3 config file (v4)
  2. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  3. set $mod Mod4
  4. # Font for window titles. Will also be used by the bar unless a different font
  5. font pango:DejaVu Sans Mono 18
  6. # Use Mouse+$mod to drag floating windows to their wanted position
  7. floating_modifier $mod
  8. # start a terminal
  9. bindsym $mod+Return exec i3-sensible-terminal
  10. # kill focused window
  11. bindsym $mod+Shift+q kill
  12. # change focus
  13. bindsym $mod+j focus left
  14. bindsym $mod+k focus down
  15. bindsym $mod+l focus up
  16. bindsym $mod+semicolon focus right
  17. # alternatively, you can use the cursor keys:
  18. bindsym $mod+Left focus left
  19. bindsym $mod+Down focus down
  20. bindsym $mod+Up focus up
  21. bindsym $mod+Right focus right
  22. # move focused window
  23. bindsym $mod+Shift+j move left
  24. bindsym $mod+Shift+k move down
  25. bindsym $mod+Shift+l move up
  26. bindsym $mod+Shift+semicolon move right
  27. # alternatively, you can use the cursor keys:
  28. bindsym $mod+Shift+Left move left
  29. bindsym $mod+Shift+Down move down
  30. bindsym $mod+Shift+Up move up
  31. bindsym $mod+Shift+Right move right
  32. # split in horizontal orientation
  33. bindsym $mod+h split h
  34. # split in vertical orientation
  35. bindsym $mod+v split v
  36. # enter fullscreen mode for the focused container
  37. bindsym $mod+f fullscreen toggle
  38. # change container layout (stacked, tabbed, toggle split)
  39. bindsym $mod+w layout tabbed
  40. bindsym $mod+e layout toggle split
  41. # toggle tiling / floating
  42. bindsym $mod+Shift+space floating toggle
  43. # change focus between tiling / floating windows
  44. bindsym $mod+space focus mode_toggle
  45. # focus the parent container
  46. bindsym $mod+a focus parent
  47. # focus the child container
  48. bindsym $mod+s focus child
  49. # switch to workspace
  50. bindsym $mod+1 workspace 1
  51. bindsym $mod+2 workspace 2
  52. bindsym $mod+3 workspace 3
  53. bindsym $mod+4 workspace 4
  54. bindsym $mod+5 workspace 5
  55. bindsym $mod+6 workspace 6
  56. bindsym $mod+7 workspace 7
  57. bindsym $mod+8 workspace 8
  58. bindsym $mod+9 workspace 9
  59. bindsym $mod+0 workspace 10
  60. # move focused container to workspace
  61. bindsym $mod+Shift+1 move container to workspace 1
  62. bindsym $mod+Shift+2 move container to workspace 2
  63. bindsym $mod+Shift+3 move container to workspace 3
  64. bindsym $mod+Shift+4 move container to workspace 4
  65. bindsym $mod+Shift+5 move container to workspace 5
  66. bindsym $mod+Shift+6 move container to workspace 6
  67. bindsym $mod+Shift+7 move container to workspace 7
  68. bindsym $mod+Shift+8 move container to workspace 8
  69. bindsym $mod+Shift+9 move container to workspace 9
  70. bindsym $mod+Shift+0 move container to workspace 10
  71. # reload the configuration file
  72. bindsym $mod+Shift+c reload
  73. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  74. bindsym $mod+Shift+r restart
  75. # exit i3 (logs you out of your X session)
  76. 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'"
  77. # resize window (you can also use the mouse for that)
  78. mode "resize" {
  79. # These bindings trigger as soon as you enter the resize mode
  80. # Pressing left will shrink the window’s width.
  81. # Pressing right will grow the window’s width.
  82. # Pressing up will shrink the window’s height.
  83. # Pressing down will grow the window’s height.
  84. bindsym j resize shrink width 10 px or 10 ppt
  85. bindsym k resize grow height 10 px or 10 ppt
  86. bindsym l resize shrink height 10 px or 10 ppt
  87. bindsym semicolon resize grow width 10 px or 10 ppt
  88. # same bindings, but for the arrow keys
  89. bindsym Left resize shrink width 10 px or 10 ppt
  90. bindsym Down resize grow height 10 px or 10 ppt
  91. bindsym Up resize shrink height 10 px or 10 ppt
  92. bindsym Right resize grow width 10 px or 10 ppt
  93. # back to normal: Enter or Escape
  94. bindsym Return mode "default"
  95. bindsym Escape mode "default"
  96. }
  97. bindsym $mod+r mode "resize"
  98. exec_always ~/bin/startbar
  99. # Colors
  100. client.focused #007fbf #007fbf #ffffff
  101. client.unfocused #666666 #666666 #ffffff
  102. client.urgent #aa0000 #990000 #ffffff
  103. # Set background
  104. exec --no-startup-id feh --bg-fill ~/pictures/wallpaper.jpg
  105. # Start Audio
  106. #exec --no-startup-id pulseaudio --start
  107. # Set Custom keyboard mapping
  108. exec --no-startup-id xbindkeys
  109. # set dpi
  110. exec xrdb ~/.Xresources
  111. # Custom KeyBinds
  112. bindsym Control+mod4+l exec sh ~/.i3/i3lock.sh
  113. bindsym Print exec scrot '%Y-%m-%d-%T_$wx$h_scrot.png' -e 'mv $f ~/pictures/screenshots/'
  114. #smart_borders on|no_gaps
  115. for_window [class="^.*"] border pixel 0
  116. gaps inner 15
  117. gaps outer 10
  118. smart_gaps on
  119. #Nautilus
  120. bindsym $mod+Shift+U exec nautilus --no-desktop --browser
  121. # rofi
  122. bindsym $mod+o exec rofi -show window
  123. bindsym $mod+i exec rofi -show ssh
  124. bindsym $mod+d exec rofi -show run
  125. # Pulse Audio controls
  126. bindsym XF86AudioRaiseVolume exec --no-startup-id amixer set Master 5%+ unmute#increase sound volume
  127. bindsym XF86AudioLowerVolume exec --no-startup-id amixer set Master 10%- #decrease sound volume
  128. bindsym XF86AudioMute exec --no-startup-id amixer set Master toggle # mute sound
  129. # Sreen brightness controls
  130. bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
  131. bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness
  132. # Media player controls
  133. bindsym XF86AudioPlay exec playerctl play-pause
  134. bindsym XF86AudioPause exec playerctl play-pause
  135. bindsym XF86AudioNext exec playerctl next
  136. bindsym XF86AudioPrev exec playerctl previous