all repos

dotfiles @ 53d009b67149cc355a1286494ecb955845ed6424

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