Advertisement
Guest User

Untitled

a guest
Nov 11th, 2018
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.67 KB | None | 0 0
  1. # (No) Title Bars
  2. for_window [class="^.*"] border pixel 0
  3.  
  4. # Gaps
  5. gaps inner 10
  6. gaps outer 0
  7. smart_gaps on
  8.  
  9. # Assign workspaces to screens
  10. # On E560, eDP-1 is the first display, while DP-2 is VGA output
  11. workspace 1 output eDP-1
  12. workspace 2 output eDP-1
  13. workspace 3 output eDP-1
  14. workspace 4 output DP-2
  15. workspace 5 output DP-2
  16. workspace 6 output DP-2
  17.  
  18. # Assign applications to workspaces
  19. # xprop | grep "CLASS"
  20. assign [class="Firefox"] 1
  21. assign [class="sublime_text"] 2
  22.  
  23. set $black #212121
  24. set $darkblack #000000
  25. set $red #fb4934
  26. set $darkred #cc241d
  27. set $green #b8bb26
  28. set $darkgreen #98971a
  29. set $yellow #fabd2f
  30. set $darkyellow #d79921
  31. set $blue #83a598
  32. set $darkblue #458588
  33. set $magenta #d3869b
  34. set $darkmagenta #b16286
  35. set $cyan #8ec07c
  36. set $darkcyan #689d6a
  37. set $white #ebdbb2
  38. set $darkwhite #a89984
  39. set $background #000000
  40. set $transparent #00000000
  41.  
  42. # Windows button
  43. set $mod Mod4
  44.  
  45. # Font for window titles. Will also be used by the bar unless a different font
  46. # is used in the bar {} block below.
  47. font pango:Helvetica Neue, FontAwesome 11
  48.  
  49. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  50. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  51. #font pango:DejaVu Sans Mono 8
  52.  
  53. # Use Mouse+$mod to drag floating windows to their wanted position
  54. floating_modifier $mod
  55.  
  56. # Start a terminal
  57. bindsym $mod+Return exec alacritty
  58.  
  59. # Kill focused window
  60. bindsym $mod+Shift+q kill
  61.  
  62.  
  63. # rofi
  64. #bindsym $mod+d exec --no-startup-id i3-dmenu-desktop --dmenu='rofi -i -dmenu -font "Helvetica Neue 15" '
  65. bindsym $mod+d exec dmenu_run
  66.  
  67.  
  68. # Screenshot (now provided by Plasma)
  69. # bindsym Print exec --no-startup-id spectacle
  70.  
  71. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  72. # installed.
  73. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  74.  
  75. # change focus
  76. bindsym $mod+j focus left
  77. bindsym $mod+k focus down
  78. bindsym $mod+l focus up
  79. bindsym $mod+semicolon focus right
  80.  
  81. # alternatively, you can use the cursor keys:
  82. bindsym $mod+Left focus left
  83. bindsym $mod+Down focus down
  84. bindsym $mod+Up focus up
  85. bindsym $mod+Right focus right
  86.  
  87. # move focused window
  88. bindsym $mod+Shift+j move left
  89. bindsym $mod+Shift+k move down
  90. bindsym $mod+Shift+l move up
  91. bindsym $mod+Shift+semicolon move right
  92.  
  93. # alternatively, you can use the cursor keys:
  94. bindsym $mod+Shift+Left move left
  95. bindsym $mod+Shift+Down move down
  96. bindsym $mod+Shift+Up move up
  97. bindsym $mod+Shift+Right move right
  98.  
  99. # bindsym $mod+space exec rofi -show run
  100.  
  101. # split in horizontal orientation
  102. bindsym $mod+h split v
  103.  
  104. # split in vertical orientation
  105. bindsym $mod+v split h
  106.  
  107. # enter fullscreen mode for the focused container
  108. bindsym $mod+f fullscreen toggle
  109.  
  110. # change container layout (stacked, tabbed, toggle split)
  111. bindsym $mod+s layout stacking
  112. bindsym $mod+w layout tabbed
  113. bindsym $mod+e layout toggle split
  114.  
  115. # toggle tiling / floating
  116. bindsym $mod+Shift+space floating toggle
  117.  
  118. # change focus between tiling / floating windows
  119. bindsym $mod+space focus mode_toggle
  120.  
  121. # focus the parent container
  122. bindsym $mod+a focus parent
  123.  
  124. # focus the child container
  125. #bindsym $mod+d focus child
  126.  
  127. # switch to workspace
  128. bindsym $mod+1 workspace 1
  129. bindsym $mod+2 workspace 2
  130. bindsym $mod+3 workspace 3
  131. bindsym $mod+4 workspace 4
  132. bindsym $mod+5 workspace 5
  133. bindsym $mod+6 workspace 6
  134. bindsym $mod+7 workspace 7
  135. bindsym $mod+8 workspace 8
  136. bindsym $mod+9 workspace 9
  137. bindsym $mod+0 workspace 10
  138.  
  139. # move focused container to workspace
  140. bindsym $mod+Shift+1 move container to workspace 1
  141. bindsym $mod+Shift+2 move container to workspace 2
  142. bindsym $mod+Shift+3 move container to workspace 3
  143. bindsym $mod+Shift+4 move container to workspace 4
  144. bindsym $mod+Shift+5 move container to workspace 5
  145. bindsym $mod+Shift+6 move container to workspace 6
  146. bindsym $mod+Shift+7 move container to workspace 7
  147. bindsym $mod+Shift+8 move container to workspace 8
  148. bindsym $mod+Shift+9 move container to workspace 9
  149. bindsym $mod+Shift+0 move container to workspace 10
  150.  
  151. # Move focus between screens
  152. bindsym $mod+Alt+h focus output left
  153. bindsym $mod+Alt+Left focus output left
  154. bindsym $mod+Alt+l focus output right
  155. bindsym $mod+Alt+Right focus output right
  156.  
  157. # reload the configuration file
  158. bindsym $mod+Shift+c reload
  159. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  160. bindsym $mod+Shift+r restart
  161. # exit i3 (logs you out of your X session)
  162. 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'"
  163.  
  164. # Audio controls (now provided by Plasma)
  165. # bindsym XF86AudioLowerVolume exec ~/audio.sh --down
  166. # bindsym XF86AudioRaiseVolume exec ~/audio.sh --up
  167.  
  168. # resize window (you can also use the mouse for that)
  169. mode "resize" {
  170. # These bindings trigger as soon as you enter the resize mode
  171.  
  172. # Pressing left will shrink the window’s width.
  173. # Pressing right will grow the window’s width.
  174. # Pressing up will shrink the window’s height.
  175. # Pressing down will grow the window’s height.
  176. bindsym j resize shrink width 10 px or 5 ppt
  177. bindsym k resize grow height 10 px or 5 ppt
  178. bindsym l resize shrink height 10 px or 5 ppt
  179. bindsym semicolon resize grow width 10 px or 5 ppt
  180.  
  181. # same bindings, but for the arrow keys
  182. bindsym Left resize shrink width 10 px or 5 ppt
  183. bindsym Down resize grow height 10 px or 5 ppt
  184. bindsym Up resize shrink height 10 px or 5 ppt
  185. bindsym Right resize grow width 10 px or 5 ppt
  186.  
  187. # back to normal: Enter or Escape
  188. bindsym Return mode "default"
  189. bindsym Escape mode "default"
  190. }
  191.  
  192. bindsym $mod+r mode "resize"
  193.  
  194. # i3bar
  195. #bar {
  196. # verbose yes
  197. # position bottom
  198. # status_command i3blocks
  199. # i3bar_command i3bar -t
  200. # colors {
  201. # statusline #ffffff
  202. # background $transparent
  203. # }
  204. #}
  205.  
  206. # Starting things with i3
  207. # exec --no-startup-id xcompmgr -C & # Bare compositor to allow transparency
  208. for_window [class="yakuake"] floating enable
  209. #exec --no-startup-id feh --bg-scale ~/Pictures/wallpaper.jpg
  210. #exec --no-startup-id xwinwrap -ov -g 1920x1080+0+0 -ni -s -nf -- mpv -wid WID ~/.gifs/video.mp4 --no-osc --no-osd-bar --loop-file --player-operation-mode=cplayer --no-input-default-bindings --hwdec --log-file=/home/eliwas/.mpvlog.log&
  211. exec --no-startup-id xwinwrap -ov -g 1920x1080+0+0 -ni -s -nf -- gifview -w WID .gifs/forest.gif -a
  212. exec --no-startup-id xwinwrap -ov -g 1920x1080+1920+0 -ni -s -nf -- mpv -wid WID ~/.gifs/H1.mp4 --no-osc --no-osd-bar --loop-file --player-operation-mode=cplayer --no-input-default-bindings --hwdec --log-file=/home/eliwas/.mpvlog.log&
  213. exec --no-startup-id compton
  214.  
  215. ## Plasma Integration
  216. # Try to kill the wallpaper set by Plasma (it takes up the entire workspace and hides everythiing)
  217. exec --no-startup-id wmctrl -c Plasma
  218. for_window [title="Desktop — Plasma"] kill, floating enable, border none
  219.  
  220. ## Avoid tiling popups, dropdown windows from plasma
  221. # for the first time, manually resize them, i3 will remember the setting for floating windows
  222. for_window [class="plasmashell"] floating enable
  223. for_window [class="Plasma"] floating enable, border none
  224. for_window [title="plasma-desktop"] floating enable, border none
  225. for_window [title="win7"] floating enable, border none
  226. for_window [class="krunner"] floating enable, border none
  227. for_window [class="Kmix"] floating enable, border none
  228. for_window [class="Klipper"] floating enable, border none
  229. for_window [class="Plasmoidviewer"] floating enable, border none
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement