Advertisement
Guest User

13 config

a guest
Aug 29th, 2016
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.44 KB | None | 0 0
  1. # Set Some Modifiers
  2. set $mod Mod4
  3. # how does this do anything? it doesn't... you can't just hit the mod key....
  4. floating_modifier $mod
  5.  
  6. ##################
  7. # Default Stuffs #
  8. ##################
  9.  
  10. # Well... I mean.... I changed some stuff....
  11.  
  12. # kill focused window
  13. bindsym $mod+q kill
  14.  
  15. # change focus
  16. bindsym $mod+h focus left
  17. bindsym $mod+j focus down
  18. bindsym $mod+k focus up
  19. bindsym $mod+l focus right
  20.  
  21. # alternatively, you can use the cursor keys:
  22. bindsym $mod+Left focus left
  23. bindsym $mod+Down focus down
  24. bindsym $mod+Up focus up
  25. bindsym $mod+Right focus right
  26.  
  27. # move focused window
  28. bindsym $mod+Shift+h move left
  29. bindsym $mod+Shift+j move down
  30. bindsym $mod+Shift+k move up
  31. bindsym $mod+Shift+l move right
  32.  
  33. # alternatively, you can use the cursor keys:
  34. bindsym $mod+Shift+Left move left
  35. bindsym $mod+Shift+Down move down
  36. bindsym $mod+Shift+Up move up
  37. bindsym $mod+Shift+Right move right
  38.  
  39. # split in horizontal orientation
  40. bindsym $mod+g split h
  41.  
  42. # split in vertical orientation
  43. bindsym $mod+v split v
  44.  
  45. # enter fullscreen mode for the focused container
  46. bindsym $mod+f fullscreen
  47.  
  48. # change container layout (stacked, tabbed, toggle split)
  49. bindsym $mod+s layout stacking
  50. bindsym $mod+w layout tabbed
  51. bindsym $mod+e layout toggle split
  52.  
  53. # toggle tiling / floating
  54. bindsym $mod+space floating toggle
  55.  
  56. # change focus between tiling / floating windows
  57. bindsym $mod+mod1+space focus mode_toggle
  58.  
  59. # focus the parent container
  60. bindsym $mod+a focus parent
  61.  
  62. # focus the child container
  63. #bindsym $mod+d focus child
  64.  
  65. #setting workspaces
  66. ###Number Row
  67. set $ws0 0BS
  68. set $ws1 1 web
  69. set $ws2 2 work
  70. set $ws3 3 media
  71. set $ws4 4
  72. set $ws5 5
  73. set $ws6 6
  74. set $ws7 7
  75. set $ws8 8
  76. set $ws9 9
  77. set $ws10 10
  78. ###Numberpad
  79. set $wsKP_1 K1
  80. set $wsKP_2 K2
  81. set $wsKP_3 K3
  82. set $wsKP_4 K4
  83. set $wsKP_5 K5
  84. set $wsKP_6 K6
  85. set $wsKP_7 K7
  86. set $wsKP_8 K8
  87. set $wsKP_9 K9
  88. set $wsKP_0 K0
  89.  
  90. # switch to workspace
  91. ###Number Row
  92. bindsym $mod+1 workspace $ws1
  93. bindsym $mod+2 workspace $ws2
  94. bindsym $mod+3 workspace $ws3
  95. bindsym $mod+4 workspace $ws4
  96. bindsym $mod+5 workspace $ws5
  97. bindsym $mod+6 workspace $ws6
  98. bindsym $mod+7 workspace $ws7
  99. bindsym $mod+8 workspace $ws8
  100. bindsym $mod+9 workspace $ws9
  101. bindsym $mod+0 workspace $ws10
  102. bindsym $mod+grave workspace $ws0
  103. bindsym $mod+Alt+grave workspace $ws-1
  104. ###Numberpad
  105. bindsym $mod+KP_1 workspace $wsKP_1
  106. bindsym $mod+KP_2 workspace $wsKP_2
  107. bindsym $mod+KP_3 workspace $wsKP_3
  108. bindsym $mod+KP_4 workspace $wsKP_4
  109. bindsym $mod+KP_5 workspace $wsKP_5
  110. bindsym $mod+KP_6 workspace $wsKP_6
  111. bindsym $mod+KP_7 workspace $wsKP_7
  112. bindsym $mod+KP_8 workspace $wsKP_8
  113. bindsym $mod+KP_9 workspace $wsKP_9
  114. bindsym $mod+KP_0 workspace $wsKP_0
  115.  
  116. # move focused container to workspace
  117. ###Number Row
  118. bindsym $mod+Shift+1 move container to workspace $ws1
  119. bindsym $mod+Shift+2 move container to workspace $ws2
  120. bindsym $mod+Shift+3 move container to workspace $ws3
  121. bindsym $mod+Shift+4 move container to workspace $ws4
  122. bindsym $mod+Shift+5 move container to workspace $ws5
  123. bindsym $mod+Shift+6 move container to workspace $ws6
  124. bindsym $mod+Shift+7 move container to workspace $ws7
  125. bindsym $mod+Shift+8 move container to workspace $ws8
  126. bindsym $mod+Shift+9 move container to workspace $ws9
  127. bindsym $mod+Shift+0 move container to workspace $ws10
  128. bindsym $mod+Shift+grave move container to workspace $ws0
  129. bindsym $mod+Shift+Alt+grave move container to workspace $ws-1
  130. ###Numberpad
  131. bindsym $mod+Shift+KP_1 move container to workspace $wsKP_1
  132. bindsym $mod+Shift+KP_2 move container to workspace $wsKP_2
  133. bindsym $mod+Shift+KP_3 move container to workspace $wsKP_3
  134. bindsym $mod+Shift+KP_4 move container to workspace $wsKP_4
  135. bindsym $mod+Shift+KP_5 move container to workspace $wsKP_5
  136. bindsym $mod+Shift+KP_6 move container to workspace $wsKP_6
  137. bindsym $mod+Shift+KP_7 move container to workspace $wsKP_7
  138. bindsym $mod+Shift+KP_8 move container to workspace $wsKP_8
  139. bindsym $mod+Shift+KP_9 move container to workspace $wsKP_9
  140. bindsym $mod+Shift+KP_0 move container to workspace $wsKP_0
  141.  
  142. bindsym $mod+Mod1+Right workspace next
  143. bindsym $mod+Mod1+Left workspace prev
  144.  
  145.  
  146. #bindsym $mod+shift+` move container to workspace $thinking
  147. bindsym $mod+x move workspace to output right
  148.  
  149. # reload the configuration file
  150. bindsym $mod+Shift+c reload
  151. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  152. bindsym $mod+Shift+r restart
  153. # exit i3 (logs you out of your X session)
  154. 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'"
  155.  
  156. # Note to self: learn to use modes cause they're freaking sweet
  157. # resize window (you can also use the mouse for that)
  158. mode "resize" {
  159. # These bindings trigger as soon as you enter the resize mode
  160.  
  161. # Pressing left will shrink the window’s width.
  162. # Pressing right will grow the window’s width.
  163. # Pressing up will shrink the window’s height.
  164. # Pressing down will grow the window’s height.
  165. #these were all set to 10
  166. bindsym h resize shrink width 5 px or 5 ppt
  167. bindsym j resize grow height 5 px or 5 ppt
  168. bindsym k resize shrink height 5 px or 5 ppt
  169. bindsym l resize grow width 5 px or 5 ppt
  170. #for some reason the px values were set to 20 and the other to 10
  171. # same bindings, but for the arrow keys
  172. bindsym Left resize shrink width 5 px or 5 ppt
  173. bindsym Down resize grow height 5 px or 5 ppt
  174. bindsym Up resize shrink height 5 px or 5 ppt
  175. bindsym Right resize grow width 5 px or 5 ppt
  176.  
  177. # back to normal: Enter or Escape
  178. bindsym Return mode "default"
  179. bindsym Escape mode "default"
  180. }
  181.  
  182. bindsym $mod+r mode "resize"
  183. #######################################
  184. # Startup Applications / Matt Daemons #
  185. #######################################
  186. #exec --no-startup-id nm-applet
  187. exec --no-startup-id compton --config ~/.config/compton.conf -CGb -d :0
  188. exec --no-startup-id redshift -l 41.154426:-81.333052
  189. #exec --no-startup-id light-locker --lock-on-suspend
  190. #############################
  191. # Window Properties Setting #
  192. #############################
  193. ###by class
  194. for_window [class="Qalculate"] floating enable
  195. for_window [class="floater"] floating enable
  196. # This was getting kind of annoying, but just in case the new way is even worse...
  197. #for_window [class="Nvidia-settings"] floating enable
  198. for_window [class="Eog"] floating enable
  199. for_window [class="feh"] floating enable
  200. for_window [class="Gtk-recordmydesktop"] floating enable
  201. for_window [class="Lxappearance"] floating enable
  202. ###by window role (cheatsy doodles)
  203. for_window [window_role="floatterm"] floating enable
  204.  
  205. ###by title (WM_NAME)
  206. for_window [title="Event Tester"] floating enable
  207. for_window [title=".* - Chat"] floating enable
  208. for_window [title="floater"] floating enable
  209. for_window [title="Terminator Preferences"] floating enable
  210.  
  211. ###by type
  212. for_window [window_type=normal] border pixel 3
  213.  
  214. # Workspace Assignments
  215. assign [class="Steam"] $ws7
  216. assign [title="OpenGL"] $ws7
  217. assign [class="Spotify"] $ws8
  218. #####################
  219. # Execution Hotkeys #
  220. #####################
  221.  
  222.  
  223. ### Open Programs
  224. bindsym $mod+Return exec gnome-terminal
  225. bindsym $mod+Shift+Return exec gnome-terminal --role="floatterm" --geometry=
  226. bindsym $mod+Shift+T exec thunar --class floater
  227. #bindsym $mod+d exec dmenu_run -fn 'Hack-Regular:size=10:antialias=true'
  228. #bindsym $mod+Tab exec lighthouse | sh
  229. #bindsym $mod+d exec "rofi -show run -lines 9 -color-normal '#7696AF,#E4B2A9,#7696AF,#E4B2A9,#7696AF' -color-window '#7696AF,#454545' -eh 2 -width 100 -fullscreen -padding 200 -opacity 90 -bw 0 -font 'Hack 28'-rnow"
  230. bindsym $mod+d exec "rofi -show run -lines 9 -color-normal '#7696AF,#E4B2A9,#7696AF,#E4B2A9,#7696AF' -color-window '#7696AF,#454545' -eh 2 -width 100 -fullscreen -padding 200 -opacity 90 -bw 0 -font 'Hack 28' -rnow"
  231. bindsym $mod+n exec sudo nvidia-settings --class floater
  232. bindsym $mod+Shift+n exec /home/nick/.bin/vibrance
  233. bindsym $mod+slash exec google-chrome-stable
  234. bindsym $mod+Shift+p exec pavucontrol --class floater
  235. bindsym $mod+p exec pavucontrol
  236. bindsym $mod+t exec thunar
  237. #bindsym Print exec maim ~/$(date +%m-%d_%H%M%S).jpg
  238. bindsym $mod+shift+o exec /usr/local/bin/lock -p
  239.  
  240. ### Media Keys
  241. ## From when I was a man of honor
  242. bindsym XF86AudioRaiseVolume exec "amixer -q sset Master,0 5%+ unmute"
  243. bindsym XF86AudioLowerVolume exec "amixer -q sset Master,0 5%- unmute"
  244. bindsym XF86AudioMute exec "amixer -q sset Master,0 toggle"
  245. #bindsym XF86AudioMute exec "pactl set-sink-mute 0 toggle"
  246. #bindsym XF86AudioRaiseVolume exec "pactl set-sink-volume 0 +5%"
  247. #bindsym XF86AudioLowerVolume exec "pactl set-sink-volume 0 -5%"
  248.  
  249. ####################
  250. # Window Modifiers #
  251. ####################
  252. ### For Floating windows
  253. # This one is pretty cool. If you've got a fullscreen video
  254. # this will make it a floating window preset to 1280x720 (kinda... you'll see)
  255. # hold shift when resizing to keep proportions
  256. bindsym $mod+y fullscreen disable; floating enable; resize set 1275 720;
  257. exec --no-startup-id /home/nick/.bin/nvidia_fan_and_power.sh & disown
  258. exec --no-startup-id /home/nick/.bin/TB
  259. bindsym XF86Calculator exec qalculate
  260. bindsym Print exec maim ~/$(date +%m-%d_%H%M%S).jpg
  261. #######################
  262. # I prefer fried rice #
  263. #######################
  264.  
  265. exec --no-startup-id "feh --bg-fill /home/nick/.config/i3/theme/background.jpg"
  266. font pango:Hack,FontAwesome 14
  267. #gaps inner 10
  268. #gaps outer 15
  269. hide_edge_borders none
  270. for_window [class="^.*"] border pixel 3
  271. popup_during_fullscreen smart
  272.  
  273.  
  274. #############################
  275. # Bar! But not the fun kind #
  276. #############################
  277. bar {
  278. font pango:Hack,FontAwesome 14
  279. position bottom
  280. status_command i3status -c ~/.config/i3/theme/i3status.conf
  281.  
  282. colors {
  283. background #1ABC9C
  284. statusline #2839DF
  285. separator #1ABC9C
  286.  
  287. # border› bckgrnd›textcol
  288. focused_workspace #1ABC9C #1ABC9C #AA2982
  289. active_workspace #1ABC9C #1ABC9C #2839DF
  290. inactive_workspace #1ABC9C #1ABC9C #FFE6DB
  291. urgent_workspace #ffffff #000000 #ffffff
  292. }
  293.  
  294. }
  295.  
  296.  
  297. ##########
  298. # Colors #
  299. ##########
  300.  
  301. # class border backgr. text indicator child_border
  302.  
  303. client.focused #426180 #9962DC #ffffff #7DAEAE
  304. client.focused_inactive #A0A8AA #6297DC #ffffff #426180
  305. client.unfocused #A0A8AA #A0A8AA #888888 #58615e
  306. client.urgent #2f343a #900000 #ffffff #900000
  307. client.placeholder #000000 #0c0c0c #ffffff #000000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement