all repos

dotfiles @ c7da10d

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