Advertisement
Guest User

lala

a guest
Mar 7th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. #i3 configuration file
  3. #Author: Pawan Bhattarai
  4.  
  5. set $mod Mod4
  6. font pango:System San Francisco Display 10
  7. floating_modifier $mod
  8. new_window pixel 3
  9. focus_follows_mouse  yes
  10. workspace_auto_back_and_forth yes
  11.  
  12. set $bg-color            #2f343f
  13. set $inactive-bg-color   #2f343f
  14. set $text-color          #f3f4f5
  15. set $inactive-text-color #676E7D
  16. set $urgent-bg-color     #E53935
  17.  
  18. # start a terminal
  19. bindsym $mod+Return exec i3-sensible-terminal
  20.  
  21. # kill focused window
  22. bindsym $mod+Shift+q kill
  23.  
  24. # program launcher
  25. bindsym $mod+d exec rofi -show run
  26.  
  27. # change focus
  28. bindsym $mod+j focus left
  29. bindsym $mod+k focus down
  30. bindsym $mod+l focus up
  31. bindsym $mod+semicolon focus right
  32.  
  33. # alternatively, you can use the cursor keys:
  34. bindsym $mod+Left focus left
  35. bindsym $mod+Down focus down
  36. bindsym $mod+Up focus up
  37. bindsym $mod+Right focus right
  38.  
  39. # move focused window
  40. bindsym $mod+Shift+j move left
  41. bindsym $mod+Shift+k move down
  42. bindsym $mod+Shift+l move up
  43. bindsym $mod+Shift+semicolon move right
  44.  
  45. # alternatively, you can use the cursor keys:
  46. bindsym $mod+Shift+Left move left
  47. bindsym $mod+Shift+Down move down
  48. bindsym $mod+Shift+Up move up
  49. bindsym $mod+Shift+Right move right
  50.  
  51. # split in horizontal orientation
  52. bindsym $mod+h split h
  53.  
  54. # split in vertical orientation
  55. bindsym $mod+v split v
  56.  
  57. # enter fullscreen mode for the focused container
  58. bindsym $mod+f fullscreen toggle
  59.  
  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.  
  65. # toggle tiling / floating
  66. bindsym $mod+Shift+space floating toggle
  67.  
  68. # change focus between tiling / floating windows
  69. bindsym $mod+space focus mode_toggle
  70.  
  71. # focus the parent container
  72. bindsym $mod+a focus parent
  73.  
  74. #Terminal
  75. set $ws1 "1: ï„  "
  76. set $ws2 "2: ï„¡ "
  77. set $ws3 "3: "
  78. set $ws4 "4: "
  79. set $ws5 "5: "
  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 6
  88. bindsym $mod+7 workspace 7
  89. bindsym $mod+8 workspace 8
  90. bindsym $mod+9 workspace 9
  91. bindsym $mod+0 workspace 10
  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 6
  100. bindsym $mod+Shift+7 move container to workspace 7
  101. bindsym $mod+Shift+8 move container to workspace 8
  102. bindsym $mod+Shift+9 move container to workspace 9
  103. bindsym $mod+Shift+0 move container to workspace 10
  104.  
  105. # Scratchpad
  106. bindsym $mod+p [instance="postman"] scratchpad show; [instance="postman"] move position center, resize set 1000 1000
  107. bindsym $mod+c [instance="evince"] scratchpad show; [instance="evince"] move position center, resize set 1500 1000
  108.  
  109. # #--Postmane Scratchpad Window---# #
  110. for_window [instance="postman"] floating enable
  111. #for_window [instance="postnam"] resize set 1000 1000
  112. for_window [instance="postman"] move scratchpad
  113. for_window [instance="postman"] border pixel 2
  114.  
  115. # #--Evince Scratchpad Window---# #
  116. for_window [instance="evince"] floating enable
  117. for_window [instance="evince"] resize set 1000 1000
  118. for_window [instance="evince"] move scratchpad
  119. for_window [instance="evince"] border pixel 2
  120.  
  121.  
  122. assign[class="^spotify$"] $ws4
  123. assign[class="^jetbrains-idea-ce$"] $ws2
  124. assign[class="^Terminator$"] $ws1
  125. assign[class="^Firefox$"] $ws3
  126. assign[class="^Pidgin$"] $ws5
  127.  
  128. #i3 adnimistrative tasks.
  129. bindsym $mod+Shift+c reload
  130. bindsym $mod+Shift+r restart
  131. 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'"
  132.  
  133. #windows resize
  134. mode "resize" {
  135.         bindsym j resize shrink width 10 px or 10 ppt
  136.         bindsym k resize grow height 10 px or 10 ppt
  137.         bindsym l resize shrink height 10 px or 10 ppt
  138.         bindsym semicolon resize grow width 10 px or 10 ppt
  139.  
  140.         # same bindings, but for the arrow keys
  141.         bindsym Left resize shrink width 10 px or 10 ppt
  142.         bindsym Down resize grow height 10 px or 10 ppt
  143.         bindsym Up resize shrink height 10 px or 10 ppt
  144.         bindsym Right resize grow width 10 px or 10 ppt
  145.  
  146.         # back to normal: Enter or Escape
  147.         bindsym Return mode "default"
  148.         bindsym Escape mode "default"
  149. }
  150.  
  151. bindsym $mod+r mode "resize"
  152.  
  153. for_window [title="(?i)terminal-file"] floating enable, resize set 600 300, move position cursor
  154. for_window [window_role="pop-up|bubble|task_dialog|Preferences"] floating enable
  155. for_window [window_role="browser|GtkFileChooserDialog"] resize set 800 600, move position center
  156. for_window [class="(?i)pavucontrol|lxappearance|xarchiver|kamus|arandr|Thunar"] floating enable
  157. for_window [window_role="(?i)filemanager"] floating enable, resize set 1280 600, move position center, focus
  158. for_window [class="Thunar"] floating enable resize set 800 800, move position center
  159. for_window [class="^Pidgin$" window_role="^conversation$"] resize grow width 0 px or 30 ppt; move left
  160. for_window [class="Nm-connection-editor"] floating enable resize set 400 400, move position center
  161. for_window [class="feh"] floating enable resize set 600 600, move position center
  162. for_window [title="Terminator Preferences"] floating enable, move position center
  163. for_window [class="Spotify"] move to workspace $ws4
  164. for_window [class="Ristretto"] floating enable resize set 700 700, move position center
  165. for_window [class="Blueman-manager"] floating enable, move position center
  166. for_window [class="Vlc"] floating enable, resize set 600 600, move position center
  167.  
  168. # Startup programs
  169. exec compton -CGb
  170. exec firefox
  171. exec i3-sensible-terminal
  172. exec_always --no-startup-id feh --bg-scale /home/bpawan/Pictures/lights-night-unsharp-blured.png
  173. exec volumeicon
  174. exec --no-startup-id pidgin
  175. exec --no-startup-id setxkbmap -layout de
  176. exec blueman-applet
  177. exec xinput set-prop "DLL07BE:01 06CB:7A13 Touchpad" "libinput Tapping Enabled" 1
  178.  
  179.  
  180. # Switch the keyboard
  181. set $mode_kbl Keyboard (d) deutsch, (e) englisch
  182. mode "$mode_kbl" {
  183.     bindsym d exec --no-startup-id setxkbmap -layout de, mode "default"
  184.     bindsym e exec --no-startup-id setxkbmap -layout us -variant altgr-intl, mode "default"
  185.  
  186.     # back to normal: Enter or Escape
  187.     bindsym Return mode "default"
  188.     bindsym Escape mode "default"
  189. }
  190. bindsym $mod+b mode "$mode_kbl"
  191.  
  192. # window color          border              background         text                 indicator
  193. client.focused          $bg-color           $bg-color          $text-color          #00ff00
  194. client.unfocused        $inactive-bg-color  $inactive-bg-color $inactive-text-color #00ff00
  195. client.focused_inactive $inactive-bg-color  $inactive-bg-color $inactive-text-color #00ff00
  196. client.urgent           $urgent-bg-color    $urgent-bg-color   $text-color          #00ff00
  197.  
  198. #print screen
  199. bindsym Print exec "scrot -m ~/Pictures/screenshots/%s_%H%M_%d.%m.%Y_$wx$h.png
  200.  
  201. #lock
  202. bindsym $mod+Shift+x exec ~/.config/i3/ilock/run_ilock.sh
  203.  
  204. #bar
  205. bar {
  206.     position bottom
  207.     height 30
  208.     output primary
  209.    workspace_buttons yes
  210.     tray_padding 5
  211.    status_command i3blocks -c ~/.config/i3/i3blocks/blocks.conf
  212.     colors {
  213.         background $bg-color
  214.         separator #757575
  215.         #                  border             background         text
  216.         focused_workspace  $bg-color          $bg-color          $text-color
  217.         inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color
  218.         urgent_workspace   $urgent-bg-color   $urgent-bg-color   $text-color
  219.     }
  220. }
  221.  
  222. hide_edge_borders both
  223.  
  224. # Pulse Audio controls
  225. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
  226. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
  227. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
  228.  
  229. # Sreen brightness controls
  230. bindsym XF86MonBrightnessUp exec xbacklight -inc 10 # increase screen brightness
  231. bindsym XF86MonBrightnessDown exec xbacklight -dec 10 # decrease screen brightness
  232.  
  233. # Media player controls
  234. bindsym XF86AudioPlay exec playerctl play
  235. bindsym XF86AudioPause exec playerctl pause
  236. bindsym XF86AudioNext exec playerctl next
  237. bindsym XF86AudioPrev exec playerctl previous
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement