Advertisement
Guest User

i3wm config

a guest
Apr 12th, 2020
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.45 KB | None | 0 0
  1. set $mod Mod4
  2.  
  3. font pango: Fira Code
  4.  
  5. floating_modifier $mod
  6.  
  7. ###############################################################################
  8. #
  9. # Keybindings are in the SXHKD config
  10. #
  11. ###############################################################################
  12.  
  13. bindsym $mod+m bar mode toggle
  14.  
  15. #set the workspace's names
  16. set $ws1 "1"
  17. set $ws2 "2"
  18. set $ws3 "3"
  19. set $ws4 "4"
  20. set $ws5 "5"
  21. set $ws6 "6"
  22. set $ws7 "7"
  23. set $ws8 "8"
  24. set $ws9 "9"
  25. set $ws10 "10"
  26.  
  27. for_window [urgent=latest] focus
  28.  
  29. bindsym $mod+r mode "resize"
  30. mode "resize" {
  31. bindsym j resize shrink width 5 px or 5 ppt
  32. bindsym k resize grow height 5 px or 5 ppt
  33. bindsym l resize shrink height 5 px or 5 ppt
  34. bindsym semicolon resize grow width 5 px or 5 ppt
  35. bindsym Return mode "default"
  36. bindsym Escape mode "default"
  37. }
  38.  
  39.  
  40. set $mode_dmenu (b)ookmarkmenu, (p)assmenu, (s)creenmenu
  41. bindsym $mod+Shift+d mode "$mode_dmenu"
  42. mode "$mode_dmenu" {
  43. bindsym b exec bash ~/.scripts/dmenu_scripts/bookmarkmenu; mode "default"
  44. bindsym p exec bash ~/.scripts/dmenu_scripts/passmenu; mode "default"
  45. bindsym s exec bash ~/.scripts/dmenu_scripts/screenmenu; mode "default"
  46. bindsym Return mode "default"
  47. bindsym Escape mode "default"
  48. }
  49.  
  50. set $screenshot_menu (e)verything, (c)urrent, (s)elect
  51. bindsym $mod+Print mode "$screenshot_menu"
  52. mode "$screenshot_menu" {
  53. set $SCREENSHOT ~/Pictures/screenshots/$(date +'%F__%T:%N').png
  54. bindsym e mode "default", exec --no-startup-id maim $SCREENSHOT
  55. bindsym c mode "default", exec --no-startup-id maim -i $(xdotool getactivewindow) $SCREENSHOT
  56. bindsym s mode "default", exec --no-startup-id maim -s $SCREENSHOT
  57. bindsym Return mode "default"
  58. bindsym Escape mode "default"
  59. }
  60.  
  61.  
  62. ###############################################################################
  63. #
  64. # COLOURS - GRUVBOX THEME
  65. # SOURCE: https://github.com/a-schaefers/i3-wm-gruvbox-theme
  66. #
  67. ###############################################################################
  68.  
  69. set $bg #282828
  70. set $red #cc241d
  71. set $green #98971a
  72. set $yellow #d79921
  73. set $blue #458588
  74. set $purple #b16286
  75. set $aqua #689d68
  76. set $gray #a89984
  77. set $darkgray #1d2021
  78.  
  79. ###############################################################################
  80. #
  81. # i3bar
  82. #
  83. ###############################################################################
  84.  
  85. bar {
  86. font pango: Fira Code 12, FontAwesome 13
  87. status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf
  88. position top
  89. strip_workspace_numbers yes
  90.  
  91. colors {
  92. separator $FFFFFF
  93. background $bg
  94. statusline $yellow
  95.  
  96. # border background text
  97. focused_workspace $aqua $aqua $darkgray
  98. inactive_workspace $darkgray $darkgray $yellow
  99. active_workspace $blue $blue $darkgray
  100. urgent_workspace $red $red $bg
  101. }
  102. }
  103.  
  104. ###############################################################################
  105. #
  106. # WINDOW COLOURS
  107. #
  108. ###############################################################################
  109.  
  110. # class border backgr text indicator child_brdr
  111. client.focused $darkgray $blue $darkgray $purple $yellow
  112. client.focused_inactive $darkgray $darkgray $yellow $purple $darkgray
  113. client.unfocused $darkgray $darkgray $yellow $purple $darkgray
  114. client.urgent $red $red $white $red $red
  115. client.background $darkgrey
  116.  
  117. ###############################################################################
  118. #
  119. # WINDOW GAPS
  120. #
  121. ###############################################################################
  122.  
  123. # smart_gaps true
  124. #gaps inner 5
  125. #gaps outer
  126. for_window [class="^.*"] border pixel 3
  127.  
  128. ###############################################################################
  129. #
  130. # STARTUP
  131. #
  132. ###############################################################################
  133.  
  134. exec --no-startup-id flameshot
  135. exec --no-startup-id nm-applet
  136. exec --no-startup-id blueman-applet
  137. exec --no-startup-id pasystray
  138. exec --no-startup-id udiskie
  139. exec --no-startup-id sxhkd
  140.  
  141. exec_always --no-startup-id xrdr auto
  142. exec_always --no-startup-id nitrogen --restore &
  143. focus_follows_mouse no
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement