Advertisement
Guest User

Untitled

a guest
Jul 20th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.18 KB | None | 0 0
  1. ###################################
  2. #
  3. # i3wm configuration file (i3-gaps)
  4. # ---------------------------------
  5. #
  6. ###################################
  7.  
  8.  
  9. ###################################
  10. # Colors
  11. ###################################
  12.  
  13.  
  14.  
  15. #Title bar variables
  16. set $bg-color #00BFFF
  17. set $inactive-bg-color #004E69
  18. set $text-color #00BFFF
  19. set $inactive-text-color #004E69
  20. set $urgent-bg-color #FF00CC
  21.  
  22.  
  23. # window colors
  24. #class border background text indicator
  25. client.focused $bg-color $bg-color $text-color #00BFFF
  26.  
  27. client.unfocused $inactive-bg-color $inactive-bg-color $inactive-text-color #00BFFF
  28.  
  29. client.focused_inactive $inactive-bg-color $inactive-bg-color $inactive-text-color #00BFFF
  30.  
  31. client.urgent $urgent-bg-color $urgent-bg-color $text-color #00BFFF
  32.  
  33. hide_edge_borders both
  34.  
  35.  
  36. ###################################
  37. # Windows style
  38. ###################################
  39. # font for window titles.
  40. font pango:Sparkles 8
  41.  
  42. # set default orientation, <horizontal|vertical|auto>
  43. default_orientation horizontal
  44.  
  45. # i3-gaps settings
  46. for_window [class="^.*"] border pixel 2
  47. new_window pixel 2
  48. gaps inner 10
  49. gaps outer 1
  50. workspace 2 gaps inner 0
  51. workspace 2 gaps outer 0
  52. #smart_gaps on
  53.  
  54. # Back and forth workplace switching
  55. workspace_auto_back_and_forth yes
  56.  
  57. # Use Mouse+Mod to drag floating windows to their wanted position
  58. floating_modifier $mod
  59.  
  60. # resize window (you can also use the mouse for that)
  61. mode "resize" {
  62. # These bindings trigger as soon as you enter the resize mode
  63.  
  64. # Pressing left will shrink the window’s width.
  65. # Pressing right will grow the window’s width.
  66. # Pressing up will shrink the window’s height.
  67. # Pressing down will grow the window’s height.
  68. bindsym j resize shrink width 10 px or 10 ppt
  69. bindsym k resize grow height 10 px or 10 ppt
  70. bindsym l resize shrink height 10 px or 10 ppt
  71. bindsym semicolon resize grow width 10 px or 10 ppt
  72.  
  73. # same bindings, but for the arrow keys
  74. bindsym 113 resize shrink width 10 px or 10 ppt
  75. bindsym 116 resize grow height 10 px or 10 ppt
  76. bindsym 111 resize shrink height 10 px or 10 ppt
  77. bindsym 114 resize grow width 10 px or 10 ppt
  78.  
  79. # back to normal: Enter or Escape
  80. bindsym Return mode "default"
  81. bindsym Escape mode "default"
  82. bindsym $mod+r mode "default"
  83.  
  84. }
  85.  
  86. bindsym $mod+r mode "resize"
  87.  
  88.  
  89. ###################################
  90. # Keybindings
  91. ###################################
  92. # Mod1 = Super Key
  93. set $mod Mod1
  94.  
  95. # start a terminal
  96. bindsym $mod+Return exec i3-sensible-terminal
  97.  
  98. # kill focused window
  99. bindsym $mod+Shift+P kill
  100.  
  101. # change focus
  102. bindsym $mod+j focus left
  103. bindsym $mod+k focus down
  104. bindsym $mod+l focus up
  105. bindsym $mod+semicolon focus right
  106.  
  107. # alternatively, you can use the cursor keys:
  108. bindsym $mod+Left focus left
  109. bindsym $mod+Down focus down
  110. bindsym $mod+Up focus up
  111. bindsym $mod+Right focus right
  112.  
  113. # move focused window
  114. bindsym $mod+Shift+J move left
  115. bindsym $mod+Shift+K move down
  116. bindsym $mod+Shift+L move up
  117. bindsym $mod+Shift+colon move right
  118.  
  119. # alternatively, you can use the cursor keys:
  120. bindsym $mod+Shift+Left move left
  121. bindsym $mod+Shift+Down move down
  122. bindsym $mod+Shift+Up move up
  123. bindsym $mod+Shift+Right move right
  124.  
  125. # split in horizontal orientation
  126. bindsym $mod+h split h
  127.  
  128. # split in vertical orientation
  129. bindsym $mod+v split v
  130.  
  131. # enter fullscreen mode for the focused container
  132. bindsym $mod+f fullscreen toggle
  133.  
  134. # change container layout (stacked, tabbed, default)
  135. bindsym $mod+s layout stacking
  136. bindsym $mod+w layout tabbed
  137. bindsym $mod+e layout default
  138.  
  139. # toggle tiling / floating
  140. bindsym $mod+Shift+space floating toggle
  141.  
  142. # change focus between tiling / floating windows
  143. bindsym $mod+space focus mode_toggle
  144.  
  145. # focus the parent container
  146. bindsym $mod+a focus parent
  147.  
  148. # focus the child container
  149. #bindcode $mod+d focus child
  150.  
  151. # reload the configuration file
  152. bindsym $mod+Shift+C reload
  153.  
  154. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  155. bindsym $mod+Shift+r restart
  156.  
  157. # exit i3 (logs you out of your X session)
  158. bindsym $mod+Shift+e 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'"
  159.  
  160. #i3 lock
  161. exec --no-startup-id xautolock -time 5 -locker "i3lock -i /usr/share/backgrounds/wallpapers/Neon_Purple_City.png"
  162. bindsym $mod+shift+o exec i3lock -i /usr/share/backgrounds/wallpapers/Neon_Purple_City.png
  163.  
  164. ###################################
  165. # Workspaces
  166. ###################################
  167.  
  168. # Define names for default workspaces for which we configure key bindings later on.
  169. # We use variables to avoid repeating the names in multiple places.
  170.  
  171. # workspace variables
  172. set $ws1 "Main"
  173. set $ws2 "Programming"
  174. set $ws3 "Asocial"
  175. set $ws4 "VMs"
  176. set $ws5 "5"
  177. set $ws6 "6"
  178. set $ws7 "7"
  179. set $ws8 "8"
  180. set $ws9 "9"
  181. set $ws10 "10"
  182.  
  183. # switch to workspace
  184. bindsym $mod+1 workspace $ws1
  185. bindsym $mod+2 workspace $ws2
  186. bindsym $mod+3 workspace $ws3
  187. bindsym $mod+4 workspace $ws4
  188. bindsym $mod+5 workspace $ws5
  189. bindsym $mod+6 workspace $ws6
  190. bindsym $mod+7 workspace $ws7
  191. bindsym $mod+8 workspace $ws8
  192. bindsym $mod+9 workspace $ws9
  193. bindsym $mod+0 workspace $ws10
  194.  
  195. # move focused container to workspace
  196. bindsym $mod+Shift+1 move container to workspace $ws1
  197. bindsym $mod+Shift+2 move container to workspace $ws2
  198. bindsym $mod+Shift+3 move container to workspace $ws3
  199. bindsym $mod+Shift+4 move container to workspace $ws4
  200. bindsym $mod+Shift+5 move container to workspace $ws5
  201. bindsym $mod+Shift+6 move container to workspace $ws6
  202. bindsym $mod+Shift+7 move container to workspace $ws7
  203. bindsym $mod+Shift+8 move container to workspace $ws8
  204. bindsym $mod+Shift+9 move container to workspace $ws9
  205. bindsym $mod+Shift+0 move container to workspace $ws10
  206.  
  207. ## workspaces assignment
  208. # force a window on a named workspace
  209. assign [class="Virt-manager"] $ws4
  210. assign [class="Pidgin"] $ws3
  211. assign [class="qTox"] $ws3
  212. assign [class="jetbrains-pycharm-ce"] $ws2
  213.  
  214. # enable floating mode for selected windows
  215. for_window [class="Lxappearance"] floating enable border pixel 2
  216. for_window [class="Pidgin"] floating enable border pixel 2
  217. #for_window [class="Tor Browser"] floating enable border pixel 2
  218. for_window [class=:"Mat-gui"] floating enable border pixel 2
  219. for_window [class="qTox"] floating enable border pixel 2
  220.  
  221. ###################################
  222. # My Shortcuts
  223. ###################################
  224. bindsym F7 exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound
  225. bindsym F6 exec --no-startup-id pactl set-sink-volume 0 -5% #lower volume
  226. bindsym $mod+t exec sh -c '"/opt/tor-browser_en-US/Browser/start-tor-browser" --detach || ([ ! -x "/opt/tor-browser_en-US/Browser/start-tor-browser" ] && "$(dirname "$*")"/Browser/start-tor-browser --detach)' dummy %k
  227.  
  228.  
  229.  
  230.  
  231. ###################################
  232. # Start Up commands
  233. ###################################
  234.  
  235. # wallpaper
  236. exec_always feh --bg-scale /usr/share/backgrounds/wallpapers/Neon_Blurr.png
  237.  
  238.  
  239. # start dmenu (a program launcher)
  240. bindsym $mod+d exec dmenu_run -nb black -sb "#FF00CC" -fn "Sparkles" -sf "#00BFFF" -nf "#00BFFF"
  241.  
  242.  
  243. # Start i3bar to display a workspace bar (plus the system information i3status
  244. # finds out, if available)
  245. bar {
  246. status_command i3status
  247. height 15
  248. position bottom
  249. tray_padding 0
  250. font pango:Sparkles 8
  251. separator_symbol "|"
  252. workspace_buttons yes
  253. strip_workspace_numbers yes
  254.  
  255.  
  256.  
  257.  
  258. colors {
  259. background #000000
  260. separator #004E69
  261. statusline #ffffff
  262. # border background text
  263. focused_workspace #000000 #000000 #00BFFF
  264. inactive_workspace #000000 #000000 #004E69
  265. urgent_workspace $urgent-bg-color $urgent-bg-color $text-color
  266. binding_mode #2f343a #900000 #ffffff
  267.  
  268. }
  269.  
  270. }
  271.  
  272. # Compton
  273. exec compton -r 12 -o 0.75 -c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement