config 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  1. # solarized light
  2. set $baseA3 #fdf6e3
  3. set $baseA2 #eee8d5
  4. set $baseA1 #93a1a1
  5. set $baseA0 #839496
  6. set $baseB0 #657b83
  7. set $baseB1 #586e75
  8. set $baseB2 #073642
  9. set $baseB3 #002b36
  10. set $custom #e1cab3
  11. set_from_resource $color15_i3wmthemer color15
  12. set_from_resource $color14_i3wmthemer color14
  13. set_from_resource $color13_i3wmthemer color13
  14. set_from_resource $color12_i3wmthemer color12
  15. set_from_resource $color11_i3wmthemer color11
  16. set_from_resource $color10_i3wmthemer color10
  17. set_from_resource $color09_i3wmthemer color9
  18. set_from_resource $color08_i3wmthemer color8
  19. set_from_resource $color07_i3wmthemer color7
  20. set_from_resource $color06_i3wmthemer color6
  21. set_from_resource $color05_i3wmthemer color5
  22. set_from_resource $color04_i3wmthemer color4
  23. set_from_resource $color03_i3wmthemer color3
  24. set_from_resource $color02_i3wmthemer color2
  25. set_from_resource $color01_i3wmthemer color1
  26. set_from_resource $color00_i3wmthemer color0
  27. set_from_resource $foreground_i3wmthemer foreground
  28. set_from_resource $background_i3wmthemer background
  29. # from https://github.com/Airblader/dotfiles-manjaro/blob/master/.i3/config
  30. set_from_resource $darkred color1 #000000
  31. set_from_resource $red color9 #000000
  32. set_from_resource $darkgreen color2 #000000
  33. set_from_resource $green color10 #000000
  34. set_from_resource $darkyellow color3 #000000
  35. set_from_resource $yellow color11 #000000
  36. set_from_resource $darkblue color4 #000000
  37. set_from_resource $blue color12 #000000
  38. set_from_resource $darkmagenta color5 #000000
  39. set_from_resource $magenta color13 #000000
  40. set_from_resource $darkcyan color6 #000000
  41. set_from_resource $cyan color14 #000000
  42. set_from_resource $darkwhite color7 #000000
  43. set_from_resource $white color15 #000000
  44. # Use custom colors for black
  45. set $black #282828
  46. set $darkblack #1d2021
  47. set $transparent #00000000
  48. set $height 34
  49. set $ws1 "1:  "
  50. set $ws2 "2:  "
  51. set $ws3 "3:  "
  52. set $ws4 "4:  "
  53. set $ws5 "5:  "
  54. set $ws6 "6:  "
  55. set $ws7 "7:  "
  56. set $ws8 "8:  "
  57. set $ws9 "9:  "
  58. set $ws10 "10:  "
  59. #set $default_gaps_inner 0
  60. #set $default_gaps_outer 0
  61. #gaps inner $default_gaps_inner
  62. #gaps outer $default_gaps_outer
  63. workspace $ws1 gaps inner 0
  64. workspace $ws1 gaps outer 0
  65. workspace $ws9 gaps inner 0
  66. workspace $ws9 gaps outer 0
  67. workspace $ws10 gaps inner 0
  68. workspace $ws10 gaps outer 0
  69. #workspace_auto_back_and_forth yes
  70. force_display_urgency_hint 0 ms
  71. focus_on_window_activation urgent
  72. floating_minimum_size -1 x -1
  73. floating_maximum_size -1 x -1
  74. font pango:Hack, FontAwesome 12
  75. # dark
  76. # # BORDER BACKGROUND TEXT INDICATOR CHILD_BORDER
  77. # client.focused $black $black $white $darkblack $darkblack
  78. # client.unfocused $black $black $darkwhite $darkblack $darkblack
  79. # client.focused_inactive $black $black $white $darkblack $darkblack
  80. # client.urgent $darkred $darkred $black $darkred $darkred
  81. # client.background $black
  82. # solarized-light
  83. # clientclass border backgr. text indicator
  84. client.focused $green $green $baseB3 $blue
  85. client.focused_inactive $cyan $cyan $baseB2 $violet
  86. client.unfocused $baseA2 $baseA2 $baseB1 $baseA1
  87. #client.urgent $orange $orange $baseB3 $red
  88. client.urgent $yellow $yellow $baseB3 $orange
  89. client.background #fdf6e3
  90. bindsym $mod+d exec --no-startup-id zsh -c 'rofi -matching fuzzy -show run '
  91. #bindsym $mod+Tab workspace back_and_forth
  92. bindsym $mod+Shift+minus move scratchpad
  93. bindsym $mod+Shift+plus scratchpad show
  94. set $mode_gaps gaps
  95. set $mode_gaps_outer outer gaps
  96. set $mode_gaps_inner inner gaps
  97. bindsym $mod+Shift+g mode "$mode_gaps"
  98. mode "$mode_gaps" {
  99. bindsym o mode "$mode_gaps_outer"
  100. bindsym i mode "$mode_gaps_inner"
  101. bindsym 0 mode "default", exec --no-startup-id i3-msg "gaps inner current set 0" && i3-msg "gaps outer current set 0"
  102. bindsym d mode "default", exec --no-startup-id i3-msg "gaps inner current set $default_gaps_inner" && i3-msg "gaps outer current set $default_gaps_outer"
  103. bindsym Return mode "default"
  104. bindsym Escape mode "default"
  105. }
  106. mode "$mode_gaps_inner" {
  107. bindsym plus gaps inner current plus 5
  108. bindsym minus gaps inner current minus 5
  109. bindsym 0 mode "default", gaps inner current set 0
  110. bindsym d mode "default", gaps inner current set $default_gaps_inner
  111. bindsym Shift+plus gaps inner all plus 5
  112. bindsym Shift+minus gaps inner all minus 5
  113. bindsym Shift+0 mode "default", gaps inner all set 0
  114. bindsym Shift+d mode "default", gaps inner all set $default_gaps_inner
  115. bindsym Return mode "default"
  116. bindsym Escape mode "default"
  117. }
  118. mode "$mode_gaps_outer" {
  119. bindsym plus gaps outer current plus 5
  120. bindsym minus gaps outer current minus 5
  121. bindsym 0 mode "default", gaps outer current set 0
  122. bindsym d mode "default", gaps outer current set $default_gaps_outer
  123. bindsym Shift+plus gaps outer all plus 5
  124. bindsym Shift+minus gaps outer all minus 5
  125. bindsym Shift+0 mode "default", gaps outer all set 0
  126. bindsym Shift+d mode "default", gaps outer all set $default_gaps_outer
  127. bindsym Return mode "default"
  128. bindsym Escape mode "default"
  129. }
  130. # fix graphics glitch
  131. new_window none
  132. #for_window [class=(?i)termite] border pixel 3
  133. for_window [window_role="pop-up"] floating enable
  134. for_window [window_role="bubble"] floating enable
  135. for_window [window_role="task_dialog"] floating enable
  136. for_window [window_role="Preferences"] floating enable
  137. for_window [window_type="dialog"] floating enable
  138. for_window [window_type="menu"] floating enable
  139. for_window [class="(?i)gsimplecal"] floating enable, move position mouse, move down $height px
  140. for_window [class="(?i)qemu-system"] floating enable
  141. #for_window [class="(?i)VirtualBox" title="(?i)Manager"] floating enable
  142. for_window [class="(?i)blueman"] floating enable
  143. #for_window [instance="sun-awt-X11-XFramePeer"] floating enable
  144. for_window [instance="__scratchpad"] floating enable
  145. for_window [instance="__nmtui"] floating enable
  146. for_window [class="(?i)recordmydesktop"] floating enable
  147. for_window [class="(?i)pavucontrol"] floating enable, move position mouse
  148. for_window [class="(?i)pavucontrol" instance="pavucontrol-bar"] move down $height px
  149. #assign [class="(?i)chrome"] $ws1
  150. assign [class="(?i)eclipse" window_type="splash"] $ws3
  151. assign [class="(?i)eclipse" window_type="normal"] $ws3
  152. assign [class="(?i)thunderbird"] $ws9
  153. ## MINE
  154. # i3 config file (v4)
  155. #
  156. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  157. # exec --no-startup-id /usr/lib/gnome-session/gnome-session/binary
  158. set $mod Mod4
  159. # Use Mouse+$mod to drag floating windows to their wanted position
  160. floating_modifier $mod
  161. # start a terminal
  162. bindsym $mod+Return exec gnome-terminal
  163. # kill focused window
  164. bindsym $mod+Shift+q kill
  165. # change focus
  166. bindsym $mod+h focus left
  167. bindsym $mod+j focus down
  168. bindsym $mod+k focus up
  169. bindsym $mod+l focus right
  170. # alternatively, you can use the cursor keys:
  171. bindsym $mod+Left focus left
  172. bindsym $mod+Down focus down
  173. bindsym $mod+Up focus up
  174. bindsym $mod+Right focus right
  175. # move focused window
  176. bindsym $mod+Shift+h move left
  177. bindsym $mod+Shift+j move down
  178. bindsym $mod+Shift+k move up
  179. bindsym $mod+Shift+l move right
  180. # alternatively, you can use the cursor keys:
  181. bindsym $mod+Shift+Left move left
  182. bindsym $mod+Shift+Down move down
  183. bindsym $mod+Shift+Up move up
  184. bindsym $mod+Shift+Right move right
  185. # split in horizontal orientation
  186. bindsym $mod+g split h
  187. # split in vertical orientation
  188. bindsym $mod+v split v
  189. # enter fullscreen mode for the focused container
  190. bindsym $mod+Shift+f fullscreen toggle
  191. # change container layout (stacked, tabbed, toggle split)
  192. bindsym $mod+s layout stacking
  193. bindsym $mod+q layout tabbed
  194. bindsym $mod+e layout toggle split
  195. # toggle tiling / floating
  196. bindsym $mod+Shift+space floating toggle
  197. # change focus between tiling / floating windows
  198. bindsym $mod+space focus mode_toggle
  199. # focus the parent container
  200. bindsym $mod+a focus parent
  201. # focus the child container
  202. #bindsym $mod+d focus child
  203. # switch to workspace
  204. bindsym $mod+1 workspace 1
  205. bindsym $mod+2 workspace 2
  206. bindsym $mod+3 workspace 3
  207. bindsym $mod+4 workspace 4
  208. bindsym $mod+5 workspace 5
  209. bindsym $mod+6 workspace 6
  210. bindsym $mod+7 workspace 7
  211. bindsym $mod+8 workspace 8
  212. bindsym $mod+9 workspace 9
  213. bindsym $mod+0 workspace 10
  214. bindsym $mod+Tab workspace next
  215. bindsym $mod+Shift+Tab workspace prev
  216. # move focused container to workspace
  217. bindsym $mod+Shift+1 move container to workspace 1
  218. bindsym $mod+Shift+2 move container to workspace 2
  219. bindsym $mod+Shift+3 move container to workspace 3
  220. bindsym $mod+Shift+4 move container to workspace 4
  221. bindsym $mod+Shift+5 move container to workspace 5
  222. bindsym $mod+Shift+6 move container to workspace 6
  223. bindsym $mod+Shift+7 move container to workspace 7
  224. bindsym $mod+Shift+8 move container to workspace 8
  225. bindsym $mod+Shift+9 move container to workspace 9
  226. bindsym $mod+Shift+0 move container to workspace 10
  227. # reload the configuration file
  228. bindsym $mod+Shift+c reload
  229. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  230. bindsym $mod+Shift+r restart
  231. # power/lock options
  232. set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
  233. mode "$mode_system" {
  234. bindsym l exec --no-startup-id ~/.i3/i3exit lock, mode "default"
  235. bindsym e exec --no-startup-id ~/.i3/i3exit logout, mode "default"
  236. bindsym s exec --no-startup-id ~/.i3/i3exit suspend, mode "default"
  237. bindsym h exec --no-startup-id ~/.i3/i3exit hibernate, mode "default"
  238. bindsym r exec --no-startup-id ~/.i3/i3exit reboot, mode "default"
  239. bindsym Shift+s exec --no-startup-id ~/.i3/i3exit shutdown, mode "default"
  240. # back to normal: Enter or Escape
  241. bindsym Return mode "default"
  242. bindsym Escape mode "default"
  243. }
  244. bindsym $mod+Shift+e mode "$mode_system"
  245. # exit i3 (logs you out of your X session)
  246. #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'"
  247. # resize window (you can also use the mouse for that)
  248. mode "resize" {
  249. # These bindings trigger as soon as you enter the resize mode
  250. # Pressing left will shrink the window’s width.
  251. # Pressing right will grow the window’s width.
  252. # Pressing up will shrink the window’s height.
  253. # Pressing down will grow the window’s height.
  254. bindsym h resize shrink width 10 px or 10 ppt
  255. bindsym j resize grow height 10 px or 10 ppt
  256. bindsym k resize shrink height 10 px or 10 ppt
  257. bindsym l resize grow width 10 px or 10 ppt
  258. # same bindings, but for the arrow keys
  259. bindsym Left resize shrink width 10 px or 10 ppt
  260. bindsym Down resize grow height 10 px or 10 ppt
  261. bindsym Up resize shrink height 10 px or 10 ppt
  262. bindsym Right resize grow width 10 px or 10 ppt
  263. # back to normal: Enter or Escape
  264. bindsym Return mode "default"
  265. bindsym Escape mode "default"
  266. }
  267. bindsym $mod+r mode "resize"
  268. # i3bar likes primary output
  269. #exec --no-startup-id xrandr --output eDP1 --primary
  270. # Start i3bar to display a workspace bar (plus the system information i3status
  271. # finds out, if available)
  272. bar {
  273. i3bar_command i3bar
  274. #font pango:Hack, FontAwesome 11
  275. font pango:DejaVu Sans Mono 12
  276. #status_command i3status -c ~/.i3/i3status
  277. status_command py3status -c ~/.i3/i3status
  278. #tray_output primary
  279. # solarized-light
  280. colors {
  281. # solarized (clean)
  282. ###################
  283. separator $blue
  284. background $baseA3
  285. statusline $baseB2
  286. # workclass border backgr. text
  287. focused_workspace $green $green $baseA3
  288. active_workspace $cyan $cyan $baseA2
  289. inactive_workspace $baseA2 $baseA2 $baseB1
  290. urgent_workspace $orange $orange $baseB3
  291. #urgent_workspace $yellow $yellow $baseB3
  292. }
  293. # dark
  294. # colors {
  295. # statusline #FFFFFF
  296. # background $black
  297. # separator $transparent
  298. #
  299. # # BORDER BACKGROUND TEXT
  300. # focused_workspace $transparent $transparent #FFFFFF
  301. # inactive_workspace $transparent $transparent $darkred
  302. # active_workspace $transparent $transparent $darkred
  303. # urgent_workspace $darkred $darkred $transparent
  304. # binding_mode $darkred $darkred $transparent
  305. # }
  306. }
  307. # applets
  308. exec --no-startup-id nm-applet
  309. #exec --no-startup-id pasystray
  310. exec --no-startup-id owncloud
  311. exec --no-startup-id xfce4-clipman
  312. # default screen brightness
  313. exec --no-startup-id xbacklight -set 12
  314. # Screen brightness controls
  315. bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 5 # increase screen brightness
  316. bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 5 # decrease screen brightness
  317. # Touchpad controls
  318. bindsym XF86TouchpadToggle exec --no-startup-id /home/josh/.i3/toggletouchpad.sh # toggle touchpad
  319. # Pulse Audio controls
  320. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume alsa_output.pci-0000_00_1f.3.analog-stereo +5% #increase sound volume
  321. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume alsa_output.pci-0000_00_1f.3.analog-stereo -5% #decrease sound volume
  322. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute alsa_output.pci-0000_00_1f.3.analog-stereo toggle # mute sound
  323. # Browser
  324. bindsym $mod+w exec firefox-nightly
  325. # Background
  326. exec --no-startup-id feh --bg-scale ~/Owncloud/Backgrounds/gnulinux_yinyang_wallpaper_by_dablim-d71ljd7.png
  327. # Emacs daemon
  328. # exec --no-startup-id emacs --daemon
  329. # (Now starting through systemd)
  330. # File browser
  331. bindsym $mod+f exec --no-startup-id nautilus
  332. # Compton
  333. bindsym $mod+c exec --no-startup-id .i3/togglecompton.sh
  334. exec --no-startup-id compton -bCG
  335. # redshift
  336. exec --no-startup-id redshift -t 6500:3500
  337. # screenshots
  338. bindsym --release Control+Shift+4 exec --no-startup-id xfce4-screenshooter -r -s ~/Pictures
  339. bindsym Control+Shift+3 exec --no-startup-id xfce4-screenshooter -f -s ~/Pictures
  340. bindsym Control+Shift+2 exec --no-startup-id xfce4-screenshooter -w -s ~/Pictures
  341. # set menu to super
  342. exec --no-startup-id xmodmap -e "keycode 135 = Super_R"
  343. # disable touchpad while typing
  344. exec --no-startup-id syndaemon -i .2 -d
  345. # border size
  346. new_window pixel 3
  347. for_window [class="Gsimplecal"] floating enable
  348. for_window [class="Gsimplecal"] move absolute position 1625px 900px
  349. # exec --no-startup-id dbus-send \
  350. # --session \
  351. # --print-reply=literal \
  352. # --dest=org.gnome.SessionManager \
  353. # "/org/gnome/SessionManager" \
  354. # org.gnome.SessionManager.RegisterClient \
  355. # "string:i3" \
  356. # "string:$DESKTOP_AUTOSTART_ID"