My dot files
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

253 linhas
7.1KB

  1. set $mod Mod4
  2. #GET THOSE FUCKING GAPS YOU SPENT 2 HOURS OF YOUR LIFE BUILDING FROM SOURCE
  3. gaps inner 12
  4. gaps outer 10
  5. #compton for shadows
  6. exec compton
  7. #dunst for notifications
  8. exec dunst
  9. #screenshots
  10. bindsym Print exec "scrot /tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
  11. #set keyboard layout to german:
  12. exec --no-startup-id "setxkbmap -layout de"
  13. #Set cool colors
  14. #CLIENT BORDER BACKGR. TEXT INDICATOR CHILD_BORDER
  15. client.focused #b5e5cf #1c1c1c #ffffff #81abbc #b5e5cf
  16. client.background #ffffff
  17. #merge xrdb on startup
  18. #exec --no-startup-id xrdb -merge ~/.Xresources
  19. #set feh background to last ran fehbg picture:
  20. exec --no-startup-id "sh .fehbg"
  21. #disable titlebars (and create medium borders)
  22. for_window [class="^.*"] border pixel 5
  23. #font for i3bar and stuff
  24. font pango:monospace 12
  25. # Use Mouse+$mod to drag floating windows to their wanted position
  26. floating_modifier $mod
  27. # start a terminal (kitty)
  28. bindsym $mod+Return exec kitty
  29. # kill focused window
  30. bindsym $mod+q kill
  31. # start dmenu (a program launcher)
  32. bindsym $mod+Tab exec rofi -show drun
  33. #bindsym $mod+Tab exec --no-startup-id dmenu_run
  34. # change focus
  35. bindsym $mod+h focus left
  36. bindsym $mod+j focus down
  37. bindsym $mod+k focus up
  38. bindsym $mod+l focus right
  39. # alternatively, you can use the cursor keys:
  40. bindsym $mod+Left focus left
  41. bindsym $mod+Down focus down
  42. bindsym $mod+Up focus up
  43. bindsym $mod+Right focus right
  44. # move focused window
  45. bindsym $mod+Shift+h move left
  46. bindsym $mod+Shift+j move down
  47. bindsym $mod+Shift+k move up
  48. bindsym $mod+Shift+l move right
  49. # alternatively, you can use the cursor keys:
  50. bindsym $mod+Shift+Left move left
  51. bindsym $mod+Shift+Down move down
  52. bindsym $mod+Shift+Up move up
  53. bindsym $mod+Shift+Right move right
  54. # split horizontally
  55. bindsym $mod+t split h
  56. # split in vertical orientation
  57. bindsym $mod+v split v
  58. # enter fullscreen mode for the focused container
  59. bindsym $mod+f fullscreen toggle
  60. # change container layout (stacked, tabbed, toggle split)
  61. bindsym $mod+s layout stacking
  62. bindsym $mod+w layout tabbed
  63. bindsym $mod+e layout toggle split
  64. # toggle tiling / floating
  65. bindsym $mod+space floating toggle
  66. # change focus between tiling / floating windows
  67. bindsym $mod+shift+space focus mode_toggle
  68. # focus the parent container
  69. bindsym $mod+a focus parent
  70. # focus the child container
  71. #bindsym $mod+d focus child
  72. # Define names for default workspaces for which we configure key bindings later on.
  73. # We use variables to avoid repeating the names in multiple places.
  74. set $ws1 "1"
  75. set $ws2 "2"
  76. set $ws3 "3"
  77. set $ws4 "4"
  78. set $ws5 "5"
  79. set $ws6 "6"
  80. set $ws7 "7"
  81. set $ws8 "8"
  82. set $ws9 "9"
  83. set $ws10 "10"
  84. # switch to workspace
  85. bindsym $mod+1 workspace $ws1
  86. bindsym $mod+2 workspace $ws2
  87. bindsym $mod+3 workspace $ws3
  88. bindsym $mod+4 workspace $ws4
  89. bindsym $mod+5 workspace $ws5
  90. bindsym $mod+6 workspace $ws6
  91. bindsym $mod+7 workspace $ws7
  92. bindsym $mod+8 workspace $ws8
  93. bindsym $mod+9 workspace $ws9
  94. bindsym $mod+0 workspace $ws10
  95. # move focused container to workspace
  96. bindsym $mod+Shift+1 move container to workspace $ws1
  97. bindsym $mod+Shift+2 move container to workspace $ws2
  98. bindsym $mod+Shift+3 move container to workspace $ws3
  99. bindsym $mod+Shift+4 move container to workspace $ws4
  100. bindsym $mod+Shift+5 move container to workspace $ws5
  101. bindsym $mod+Shift+6 move container to workspace $ws6
  102. bindsym $mod+Shift+7 move container to workspace $ws7
  103. bindsym $mod+Shift+8 move container to workspace $ws8
  104. bindsym $mod+Shift+9 move container to workspace $ws9
  105. bindsym $mod+Shift+0 move container to workspace $ws10
  106. # reload the configuration file
  107. bindsym $mod+Shift+c reload
  108. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  109. bindsym $mod+Shift+r restart
  110. # exit i3 (logs you out of your X session)
  111. 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'"
  112. # MOVE FLOATING WINDOW WITH CUSTOM MODE!
  113. bindsym $mod+m mode "move" focus floating
  114. mode "move" {
  115. #move distance
  116. set $distance 30
  117. set $empowered_distance 90
  118. #move
  119. bindsym l move right $distance px
  120. bindsym k move up $distance px
  121. bindsym j move down $distance px
  122. bindsym h move left $distance px
  123. bindsym Right move right $distance px
  124. bindsym Up move up $distance px
  125. bindsym Down move down $distance px
  126. bindsym Left move left $distance px
  127. #empowered move
  128. bindsym Shift+l move right $empowered_distance px
  129. bindsym Shift+k move up $empowered_distance px
  130. bindsym Shift+j move down $empowered_distance px
  131. bindsym Shift+h move left $empowered_distance px
  132. bindsym Shift+Right move right $empowered_distance px
  133. bindsym Shift+Up move up $empowered_distance px
  134. bindsym Shift+Down move down $empowered_distance px
  135. bindsym Shift+Left move left $empowered_distance px
  136. #back to normal mode
  137. bindsym Escape mode "default"
  138. bindsym Return mode "default"
  139. bindsym $mod+m mode "default"
  140. bindsym Space mode "default"
  141. }
  142. # resize window (you can also use the mouse for that)
  143. mode "resize" {
  144. set $empowered_amount 50
  145. bindsym h resize shrink width 10 px or 10 ppt
  146. bindsym j resize grow height 10 px or 10 ppt
  147. bindsym k resize shrink height 10 px or 10 ppt
  148. bindsym l resize grow width 10 px or 10 ppt
  149. # same bindings, but for the arrow keys
  150. bindsym Left resize shrink width 10 px or 10 ppt
  151. bindsym Down resize grow height 10 px or 10 ppt
  152. bindsym Up resize shrink height 10 px or 10 ppt
  153. bindsym Right resize grow width 10 px or 10 ppt
  154. # empowered resize:
  155. bindsym Shift+h resize shrink width $empowered_amount px
  156. bindsym Shift+j resize grow height $empowered_amount px
  157. bindsym Shift+k resize shrink height $empowered_amount px
  158. bindsym Shift+l resize grow width $empowered_amount px
  159. # back to normal: Enter or Escape or $mod+r
  160. bindsym Return mode "default"
  161. bindsym Escape mode "default"
  162. bindsym $mod+r mode "default"
  163. }
  164. bindsym $mod+r mode "resize"
  165. # exec POLYBAR LAUNCH-SCRIPT on startup:
  166. exec_always --no-startup-id $HOME/.config/polybar/launch_polybar.sh
  167. # Start i3bar to display a workspace bar (plus the system information i3status
  168. # finds out, if available)
  169. #bar {
  170. # position top
  171. # status_command i3status
  172. #
  173. # #change the font and fontsize of i3bar
  174. # font -misc-fixed-*-r-normal--18-120-100-100-c-90-iso10646-1
  175. # font pango: Hack 12
  176. #
  177. # colors {
  178. # separator #99545d
  179. # background #1c1c1c
  180. # focused_workspace #b5e5cf #b5e5cf #1c1c1c
  181. # active_workspace #313e61 #1c1c1c #1c1c1c
  182. # inactive_workspace #1c1c1c #1c1c1c #ffffff
  183. # urgent_workspace #b99095 #b99095 #1c1c1c
  184. # }
  185. #}
  186. #make popups floating:
  187. for_window [window_role="pop-up"] floating enable
  188. #MULTIMEDIA KEYS:
  189. #Audio control:
  190. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5%
  191. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5%
  192. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle #toggle mute
  193. #Screen brightness:
  194. bindsym XF86MonbrigthnessUp exec "" #increase brightness (virtual)
  195. bindsym XF86MonbrigthnessDown exec "" #decrease brightness (virtual)