Gentoo installation script
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 6.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. # /etc/i3/config
  2. ### Startup ######################################
  3. ## Disable DPMS
  4. exec --no-startup-id xset s off -dpms
  5. ## i3wm modifier key
  6. set $mod Mod4
  7. ## Applications
  8. bindsym $mod+d exec --no-startup-id dmenu_run
  9. bindsym $mod+Return exec st
  10. ### Appearance ###################################
  11. ## Font
  12. font pango:Noto Mono Regular 9.5
  13. ## Taskbar
  14. bar {
  15. position top
  16. status_command i3status
  17. colors {
  18. background #333333
  19. statusline #eeeeee
  20. separator #eeeeee
  21. focused_workspace #eeeeee #00894e
  22. active_workspace #eeeeee #777777
  23. inactive_workspace #eeeeee #333333
  24. urgent_workspace #eeeeee #b22222
  25. }
  26. }
  27. ## Colors
  28. exec --no-startup-id xsetroot -solid '#333333'
  29. client.background #333333
  30. client.focused #00894e #00894e #eeeeee #30f277 #00894e
  31. client.focused_inactive #333333 #333333 #eeeeee #888888 #333333
  32. client.placeholder #333333 #333333 #eeeeee #333333 #333333
  33. client.unfocused #333333 #333333 #888888 #888888 #333333
  34. client.urgent #b22222 #b22222 #eeeeee #ff5454 #b22222
  35. ### System #######################################
  36. ## Reload
  37. set $Config Reload i3 config (r), Live restart of i3 (Shift+r)
  38. bindsym $mod+Shift+r mode "$Config"
  39. mode "$Config" {
  40. bindsym r reload
  41. bindsym Shift+r restart
  42. bindsym Escape mode "default"
  43. }
  44. ## i3lock
  45. set $Locker xset s 10 dpms 10 && i3lock -c 333333 -n && xset s off -dpms
  46. ## Menu
  47. set $System Lock (l), Logout (e), Reboot (r), Shutdown (s)
  48. bindsym $mod+Home mode "$System"
  49. mode "$System" {
  50. bindsym l exec --no-startup-id $Locker, mode "default"
  51. bindsym e exec --no-startup-id i3-msg exit, mode "default"
  52. bindsym r exec --no-startup-id reboot, mode "default"
  53. bindsym s exec --no-startup-id poweroff -i, mode "default"
  54. bindsym Escape mode "default"
  55. }
  56. ### Display ######################################
  57. ## Auto-enable/disable displays when connected
  58. # exec --no-startup-id \
  59. # while :; do \
  60. # Displays=$(xrandr | grep 'connected' | awk '{print $1}');\
  61. # for display in $Displays; do \
  62. # if [ $(xrandr | grep $display | awk '{print $2}') == "connected" ]; then \
  63. # xrandr --output $display --auto; \
  64. # fi; \
  65. # done; \
  66. # sleep 10; \
  67. # done
  68. #### Keybinds ####################################
  69. ## Window splitting
  70. bindsym $mod+h split h
  71. bindsym $mod+v split v
  72. ## Fullscreen focused container
  73. bindsym $mod+f fullscreen toggle
  74. ## Kill focused window
  75. bindsym $mod+Shift+q kill
  76. ## Cycle frame layout
  77. bindsym $mod+s layout stacking
  78. bindsym $mod+w layout tabbed
  79. bindsym $mod+e layout toggle split
  80. ## Change focus
  81. bindsym $mod+j focus left
  82. bindsym $mod+k focus down
  83. bindsym $mod+l focus up
  84. bindsym $mod+semicolon focus right
  85. bindsym $mod+Left focus left
  86. bindsym $mod+Down focus down
  87. bindsym $mod+Up focus up
  88. bindsym $mod+Right focus right
  89. ## Move focused window
  90. bindsym $mod+Shift+j move left
  91. bindsym $mod+Shift+k move down
  92. bindsym $mod+Shift+l move up
  93. bindsym $mod+Shift+semicolon move right
  94. bindsym $mod+Shift+Left move left
  95. bindsym $mod+Shift+Down move down
  96. bindsym $mod+Shift+Up move up
  97. bindsym $mod+Shift+Right move right
  98. ## Switch to workspace
  99. bindsym $mod+1 workspace 1
  100. bindsym $mod+2 workspace 2
  101. bindsym $mod+3 workspace 3
  102. bindsym $mod+4 workspace 4
  103. bindsym $mod+5 workspace 5
  104. bindsym $mod+6 workspace 6
  105. bindsym $mod+7 workspace 7
  106. bindsym $mod+8 workspace 8
  107. bindsym $mod+9 workspace 9
  108. bindsym $mod+0 workspace 10
  109. ## Move focused container to workspace
  110. bindsym $mod+Shift+1 move container to workspace 1
  111. bindsym $mod+Shift+2 move container to workspace 2
  112. bindsym $mod+Shift+3 move container to workspace 3
  113. bindsym $mod+Shift+4 move container to workspace 4
  114. bindsym $mod+Shift+5 move container to workspace 5
  115. bindsym $mod+Shift+6 move container to workspace 6
  116. bindsym $mod+Shift+7 move container to workspace 7
  117. bindsym $mod+Shift+8 move container to workspace 8
  118. bindsym $mod+Shift+9 move container to workspace 9
  119. bindsym $mod+Shift+0 move container to workspace 10
  120. ## Focus the parent container
  121. bindsym $mod+a focus parent
  122. ## Drag floating windows with Mouse+$mod
  123. floating_modifier $mod
  124. ## Toggle floating on focused frame
  125. bindsym $mod+Shift+space floating toggle
  126. ## Change focus between tiling / floating windows
  127. bindsym $mod+space focus mode_toggle
  128. ## Floating rules
  129. for_window [window_role="pop-up"] floating enable
  130. ## Resize
  131. bindsym $mod+r mode "resize"
  132. mode "resize" {
  133. bindsym j resize shrink width 10 px or 10 ppt
  134. bindsym k resize grow height 10 px or 10 ppt
  135. bindsym l resize shrink height 10 px or 10 ppt
  136. bindsym semicolon resize grow width 10 px or 10 ppt
  137. bindsym Left resize shrink width 10 px or 10 ppt
  138. bindsym Down resize grow height 10 px or 10 ppt
  139. bindsym Up resize shrink height 10 px or 10 ppt
  140. bindsym Right resize grow width 10 px or 10 ppt
  141. bindsym Escape mode "default"
  142. }
  143. #### Multimedia ##################################
  144. ## Screenshot (scrot)
  145. bindsym Print exec --no-startup-id \
  146. scrot $HOME/Pictures/`date +%Y-%m-%d_%H:%M:%S`.png
  147. bindsym $mod+Print exec --no-startup-id \
  148. scrot -u $HOME/Pictures/`date +%Y-%m-%d_%H:%M:%S`.png
  149. bindsym Shift+Print --release exec --no-startup-id \
  150. scrot -s $HOME/Pictures/`date +%Y-%m-%d_%H:%M:%S`.png
  151. ## Audio (Alsa)
  152. # bindsym XF86AudioRaiseVolume exec --no-startup-id amixer set Master 5+
  153. # bindsym XF86AudioLowerVolume exec --no-startup-id amixer set Master 5-
  154. # bindsym XF86AudioMute exec --no-startup-id amixer set Master toggle
  155. ## Audio (PulseAudio)
  156. # bindsym XF86AudioRaiseVolume exec --no-startup-id \
  157. # pactl set-sink-volume @DEFAULT_SINK@ +5%
  158. # bindsym XF86AudioLowerVolume exec --no-startup-id \
  159. # pactl set-sink-volume @DEFAULT_SINK@ -5%
  160. # bindsym XF86AudioMute exec --no-startup-id \
  161. # pactl set-sink-mute @DEFAULT_SINK@ toggle
  162. # bindsym XF86AudioPlay exec --no-startup-id pactl play-pause
  163. # bindsym XF86AudioPause exec --no-startup-id pactl pause
  164. # bindsym XF86AudioNext exec --no-startup-id pactl next
  165. # bindsym XF86AudioPrev exec --no-startup-id pactl previous
  166. ## Audio (Sndio)
  167. # bindsym XF86AudioRaiseVolume exec --no-startup-id mixerctl
  168. # bindsym XF86AudioLowerVolume exec --no-startup-id mixerctl
  169. # bindsym XF86AudioMute \
  170. # exec --no-startup-id mixerctl -t outputs.master.mute
  171. ## Brightness (brightnessctl)
  172. # bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl set 5%+
  173. # bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl set 5%-
  174. ## Brightness (xbacklight)
  175. # bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 15
  176. # bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 15