Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.82 KB | None | 0 0
  1. # (No) Title Bars
  2. for_window [class="^.*"] border pixel 0
  3.  
  4. # Gaps
  5. gaps inner 15
  6. gaps outer -5
  7. smart_gaps on
  8.  
  9. # Windows button
  10. set $mod Mod4
  11.  
  12. # Use Mouse+$mod to drag floating windows to their wanted position
  13. floating_modifier $mod
  14.  
  15. # start a terminal
  16. bindsym $mod+Return exec termite
  17. # in case of an emergency
  18. bindsym $mod+Shift+Return exec xterm
  19.  
  20. # Font for window titles. Will also be used by the bar unless a different font
  21. # is used in the bar {} block below.
  22. font pango:xos4 Terminus 11
  23.  
  24. # Use Mouse+$mod to drag floating window
  25.  
  26. # kill focused window
  27. bindsym $mod+q kill
  28.  
  29. # program launcher
  30. bindsym $mod+r exec "rofi -show drun -show-icons -modi drun,window -terminal termite"
  31. bindsym $mod+Shift+r exec rofi -show run
  32.  
  33. # change focus
  34. bindsym $mod+Left focus left
  35. bindsym $mod+Down focus down
  36. bindsym $mod+Up focus up
  37. bindsym $mod+Right focus right
  38.  
  39. # move focused window
  40. bindsym $mod+Shift+Left move left
  41. bindsym $mod+Shift+Down move down
  42. bindsym $mod+Shift+Up move up
  43. bindsym $mod+Shift+Right move right
  44.  
  45. # split in horizontal orientation
  46. bindsym $mod+h split h
  47.  
  48. # split in vertical orientation
  49. bindsym $mod+v split v
  50.  
  51. # enter fullscreen mode for the focused container
  52. bindsym $mod+f fullscreen toggle
  53.  
  54. # change container layout (stacked, tabbed, toggle split)
  55. bindsym $mod+s layout stacking
  56. bindsym $mod+w layout tabbed
  57. bindsym $mod+e layout toggle split
  58.  
  59. # toggle tiling / floating
  60. bindsym $mod+Shift+space floating toggle
  61.  
  62. # change focus between tiling / floating windows
  63. bindsym $mod+space focus mode_toggle
  64.  
  65. # focus the parent container
  66. bindsym $mod+a focus parent
  67.  
  68. set $ws1 "1"
  69. set $ws2 "2"
  70. set $ws3 "3"
  71. set $ws4 "4"
  72. set $ws5 "5"
  73. set $ws6 "6"
  74. set $ws7 "7"
  75. set $ws8 "8"
  76. set $ws9 "9"
  77. set $ws10 "10"
  78.  
  79. bindsym $mod+1 workspace $ws1
  80. bindsym $mod+2 workspace $ws2
  81. bindsym $mod+3 workspace $ws3
  82. bindsym $mod+4 workspace $ws4
  83. bindsym $mod+5 workspace $ws5
  84. bindsym $mod+6 workspace $ws6
  85. bindsym $mod+7 workspace $ws7
  86. bindsym $mod+8 workspace $ws8
  87. bindsym $mod+9 workspace $ws9
  88. bindsym $mod+0 workspace $ws10
  89.  
  90. bindsym $mod+Shift+1 move container to workspace $ws1
  91. bindsym $mod+Shift+2 move container to workspace $ws2
  92. bindsym $mod+Shift+3 move container to workspace $ws3
  93. bindsym $mod+Shift+4 move container to workspace $ws4
  94. bindsym $mod+Shift+5 move container to workspace $ws5
  95. bindsym $mod+Shift+6 move container to workspace $ws6
  96. bindsym $mod+Shift+7 move container to workspace $ws7
  97. bindsym $mod+Shift+8 move container to workspace $ws8
  98. bindsym $mod+Shift+9 move container to workspace $ws9
  99. bindsym $mod+Shift+0 move container to workspace $ws10
  100.  
  101. bindsym $mod+Shift+c reload
  102. bindsym $mod+Ctrl+mod1+r restart
  103. bindsym $mod+Shift+e exec --no-startup-id "i3-nagbar -t warning -m 'Do you want to exit i3?' -b 'Yes' 'i3-msg exit'"
  104.  
  105.  
  106. # resize window (you can also use the mouse for that)
  107. mode "resize" {
  108. bindsym Left resize shrink width 10 px or 10 ppt
  109. bindsym Down resize grow height 10 px or 10 ppt
  110. bindsym Up resize shrink height 10 px or 10 ppt
  111. bindsym Right resize grow width 10 px or 10 ppt
  112.  
  113. bindsym Return mode "default"
  114. bindsym Escape mode "default"
  115. }
  116.  
  117. bindsym $mod+Ctrl+r mode "resize"
  118.  
  119.  
  120.  
  121. #==========================================
  122. # Additional keybindings
  123. #==========================================
  124.  
  125. # Window Switcher
  126. bindsym $mod+Tab exec rofi -show window
  127.  
  128.  
  129.  
  130. #==========================================
  131. # Autostart
  132. #==========================================
  133.  
  134. exec --no-startup-id compton
  135. exec --no-startup-id nitrogen --restore
  136. exec --no-startup-id kshare -b
  137. exec_always --no-startup-id killall polybar; MONITOR=HDMI-0 polybar -r topbar -c ~/.config/polybar/.topbar
  138.  
  139. # for pamac:
  140. exec_always --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & eval $(gnome-keyring-daemon -s --components=pkcs11,secrets,ssh,gpg) &
  141.  
  142. # for_window [class="Spotify"] move to workspace $ws10
  143. assign [class="^discord$"] 10
  144. assign [class="^Chromium$"] 1
  145. # exec --no-startup-id spotify
  146. exec --no-startup-id discord
  147. exec --no-startup-id chromium
  148. exec --no-startup-id clipit
  149. exec --no-startup-id xset r rate 135 30
  150. exec --no-startup-id /usr/lib/geoclue-2.0/demos/agent
  151. exec --no-startup-id redshiftgui -n
  152.  
  153.  
  154. #==========================================
  155. # Media
  156. #==========================================
  157.  
  158. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +2% #increase sound volume
  159. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -2% #decrease sound volume
  160. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle # mute sound
  161.  
  162. bindsym XF86AudioPlay exec playerctl play-pause
  163. bindsym XF86AudioStop exec playerctl stop
  164. bindsym XF86AudioNext exec playerctl next
  165. bindsym XF86AudioPrev exec playerctl previous
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement