Advertisement
Guest User

.config/i3/config

a guest
Mar 20th, 2024
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.87 KB | None | 0 0
  1. # i3 config file (v4)
  2.  
  3. set $mod Mod4
  4.  
  5. font pango:System San Francisco Display 8
  6.  
  7. exec_always --no-startup-id setxkbmap "us,ru" ",winkeys" "grp:caps_toggle,grp_led:scroll" &
  8. exec_always --no-startup-id picom --config $HOME/.config/picom/picom.conf &
  9. exec_always --no-startup-id killall polybar; polybar
  10.  
  11. exec --no-startup-id dex --autostart --environment i3
  12. exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
  13. exec --no-startup-id nm-applet
  14. exec --no-startup-id nitrogen --restore
  15. exec --no-startup-id firefox
  16. exec --no-startup-id xautolock -time 15 -locker "$HOME/scripts/lock.sh"
  17.  
  18. bindsym $mod+q kill
  19. bindsym $mod+w layout tabbed
  20. #bindsym $mod+s layout stacking
  21. #bindsym $mod+e layout toggle split
  22.  
  23. bindsym $mod+u exec flameshot gui
  24. bindsym $mod+Shift+u exec flameshot full
  25. bindsym $mod+Shift+p exec i3lock -c 000000
  26. # ...
  27.  
  28. bindsym $mod+a focus parent
  29.  
  30. bindsym $mod+h focus left
  31. bindsym $mod+j focus down
  32. bindsym $mod+k focus up
  33. bindsym $mod+l focus right
  34.  
  35. bindsym $mod+Shift+h move left
  36. bindsym $mod+Shift+j move down
  37. bindsym $mod+Shift+k move up
  38. bindsym $mod+Shift+l move right
  39.  
  40. bindsym $mod+n exec --no-startup-id dmenu_run_history -fn 'Iosevka Nerd Font-10' -nb '#121212' -sf '#eeeeee' -sb '#262626' -nf '#ffffff'
  41. # ...
  42. bindsym $mod+Shift+n exec pcmanfm
  43. bindsym $mod+Return exec urxvt
  44.  
  45. # Use pactl to adjust volume in PulseAudio.
  46. set $refresh_i3status killall -SIGUSR1 i3status
  47. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
  48. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
  49. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
  50. bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
  51.  
  52. # Use Mouse+$mod to drag floating windows to their wanted position
  53. floating_modifier $mod
  54.  
  55. bindsym $mod+g split h
  56. bindsym $mod+v split v
  57. bindsym $mod+f fullscreen toggle
  58. bindsym $mod+o floating toggle
  59. #bindsym $mod+d focus child
  60.  
  61. default_border pixel 1
  62. default_floating_border pixel 1
  63. hide_edge_borders both
  64.  
  65. # Define names for default workspaces for which we configure key bindings later on.
  66. set $ws1 "1"
  67. set $ws2 "2"
  68. set $ws3 "3"
  69. set $ws4 "4"
  70. set $ws5 "5"
  71. set $ws6 "6"
  72. set $ws7 "7"
  73. set $ws8 "8"
  74. set $ws9 "9"
  75. set $ws10 "10"
  76.  
  77. # Switch to workspace
  78. bindsym $mod+1 workspace number $ws1
  79. bindsym $mod+2 workspace number $ws2
  80. bindsym $mod+3 workspace number $ws3
  81. bindsym $mod+4 workspace number $ws4
  82. bindsym $mod+5 workspace number $ws5
  83. bindsym $mod+6 workspace number $ws6
  84. bindsym $mod+7 workspace number $ws7
  85. bindsym $mod+8 workspace number $ws8
  86. bindsym $mod+9 workspace number $ws9
  87. bindsym $mod+0 workspace number $ws10
  88.  
  89. # Move focused container to workspace
  90. bindsym $mod+Shift+1 move container to workspace number $ws1
  91. bindsym $mod+Shift+2 move container to workspace number $ws2
  92. bindsym $mod+Shift+3 move container to workspace number $ws3
  93. bindsym $mod+Shift+4 move container to workspace number $ws4
  94. bindsym $mod+Shift+5 move container to workspace number $ws5
  95. bindsym $mod+Shift+6 move container to workspace number $ws6
  96. bindsym $mod+Shift+7 move container to workspace number $ws7
  97. bindsym $mod+Shift+8 move container to workspace number $ws8
  98. bindsym $mod+Shift+9 move container to workspace number $ws9
  99. bindsym $mod+Shift+0 move container to workspace number $ws10
  100.  
  101. # Reload the configuration file
  102. #bindsym $mod+Shift+c reload
  103.  
  104. # Restart i3 inplace
  105. bindsym $mod+Shift+x restart
  106.  
  107. # Exit i3 (log out of X session)
  108. bindsym $mod+Shift+b exec "i3-nagbar -t warning -m 'Exit i3?' -B 'Yes' 'i3-msg exit.'"
  109.  
  110. #gaps inner 8px
  111.  
  112. # Resize window
  113. mode "resize" {
  114.         bindsym h resize shrink width  2 px or 2 ppt
  115.         bindsym j resize grow   height 2 px or 2 ppt
  116.         bindsym k resize shrink height 2 px or 2 ppt
  117.         bindsym l resize grow   width  2 px or 2 ppt
  118.  
  119.         # Back to normal: Enter or Escape or $mod+r
  120.         bindsym Return mode "default"
  121.         bindsym Escape mode "default"
  122.         bindsym $mod+r mode "default"
  123. }
  124.  
  125. # Resize mode
  126. bindsym $mod+Shift+r mode "resize"
  127.  
  128. # Colors for windows and bar
  129. set $bg-color            #2f343f
  130. set $inactive-bg-color   #2f343f
  131. set $text-color          #f3f4f5
  132. set $inactive-text-color #676E7D
  133. set $urgent-bg-color     #E53935
  134.  
  135. # window colors
  136. set $indicator #b5b5b5
  137. #                       border              background         text                 indicator
  138. client.focused          $bg-color           $bg-color          $text-color          $indicator
  139. client.unfocused        $inactive-bg-color  $inactive-bg-color $inactive-text-color $indicator
  140. client.focused_inactive $inactive-bg-color  $inactive-bg-color $inactive-text-color $indicator
  141. client.urgent           $urgent-bg-color    $urgent-bg-color   $text-color          $indicator
  142.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement