Advertisement
fikriomar16

i3 config

Jan 2nd, 2018
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.29 KB | None | 0 0
  1. set $mod mod1
  2.  
  3. font pango:mplus Nerd Font 9
  4.  
  5. set $background #2F343F
  6. set $foreground #ffffff
  7. set $gray #d0d0d0
  8. set $primary #F58E8E
  9. set $secondary #79D4D5
  10. set $tertiary #7AABD4
  11.  
  12. set $additional #26CE8D
  13. set $warning #E7176A
  14.  
  15.  
  16. # Use Mouse+$mod to drag floating windows to their wanted position
  17. floating_modifier $mod
  18.  
  19. #autostart
  20. exec --no-startup-id xfce4-power-manager
  21. exec --no-startup-id compton
  22. exec --no-startup-id nm-applet
  23. #exec_always --no-startup-id /home/omar/.config/polybar/launch.sh
  24.  
  25. # set wallpaper
  26. #exec --no-startup-id nitrogen --restore
  27. exec --no-startup-id sh .fehbg
  28.  
  29. # start a terminal
  30. bindsym $mod+Return exec gnome-terminal
  31.  
  32. # start alternative terminal
  33. bindsym $mod+Shift+Return exec termite
  34.  
  35. # start a web browser
  36. bindsym $mod+w exec firefox
  37.  
  38. # file manager
  39. bindsym $mod+f exec pcmanfm
  40.  
  41. # kill focused window
  42. bindsym $mod+Shift+q kill
  43.  
  44. #change volume
  45. bindsym XF86AudioRaiseVolume exec amixer -D pulse sset Master '5%+'
  46. bindsym XF86AudioLowerVolume exec amixer -D pulse sset Master '5%-'
  47.  
  48. # music control
  49. bindsym XF86AudioNext exec mpc next --port 6601
  50. bindsym XF86AudioPrev exec mpc prev --port 6601
  51. bindsym XF86AudioPlay exec mpc toggle --port 6601
  52. bindsym XF86AudioPause exec mpc toggle --port 6601
  53. bindsym XF86AudioStop exec mpc stop --port 6601
  54.  
  55. #screenshots
  56. bindsym Print exec --no-startup-id scrot
  57. bindsym $mod+Print exec --no-startup-id scrot -u -b
  58. bindsym Control+Print exec --no-startup-id xfce4-screenshooter
  59.  
  60. # program launcher
  61. bindsym $mod+d exec dmenu_run -i -nb '#2f343f' -nf '#BD93F9' -sb '#BD93F9' -sf '#2f343f' -fn 'ShureTechMono Nerd Font:size=11' -x 27 -y 27 -w 420 -p 'Run '
  62. #bindsym $mod+d exec dmenu_run
  63. bindsym $mod+s exec rofi -show run -fullscreen True -lines 3 -line-margin 6 -padding 270 -bw 0 -opacity "70" -font "ShureTechMono Nerd Font 12" -scrollbar-width 0 -separator-style "none"
  64.  
  65. bindsym $mod+m exec urxvt -g 70x10 -e ncmpcpp -c ~/.ncmpcpp/config-art
  66.  
  67. # change focus
  68. bindsym $mod+Control+Left focus left
  69. bindsym $mod+Control+Down focus down
  70. bindsym $mod+Control+Up focus up
  71. bindsym $mod+Control+Right focus right
  72.  
  73. # my own move
  74. bindsym $mod+Left move left
  75. bindsym $mod+Down move down
  76. bindsym $mod+Up move up
  77. bindsym $mod+Right move right
  78.  
  79. # split in horizontal orientation
  80. bindsym $mod+h split h
  81.  
  82. # split in vertical orientation
  83. bindsym $mod+v split v
  84.  
  85. # enter fullscreen mode for the focused container
  86. bindsym $mod+Control+f fullscreen
  87.  
  88. # toggle tiling / floating
  89. bindsym $mod+space floating toggle
  90.  
  91. # change focus between tiling / floating windows
  92. bindsym $mod+Control+space focus mode_toggle
  93.  
  94. # focus the parent container
  95. bindsym $mod+Control+c focus parent
  96.  
  97. # focus the child container
  98. bindsym $mod+Shift+c focus child
  99.  
  100.  
  101. # Set workspaces
  102. set $ws1 "  "
  103. set $ws2 "  "
  104. set $ws3 "  "
  105. set $ws4 "  "
  106. set $ws5 "  "
  107. set $ws6 "  "
  108. set $ws7 "  "
  109. set $ws8 "  "
  110. set $ws9 "  "
  111. set $ws10 "  "
  112.  
  113. # switch to workspace
  114. bindsym $mod+1 workspace $ws1
  115. bindsym $mod+2 workspace $ws2
  116. bindsym $mod+3 workspace $ws3
  117. bindsym $mod+4 workspace $ws4
  118. bindsym $mod+5 workspace $ws5
  119. bindsym $mod+6 workspace $ws6
  120. bindsym $mod+7 workspace $ws7
  121. bindsym $mod+8 workspace $ws8
  122. bindsym $mod+9 workspace $ws9
  123. bindsym $mod+0 workspace $ws10
  124.  
  125. # move focused container to workspace
  126. bindsym $mod+Shift+1 move container to workspace $ws1
  127. bindsym $mod+Shift+2 move container to workspace $ws2
  128. bindsym $mod+Shift+3 move container to workspace $ws3
  129. bindsym $mod+Shift+4 move container to workspace $ws4
  130. bindsym $mod+Shift+5 move container to workspace $ws5
  131. bindsym $mod+Shift+6 move container to workspace $ws6
  132. bindsym $mod+Shift+7 move container to workspace $ws7
  133. bindsym $mod+Shift+8 move container to workspace $ws8
  134. bindsym $mod+Shift+9 move container to workspace $ws9
  135. bindsym $mod+Shift+0 move container to workspace $ws10
  136.  
  137. # reload the configuration file
  138. bindsym $mod+Shift+BackSpace reload
  139. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  140. bindsym $mod+Control+r restart
  141. # exit i3 (logs you out of your X session)
  142. bindsym $mod+Shift+Delete exec "i3-nagbar -t warning -m 'Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
  143.  
  144. # resize window (you can also use the mouse for that)
  145. mode "resize" {
  146. bindsym Left resize shrink width 10 px or 10 ppt
  147. bindsym Down resize grow height 10 px or 10 ppt
  148. bindsym Up resize shrink height 10 px or 10 ppt
  149. bindsym Right resize grow width 10 px or 10 ppt
  150.  
  151. # back to normal: Enter or Escape
  152. bindsym Return mode "default"
  153. bindsym Escape mode "default"
  154. bindsym Tab mode "default"
  155. }
  156. mode "gaps" {
  157. bindsym Down gaps inner all minus 2
  158. bindsym Left gaps outer all minus 2
  159. bindsym Up gaps inner all plus 2
  160. bindsym Right gaps outer all plus 2
  161.  
  162. # back to normal: Enter or Escape
  163. bindsym Return mode "default"
  164. bindsym Escape mode "default"
  165. bindsym Tab mode "default"
  166. }
  167. bindsym $mod+g mode "gaps"
  168.  
  169. bindsym $mod+r mode "resize"
  170.  
  171. # colors BORDER BACKGROUND TEXT INDICATOR
  172. client.focused $primary $primary $foreground $primary
  173. client.focused_inactive $secondary $secondary $foreground $secondary
  174. client.unfocused $tertiary $tertiary $background $tertiary
  175. client.urgent $gray $gray $foreground $gray
  176.  
  177. # Start Polybar
  178. #exec_always --no-startup-id ~/.config/polybar/launch.sh
  179.  
  180. # Start i3bar to display a workspace bar (plus the system information i3status)
  181. bar {
  182. i3bar_command i3bar
  183. status_command i3blocks
  184. position top
  185. workspace_buttons yes
  186. separator_symbol ""
  187. tray_output LVDS1
  188. font pango: mplus Nerd Font, fontawesome 9
  189. colors {
  190. background $background
  191. statusline $foreground
  192. separator $foreground
  193.  
  194. # <border name> <border> <background> <text>
  195. focused_workspace $primary $primary $background
  196. active_workspace $background $background $secondary
  197. inactive_workspace $background $background $secondary
  198. urgent_workspace $background $background $tertiary
  199. }
  200. }
  201. for_window [class=".*"] border pixel 3
  202. gaps inner 20
  203. gaps outer 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement