SHARE
TWEET

Untitled

a guest Apr 19th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. set $mod Mod4
  2.  
  3. font pango:monospace 9
  4. #font pango:DejaVu Sans Mono 8
  5.  
  6. # Use Mouse+$mod to drag floating windows to their wanted position
  7. floating_modifier $mod
  8.  
  9. # start a terminal
  10. bindsym $mod+Return exec i3-sensible-terminal
  11.  
  12. # kill focused window
  13. bindsym $mod+Shift+q kill
  14.  
  15. # start dmenu (a program launcher)
  16. #bindsym $mod+d exec dmenu_run
  17. bindsym $mod+d exec rofi -show run -bg "#0b1316" -fg "#f7f7f7" -font "Awesome 12"
  18.  
  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+ntilde 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+ntilde 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. # switch to workspace
  75. bindsym $mod+1 workspace 1
  76. bindsym $mod+2 workspace 2
  77. bindsym $mod+3 workspace 3
  78. bindsym $mod+4 workspace 4
  79. bindsym $mod+5 workspace 5
  80. bindsym $mod+6 workspace 6
  81. bindsym $mod+7 workspace 7
  82. bindsym $mod+8 workspace 8
  83. bindsym $mod+9 workspace 9
  84. bindsym $mod+0 workspace 10
  85.  
  86. # move focused container to workspace
  87. bindsym $mod+Shift+1 move container to workspace 1
  88. bindsym $mod+Shift+2 move container to workspace 2
  89. bindsym $mod+Shift+3 move container to workspace 3
  90. bindsym $mod+Shift+4 move container to workspace 4
  91. bindsym $mod+Shift+5 move container to workspace 5
  92. bindsym $mod+Shift+6 move container to workspace 6
  93. bindsym $mod+Shift+7 move container to workspace 7
  94. bindsym $mod+Shift+8 move container to workspace 8
  95. bindsym $mod+Shift+9 move container to workspace 9
  96. bindsym $mod+Shift+0 move container to workspace 10
  97.  
  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. # exit i3 (logs you out of your X session)
  103. bindsym $mod+Shift+g 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'"
  104. bindsym $mod+Shift+t exec "/home/sierra/.TelegramDesktop/Telegram"
  105. # resize window (you can also use the mouse for that)
  106. mode "resize" {
  107.         # These bindings trigger as soon as you enter the resize mode
  108.  
  109.         # Pressing left will shrink the window’s width.
  110.         # Pressing right will grow the window’s width.
  111.         # Pressing up will shrink the window’s height.
  112.         # Pressing down will grow the window’s height.
  113.         bindsym j resize shrink width 10 px or 10 ppt
  114.         bindsym k resize grow height 10 px or 10 ppt
  115.         bindsym l resize shrink height 10 px or 10 ppt
  116.         bindsym ntilde resize grow width 10 px or 10 ppt
  117.  
  118.         # same bindings, but for the arrow keys
  119.         bindsym Left resize shrink width 10 px or 10 ppt
  120.         bindsym Down resize grow height 10 px or 10 ppt
  121.         bindsym Up resize shrink height 10 px or 10 ppt
  122.         bindsym Right resize grow width 10 px or 10 ppt
  123.  
  124.         # back to normal: Enter or Escape
  125.         bindsym Return mode "default"
  126.         bindsym Escape mode "default"
  127. }
  128.  
  129. bindsym $mod+r mode "resize"
  130.  
  131. # Create Log out, Reboot, Poweroff bindings
  132. mode "(L)ock, (R)eboot, (P)oweroff, (S)uspend" {
  133.         bindsym s exec systemctl suspend
  134.         bindsym r exec systemctl reboot
  135.         bindsym l exec i3lock -d -c 2F343F
  136.         bindsym p exec systemctl poweroff
  137.  
  138.         # back to normal: Enter or Escape
  139.         bindsym Return mode "default"
  140.         bindsym Escape mode "default"
  141. }
  142.  
  143. bindsym $mod+Shift+e mode "(L)ock, (R)eboot, (P)oweroff, (S)uspend"
  144.  
  145. mode "Control, U/D sound L/R brightness" {
  146.         bindsym Left exec xbacklight -dec 1
  147.         bindsym Right exec xbacklight -inc 1
  148.         bindsym Down exec exec amixer set Master 5%-
  149.         bindsym Up exec exec amixer set Master 5%+
  150.  
  151.         # back to normal: Enter or Escape
  152.         bindsym Return mode "default"
  153.         bindsym Escape mode "default"
  154. }
  155.  
  156. bindsym $mod+Shift+s mode "Control, U/D sound L/R brightness"
  157.  
  158. mode "Screen, [A]uto [H]DMI [S]creen" {
  159.         bindsym a exec xrandr --auto
  160.         bindsym h exec xrandr --output eDP1 --off --output HDMI2 --auto
  161.         bindsym s exec xrandr --output HDMI2 --off --output eDP1 --auto
  162.  
  163.         # back to normal: Enter or Escape
  164.         bindsym Return mode "default"
  165.         bindsym Escape mode "default"
  166. }
  167.  
  168. bindsym $mod+Shift+x mode "Screen, [A]uto [H]DMI [S]creen"
  169. # Volume configuration
  170. bindcode $mod+121 execamixer set Master toggle
  171. bindcode $mod+122 exec amixer set Master 5%-
  172. bindcode $mod+123 exec amixer set Master 5%+
  173.  
  174. # Start i3bar to display a workspace bar (plus the system information i3status
  175. # finds out, if available)
  176. bar {
  177.         status_command i3status
  178.         position bottom
  179.         font pango:Awesome 9
  180.         colors {
  181.                 background #0b1316
  182.         }
  183. }
  184.  
  185. #for_window [class="^.*"] border pixel 1
  186. #for_window [floating] border normal
  187. #new_window 1pixel
  188.  
  189. # class                 border  backgr. text    indicator child_border
  190. #client.focused          #2F343F #2F343F #ffffff #2F343F   #2F343F
  191. #client.focused_inactive #333333 #5f676a #ffffff #484e50   #5f676a
  192. #client.unfocused        #333333 #222222 #888888 #292d2e   #222222
  193. #client.urgent           #2f343a #900000 #ffffff #900000   #900000
  194. #client.placeholder      #000000 #0c0c0c #ffffff #000000   #0c0c0c
  195. #client.background       #2F343F
  196.  
  197.  
  198. client.focused          #0b1316 #0b1316 #f7f7f7 #0b1316   #0b1316
  199. client.focused_inactive #0b1316 #0b1316 #f7f7f7 #484e50   #0b1316
  200. client.unfocused        #1d2528 #1d2528 #888888 #292d2e   #1d2528
  201. client.urgent           #fdcd47 #fdcd47 #f7f7f7 #fdcd47   #fdcd47
  202. client.placeholder      #0c0c0c #0c0c0c #f7f7f7 #000000   #0c0c0c
  203. client.background       #0b1316
  204.  
  205. #exec --no-startup-id nitrogen --restore
  206. exec --no-startup-id xsetroot -solid "#0b1316"
  207. #exec --no-startup-id nm-applet
  208. #exec --no-startup-id xfce4-power-manager
  209. #exec --no-startup-id volumeicon
  210. #exec --no-startup-id blueman-applet
  211. #exec --no-startup-id xbacklight -set 8
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top