Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.97 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 #A31867
  18. set $text-color #FF0099
  19. set $inactive-text-color #004E69
  20. set $urgent-bg-color #FF00CC
  21.  
  22.  
  23. # window colors
  24. # class border background text indicator child_border
  25. client.focused #00BFFF #000000 #FF0099 #00BFFF #00BFFF
  26.  
  27. client.unfocused #000000 #000000 #A31867 #000000 #FF0099
  28.  
  29. client.focused_inactive #000000 #000000 #A31867 #000000 #FF0099
  30.  
  31. client.urgent #FF0000 #000000 #A31867 #FF0099 #A31867
  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 1
  47. new_window pixel 1
  48. gaps inner 10
  49. gaps outer 1
  50. #smart_gaps on
  51.  
  52. # Back and forth workplace switching
  53. workspace_auto_back_and_forth yes
  54.  
  55. # Use Mouse+Mod to drag floating windows to their wanted position
  56. floating_modifier $mod
  57.  
  58. # resize window (you can also use the mouse for that)
  59. mode "resize" {
  60. # These bindings trigger as soon as you enter the resize mode
  61.  
  62. # Pressing left will shrink the window’s width.
  63. # Pressing right will grow the window’s width.
  64. # Pressing up will shrink the window’s height.
  65. # Pressing down will grow the window’s height.
  66. bindsym j resize shrink width 10 px or 10 ppt
  67. bindsym k resize grow height 10 px or 10 ppt
  68. bindsym l resize shrink height 10 px or 10 ppt
  69. bindsym semicolon resize grow width 10 px or 10 ppt
  70.  
  71. # same bindings, but for the arrow keys
  72. bindsym 113 resize shrink width 10 px or 10 ppt
  73. bindsym 116 resize grow height 10 px or 10 ppt
  74. bindsym 111 resize shrink height 10 px or 10 ppt
  75. bindsym 114 resize grow width 10 px or 10 ppt
  76.  
  77. # back to normal: Enter or Escape
  78. bindsym Return mode "default"
  79. bindsym Escape mode "default"
  80. bindsym $mod+r mode "default"
  81.  
  82. }
  83.  
  84. bindsym $mod+r mode "resize"
  85.  
  86.  
  87. ###################################
  88. # Keybindings
  89. ###################################
  90. # Mod1 = Super Key
  91. # Mod1 = alt, Mod4 = Masterkey
  92. set $mod Mod4
  93.  
  94. # start a terminal
  95. bindsym $mod+Return exec i3-sensible-terminal
  96.  
  97. # kill focused window
  98. bindsym $mod+Shift+P kill
  99.  
  100. # change focus
  101. bindsym $mod+j focus left
  102. bindsym $mod+k focus down
  103. bindsym $mod+l focus up
  104. bindsym $mod+semicolon focus right
  105.  
  106. # alternatively, you can use the cursor keys:
  107. bindsym $mod+Left focus left
  108. bindsym $mod+Down focus down
  109. bindsym $mod+Up focus up
  110. bindsym $mod+Right focus right
  111.  
  112. # move focused window
  113. bindsym $mod+Shift+J move left
  114. bindsym $mod+Shift+K move down
  115. bindsym $mod+Shift+L move up
  116. bindsym $mod+Shift+colon move right
  117.  
  118. # alternatively, you can use the cursor keys:
  119. bindsym $mod+Shift+Left move left
  120. bindsym $mod+Shift+Down move down
  121. bindsym $mod+Shift+Up move up
  122. bindsym $mod+Shift+Right move right
  123.  
  124. # split in horizontal orientation
  125. bindsym $mod+h split h
  126.  
  127. # split in vertical orientation
  128. bindsym $mod+v split v
  129.  
  130. # enter fullscreen mode for the focused container
  131. bindsym $mod+F11 fullscreen toggle
  132.  
  133. # change container layout (stacked, tabbed, default)
  134. bindsym $mod+s layout stacking
  135. bindsym $mod+w layout tabbed
  136. bindsym $mod+e layout default
  137.  
  138. # toggle tiling / floating
  139. bindsym $mod+Shift+space floating toggle
  140.  
  141. # change focus between tiling / floating windows
  142. bindsym $mod+space focus mode_toggle
  143.  
  144. # focus the parent container
  145. #bindsym $mod+a focus parent
  146.  
  147. # focus the child container
  148. #bindcode $mod+d focus child
  149.  
  150. # reload the configuration file
  151. bindsym $mod+Shift+C reload
  152.  
  153. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  154. bindsym $mod+Shift+r restart
  155.  
  156. # exit i3 (logs you out of your X session)
  157. 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'"
  158.  
  159. # i3 lock
  160. exec --no-startup-id xautolock -t -time 5 -locker "i3lock -i /usr/share/backgrounds/wallpapers/HK_1.png"
  161.  
  162. bindsym $mod+shift+o exec i3lock -t -i /usr/share/backgrounds/wallpapers/HK_1.png --indicator -k --insidevercolor=00000000 --insidewrongcolor=FF000000 --ringcolor=FF009999 --linecolor=67C8FFFF --keyhlcolor=00FFEEE1 ringwrongcolor=FF0000FF --bshlcolor=00FFEEE1 --separatorcolor=FF009999 --verifcolor=FF009999 --wrongcolor=FF000066 --timecolor=FF009999 --timestr="%H:%M" --datecolor=FF009999 --veriftext="verifying…" --wrongtext="wrong!" --noinputtext="no input" --radius=100 --ring-width=5.0
  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 1:Main
  173. set $ws2 2:Programming
  174. set $ws3 3:Asocial
  175. set $ws4 4:Media
  176. set $ws5 5:Gaming
  177. set $ws6 6:VMs
  178. set $ws7 7:7
  179. set $ws8 8:8
  180. set $ws9 9:9
  181. set $ws10 10: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. # To find an application's window class:
  210. # run xprop in the terminal and then select second window class
  211. assign [class="Virt-manager"] $ws6
  212. assign [class="Pidgin"] $ws3
  213. assign [class="qTox"] $ws3
  214. assign [class="jetbrains-pycharm-ce"] $ws2
  215. assign [class="vlc"] $ws4
  216. assign [class="game"] $ws5
  217. assign [class="wesnoth"] $ws5
  218. assign [class="Minetest"] $ws5
  219. assign [class="scummvm"] $ws5
  220. assign [class="pyrogenesis"] $ws5
  221. assign [class="supertux2"] $ws5
  222.  
  223. # enable floating mode for selected windows
  224. for_window [class="Lxappearance"] floating enable border pixel 2
  225. for_window [class="Pidgin"] floating enable border pixel 2
  226. for_window [class="Tor Browser"] floating enable border pixel 2
  227. for_window [class="Mat-gui"] floating enable border pixel 2
  228. for_window [class="qTox"] floating enable border pixel 2
  229. for_window [class="firefox, Tor Browser"] floating enable border pixel 2
  230.  
  231. ###################################
  232. # Scratch pads
  233. ###################################
  234. ## utils
  235. # settings for dropdown
  236. for_window [instance="utils"] floating enable
  237. for_window [instance="utils"] resize set 625 400
  238. for_window [instance="utils"] move scratchpad
  239. for_window [instance="utils"] border pixel 2
  240. # start scratchpad
  241. exec --no-startup-id "urxvt -name utils -e tmux"
  242. # keybinding for sracthpad
  243. bindsym $mod+u [instance="utils"] scratchpad show; [instance="utils"] move position center
  244.  
  245. ## music
  246. # setting for music
  247. for_window [instance="music"] floating enable
  248. for_window [instance="music"] resize set 480 600
  249. for_window [instance="music"] move scratchpad
  250. for_window [instance="music"] border pixel 2
  251. # start music
  252. exec "urxvt -name music -hold -e bash -c 'tmux new-session ncmpcpp \; split-window -d vis \; resize-pane -D 15 \;'"
  253.  
  254. # keybinding for music
  255. bindsym $mod+m [instance="music"] scratchpad show; [instance="music"] move position center
  256.  
  257. ## code
  258. # setting for code
  259. for_window [instance="code"] floating enable
  260. for_window [instance="code"] resize set 625 400
  261. for_window [instance="code"] move scratchpad
  262. for_window [instance="code"] border pixel 2
  263. # start code
  264. exec --no-startup-id "urxvt -name code -e tmux new ipython"
  265. # keybinding for code
  266. bindsym $mod+c [instance="code"] scratchpad show; [instance="code"] move position center
  267.  
  268. ###################################
  269. # My Shortcuts
  270. ###################################
  271. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase volume
  272. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease volume
  273. bindsym $mod+F6 exec --no-startup-id pactl set-sink-mute 0 toggle
  274. bindsym XF86MonBrightnessDown exec --no-startup-id light -U 5 #decrease brightness
  275. bindsym XF86MonBrightnessUp exec --no-startup-id light -A 5 #increase brightness
  276. 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
  277. bindsym $mod+greater exec --no-startup-id mpc -q next
  278. bindsym $mod+less exec --no-startup-id mpc -q prev
  279. bindsym Pause exec --no-startup-id mpc -q toggle
  280. bindsym $mod+Menu exec --no-startup-id scrot -d 5 -q 100
  281. ###################################
  282. # Start Up commands
  283. ###################################
  284.  
  285. # wallpaper
  286. exec_always feh --bg-scale /usr/share/backgrounds/wallpapers/Neon_Pink_Street.png
  287.  
  288. # start dmenu (a program launcher)
  289. bindsym $mod+d exec dmenu_run -nb "#000000" -sb "#000000" -fn "Sparkles" -sf "#FF00CC" -nf "#00BFFF"
  290.  
  291.  
  292. # Start i3bar to display a workspace bar (plus the system information i3status
  293. # finds out, if available)
  294. bar {
  295. status_command i3status
  296. height 15
  297. position bottom
  298. tray_padding 0
  299. font pango:Sparkles 8
  300. separator_symbol "|"
  301. workspace_buttons yes
  302. strip_workspace_numbers yes
  303.  
  304.  
  305. colors {
  306. background #000000
  307. separator #FF1493
  308. statusline #00BFFF
  309. # border background text
  310. focused_workspace #000000 #000000 #00BFFF
  311. inactive_workspace #000000 #000000 #004E69
  312. urgent_workspace #FF0099 #000000 #004E69
  313. binding_mode #2f343a #900000 #ffffff
  314.  
  315. }
  316.  
  317. }
  318.  
  319.  
  320. # compton
  321. exec --no-startup-id compton
  322.  
  323. # dunst
  324. exec --no-startup-id dunst
  325.  
  326. # mpd
  327. exec --no-startup-id mpd
  328.  
  329. # xss-lock
  330. exec_always --no-startup-id xss-lock -- ~/.config/i3/lock.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement