all repos

dotfiles @ b11c53f

i use rach linux btw

dotfiles/config/i3/config (view raw)

1
############# General #############
2
# Bind $MOD(super) key
3
set $mod Mod4
4
set $alt Mod1
5
floating_modifier $mod
6
7
# Set font
8
font monospace 10
9
font pango:JetBrains Mono 10
10
11
# Disable window title
12
default_border pixel
13
new_float pixel
14
15
# Borders
16
hide_edge_borders smart
17
18
############ Variables ###########
19
set $terminal kitty
20
set $browser google-chrome-stable
21
set $filemanager kitty --class ranger -e ranger
22
set $codeeditor kitty --class nvim -e nvim
23
set $guicode code
24
25
############ Autostart ############
26
exec_always --no-startup-id exec setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps"
27
exec --no-startup-id exec picom -b
28
exec --no-startup-id exec nitrogen --restore
29
exec --no-startup-id exec lxsession
30
31
############## WM keys ############
32
33
# Kill window
34
bindsym $mod+q kill
35
bindsym --release $mod+Shift+q exec xkill
36
37
# Restart i3wm
38
bindsym $mod+Control+r restart
39
40
# Floating layout
41
bindsym $mod+Shift+Tab floating toggle
42
43
# Tab layout
44
bindsym $mod+Control+w layout tabbed
45
46
# Split layout
47
bindsym $mod+Control+e layout toggle split
48
49
# Splits
50
bindsym $mod+b split h
51
bindsym $mod+v split v
52
53
# Scratchpad
54
bindsym $mod+Shift+grave move scratchpad
55
bindsym $mod+grave scratchpad show, floating disable
56
57
############## User key ###########
58
59
# Menus
60
bindsym $mod+Shift+Return exec rofi -show drun -theme ntenV2
61
bindsym $mod+Escape exec ~/.script/dmenu/dmenu-power.sh
62
bindsym $mod+Control+u exec ~/.script/dmenu/dmenu-config-edit.sh
63
bindsym $mod+Control+i exec ~/.script/dmenu/dmenu-pass.sh
64
65
# Apps
66
bindsym $mod+Return exec $terminal
67
bindsym $mod+Shift+w exec $browser
68
bindsym $mod+Shift+f exec $filemanager
69
bindsym $mod+Shift+e exec $codeeditor
70
bindsym $mod+Shift+c exec $guicode
71
bindsym $mod+Shift+v exec veracrypt
72
bindsym $mod+Shift+s exec ~/.applications/simplenote.appimage
73
74
# Sceenshot
75
bindsym --release Print exec scrot -s /home/${USER}/$(date +%Y-%m-%d-%H-%M-%S).png
76
bindsym Shift+Print exec scrot /home/${USER}/$(date +%Y-%m-%d-%H-%M-%S).png
77
78
# Lockscreen
79
bindsym $mod+Shift+z exec betterlockscreen --off 180 -t "Computer is lockerd" -l
80
81
# Volume
82
bindsym $mod+plus exec amixer sset Master 2%+
83
bindsym $mod+minus exec amixer sset Master 2%-
84
bindsym $mod+Shift+minus exec amixer sset Master toggle
85
86
######### Window preferens ########
87
assign [class="(?i)alacritty|kitty"] $ws1
88
assign [class="(?i)google-chrome-stable|firefox"] $ws2
89
assign [class="Code|nvim"] $ws3
90
assign [class="Thunar|ranger"] $ws4
91
assign [class="Joplin|Simplenote"] $ws5
92
assign [class="TelegramDesktop|discord"] $ws6
93
for_window [class="TelegramDesktop|discord"] layout tabbed
94
assign [class="KeePassXC"] $ws7
95
assign [class="Spotify"] $ws9
96
for_window [title="Google Tasks"] floating enable
97
focus_on_window_activation focus
98
99
########## Change focus ###########
100
bindsym $mod+h focus left
101
bindsym $mod+Left focus left
102
bindsym $mod+j focus down
103
bindsym $mod+Down focus down
104
bindsym $mod+k focus up
105
bindsym $mod+Up focus up
106
bindsym $mod+l focus right
107
bindsym $mod+Right focus right
108
109
########## Move window ############
110
bindsym $mod+Shift+h move left
111
bindsym $mod+Shift+Left move left
112
bindsym $mod+Shift+j move down
113
bindsym $mod+Shift+Down move down
114
bindsym $mod+Shift+k move up
115
bindsym $mod+Shift+Up move up
116
bindsym $mod+Shift+l move right
117
bindsym $mod+Shift+Right move right
118
119
########## Resize window ##########
120
bindsym $mod+Control+h resize shrink width 5 px or 5 ppt
121
bindsym $mod+Control+Left resize shrink width 5 px or 5 ppt
122
bindsym $mod+Control+j resize grow height 5 px or 5 ppt
123
bindsym $mod+Control+Down resize grow height 5 px or 5 ppt
124
bindsym $mod+Control+k resize shrink height 5 px or 5 ppt
125
bindsym $mod+Control+Up resize shrink height 5 px or 5 ppt
126
bindsym $mod+Control+l resize grow width 5 px or 5 ppt
127
bindsym $mod+Control+Right resize grow width 5 px or 5 ppt
128
129
############ Workspaces ###########
130
set $ws1 "1"
131
set $ws2 "2"
132
set $ws3 "3"
133
set $ws4 "4"
134
set $ws5 "5"
135
set $ws6 "6"
136
set $ws7 "7"
137
set $ws8 "8"
138
set $ws9 "9"
139
140
bindsym $mod+1 workspace $ws1
141
bindsym $mod+2 workspace $ws2
142
bindsym $mod+3 workspace $ws3
143
bindsym $mod+4 workspace $ws4
144
bindsym $mod+5 workspace $ws5
145
bindsym $mod+6 workspace $ws6
146
bindsym $mod+7 workspace $ws7
147
bindsym $mod+8 workspace $ws8
148
bindsym $mod+9 workspace $ws9
149
150
bindsym $mod+Shift+1 move container to workspace $ws1
151
bindsym $mod+Shift+2 move container to workspace $ws2
152
bindsym $mod+Shift+3 move container to workspace $ws3
153
bindsym $mod+Shift+4 move container to workspace $ws4
154
bindsym $mod+Shift+5 move container to workspace $ws5
155
bindsym $mod+Shift+6 move container to workspace $ws6
156
bindsym $mod+Shift+7 move container to workspace $ws7
157
bindsym $mod+Shift+8 move container to workspace $ws8
158
bindsym $mod+Shift+9 move container to workspace $ws9
159
160
############### Bar ###############
161
bar {
162
    # status_command i3status -c ~/.config/i3/i3status
163
    status_command i3status-rs ~/.config/i3/i3status-rs.toml
164
    font pango:JetBrains Mono 10
165
    position top
166
    colors {
167
      background #262A2B
168
      statusline #FFFFFF
169
      separator  #58676C
170
      focused_workspace  #008DCD #008DCD #FFFFFF
171
      active_workspace   #262A2B #262A2B #FFFFFF
172
      inactive_workspace #262A2B #262A2B #DFDFDF
173
      urgent_workspace   #FF6C6B #FF6C6B #FFFFFF
174
      binding_mode       #2F343A #900000 #FFFFFF
175
  }
176
}
177
############## Colors #############
178
#        Class          Border   Backgr   Text     Indicator Child_border
179
client.focused          #008DCD  #008DCD  #FFFFFF  #008DCD   #008DCD
180
client.focused_inactive #008DCD  #002b36  #DFDFDF  #002b36   #002b36
181
client.unfocused        #262A2B  #262A2B  #DFDFDF  #262A2B   #262A2B
182
client.urgent           #002b36  #262A2B  #FFFFFF  #262A2B   #262A2B
183
client.placeholder      #000000  #000000  #FFFFFF  #000000   #000000
184
client.background       #FFFFFF
185
186
# vim: ft=i3config