daily pastebin goal
1%
SHARE
TWEET

Untitled

a guest Dec 23rd, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. set $mod Mod4
  2.  
  3. # use these keys for focus, movement, and resize directions when reaching for
  4. # the arrows is not convenient
  5. set $up l
  6. set $down k
  7. set $left j
  8. set $right semicolon
  9.  
  10. # use Mouse+$mod to drag floating windows to their wanted position
  11. floating_modifier $mod
  12.  
  13. # start a terminal
  14. bindsym $mod+Return exec i3-sensible-terminal
  15.  
  16. # kill focused window
  17. bindsym $mod+Shift+q kill
  18.  
  19. # Rofi
  20. bindsym $mod+d exec --no-startup-id rofi -show combi
  21. bindsym $mod+Tab exec --no-startup-id "rofi -show window"
  22.  
  23. # change focus
  24. bindsym $mod+$left focus left
  25. bindsym $mod+$down focus down
  26. bindsym $mod+$up focus up
  27. bindsym $mod+$right focus right
  28.  
  29. # alternatively, you can use the cursor keys:
  30. bindsym $mod+Left focus left
  31. bindsym $mod+Down focus down
  32. bindsym $mod+Up focus up
  33. bindsym $mod+Right focus right
  34.  
  35. # move focused window
  36. bindsym $mod+Shift+$left move left
  37. bindsym $mod+Shift+$down move down
  38. bindsym $mod+Shift+$up move up
  39. bindsym $mod+Shift+$right move right
  40.  
  41. # alternatively, you can use the cursor keys:
  42. bindsym $mod+Shift+Left move left
  43. bindsym $mod+Shift+Down move down
  44. bindsym $mod+Shift+Up move up
  45. bindsym $mod+Shift+Right move right
  46.  
  47. # split in horizontal orientation
  48. bindsym $mod+h split h
  49.  
  50. # split in vertical orientation
  51. bindsym $mod+v split v
  52.  
  53. # enter fullscreen mode for the focused container
  54. bindsym $mod+f fullscreen toggle
  55.  
  56. # change container layout (stacked, tabbed, toggle split)
  57. bindsym $mod+s layout stacking
  58. bindsym $mod+w layout tabbed
  59. bindsym $mod+e layout toggle split
  60.  
  61. # toggle tiling / floating
  62. bindsym $mod+Shift+space floating toggle
  63.  
  64. # change focus between tiling / floating windows
  65. bindsym $mod+space focus mode_toggle
  66.  
  67. # focus the parent container
  68. bindsym $mod+a focus parent
  69.  
  70. # focus the child container
  71. #bindsym $mod+d focus child
  72.  
  73. # move the currently focused window to the scratchpad
  74. bindsym $mod+Shift+minus move scratchpad
  75.  
  76. # Show the next scratchpad window or hide the focused scratchpad window.
  77. # If there are multiple scratchpad windows, this command cycles through them.
  78. bindsym $mod+minus scratchpad show
  79.  
  80. # Define names for default workspaces for which we configure key bindings later on.
  81. # We use variables to avoid repeating the names in multiple places.
  82. set $ws1 "1"
  83. set $ws2 "2"
  84. set $ws3 "3"
  85. set $ws4 "4"
  86. set $ws5 "5"
  87. set $ws6 "6"
  88. set $ws7 "7"
  89. set $ws8 "8"
  90. set $ws9 "9"
  91. set $ws10 "10"
  92.  
  93.  
  94. # switch to workspace
  95. bindsym $mod+1 workspace $ws1
  96. bindsym $mod+2 workspace $ws2
  97. bindsym $mod+3 workspace $ws3
  98. bindsym $mod+4 workspace $ws4
  99. bindsym $mod+5 workspace $ws5
  100. bindsym $mod+6 workspace $ws6
  101. bindsym $mod+7 workspace $ws7
  102. bindsym $mod+8 workspace $ws8
  103. bindsym $mod+9 workspace $ws9
  104. bindsym $mod+0 workspace $ws10
  105.  
  106. # move focused container to workspace
  107. bindsym $mod+Shift+1 move container to workspace $ws1
  108. bindsym $mod+Shift+2 move container to workspace $ws2
  109. bindsym $mod+Shift+3 move container to workspace $ws3
  110. bindsym $mod+Shift+4 move container to workspace $ws4
  111. bindsym $mod+Shift+5 move container to workspace $ws5
  112. bindsym $mod+Shift+6 move container to workspace $ws6
  113. bindsym $mod+Shift+7 move container to workspace $ws7
  114. bindsym $mod+Shift+8 move container to workspace $ws8
  115. bindsym $mod+Shift+9 move container to workspace $ws9
  116. bindsym $mod+Shift+0 move container to workspace $ws10
  117.  
  118. # reload the configuration file
  119. bindsym $mod+Shift+c reload
  120. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  121. bindsym $mod+Shift+r restart
  122. # exit i3 (logs you out of your X session)
  123. 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'"
  124.  
  125. # resize window (you can also use the mouse for that)
  126. mode "resize" {
  127.         # These bindings trigger as soon as you enter the resize mode
  128.  
  129.         # Pressing left will shrink the window’s width.
  130.         # Pressing right will grow the window’s width.
  131.         # Pressing up will shrink the window’s height.
  132.         # Pressing down will grow the window’s height.
  133.         bindsym $left       resize shrink width 10 px or 10 ppt
  134.         bindsym $down       resize grow height 10 px or 10 ppt
  135.         bindsym $up         resize shrink height 10 px or 10 ppt
  136.         bindsym $right      resize grow width 10 px or 10 ppt
  137.  
  138.         # same bindings, but for the arrow keys
  139.         bindsym Left        resize shrink width 10 px or 10 ppt
  140.         bindsym Down        resize grow height 10 px or 10 ppt
  141.         bindsym Up          resize shrink height 10 px or 10 ppt
  142.         bindsym Right       resize grow width 10 px or 10 ppt
  143.  
  144.         # back to normal: Enter or Escape or $mod+r
  145.         bindsym Return mode "default"
  146.         bindsym Escape mode "default"
  147.         bindsym $mod+r mode "default"
  148. }
  149.  
  150. bindsym $mod+r mode "resize"
  151.  
  152. # Start i3bar to display a workspace bar (plus the system information i3status
  153. # finds out, if available)
  154. bar {
  155.     font pango:DejaVu Sans Mono 8
  156.     status_command i3status -c ~/.config/i3status/i3status.conf
  157.         tray_output primary
  158.   colors {
  159.     separator #268bd2
  160.     background #002b36
  161.     statusline #839496
  162.     focused_workspace #fdf6e3 #6c71c4 #fdf6e3
  163.     active_workspace #fdf6e3 #6c71c4 #fdf6e3
  164.     inactive_workspace #002b36 #586e75 #002b36
  165.     urgent_workspace #d33682 #d33682 #fdf6e3
  166.   }
  167. }
  168.  
  169. set $bg-color            #2f343f
  170. set $inactive-bg-color   #2f343f
  171. set $text-color          #f3f4f5
  172. set $inactive-text-color #676E7D
  173. set $urgent-bg-color     #E53935
  174.  
  175. # window colors
  176. #                       border             background           text                 indicator
  177. client.focused          $bg-color          $inactive-text-color $text-color          #4084d6
  178. client.unfocused        $inactive-bg-color $inactive-bg-color   $inactive-text-color $inactive-bg-color
  179. client.focused_inactive $inactive-bg-color $inactive-bg-color   $inactive-text-color $inactive-bg-color
  180. client.urgent           $urgent-bg-colo    $urgent-bg-color     $text-color          $inactive-bg-color
  181.  
  182.  
  183. # ctrl+alt+L to lock the screen
  184. bindsym Control+mod1+l exec --no-startup-id i3lock -i /usr/local/share/wallpaper/wallpaper.png -t
  185.  
  186. # raise/lower volume with the ThinkPads volume keys. The mute key appears
  187. # to be a hardware-level mute. It works, but it doesn't register any
  188. # change in the OSS mixer.
  189. bindsym XF86AudioRaiseVolume exec --no-startup-id "mixer vol +5 && pkill -SIGUSR1 i3status"
  190. bindsym XF86AudioLowerVolume exec --no-startup-id "mixer vol -5 && pkill -SIGUSR1 i3status"
  191.  
  192. # some windows should float by default
  193. for_window [class="feh"] floating enable
  194. for_window [class="Lxappearance"] floating enable
  195. for_window [class="pinentry-gtk-2"] floating enable
  196. for_window [class="Arandr"] floating enable
  197. for_window [title="Preferences"] floating enable
  198. for_window [title="Download Manager"] floating enable
  199.  
  200. exec --no-startup-id /usr/local/bin/feh --bg-scale /home/pol/Pictures/new1.png
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
 
Top