SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Set mod key (Mod1=<Alt>, Mod4=<Super>)
  2. set $mod Mod4
  3.  
  4. # Font for window titles. Will also be used by the bar unless a different font
  5. # is used in the bar {} block below.
  6. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  7. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  8. font pango:Noto Sans 12
  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 terminal
  15.  
  16. # kill focused window
  17. bindsym $mod+q kill
  18.  
  19. # start rofi (a program launcher)
  20. bindsym $mod+d exec --no-startup-id "rofi -combi-modi drun,run -show combi"
  21. bindsym $mod+Shift+d 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. # move focused window
  30. bindsym $mod+Shift+Left move left
  31. bindsym $mod+Shift+Down move down
  32. bindsym $mod+Shift+Up move up
  33. bindsym $mod+Shift+Right move right
  34.  
  35. # split orientation
  36. bindsym $mod+h split h;exec notify-send 'tile horizontally'
  37. bindsym $mod+v split v;exec notify-send 'tile vertically'
  38.  
  39. # toggle fullscreen mode for the focused container
  40. bindsym $mod+f fullscreen toggle
  41.  
  42. # change container layout (stacked, tabbed, toggle split)
  43. bindsym $mod+s layout stacking
  44. bindsym $mod+w layout tabbed
  45. bindsym $mod+e layout toggle split
  46.  
  47. # toggle tiling / floating
  48. bindsym $mod+Shift+space floating toggle
  49.  
  50. # change focus between tiling / floating windows
  51. bindsym $mod+space focus mode_toggle
  52.  
  53. # focus the parent container
  54. bindsym $mod+a focus parent
  55.  
  56. # focus the child container
  57. bindsym $mod+z focus child
  58.  
  59. #navigate workspaces next / previous
  60. bindsym $mod+comma workspace prev
  61. bindsym $mod+period workspace next
  62.  
  63. # Workspace names
  64. set $ws1 1
  65. set $ws2 2
  66. set $ws3 3
  67. set $ws4 4
  68. set $ws5 5
  69. set $ws6 6
  70. set $ws7 7
  71. set $ws8 8
  72. set $ws9 9
  73.  
  74. # switch to workspace
  75. bindsym $mod+1 workspace $ws1
  76. bindsym $mod+2 workspace $ws2
  77. bindsym $mod+3 workspace $ws3
  78. bindsym $mod+4 workspace $ws4
  79. bindsym $mod+5 workspace $ws5
  80. bindsym $mod+6 workspace $ws6
  81. bindsym $mod+7 workspace $ws7
  82. bindsym $mod+8 workspace $ws8
  83. bindsym $mod+9 workspace $ws9
  84.  
  85. # Move focused container to workspace
  86. bindsym $mod+Shift+1 move container to workspace $ws1
  87. bindsym $mod+Shift+2 move container to workspace $ws2
  88. bindsym $mod+Shift+3 move container to workspace $ws3
  89. bindsym $mod+Shift+4 move container to workspace $ws4
  90. bindsym $mod+Shift+5 move container to workspace $ws5
  91. bindsym $mod+Shift+6 move container to workspace $ws6
  92. bindsym $mod+Shift+7 move container to workspace $ws7
  93. bindsym $mod+Shift+8 move container to workspace $ws8
  94. bindsym $mod+Shift+9 move container to workspace $ws9
  95.  
  96. # reload the configuration file
  97. bindsym $mod+Shift+c reload
  98.  
  99. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  100. bindsym $mod+Shift+r restart
  101.  
  102. # exit i3 (logs you out of your X session)
  103. 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'"
  104.  
  105. # Resize window (you can also use the mouse for that)
  106. bindsym $mod+r mode "resize"
  107. mode "resize" {
  108.         # These bindings trigger as soon as you enter the resize mode
  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 Left resize shrink width 10 px or 10 ppt
  114.         bindsym Down resize grow height 10 px or 10 ppt
  115.         bindsym Up resize shrink height 10 px or 10 ppt
  116.         bindsym Right resize grow width 10 px or 10 ppt
  117.  
  118.         # exit resize mode: Enter or Escape
  119.         bindsym Return mode "default"
  120.         bindsym Escape mode "default"
  121. }
  122.  
  123. # Screen brightness controls
  124. # bindsym XF86MonBrightnessUp exec "xbacklight -inc 10; notify-send 'brightness up'"
  125. # bindsym XF86MonBrightnessDown exec "xbacklight -dec 10; notify-send 'brightness down'"
  126.  
  127. # Screenshot
  128. bindsym Print exec --no-startup-id i3-scrot
  129. # bindsym Print exec teiler
  130.  
  131. # set default desktop layout (default is tiling)
  132. # workspace_layout tabbed <stacking|tabbed>
  133.  
  134. # Configure border style <normal|1pixel|pixel xx|none|pixel>
  135. new_window pixel 1
  136. new_float normal
  137.  
  138. # Hide borders
  139. hide_edge_borders none
  140.  
  141. # change borders
  142. bindsym $mod+u border none
  143. bindsym $mod+y border pixel 1
  144. bindsym $mod+n border normal
  145.  
  146. # Use Mouse+$mod to drag floating windows
  147. # floating_modifier $mod
  148.  
  149. ################################################################################################
  150. ## sound-section - DO NOT EDIT if you wish to automatically upgrade Alsa -> Pulseaudio later! ##
  151. ################################################################################################
  152.  
  153. exec --no-startup-id volumeicon
  154. bindsym $mod+Ctrl+m exec terminal -e 'alsamixer'
  155. #exec --no-startup-id pulseaudio
  156. #exec --no-startup-id pa-applet
  157. #bindsym $mod+Ctrl+m exec pavucontrol
  158.  
  159. ################################################################################################
  160.  
  161. # Move workspaces between output
  162. # bindsym $mod+y move workspace to output left
  163.  
  164. # Start Applications
  165. # bindsym $mod+F2 exec firefox-developer-edition
  166.  
  167. # workspace back and forth (with/without active container)
  168. # workspace_auto_back_and_forth yes
  169. # bindsym $mod+b workspace back_and_forth
  170. # bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth
  171.  
  172. # Open applications on specific workspaces
  173. # assign [class="firefox-developer-edition"] $ws1
  174.  
  175. # Open specific applications in floating mode
  176. for_window [class="GParted"] floating enable border normal
  177. for_window [class="Nitrogen"] floating enable sticky enable border normal
  178. for_window [class="Pamac-manager"] floating enable
  179. for_window [class="(?i)System-config-printer.py"] floating enable border normal
  180. for_window [class="Timeset-gui"] floating enable border normal
  181. for_window [class="(?i)virtualbox"] floating enable border normal
  182.  
  183. # switch to workspace with urgent window automatically
  184. # for_window [urgent=latest] focus
  185.  
  186. # Set shut down, restart and locking features
  187. bindsym $mod+0 mode "$mode_system"
  188. set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown
  189. mode "$mode_system" {
  190.     bindsym l exec --no-startup-id i3exit lock, mode "default"
  191.     bindsym s exec --no-startup-id i3exit suspend, mode "default"
  192.     bindsym u exec --no-startup-id i3exit switch_user, mode "default"
  193.     bindsym e exec --no-startup-id i3exit logout, mode "default"
  194.     bindsym h exec --no-startup-id i3exit hibernate, mode "default"
  195.     bindsym r exec --no-startup-id i3exit reboot, mode "default"
  196.     bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default"
  197.  
  198.     # exit system mode: "Enter" or "Escape"
  199.     bindsym Return mode "default"
  200.     bindsym Escape mode "default"
  201. }
  202.  
  203. # Lock screen
  204. bindsym $mod+l exec --no-startup-id blurlock
  205.  
  206. # Autostart applications
  207. exec_always --no-startup-id xrandr --output LVDS1 --mode 1280x720
  208. exec_always --no-startup-id nitrogen --restore
  209. exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
  210. exec --no-startup-id nm-applet
  211. exec --no-startup-id xfce4-power-manager
  212. exec --no-startup-id clipit
  213. exec --no-startup-id start_conky_grey
  214. # exec --no-startup-id pamac-tray
  215.  
  216. # disable touchpad
  217. exec --no-startup-id xinput set-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 0
  218.  
  219. # Start i3bar to display a workspace bar (plus the system information i3status if available)
  220. bar {
  221.     i3bar_command i3bar
  222.     status_command i3status
  223.     position bottom
  224.  
  225. ## please set your primary output first. Example: 'xrandr --output eDP1 --primary'
  226. #   tray_output primary
  227. #   tray_output eDP1
  228.  
  229.     bindsym button4 nop
  230.     bindsym button5 nop
  231. #   font xft:URWGothic-Book 11
  232.     strip_workspace_numbers yes
  233.  
  234.     colors {
  235.         background #222D31
  236.         statusline #F9FAF9
  237.         separator  #454947
  238.  
  239. #                      border  backgr. text
  240.         focused_workspace  #F9FAF9 #16a085 #292F34
  241.         active_workspace   #595B5B #353836 #FDF6E3
  242.         inactive_workspace #595B5B #222D31 #EEE8D5
  243.         binding_mode       #16a085 #2C2C2C #F9FAF9
  244.         urgent_workspace   #16a085 #FDF6E3 #E5201D
  245.     }
  246. }
  247.  
  248. # hide/unhide i3status bar
  249. bindsym $mod+m bar mode toggle
  250.  
  251. # Theme colors
  252. # class                   border  backgr. text    indic.   child_border
  253.   client.focused          #556064 #556064 #80FFF9 #FDF6E3
  254.   client.focused_inactive #2F3D44 #2F3D44 #1ABC9C #454948
  255.   client.unfocused        #2F3D44 #2F3D44 #1ABC9C #454948
  256.   client.urgent           #CB4B16 #FDF6E3 #1ABC9C #268BD2
  257.   client.placeholder      #000000 #0c0c0c #ffffff #000000
  258.  
  259.   client.background       #2B2C2B
  260.  
  261. #############################
  262. ### settings for i3-gaps: ###
  263. #############################
  264.  
  265. # Set inner/outer gaps
  266. gaps inner 14
  267. gaps outer -2
  268.  
  269. # Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size.
  270. # gaps inner|outer current|all set|plus|minus <px>
  271. # gaps inner all set 10
  272. # gaps outer all plus 5
  273.  
  274. # Smart gaps (gaps used if only more than one container on the workspace)
  275. smart_gaps on
  276.  
  277. # Smart borders (draw borders around container only if it is not the only container on this workspace)
  278. # on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0)
  279. smart_borders on
  280.  
  281. # Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps. Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace). If you also press Shift with these keys, the change will be global for all workspaces.
  282. set $mode_gaps Gaps: (o) outer, (i) inner
  283. set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
  284. set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
  285. bindsym $mod+Shift+g mode "$mode_gaps"
  286.  
  287. mode "$mode_gaps" {
  288.         bindsym o      mode "$mode_gaps_outer"
  289.         bindsym i      mode "$mode_gaps_inner"
  290.         bindsym Return mode "default"
  291.         bindsym Escape mode "default"
  292. }
  293. mode "$mode_gaps_inner" {
  294.         bindsym plus  gaps inner current plus 5
  295.         bindsym minus gaps inner current minus 5
  296.         bindsym 0     gaps inner current set 0
  297.  
  298.         bindsym Shift+plus  gaps inner all plus 5
  299.         bindsym Shift+minus gaps inner all minus 5
  300.         bindsym Shift+0     gaps inner all set 0
  301.  
  302.         bindsym Return mode "default"
  303.         bindsym Escape mode "default"
  304. }
  305. mode "$mode_gaps_outer" {
  306.         bindsym plus  gaps outer current plus 5
  307.         bindsym minus gaps outer current minus 5
  308.         bindsym 0     gaps outer current set 0
  309.  
  310.         bindsym Shift+plus  gaps outer all plus 5
  311.         bindsym Shift+minus gaps outer all minus 5
  312.         bindsym Shift+0     gaps outer all set 0
  313.  
  314.         bindsym Return mode "default"
  315.         bindsym Escape mode "default"
  316. }
  317.  
  318. #############
  319. ### CMus: ###
  320. #############
  321.  
  322. # Pulse Audio controls
  323. #increase sound volume
  324. bindsym XF86AudioRaiseVolume exec --no-startup-id /bin/bash "/home/yash/.i3/bin/volume.sh" up
  325. #decrease sound volume
  326. bindsym XF86AudioLowerVolume exec --no-startup-id /bin/bash "/home/yash/.i3/bin/volume.sh" down
  327. # mute sound
  328. bindsym XF86AudioMute exec --no-startup-id /bin/bash "/home/yash/.i3/bin/volume.sh" mute
  329. # Next Song
  330. bindsym XF86AudioNext exec --no-startup-id cmus-remote --next && pkill --signal SIGRTMIN+13 i3blocks
  331. # Prev Song
  332. bindsym XF86AudioPrev exec --no-startup-id cmus-remote --prev && pkill --signal SIGRTMIN+13 i3blocks
  333. # Play Pause
  334. bindsym XF86AudioPlay exec --no-startup-id cmus-remote --pause && pkill --signal SIGRTMIN+13 i3blocks
  335.  
  336. # Music control
  337. # Special music mode
  338. set $music Music (n) next, (b) prev, (p) play/pause
  339. mode "$music" {
  340.   bindsym n exec --no-startup-id cmus-remote --next && pkill --signal SIGRTMIN+13 i3blocks, mode "default"
  341.   bindsym b exec --no-startup-id cmus-remote --prev && pkill --signal SIGRTMIN+13 i3blocks, mode "default"
  342.   bindsym p exec --no-startup-id cmus-remote --pause && pkill --signal SIGRTMIN+13 i3blocks, mode "default"
  343.  
  344. # back to normal
  345.   bindsym Return mode "default"
  346.   bindsym Escape mode "default"
  347.  
  348. }
  349. # Emergency start cmus
  350. bindsym $mod+Shift+Tab exec screen -S cmus -d -m cmus && pkill --signal SIGRTMIN+13 i3blocks
  351. bindsym $mod+Tab mode "$music"
  352.  
  353. # Start cmus in the background on a separate screen session
  354. exec screen -S cmus -d -m cmus && sleep 5 && pkill --signal SIGRTMIN+13 i3blocks
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