all repos

dotfiles @ ae217b0

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
# 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 firefox 
21
set $filemanager pcmanfm
22
23
############ Autostart ############
24
exec --no-startup-id exec picom -b
25
exec --no-startup-id exec nmcli radio wifi on && nmcli device wifi connect $(echo $WIFINAME) password $(echo $WIFIPASS) name net
26
#exec --no-startup-id exec redshift-gtk
27
exec --no-startup-id exec nitrogen --restore
28
exec --no-startup-id exec setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps"
29
exec --no-startup-id exec org.telegram.desktop
30
#exec --no-startup-id exec conky
31
#exec --no-startup-id exec discord
32
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
33
exec_always --no-startup-id $HOME/.config/i3/bar.sh
34
35
############ Key bindings #########
36
37
### I3
38
# Kill focus window
39
bindsym $mod+q kill
40
# Restart i3wm
41
bindsym $mod+Control+r restart
42
# Focus the parent container
43
bindsym $mod+a focus parent
44
# Floating window
45
bindsym $mod+Shift+space floating toggle
46
# Splits
47
bindsym $mod+b split h
48
bindsym $mod+v split v
49
# Change container layout(stacked, tabbed, toggle split)
50
bindsym $mod+s layout stacking
51
bindsym $mod+w layout tabbed
52
bindsym $mod+e layout toggle split
53
# Scratchpad
54
bindsym $mod+Shift+grave move scratchpad
55
bindsym $mod+grave scratchpad show, floating disable
56
57
### Launchers
58
bindsym $mod+Shift+apostrophe exec "rofi -show run"
59
bindsym $mod+Shift+Return exec "rofi -show drun"
60
bindsym $mod+Escape exec ~/.script/dmenu/dmenu-power.sh -h 24
61
bindsym $mod+Control+u exec ~/.script/dmenu/dmenu-config-edit.sh -h 24
62
bindsym $mod+Control+i exec passmenu -h 24 -p Passwords
63
64
### Applications
65
bindsym $mod+Return exec $terminal
66
bindsym $mod+F2 exec $browser 
67
bindsym $mod+F4 exec $filemanager
68
bindsym --release $mod+Shift+Escape exec xkill
69
bindsym $mod+$alt+t exec $terminal nvim .todo
70
71
72
### Sceenshot
73
bindsym --release Print exec "scrot -s /home/${USER}/$(date +%Y-%m-%d-%H-%M-%S).png"
74
bindsym --release Shift+Print exec "scrot /home/${USER}/$(date +%Y-%m-%d-%H-%M-%S).png"
75
76
77
### Volume
78
bindsym $mod+plus exec "pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo +5%"
79
bindsym $mod+minus exec "pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo  -5%"
80
bindsym $mod+Shift+minus exec "pactl set-sink-mute alsa_output.pci-0000_00_1b.0.analog-stereo toggle"
81
82
######### Window preferens ########
83
#assign [class="Kitty"] $ws1
84
#assign [class="(?i)chromium|firefox|qutebrowser"] $ws2
85
#assign [class="(?i)subl|code|emacs"] $ws3
86
#assign [class="(?i)thunar"] $ws4
87
#assign [title="Notable|Simplenote"] $ws5
88
assign [class="(?i)telegram|discord|viber"] $ws6
89
assign [title="KeePassXC"] $ws7
90
#for_window [title="Ranger_FM"] move to workspace $ws4
91
#for_window [class="Spotify"] move to workspace $ws9
92
for_window [class="(?i)mousepad"] floating enable
93
for_window [class="(?i)lxappearance|qt5ct"] floating enable
94
for_window [class="(?i)nitrogen"] floating enable
95
#focus_on_window_activation focus
96
97
############## Gaps ###############
98
#gaps inner 4
99
#smart_gaps on
100
101
##### Change containet focus ######
102
bindsym $mod+h focus left
103
bindsym $mod+Left focus left
104
bindsym $mod+j focus down
105
bindsym $mod+Down focus down
106
bindsym $mod+k focus up
107
bindsym $mod+Up focus up
108
bindsym $mod+l focus right
109
bindsym $mod+Right focus right
110
111
##### Move focused container ######
112
bindsym $mod+Shift+h move left
113
bindsym $mod+Shift+Left move left
114
bindsym $mod+Shift+j move down
115
bindsym $mod+Shift+Down move down
116
bindsym $mod+Shift+k move up
117
bindsym $mod+Shift+Up move up
118
bindsym $mod+Shift+l move right
119
bindsym $mod+Shift+Right move right
120
121
##### Restart focused window ######
122
bindsym $mod+Control+h resize shrink width 20 px or 20 ppt
123
bindsym $mod+Control+Left resize shrink width 20 px or 20 ppt
124
bindsym $mod+Control+j resize grow height 20 px or 20 ppt
125
bindsym $mod+Control+Down resize grow height 20 px or 20 ppt
126
bindsym $mod+Control+k resize shrink height 20 px or 20 ppt
127
bindsym $mod+Control+Up resize shrink height 20 px or 20 ppt
128
bindsym $mod+Control+l resize grow width 20 px or 20 ppt
129
bindsym $mod+Control+Right resize grow width 20 px or 20 ppt
130
131
############ Workspaces ###########
132
set $ws1 "1"
133
set $ws2 "2"
134
set $ws3 "3"
135
set $ws4 "4"
136
set $ws5 "5"
137
set $ws6 "6"
138
set $ws7 "7"
139
set $ws8 "8"
140
set $ws9 "9"
141
142
bindsym $mod+1 workspace $ws1
143
bindsym $mod+2 workspace $ws2
144
bindsym $mod+3 workspace $ws3
145
bindsym $mod+4 workspace $ws4
146
bindsym $mod+5 workspace $ws5
147
bindsym $mod+6 workspace $ws6
148
bindsym $mod+7 workspace $ws7
149
bindsym $mod+8 workspace $ws8
150
bindsym $mod+9 workspace $ws9
151
152
bindsym $mod+Shift+1 move container to workspace $ws1
153
bindsym $mod+Shift+2 move container to workspace $ws2
154
bindsym $mod+Shift+3 move container to workspace $ws3
155
bindsym $mod+Shift+4 move container to workspace $ws4
156
bindsym $mod+Shift+5 move container to workspace $ws5
157
bindsym $mod+Shift+6 move container to workspace $ws6
158
bindsym $mod+Shift+7 move container to workspace $ws7
159
bindsym $mod+Shift+8 move container to workspace $ws8
160
bindsym $mod+Shift+9 move container to workspace $ws9
161
162
############## Modes ##############
163
bindsym $mod+g mode "gaps"
164
mode "gaps" {
165
        bindsym plus  gaps inner current plus 2
166
        bindsym minus gaps inner current minus 2
167
        bindsym 0     gaps inner current set 0
168
169
        bindsym Shift+plus  gaps inner all plus 4
170
        bindsym Shift+minus gaps inner all minus 4
171
        bindsym Shift+0     gaps inner all set 0
172
173
        bindsym Return mode "default"
174
        bindsym Escape mode "default"
175
        bindsym $mod+g mode "default"
176
}
177
178
############## Colors #############
179
#        Class          Border   Backgr   Text     Indicator Child_border
180
client.focused          #008DCD  #008DCD  #FFFFFF  #008DCD   #008DCD
181
client.focused_inactive #008DCD  #002b36  #DFDFDF  #002b36   #002b36
182
client.unfocused        #262A2B  #262A2B  #DFDFDF  #262A2B   #262A2B
183
client.urgent           #002b36  #262A2B  #FFFFFF  #262A2B   #262A2B
184
client.placeholder      #000000  #000000  #FFFFFF  #000000   #000000
185
client.background       #FFFFFF