Advertisement
Guest User

Untitled

a guest
Dec 17th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.01 KB | None | 0 0
  1. #::::::::::::::: i3-GAPS ::::::::::::::::#
  2. # i3 config file (v4)
  3. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  4.  
  5. set $mod Mod4
  6.  
  7. #::::::::::::::: FONTS ::::::::::::::::#
  8. # Font for window titles. Will also be used by the bar unless a different font is used in the bar {} block below.
  9. # font pango:San Francisco Display 10
  10. font pango:Misc Tamsyn 12
  11.  
  12. #::::::::::::::: i3-GAPS ::::::::::::::::#
  13. gaps inner 10
  14. gaps outer -4
  15. smart_gaps on
  16. smart_borders on
  17. for_window [class="^.*"] border pixel 0
  18.  
  19. #::::::::::::::: TAGS ::::::::::::::::#
  20. set $workspace1 "1:  TERMINAL"
  21. set $workspace2 "2:  FILE MANAGER"
  22. set $workspace3 "3:  WWW"
  23. set $workspace4 "4:  MUSIC"
  24. set $workspace5 "5:  VIRTUALBOX"
  25. set $workspace6 "6:  KEEPASS"
  26. set $workspace7 "7:  STEAM"
  27. set $workspace8 "8:  TORRENT"
  28. set $workspace9 "9:"
  29.  
  30. #::::::::::::::: ASSIGN (XPROP) ::::::::::::::::#
  31. assign [class="Deluge"] $workspace8
  32. assign [class="Filezilla"] $workspace8
  33. assign [class="chromium"] $workspace3
  34. assign [class="Firefox"] $workspace3
  35. assign [class="Deadbeef"] $workspace4
  36. assign [class="spotify"] $workspace4
  37. #assign [class="Terminator"] $workspace1
  38. assign [title="Steam"] → $workspace7
  39. for_window [title="Steam"] border none
  40. assign [class="keepassxc"] $workspace6
  41.  
  42. #::::::::::::::: WORKSPACES ::::::::::::::::#
  43. workspace 1 output DVI-I-1
  44. workspace 2 output HDMI-0
  45. workspace 3 output DVI-I-1
  46. workspace 4 output HDMI-0
  47. workspace 5 output DVI-I-1
  48. workspace 6 output HDMI-0
  49. workspace 7 output DVI-I-1
  50. workspace 8 output HDMI-0
  51. workspace 9 output DVI-I-1
  52. workspace 0 output HDMI-0
  53. bindsym $mod+1 workspace $workspace1
  54. bindsym $mod+2 workspace $workspace2
  55. bindsym $mod+3 workspace $workspace3
  56. bindsym $mod+4 workspace $workspace4
  57. bindsym $mod+5 workspace $workspace5
  58. bindsym $mod+6 workspace $workspace6
  59. bindsym $mod+7 workspace $workspace7
  60. bindsym $mod+8 workspace $workspace8
  61. bindsym $mod+9 workspace $workspace9
  62. bindsym $mod+0 workspace $workspace10
  63. bindsym $mod+Shift+1 move container to workspace $workspace1
  64. bindsym $mod+Shift+2 move container to workspace $workspace2
  65. bindsym $mod+Shift+3 move container to workspace $workspace3
  66. bindsym $mod+Shift+4 move container to workspace $workspace4
  67. bindsym $mod+Shift+5 move container to workspace $workspace5
  68. bindsym $mod+Shift+6 move container to workspace $workspace6
  69. bindsym $mod+Shift+7 move container to workspace $workspace7
  70. bindsym $mod+Shift+8 move container to workspace $workspace8
  71. bindsym $mod+Shift+9 move container to workspace $workspace9
  72. bindsym $mod+Shift+0 move container to workspace $workspace10
  73. bindsym $mod+j focus left
  74. bindsym $mod+k focus down
  75. bindsym $mod+l focus up
  76. bindsym $mod+semicolon focus right
  77. bindsym $mod+Left focus left
  78. bindsym $mod+Down focus down
  79. bindsym $mod+Up focus up
  80. bindsym $mod+Right focus right
  81. bindsym $mod+Shift+j move left
  82. bindsym $mod+Shift+k move down
  83. bindsym $mod+Shift+l move up
  84. bindsym $mod+Shift+semicolon move right
  85. bindsym $mod+Shift+Left move left
  86. bindsym $mod+Shift+Down move down
  87. bindsym $mod+Shift+Up move up
  88. bindsym $mod+Shift+Right move right
  89. # change container layout (stacked, tabbed, toggle split)
  90. bindsym $mod+s layout stacking
  91. bindsym $mod+w layout tabbed
  92. bindsym $mod+e layout toggle split
  93. # toggle tiling / floating
  94. bindsym $mod+Shift+space floating toggle
  95. # change focus between tiling / floating windows
  96. bindsym $mod+space focus mode_toggle
  97. # focus the parent container
  98. bindsym $mod+a focus parent
  99. # focus the child container
  100. #bindsym $mod+d focus child
  101. # Use Mouse+$mod to drag floating windows to their wanted position
  102. floating_modifier $mod
  103. # kill focused window
  104. bindsym $mod+Shift+q kill
  105. # split orientation
  106. bindsym $mod+h split h
  107. bindsym $mod+v split v
  108. # enter fullscreen mode for the focused container
  109. bindsym $mod+f fullscreen toggle
  110. # resize window (you can also use the mouse for that)
  111. mode "resize" {
  112. # These bindings trigger as soon as you enter the resize mode
  113.  
  114. # Pressing left will shrink the window’s width.
  115. # Pressing right will grow the window’s width.
  116. # Pressing up will shrink the window’s height.
  117. # Pressing down will grow the window’s height.
  118. bindsym j resize shrink width 10 px or 10 ppt
  119. bindsym k resize grow height 10 px or 10 ppt
  120. bindsym l resize shrink height 10 px or 10 ppt
  121. bindsym semicolon resize grow width 10 px or 10 ppt
  122.  
  123. # same bindings, but for the arrow keys
  124. bindsym Left resize shrink width 10 px or 10 ppt
  125. bindsym Down resize grow height 10 px or 10 ppt
  126. bindsym Up resize shrink height 10 px or 10 ppt
  127. bindsym Right resize grow width 10 px or 10 ppt
  128.  
  129. # back to normal: Enter or Escape
  130. bindsym Return mode "default"
  131. bindsym Escape mode "default"
  132. }
  133.  
  134. bindsym $mod+r mode "resize"
  135.  
  136. #::::::::::::::: COLORS ::::::::::::::::#
  137. set $bg-color #1f4a54
  138. set $inactive-bg-color #002b36
  139. set $text-color #eee8d5
  140. set $inactive-text-color #eee8d5
  141. set $urgent-bg-color #dc322f
  142. # border background text indicator
  143. client.focused $bg-color $bg-color $text-color #00ff00
  144. client.unfocused $inactive-bg-color $inactive-bg-color $inactive-text-color #00ff00
  145. client.focused_inactive $inactive-bg-color $inactive-bg-color $inactive-text-color #00ff00
  146. client.urgent $urgent-bg-color $urgent-bg-color $text-color #00ff00
  147. hide_edge_borders both
  148.  
  149. #::::::::::::::: SHORTCUTS (xbindkeys -k)::::::::::::::::#
  150. bindsym $mod+Return exec terminator
  151. bindsym $mod+p exec scrot
  152. bindsym $mod+d exec rofi -show run
  153. bindsym $mod+o exec keepassxc
  154. bindsym $mod+i exec gnome-alsamixer
  155. #bindsym $mod+d exec rofi -show run -bg "#002b36" -opacity "90" -fg "#eee8d5" -hlbg "#cb4b16" -hlfg "#ffffff" -font "Gotham Narrow Light 20"
  156. #bindsym $mod+g exec gmrun
  157. #bindsym $mod+d exec dmenu_run
  158. #bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  159.  
  160. #::::::::::::::: VOLUME ::::::::::::::::#
  161. bindsym $mod4+F3 exec "amixer sset Master '3%+'"
  162. bindsym $mod4+F2 exec "amixer sset Master '3%-'"
  163. bindsym $mod4+F1 exec "amixer set Master toggle"
  164.  
  165. #::::::::::::::: SYSTEM ::::::::::::::::#
  166. # reload the configuration file
  167. bindsym $mod+Shift+c reload
  168. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  169. bindsym $mod+Shift+r restart
  170. # exit i3 (logs you out of your X session)
  171. 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'"
  172.  
  173. #::::::::::::::: LOGOUT PROMPTS ::::::::::::::::#
  174.  
  175. set $Locker i3lock --color="002b36" && sleep 1
  176.  
  177. set $mode_system System (l) lock, (e) logout, (s) suspend, (r) reboot, (Shift+s) shutdown
  178. mode "$mode_system" {
  179. bindsym l exec --no-startup-id $Locker, mode "default"
  180. bindsym e exec --no-startup-id i3-msg exit, mode "default"
  181. bindsym s exec --no-startup-id $Locker && systemctl suspend, mode "default"
  182. bindsym r exec --no-startup-id systemctl reboot, mode "default"
  183. bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"
  184.  
  185. # back to normal: Enter or Escape
  186. bindsym Return mode "default"
  187. bindsym Escape mode "default"
  188. }
  189.  
  190. bindsym $mod+Pause mode "$mode_system"
  191.  
  192. #::::::::::::::: i3BAR ::::::::::::::::#
  193.  
  194. exec_always --no-startup-id ~/.config/polybar/launch.sh
  195.  
  196. #bar {
  197. # #status_command conky
  198. # status_command i3blocks -c ~/.i3/i3blocks.conf
  199. # #status_command ~/.i3/scripts/i3status-cmus.sh
  200. # #mode dock
  201. # font pango: FontAwesome, Misc Tamsyn 12
  202. # position top
  203. # colors {
  204. # background $inactive-bg-color
  205. # separator #eee8d5
  206. # # border background text
  207. # focused_workspace #268bd2 #268bd2 $text-color
  208. # inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color
  209. # urgent_workspace $urgent-bg-color $urgent-bg-color $text-color
  210. # }
  211. #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement