aboutsummaryrefslogtreecommitdiff
path: root/.config/i3/config
blob: fdbc394f6f6e222c4f5c654e9ead91f07df9a2cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# variables
set $mod Mod4
set $inner_gaps 16
set $outer_gaps 0

# set gaps
gaps inner $inner_gaps
gaps outer $outer_gaps

# border color
client.focused          #262427 #262427 #fdf9f7 #262427 #262427
client.focused_inactive #121213 #121213 #fdf9f7 #121213 #121213
client.unfocused        #121213 #121213 #fdf9f7 #121213 #121213
client.urgent           #121213 #de9dac #fdf9f7 #de9dac #de9dac
client.placeholder      #000000 #0c0c0c #fdf9f7 #121213 #121213
client.background       #f9ece8

# Replace window decorations with a border
for_window [class=".*"] border pixel 0

# font
font pango:Inter 9

# no idea what these do but they were in here by default
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
exec --no-startup-id nm-applet
set $refresh_i3status killall -SIGUSR1 i3status

floating_modifier $mod

# Gaps
bindsym $mod+i gaps inner current plus 5
bindsym $mod+Shift+i gaps inner current minus 5
bindsym $mod+o gaps outer current plus 5
bindsym $mod+Shift+o gaps outer current minus 5
bindsym $mod+n gaps inner current set -1; gaps outer current set 0
bindsym $mod+d gaps inner current set $inner_gaps; gaps outer current set $outer_gaps;

# Autostart
exec "polybar main -c ~/.config/polybar/config &"
exec "node ~/.local/share/bin/pywal/wall.js &"
exec "picom -b"
exec "xbanish &"
exec "redshift &"
exec "dunst &"
exec "flashfocus &"
exec "xset r rate 250 40"
exec "autocutsel &"
exec "xbindkeys -f ~/.config/xbindkeys/main"
exec "xbindkeys -f ~/.config/xbindkeys/delay"

# split in horizontal orientation
bindsym $mod+bar split h
bindsym $mod+minus split v

# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle

# toggle tiling / floating
bindsym $mod+Shift+space floating toggle

# change focus between tiling / floating windows
bindsym $mod+Alt+space focus mode_toggle

# focus the parent container
bindsym $mod+Shift+a focus parent

# workspaces
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"

# switch to workspace
bindsym $mod+1 workspace number $ws1
bindsym $mod+2 workspace number $ws2
bindsym $mod+3 workspace number $ws3
bindsym $mod+4 workspace number $ws4
bindsym $mod+5 workspace number $ws5
bindsym $mod+6 workspace number $ws6
bindsym $mod+7 workspace number $ws7
bindsym $mod+8 workspace number $ws8

# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number $ws1
bindsym $mod+Shift+2 move container to workspace number $ws2
bindsym $mod+Shift+3 move container to workspace number $ws3
bindsym $mod+Shift+4 move container to workspace number $ws4
bindsym $mod+Shift+5 move container to workspace number $ws5
bindsym $mod+Shift+6 move container to workspace number $ws6
bindsym $mod+Shift+7 move container to workspace number $ws7
bindsym $mod+Shift+8 move container to workspace number $ws8

# always floating windows
for_window [class="Steam"] floating enable
for_window [class="cinquo"] floating enable
for_window [class="Conky"] floating enable
for_window [title="Farge"] floating enable
for_window [title="^\[floating\].*"] floating enable
for_window [window_type=notification] floating enable

for_window [class="Unturned.x86_64"] floating disable
for_window [class="Unturned.x86_64"] fullscreen disable