Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.25 KB | None | 0 0
  1. #minimal i3 configurations
  2.  
  3. # Set mod keys (Mod1=<Alt>, Mod4=<Super>)
  4. set $mod Mod4
  5.  
  6. # terminal
  7. bindsym $mod+Return exec --no-startup-id termite
  8. exec --no-startup-id feh --randomize --bg-fill ~/Pictures/Wallpapers/*
  9.  
  10. # rofi
  11. bindsym $mod+Up exec --no-startup-id rofi -show run
  12.  
  13. # kill container
  14. bindsym $mod+Down kill
  15.  
  16. # stop compton
  17. #bindsym $mod+c exec pkill compton
  18.  
  19. # start compton
  20. #bindsym $mod+Shift+c exec --no-startup-id compton --config .i3/compton.conf &
  21.  
  22. # restart i3 inplace
  23. bindsym $mod+r restart
  24.  
  25. # exit i3
  26. bindsym $mod+Control+Escape exec i3-msg exit
  27.  
  28. # kill xorg server
  29. bindsym $mod+Shift+Escape exec pkill -15 Xorg
  30.  
  31. # screenshot printscreen to ~/home
  32. bindsym Print exec --no-startup-id scrot
  33.  
  34. # enter fullscreen mode for the focused container
  35. bindsym $mod+f fullscreen
  36.  
  37. # vim key navigations, uncomment the other sections for arrow keys
  38. # change focus
  39. bindsym $mod+j focus left
  40. bindsym $mod+k focus down
  41. bindsym $mod+l focus up
  42.  
  43. # move focused window
  44. bindsym $mod+Control+h move left
  45. bindsym $mod+Control+j move down
  46. bindsym $mod+Control+k move up
  47. bindsym $mod+Control+l move right
  48.  
  49. # executed on startup and i3 restarts
  50. # exec_always --no-startup-id ~/.config/i3/screens.sh
  51. bindsym $mod+s exec --no-startup-id ~/.config/i3/screens.sh
  52.  
  53. # new window split direction toggle
  54. bindsym $mod+t split toggle
  55.  
  56. # scratchpad
  57. #bindsym grave scratchpad show
  58. #bindsym $mod+grave move scratchpad
  59.  
  60. floating_modifier $mod
  61. bindsym $mod+space floating toggle
  62.  
  63. # set floating mode when applications started
  64. for_window [class="Termite"] floating enable
  65.  
  66. # workspaces
  67. # to display names or symbols instead of plain workspace numbers you can use
  68. # something like: set $ws1 1:mail
  69. # set $ws2 2:
  70.  
  71. set $WS1 "1:  ZSH "
  72. set $WS2 "2:  Code "
  73. set $WS3 "3:  Chromium "
  74. set $WS4 "4:  Files "
  75. set $WS5 "5:  Documents "
  76. set $WS6 "6:  Media "
  77. set $WS7 "7:  Chat "
  78.  
  79.  
  80.  
  81. # switch to workspace
  82. bindsym $mod+1 workspace $ws1
  83. bindsym $mod+2 workspace $ws2
  84. bindsym $mod+3 workspace $ws3
  85. bindsym $mod+4 workspace $ws4
  86. bindsym $mod+5 workspace $ws5
  87. bindsym $mod+6 workspace $ws6
  88. bindsym $mod+7 workspace $ws7
  89. bindsym $mod+8 workspace $ws8
  90. bindsym $mod+9 workspace $ws9
  91. bindsym $mod+0 workspace $wsX
  92.  
  93. # move focused container to workspace
  94. bindsym $mod+Shift+1 move container to workspace $ws1
  95. bindsym $mod+Shift+2 move container to workspace $ws2
  96. bindsym $mod+Shift+3 move container to workspace $ws3
  97. bindsym $mod+Shift+4 move container to workspace $ws4
  98. bindsym $mod+Shift+5 move container to workspace $ws5
  99. bindsym $mod+Shift+6 move container to workspace $ws6
  100. bindsym $mod+Shift+7 move container to workspace $ws7
  101. bindsym $mod+Shift+8 move container to workspace $ws8
  102. bindsym $mod+Shift+9 move container to workspace $ws9
  103. bindsym $mod+Shift+0 move container to workspace $wsX
  104.  
  105. # setup workspaces
  106. exec termite &
  107. assign [class="Termite"] "1:  ZSH "
  108. bindsym $mod+F2 workspace $WS2; exec termite -e nvim
  109. bindsym $mod+F3 workspace $WS3; exec chromium
  110. bindsym $mod+F4 workspace $WS4; exec thunar
  111. bindsym $mod+F5 workspace $WS5; exec termite -e ranger
  112. bindsym $mod+F6 workspace $WS6; exec smplayer
  113. bindsym $mod+F7 workspace $WS7; exec discord
  114.  
  115.  
  116. bindsym $mod+z exec $HOME/.i3/lock.sh
  117.  
  118. # assign program to workspace
  119.  
  120.  
  121.  
  122. # Pulse Audio controls
  123. bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +5% #increase sound volume
  124. bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -5% #decrease sound volume
  125. bindsym XF86AudioMute exec pactl set-sink-mute 0 toggle # mute sound
  126.  
  127. # install acpilight for this drop in xbacklight replacement
  128. # Sreen brightness controls
  129. bindsym XF86MonBrightnessUp exec xbacklight -inc 5
  130. bindsym XF86MonBrightnessDown exec xbacklight -dec 5
  131.  
  132.  
  133.  
  134. #THEME
  135.  
  136. #gruvbox colorscheme
  137. set $bg #282828
  138. set $red #cc241d
  139. set $green #98971a
  140. set $lightgreen #b8bb26
  141. set $yellow #d79921
  142. set $blue #458588
  143. set $purple #b16286
  144. set $aqua #689d68
  145. set $gray #a89984
  146. set $darkgray #1d2021
  147.  
  148. font pango:Hack 8
  149.  
  150. #bar section
  151. bar {
  152. position bottom
  153. status_command i3blocks -c .i3/i3blocks.conf
  154. colors {
  155. background $bg
  156. statusline $yellow
  157.  
  158. # border backgr. text
  159. focused_workspace $aqua $aqua $darkgray
  160. inactive_workspace $darkgray $darkgray $yellow
  161. active_workspace $darkgray $darkgray $yellow
  162. urgent_workspace $red $red $bg
  163. }
  164. }
  165.  
  166. # window section
  167.  
  168. # green gruvbox
  169. # class border|backgr|text|indicator|child_border
  170. #client.focused $green $green $darkgray $purple $darkgray
  171. #client.focused_inactive $bg $darkgray $yellow $purple $darkgray
  172. #client.unfocused $bg $darkgray $yellow $purple $darkgray
  173. #client.urgent $red $red $white $red $red
  174.  
  175.  
  176. # blue gruvbox
  177. # class border|backgr|text|indicator|child_border
  178. client.focused $blue $blue $darkgray $purple $darkgray
  179. client.focused_inactive $darkgray $darkgray $yellow $purple $darkgray
  180. client.unfocused $darkgray $darkgray $yellow $purple $darkgray
  181. client.urgent $red $red $white $red $red
  182. bindsym $mod+Shift+z exec $HOME/.i3/lock.sh
  183. bindsym $mod+Shift+d exec .i3/shutdown_menu.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement