Advertisement
Guest User

meme

a guest
Sep 21st, 2019
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.99 KB | None | 0 0
  1. # This file has been auto-generated by i3-config-wizard(1).
  2. # It will not be overwritten, so edit it as you like.#
  3. # Should you change your keyboard layout some time, delete# this file and re-run i3-config-wizard(1).
  4. #
  5. # i3 config file (v4)#
  6. # Please see https://i3wm.org/docs/userguide.html for a complete reference!
  7. set $mod Mod4
  8. # Font for window titles. Will also be used by the bar unless a different font# is used in the bar {} block below.
  9. font pango:DejaVu Sans Mono 10
  10. # This font is widely installed, provides lots of unicode glyphs, right-to-left# text rendering and scalability on retina/hidpi displays (thanks to pango).#font pango:DejaVu Sans Mono 8
  11. # Before i3 v4.8, we used to recommend this one as the default:# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  12. # The font above is very space-efficient, that is, it looks good, sharp and# clear in small sizes. However, its unicode glyph coverage is limited, the old# X core fonts rendering does not support right-to-left and this being a bitmap
  13. # font, it doesn’t scale on retina/hidpi displays.# Use Mouse+$mod to drag floating windows to their wanted position
  14. floating_modifier $mod# start a terminal
  15. bindsym $mod+Return exec kitty# kill focused window
  16. bindsym $mod+Shift+q kill# Define colors
  17. set $bg-color #2f343fset $text-color #f3f4f5
  18. # start dmenu (a program launcher)bindsym $mod+d exec rofi -show run
  19. # There also is the (new) i3-dmenu-desktop which only displays applications
  20. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  21. # installed.
  22. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  23.  
  24. # change focus
  25. bindsym $mod+j focus left
  26. bindsym $mod+k focus down
  27. bindsym $mod+l focus up
  28. bindsym $mod+oslash focus right
  29.  
  30. # alternatively, you can use the cursor keys:
  31. bindsym $mod+Left focus left
  32. bindsym $mod+Down focus down
  33. bindsym $mod+Up focus up
  34. bindsym $mod+Right focus right
  35.  
  36. # move focused window
  37. bindsym $mod+Shift+j move left
  38. bindsym $mod+Shift+k move down
  39. bindsym $mod+Shift+l move up
  40. bindsym $mod+Shift+oslash move right
  41.  
  42. # alternatively, you can use the cursor keys:
  43. bindsym $mod+Shift+Left move left
  44. bindsym $mod+Shift+Down move down
  45. bindsym $mod+Shift+Up move up
  46. bindsym $mod+Shift+Right move right
  47.  
  48. # split in horizontal orientation
  49. bindsym $mod+h split h
  50.  
  51. # split in vertical orientation
  52. bindsym $mod+v split v
  53.  
  54. # enter fullscreen mode for the focused container
  55. bindsym $mod+f fullscreen toggle
  56.  
  57. # change container layout (stacked, tabbed, toggle split)
  58. bindsym $mod+s layout stacking
  59. bindsym $mod+w layout tabbed
  60. bindsym $mod+e layout toggle split
  61.  
  62. # toggle tiling / floating
  63. bindsym $mod+Shift+space floating toggle
  64.  
  65. # change focus between tiling / floating windows
  66. bindsym $mod+space focus mode_toggle
  67.  
  68. # focus the parent container
  69. bindsym $mod+a focus parent
  70.  
  71. # focus the child container
  72. #bindsym $mod+d focus child
  73.  
  74. # Define names for default workspaces for which we configure key bindings later on.
  75. # We use variables to avoid repeating the names in multiple places.
  76. set $ws1 "1"
  77. set $ws2 "2"
  78. set $ws3 "3"
  79. set $ws4 "4"
  80. set $ws5 "5"
  81. set $ws6 "6"
  82. set $ws7 "7"
  83. set $ws8 "8"
  84. set $ws9 "9"
  85. set $ws10 "10"
  86.  
  87. # switch to workspace
  88. bindsym $mod+1 workspace $ws1
  89. bindsym $mod+2 workspace $ws2
  90. bindsym $mod+3 workspace $ws3
  91. bindsym $mod+4 workspace $ws4
  92. bindsym $mod+5 workspace $ws5
  93. bindsym $mod+6 workspace $ws6
  94. bindsym $mod+7 workspace $ws7
  95. bindsym $mod+8 workspace $ws8
  96. bindsym $mod+9 workspace $ws9
  97. bindsym $mod+0 workspace $ws10
  98.  
  99. # move focused container to workspace
  100. bindsym $mod+Shift+1 move container to workspace $ws1
  101. bindsym $mod+Shift+2 move container to workspace $ws2
  102. bindsym $mod+Shift+3 move container to workspace $ws3
  103. bindsym $mod+Shift+4 move container to workspace $ws4
  104. bindsym $mod+Shift+5 move container to workspace $ws5
  105. bindsym $mod+Shift+6 move container to workspace $ws6
  106. bindsym $mod+Shift+7 move container to workspace $ws7
  107. bindsym $mod+Shift+8 move container to workspace $ws8
  108. bindsym $mod+Shift+9 move container to workspace $ws9
  109. bindsym $mod+Shift+0 move container to workspace $ws10
  110.  
  111. # Assign apps to workspaces
  112. assign [class="kitty"] $ws1
  113. assign [class="Firefox"] $ws2
  114. assign [class="Emacs"] $ws3
  115. assign [class="discord"] $ws4
  116.  
  117. # reload the configuration file
  118. bindsym $mod+Shift+c reload
  119. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  120. bindsym $mod+Shift+r restart
  121. # exit i3 (logs you out of your X session)
  122. 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'"
  123.  
  124. # resize window (you can also use the mouse for that)
  125. mode "resize" {
  126. # These bindings trigger as soon as you enter the resize mode
  127.  
  128. # Pressing left will shrink the window’s width.
  129. # Pressing right will grow the window’s width.
  130. # Pressing up will shrink the window’s height.
  131. # Pressing down will grow the window’s height.
  132. bindsym j resize shrink width 10 px or 10 ppt
  133. bindsym k resize grow height 10 px or 10 ppt
  134. bindsym l resize shrink height 10 px or 10 ppt
  135. bindsym oslash resize grow width 10 px or 10 ppt
  136.  
  137. # same bindings, but for the arrow keys
  138. bindsym Left resize shrink width 10 px or 10 ppt
  139. bindsym Down resize grow height 10 px or 10 ppt
  140. bindsym Up resize shrink height 10 px or 10 ppt
  141. bindsym Right resize grow width 10 px or 10 ppt
  142.  
  143. # back to normal: Enter or Escape or $mod+r
  144. bindsym Return mode "default"
  145. bindsym Escape mode "default"
  146. bindsym $mod+r mode "default"
  147. }
  148.  
  149. bindsym $mod+r mode "resize"
  150.  
  151. # Start i3bar to display a workspace bar (plus the system information i3status
  152. # finds out, if available)
  153. # bar {
  154. # status_command i3status
  155. # }
  156.  
  157. exec_always --no-startup-id /home/skykanin/.config/polybar/launch.sh
  158.  
  159. # Border config
  160. default_border pixel 2
  161.  
  162. # Set colors from Xresources
  163. set_from_resource $fg i3wm.color7 #f0f0f0
  164. set_from_resource $bg i3wm.color2 #f0f0f0
  165.  
  166. # Color config border background text indicator child_border
  167. client.focused $bg $bg $fg $bg $bg
  168. client.focused_inactive $bg $bg $fg $bg $bg
  169. client.unfocused $bg $bg $fg $bg $bg
  170. client.urgent $bg $bg $fg $bg $bg
  171. client.placeholder $bg $bg $fg $bg $bg
  172.  
  173. client.background $bg
  174.  
  175. # Bind lockscreen
  176. bindsym $mod+shift+x exec betterlockscreen -l dim
  177.  
  178. # Bind printscreen
  179. bindsym Print exec flameshot gui -p ~/Pictures
  180.  
  181. # Add gaps
  182. gaps inner 10
  183. gaps outer 5
  184.  
  185. smart_gaps on
  186. smart_borders on
  187.  
  188. # Pulse Audio control
  189. bindsym XF86AudioRaiseVolume exec pamixer -i 10
  190. bindsym XF86AudioLowerVolume exec pamixer -d 10
  191. bindsym XF86AudioMute exec pamixer -t
  192.  
  193. bindsym XF86AudioPlay exec playerctl play
  194. bindsym XF86AudioPause exec playerctl pause
  195. bindsym XF86AudioNext exec playerctl next
  196. bindsym XF86AudioPrev exec playerctl previous
  197.  
  198. bindsym Insert exec pamixer -i 10
  199. bindsym Delete exec pamixer -d 10
  200.  
  201. bindsym Ctrl_R+Up exec playerctl play
  202. bindsym Ctrl_R+Down exec playerctl pause
  203. bindsym Ctrl_R+Right exec playerctl next
  204. bindsym Crtl_R+Left exec playerctl previous
  205.  
  206. # Screen brightness controls
  207. bindsym XF86MonBrightnessUp exec brightnessctl s +500
  208. bindsym XF86MonBrightnessDown exec brightnessctl s 500-
  209.  
  210. # Set wallpaper
  211. exec_always nitrogen --set-auto Pictures/hyperbeast.jpg
  212.  
  213. # Set lockscreen wallpaper
  214. exec_always betterlockscreen -w
  215.  
  216. #Set login screen
  217. exec betterlockscreen -l dim
  218.  
  219. # Set theme
  220. exec_always wal -R
  221.  
  222. # Mirror display
  223. # exec_always xrandr --output HDMI-1 --same-as eDP-1 --transform 1,0,0,0,1,-60,0,0,1
  224. exec_always xrandr --output HDMI-1 --same-as eDP-1 --scale-from 1920x1080
  225.  
  226. # Startup default apps
  227. exec kitty
  228. exec firefox
  229. exec emacs
  230. exec Discord
  231.  
  232. # Start nm-applet in systemtray
  233. exec --no-startup-id nm-applet
  234.  
  235. # Turn off sleep
  236. exec_always xset s off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement