Advertisement
Guest User

Untitled

a guest
Oct 11th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.57 KB | None | 0 0
  1. # This file has been auto-generated by i3-config-wizard(1). It
  2. # will not be overwritten, so edit it as you like.
  3. #
  4. # Should you change your keyboard layout some time, delete
  5. # this file and re-run i3-config-wizard(1).
  6. #
  7.  
  8. # i3 config file (v4)
  9. #
  10. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  11.  
  12. set $mod Mod4
  13.  
  14. # Font for window titles. Will also be used by the bar unless a different font
  15. # is used in the bar {} block below.
  16. font pango:SF Mono 9
  17.  
  18. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  19. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  20. #font pango:DejaVu Sans Mono 8
  21.  
  22. # Before i3 v4.8, we used to recommend this one as the default:
  23. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  24. # The font above is very space-efficient, that is, it looks good, sharp and
  25. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  26. # X core fonts rendering does not support right-to-left and this being a bitmap
  27. # font, it doesn’t scale on retina/hidpi displays.
  28.  
  29. # Use Mouse+$mod to drag floating windows to their wanted position
  30. floating_modifier $mod
  31.  
  32. # start a terminal
  33. bindsym $mod+Return exec termite
  34.  
  35. # Screenshots
  36. #bindsym $mod+Shift+s exec "/home/thedevkiller/./ScreenCloud-v1.4.0-x86_64.AppImage -c -f -s 'clipboard'"
  37.  
  38. # Open Rofi
  39. bindsym $mod+r exec "rofi -modi run,drun,window -show drun"
  40. bindsym $mod+Ctrl+space exec "rofi -modi run,drun,window -show run"
  41. bindsym $mod+space exec "rofi -modi run,drun,window -show window"
  42.  
  43. # kill focused window
  44. bindsym $mod+Shift+q kill
  45.  
  46. # start dmenu (a program launcher)
  47. #bindsym $mod+d exec dmenu_run
  48. # There also is the (new) i3-dmenu-desktop which only displays applications
  49. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  50. # installed.
  51. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  52.  
  53. # change focus
  54. bindsym $mod+j focus left
  55. bindsym $mod+k focus down
  56. bindsym $mod+l focus up
  57. bindsym $mod+semicolon focus right
  58.  
  59. # alternatively, you can use the cursor keys:
  60. bindsym $mod+Left focus left
  61. bindsym $mod+Down focus down
  62. bindsym $mod+Up focus up
  63. bindsym $mod+Right focus right
  64.  
  65. # move focused window
  66. bindsym $mod+Shift+j move left
  67. bindsym $mod+Shift+k move down
  68. bindsym $mod+Shift+l move up
  69. bindsym $mod+Shift+semicolon move right
  70.  
  71. # alternatively, you can use the cursor keys:
  72. bindsym $mod+Shift+Left move left
  73. bindsym $mod+Shift+Down move down
  74. bindsym $mod+Shift+Up move up
  75. bindsym $mod+Shift+Right move right
  76.  
  77. # split in horizontal orientation
  78. bindsym $mod+h split h
  79.  
  80. # split in vertical orientation
  81. bindsym $mod+v split v
  82.  
  83. # enter fullscreen mode for the focused container
  84. bindsym $mod+f fullscreen toggle
  85.  
  86. # change container layout (stacked, tabbed, toggle split)
  87. bindsym $mod+s layout stacking
  88. bindsym $mod+w layout tabbed
  89. bindsym $mod+e layout toggle split
  90.  
  91. # toggle tiling / floating
  92. bindsym $mod+Shift+space floating toggle
  93.  
  94. # No borders in fullscreen
  95. smart_borders on
  96.  
  97. #disable window tittlebars
  98. for_window [class="^.*"] border pixel 2
  99. new_window pixel 2
  100. new_float pixel 2
  101.  
  102. # Window borders
  103. default_border pixel 2
  104. default_floating_border none
  105.  
  106. # Colors
  107. set_from_resource $background background
  108. #set_from_resource $theme-active foreground
  109. set_from_resource $theme-inactive trueblack
  110. set $theme-active #27ae60
  111.  
  112. client.background $background
  113. client.focused $theme-active $theme-active $theme-inactive $theme-active $theme-active
  114. client.focused_inactive $theme-inactive $theme-inactive $theme-active $theme-active $theme-inactive
  115. client.unfocused $theme-inactive $theme-inactive $theme-active $theme-inactive $theme-inactive
  116.  
  117. # change focus between tiling / floating windows
  118. #bindsym $mod+space focus mode_toggle
  119.  
  120. # focus the parent container
  121. bindsym $mod+a focus parent
  122.  
  123. # focus the child container
  124. #bindsym $mod+d focus child
  125.  
  126. # Worspaces names
  127. set $ws1 "1 ﲵ"
  128. set $ws2 "2 "
  129. set $ws3 "3 ﭮ"
  130. set $ws4 "4"
  131. set $ws5 "5"
  132. set $ws6 "6"
  133. set $ws7 "7"
  134. set $ws8 "8"
  135. set $ws9 "9 ﮧ"
  136. set $ws10 "10 "
  137.  
  138. # switch to workspace
  139. bindsym $mod+1 workspace $ws1
  140. bindsym $mod+2 workspace $ws2
  141. bindsym $mod+3 workspace $ws3
  142. bindsym $mod+4 workspace $ws4
  143. bindsym $mod+5 workspace $ws5
  144. bindsym $mod+6 workspace $ws6
  145. bindsym $mod+7 workspace $ws7
  146. bindsym $mod+8 workspace $ws8
  147. bindsym $mod+9 workspace $ws9
  148. bindsym $mod+0 workspace $ws10
  149.  
  150. # move focused container to workspace
  151. bindsym $mod+Shift+1 move container to workspace $ws1
  152. bindsym $mod+Shift+2 move container to workspace $ws2
  153. bindsym $mod+Shift+3 move container to workspace $ws3
  154. bindsym $mod+Shift+4 move container to workspace $ws4
  155. bindsym $mod+Shift+5 move container to workspace $ws5
  156. bindsym $mod+Shift+6 move container to workspace $ws6
  157. bindsym $mod+Shift+7 move container to workspace $ws7
  158. bindsym $mod+Shift+8 move container to workspace $ws8
  159. bindsym $mod+Shift+9 move container to workspace $ws9
  160. bindsym $mod+Shift+0 move container to workspace $ws10
  161.  
  162. # toggle workspace screen
  163. bindsym $mod+Shift+t move workspace to output left
  164.  
  165. # reload the configuration file
  166. bindsym $mod+Shift+c reload
  167. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  168. bindsym $mod+Shift+r restart
  169. # exit i3 (logs you out of your X session)
  170. bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
  171.  
  172. # resize window (you can also use the mouse for that)
  173. mode "resize" {
  174. # These bindings trigger as soon as you enter the resize mode
  175.  
  176. # Pressing left will shrink the window’s width.
  177. # Pressing right will grow the window’s width.
  178. # Pressing up will shrink the window’s height.
  179. # Pressing down will grow the window’s height.
  180. bindsym j resize shrink width 10 px or 10 ppt
  181. bindsym k resize grow height 10 px or 10 ppt
  182. bindsym l resize shrink height 10 px or 10 ppt
  183. bindsym semicolon resize grow width 10 px or 10 ppt
  184.  
  185. # same bindings, but for the arrow keys
  186. bindsym $mod+Left resize shrink width 10 px or 10 ppt
  187. bindsym Down resize grow height 10 px or 10 ppt
  188. bindsym Up resize shrink height 10 px or 10 ppt
  189. bindsym Right resize grow width 10 px or 10 ppt
  190.  
  191. # back to normal: Enter or Escape
  192. bindsym Return mode "default"
  193. bindsym Escape mode "default"
  194. }
  195.  
  196. # Volume
  197. bindsym XF86AudioRaiseVolume exec amixer set Master 3%+
  198. bindsym XF86AudioLowerVolume exec amixer set Master 3%-
  199. bindsym XF86AudioMute exec pactl set-sink-mute 0 toggle
  200.  
  201. # Brightness
  202. bindsym XF86MonBrightnessUp exec "xbacklight -inc 10"
  203. bindsym XF86MonBrightnessDown exec "xbacklight -dec 10"
  204.  
  205. # Touchpad
  206. bindsym XF86TouchpadToggle exec /home/thedevkiller/.scripts/./toggle_touchpad
  207.  
  208. # Resize
  209. bindsym $mod+t mode "resize"
  210.  
  211. #Add gaps
  212. smart_gaps on
  213. gaps inner 15
  214.  
  215. ############################
  216. #=> Startup
  217. ############################
  218.  
  219. # Kill all opened environment apps
  220. exec_always --no-startup-id "killall -q sxhkd polybar nitrogen dunst"
  221.  
  222. # Walpaper
  223. exec_always --no-startup-id "nitrogen --restore"
  224.  
  225. # Compositor
  226. exec compton -b
  227.  
  228. # Notifications
  229. exec_always --no-startup-id "dunst -config ~/.config/dunst/config"
  230.  
  231. #########################################################
  232. #==>WORKSPACES
  233. #########################################################
  234. assign [class="Code"] $ws1
  235. assign [class="Firefox"] $ws2
  236. assign [class="Discord"] $ws3
  237.  
  238.  
  239. # Workspace 1
  240.  
  241. #exec subl --class=Code
  242.  
  243. # Workspace 2
  244.  
  245. #exec firefox --class=Firefox
  246.  
  247. # Workspace 3
  248.  
  249. #exec discord --class=Discord
  250.  
  251. # Workspace 4
  252.  
  253. # Workspace 5
  254.  
  255. # Workspace 6
  256.  
  257.  
  258. # Screenshot
  259. bindsym --release Print exec --no-startup-id "scrot ~/Images/screenshot.png"
  260.  
  261. # Start i3bar to display a workspace bar (plus the system information i3status
  262. # finds out, if available)
  263. #bar {
  264. # status_command i3status
  265. # }
  266.  
  267. # Disable laptop screen
  268. # exec "xrandr --output eDP-1-1 --off"
  269.  
  270. # Polybar
  271. exec_always --no-startup-id polybar top &
  272.  
  273. # Screencloud
  274. exec_always --no-statup-id /home/thedevkiller/./ScreenCloud-v1.4.0-x86_64.AppImage
  275.  
  276. # Background
  277. exec feh --bg-scale /home/thedevkiller/Images/Wallpaper.jpg
  278.  
  279. # Restore GNOME's settings
  280. #exec --no-startup-id /usr/libexec/gnome-settings-daemon-localeexec
  281.  
  282. # Fix a bug in gnome-settings-daemon: http://feeding.cloud.geek.nz/posts/creating-a-modern-tiling-desktop-environment-using-i3/
  283. #exec --no-startup-id dconf write /org/gnome/settings-daemon/plugins/cursor/active false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement