all repos

dotfiles @ f8ffdbda2e0dbb8e3cd065e9dfca7a904eaa62d3

i use rach linux btw

dotfiles/config/i3/config (view raw)

1
############# General #############
2
# Bind $MOD(super) key
3
set $mod Mod4
4
# Font
5
font monospace 10
6
font pango:hack 10
7
# Disable window title
8
default_border pixel
9
10
############ Autostart ############
11
exec --no-startup-id exec picom -b
12
exec --no-startup-id exec feh --bg-scale ~/Imager/wallpaper.png
13
exec --no-startup-id exec setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle"
14
exec --no-startup-id exec org.telegram.desktop
15
exec --no-startup-id exec discord
16
17
############ Key bindings #########
18
# Terminal
19
bindsym $mod+Return exec kitty
20
#bindsym $mod+Return exec konsole
21
22
# Kill focus window
23
bindsym $mod+q kill
24
bindsym Mod1+F4 kill
25
26
# Program/Exit louncher
27
bindsym $mod+space exec "rofi -show drun -show-icons -font 'hack 12' -show cobi -disable-history"
28
bindsym $mod+Escape exec "rofi -show power-menu -show-icons -font 'hack 12' -width 30 -lines 6 -disable-history -modi power-menu:~/.config/rofi/rofi-power-menu"
29
# Restart i3wm
30
bindsym $mod+Shift+r restart
31
32
# Load program
33
bindsym $mod+F1 exec dolphin
34
bindsym $mod+F2 exec chromium
35
bindsym $mod+b exec firefox
36
bindsym $mod+F3 exec spotify
37
bindsym $mod+F4 exec subl
38
bindsym $mod+F5 exec notable
39
40
# Floating window
41
floating_modifier $mod
42
bindsym $mod+Shift+space floating toggle
43
bindsym $mod+Shift+f focus mode_toggle
44
45
# Fullscreen mode
46
bindsym $mod+f fullscreen toggle
47
bindsym $mod+F11 fullscreen toggle
48
49
# Splits
50
bindsym $mod+h split h
51
bindsym $mod+v split v
52
53
# Focus the parent container
54
bindsym $mod+a focus parent
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
# Scratchpad
62
bindsym $mod+Shift+grave move scratchpad
63
bindsym $mod+grave scratchpad show
64
65
######### Window preferens ########
66
assign [class="(?i)konsole|kitty"] $ws1
67
assign [class="(?i)chromium|firefox"] $ws2
68
assign [class="(?i)subl|code|atom|typora|prepros"] $ws3
69
assign [class="(?i)dolphin"] $ws4
70
assign [class="(?i)telegram|discord"] $ws6
71
assign [title="Notable|Simplenote"] $ws7
72
assign [title="KeePassXC"] $ws8
73
for_window [class="Spotify"] move to workspace $ws10
74
75
##### Change containet focus ######
76
# Vim like keys container
77
bindsym $mod+j focus left
78
bindsym $mod+k focus down
79
bindsym $mod+l focus up
80
bindsym $mod+semicolon focus right
81
82
# Alternatively cursor keys
83
bindsym $mod+Left focus left
84
bindsym $mod+Down focus down
85
bindsym $mod+Up focus up
86
bindsym $mod+Right focus right
87
88
##### Move focused container ######
89
# Vim like keys
90
bindsym $mod+Shift+j move left
91
bindsym $mod+Shift+k move down
92
bindsym $mod+Shift+l move up
93
bindsym $mod+Shift+colon move right
94
95
# Alternatively cursor keys
96
bindsym $mod+Shift+Left move left
97
bindsym $mod+Shift+Down move down
98
bindsym $mod+Shift+Up move up
99
bindsym $mod+Shift+Right move right
100
101
############ Workspaces ###########
102
set $ws1 "1"
103
set $ws2 "2"
104
set $ws3 "3"
105
set $ws4 "4"
106
set $ws5 "5"
107
set $ws6 "6"
108
set $ws7 "7"
109
set $ws8 "8"
110
set $ws9 "9"
111
set $ws10 "10"
112
113
# Switch workspace
114
bindsym $mod+1 workspace $ws1
115
bindsym $mod+2 workspace $ws2
116
bindsym $mod+3 workspace $ws3
117
bindsym $mod+4 workspace $ws4
118
bindsym $mod+5 workspace $ws5
119
bindsym $mod+6 workspace $ws6
120
bindsym $mod+7 workspace $ws7
121
bindsym $mod+8 workspace $ws8
122
bindsym $mod+9 workspace $ws9
123
bindsym $mod+0 workspace $ws10
124
125
# Move focused container to workspace
126
bindsym $mod+Shift+1 move container to workspace $ws1
127
bindsym $mod+Shift+2 move container to workspace $ws2
128
bindsym $mod+Shift+3 move container to workspace $ws3
129
bindsym $mod+Shift+4 move container to workspace $ws4
130
bindsym $mod+Shift+5 move container to workspace $ws5
131
bindsym $mod+Shift+6 move container to workspace $ws6
132
bindsym $mod+Shift+7 move container to workspace $ws7
133
bindsym $mod+Shift+8 move container to workspace $ws8
134
bindsym $mod+Shift+9 move container to workspace $ws9
135
bindsym $mod+Shift+0 move container to workspace $ws10
136
137
########### Resize mode ###########
138
mode "resize" {
139
    bindsym j resize shrink width 10 px or 10 ppt
140
    bindsym k resize grow height 10 px or 10 ppt
141
    bindsym l resize shrink height 10 px or 10 ppt
142
    bindsym semicolon resize grow width 10 px or 10 ppt
143
    
144
    # same bindings, but for the arrow keys
145
    bindsym Left resize shrink width 10 px or 10 ppt
146
    bindsym Down resize grow height 10 px or 10 ppt
147
    bindsym Up resize shrink height 10 px or 10 ppt
148
    bindsym Right resize grow width 10 px or 10 ppt
149
    
150
    # back to normal: Enter or Escape or $mod+r
151
    bindsym Return mode "default"
152
    bindsym Escape mode "default"
153
    bindsym $mod+r mode "default"
154
}
155
bindsym $mod+r mode "resize"
156
157
############### Bar ###############
158
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
159
#bar {
160
#   status_command i3status
161
#   position top 
162
#}
163
164
############## Colors #############
165
# class                 border  backgr. text    indicator child_border
166
client.focused          #268bd2 #268bd2 #ffffff #268bd2   #268bd2
167
client.focused_inactive #000000 #000000 #ffffff #000000   #000000
168
client.unfocused        #000000 #000000 #888888 #000000   #000000
169
client.urgent           #000000 #000000 #ffffff #000000   #000000
170
client.placeholder      #000000 #000000 #ffffff #000000   #000000
171
client.background       #ffffff