config.purple 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. # i3 config file (v4)
  2. #
  3. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  4. exec --no-startup-id /usr/bin/gnome-settings-daemon
  5. set $mod Mod4
  6. # Font for window titles. Will also be used by the bar unless a different font
  7. # is used in the bar {} block below.
  8. #font pango:monospace 8
  9. font pango:Ubuntu Mono 10
  10. #font pango:Droid Sans 10
  11. #font pango:Adwaita 10
  12. #font pango:DejaVu Sans Mono 10
  13. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  14. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  15. #font pango:DejaVu Sans Mono 10
  16. # Before i3 v4.8, we used to recommend this one as the default:
  17. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  18. # The font above is very space-efficient, that is, it looks good, sharp and
  19. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  20. # X core fonts rendering does not support right-to-left and this being a bitmap
  21. # font, it doesn’t scale on retina/hidpi displays.
  22. # Use Mouse+$mod to drag floating windows to their wanted position
  23. floating_modifier $mod
  24. # start a terminal
  25. #bindsym $mod+Return exec i3-sensible-terminal
  26. bindsym $mod+Return exec gnome-terminal
  27. #bindsym $mod+Return exec xfce4-terminal
  28. # kill focused window
  29. bindsym $mod+Shift+q kill
  30. # start dmenu (a program launcher)
  31. #bindsym $mod+d exec PATH=$HOME/bin:$PATH dmenu_run
  32. # start rofi
  33. bindsym $mod+d exec ~/.config/i3/rofi.sh
  34. # There also is the (new) i3-dmenu-desktop which only displays applications
  35. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  36. # installed.
  37. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  38. # change focus
  39. bindsym $mod+h focus left
  40. bindsym $mod+j focus down
  41. bindsym $mod+k focus up
  42. bindsym $mod+l focus right
  43. # alternatively, you can use the cursor keys:
  44. bindsym $mod+Left focus left
  45. bindsym $mod+Down focus down
  46. bindsym $mod+Up focus up
  47. bindsym $mod+Right focus right
  48. # move focused window
  49. bindsym $mod+Shift+h move left
  50. bindsym $mod+Shift+j move down
  51. bindsym $mod+Shift+k move up
  52. bindsym $mod+Shift+l move right
  53. # alternatively, you can use the cursor keys:
  54. bindsym $mod+Shift+Left move left
  55. bindsym $mod+Shift+Down move down
  56. bindsym $mod+Shift+Up move up
  57. bindsym $mod+Shift+Right move right
  58. # split in horizontal orientation
  59. bindsym $mod+g split h
  60. # split in vertical orientation
  61. bindsym $mod+v split v
  62. # enter fullscreen mode for the focused container
  63. bindsym $mod+Shift+f fullscreen toggle
  64. # change container layout (stacked, tabbed, toggle split)
  65. bindsym $mod+s layout stacking
  66. bindsym $mod+q layout tabbed
  67. bindsym $mod+e layout toggle split
  68. # toggle tiling / floating
  69. bindsym $mod+Shift+space floating toggle
  70. # change focus between tiling / floating windows
  71. bindsym $mod+space focus mode_toggle
  72. # focus the parent container
  73. bindsym $mod+a focus parent
  74. # focus the child container
  75. #bindsym $mod+d focus child
  76. # switch to workspace
  77. bindsym $mod+1 workspace 1
  78. bindsym $mod+2 workspace 2
  79. bindsym $mod+3 workspace 3
  80. bindsym $mod+4 workspace 4
  81. bindsym $mod+5 workspace 5
  82. bindsym $mod+6 workspace 6
  83. bindsym $mod+7 workspace 7
  84. bindsym $mod+8 workspace 8
  85. bindsym $mod+9 workspace 9
  86. bindsym $mod+0 workspace 10
  87. # move focused container to workspace
  88. bindsym $mod+Shift+1 move container to workspace 1
  89. bindsym $mod+Shift+2 move container to workspace 2
  90. bindsym $mod+Shift+3 move container to workspace 3
  91. bindsym $mod+Shift+4 move container to workspace 4
  92. bindsym $mod+Shift+5 move container to workspace 5
  93. bindsym $mod+Shift+6 move container to workspace 6
  94. bindsym $mod+Shift+7 move container to workspace 7
  95. bindsym $mod+Shift+8 move container to workspace 8
  96. bindsym $mod+Shift+9 move container to workspace 9
  97. bindsym $mod+Shift+0 move container to workspace 10
  98. # reload the configuration file
  99. bindsym $mod+Shift+c reload
  100. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  101. bindsym $mod+Shift+r restart
  102. # power/lock options
  103. set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
  104. mode "$mode_system" {
  105. bindsym l exec --no-startup-id ~/.config/i3/i3exit lock, mode "default"
  106. bindsym e exec --no-startup-id ~/.config/i3/i3exit logout, mode "default"
  107. bindsym s exec --no-startup-id ~/.config/i3/i3exit suspend, mode "default"
  108. bindsym h exec --no-startup-id ~/.config/i3/i3exit hibernate, mode "default"
  109. bindsym r exec --no-startup-id ~/.config/i3/i3exit reboot, mode "default"
  110. bindsym Shift+s exec --no-startup-id ~/.config/i3/i3exit shutdown, mode "default"
  111. # back to normal: Enter or Escape
  112. bindsym Return mode "default"
  113. bindsym Escape mode "default"
  114. }
  115. bindsym $mod+Shift+e mode "$mode_system"
  116. # exit i3 (logs you out of your X session)
  117. #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'"
  118. # resize window (you can also use the mouse for that)
  119. mode "resize" {
  120. # These bindings trigger as soon as you enter the resize mode
  121. # Pressing left will shrink the window’s width.
  122. # Pressing right will grow the window’s width.
  123. # Pressing up will shrink the window’s height.
  124. # Pressing down will grow the window’s height.
  125. bindsym h resize shrink width 10 px or 10 ppt
  126. bindsym j resize grow height 10 px or 10 ppt
  127. bindsym k resize shrink height 10 px or 10 ppt
  128. bindsym l resize grow width 10 px or 10 ppt
  129. # same bindings, but for the arrow keys
  130. bindsym Left resize shrink width 10 px or 10 ppt
  131. bindsym Down resize grow height 10 px or 10 ppt
  132. bindsym Up resize shrink height 10 px or 10 ppt
  133. bindsym Right resize grow width 10 px or 10 ppt
  134. # back to normal: Enter or Escape
  135. bindsym Return mode "default"
  136. bindsym Escape mode "default"
  137. }
  138. bindsym $mod+r mode "resize"
  139. # i3bar likes primary output
  140. #exec --no-startup-id xrandr --output eDP1 --primary
  141. # Start i3bar to display a workspace bar (plus the system information i3status
  142. # finds out, if available)
  143. bar {
  144. # transparency
  145. i3bar_command i3bar -t
  146. font pango:DejaVu Sans Mono 10
  147. #status_command i3status -c ~/.config/i3/i3status
  148. status_command py3status -c ~/.config/i3/i3status
  149. #tray_output primary
  150. colors {
  151. background #000000AA
  152. statusline #ffffff
  153. # Light purple (#E066FF)
  154. focused_workspace #FFFFFF #660080 #FFFFFF
  155. active_workspace #FFFFFF #660080 #FFFFFF
  156. inactive_workspace #333333 #222222 #FFFFFF
  157. urgent_workspace #2f343a #900000 #ffffff
  158. }
  159. }
  160. # applets
  161. exec --no-startup-id nm-applet
  162. exec --no-startup-id pasystray
  163. exec --no-startup-id owncloud
  164. exec --no-startup-id xfce4-clipman
  165. # default screen brightness
  166. exec --no-startup-id xbacklight -set 10
  167. # Screen brightness controls
  168. bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 5 # increase screen brightness
  169. bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 5 # decrease screen brightness
  170. #exec --no-startup-id xbacklight --set 25 # start at 25
  171. # Touchpad controls
  172. bindsym XF86TouchpadToggle exec --no-startup-id /home/josh/.config/i3/toggletouchpad.sh # toggle touchpad
  173. # Pulse Audio controls
  174. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo +5% #increase sound volume
  175. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo -5% #decrease sound volume
  176. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute alsa_output.pci-0000_00_1b.0.analog-stereo toggle # mute sound
  177. # Browser
  178. bindsym $mod+w exec firefox
  179. # Background
  180. exec --no-startup-id feh --bg-scale ~/Owncloud/Backgrounds/ram-purple.png
  181. # Thunar keybind
  182. bindsym $mod+f exec --no-startup-id thunar
  183. # Compton toggle keybind
  184. bindsym $mod+c exec --no-startup-id .config/i3/togglecompton.sh
  185. # compton
  186. # exec --no-startup-id compton -b -c --config .config/compton.conf -i .8 -e .8
  187. # redshift
  188. exec --no-startup-id redshift -t 6500:3500
  189. # screenshots
  190. bindsym Control+Shift+4 exec --no-startup-id xfce4-screenshooter -r -s ~/Pictures
  191. bindsym Control+Shift+3 exec --no-startup-id xfce4-screenshooter -f -s ~/Pictures
  192. bindsym Control+Shift+2 exec --no-startup-id xfce4-screenshooter -w -s ~/Pictures
  193. # bind caps lock to esc
  194. #exec --no-startup-id xmodmap -e "clear lock" #disable caps lock switch
  195. #exec --no-startup-id xmodmap -e "keysym Caps_Lock = Escape" #set caps_lock as escape
  196. # set menu to super
  197. exec --no-startup-id xmodmap -e "keycode 135 = Super_R"
  198. # border size
  199. new_window pixel 3
  200. # yellow
  201. #client.focused #4c7899 #285577 #ffffff #2e9ef4 #FFCC00
  202. # Dark purple (#660080)
  203. # Darker purple (#3d004d)
  204. client.focused #000000 #8f00b3 #ffffff #2e9ef4 #8f00b3
  205. client.unfocused #000000 #660080 #ffffff #2e9ef4 #660080
  206. client.focused_inactive #000000 #660080 #ffffff #2e9ef4 #660080
  207. # gaps - set window gap to 10
  208. gaps inner 10