~andrewzah/dotfiles

ref: debian-desktop dotfiles/config/i3/config -rw-r--r-- 3.2 KiB
7d7677b7Andrew Zah update 1 year, 10 months ago
                                                                                
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
109
110
111
112
113
114
## font
font pango:Inconsolata 10

## i3 ModKeys
set $mod Mod4
set $cmod Mod1

## terminal
bindsym $cmod+Enter /usr/local/bin/alacritty

set $work1 "Mercury"
set $work2 "Venus"
set $work3 "Earth"
set $work4 "Mars"
set $work5 "Jupiter"
set $work6 "Saturn"
set $work7 "Uranus"
set $work8 "Neptune"
set $work9 "Pluto"

# default workspaces to each monitor
workspace $work1 output DP-2
workspace $work2 output HDMI-0
workspace $work3 output DVI-I-1

# startup applications
exec_always --no-startup-id $HOME/.config/i3/polybar.sh
exec_always feh --bg-scale ~/sync/general/wallpapers/doom1.jpg ~/sync/general/wallpapers/doom1.jpg

## i3 Opts
default_border pixel 2
default_floating_border pixel 2
new_window pixel 2

# Floating mode
#floating_modifer $mod

# Focus keys
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right

# Move keys
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right

# Move workspaces
bindsym $mod+1 workspace $work1
bindsym $mod+2 workspace $work2
bindsym $mod+3 workspace $work3
bindsym $mod+4 workspace $work4
bindsym $mod+5 workspace $work5
bindsym $mod+6 workspace $work6
bindsym $mod+7 workspace $work7
bindsym $mod+8 workspace $work8
bindsym $mod+9 workspace $work9

# resize windows
bindsym $mod+Ctrl+Shift+Right resize shrink width 10 px or 10 ppt
bindsym $mod+Ctrl+Shift+Up resize grow height 10 px or 10 ppt
bindsym $mod+Ctrl+Shift+Down resize shrink height 10 px or 10 ppt
bindsym $mod+Ctrl+Shift+Left resize grow width 10 px or 10 ppt

# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $work1
bindsym $mod+Shift+2 move container to workspace $work2
bindsym $mod+Shift+3 move container to workspace $work3
bindsym $mod+Shift+4 move container to workspace $work4
bindsym $mod+Shift+5 move container to workspace $work5
bindsym $mod+Shift+6 move container to workspace $work6
bindsym $mod+Shift+7 move container to workspace $work7
bindsym $mod+Shift+8 move container to workspace $work8
bindsym $mod+Shift+9 move container to workspace $work9

# assign programs to workspaces
assign [class="Thunderbird"] $work3
assign [class="Discord"] $work4

# splits
bindsym $mod+o split h
bindsym $mod+v split v

# toggling view types
bindsym $mod+s layout stacking
bindsym $mod+p layout toggle split
bindsym $mod+f fullscreen toggle
bindsym $mod+g floating toggle

## i3 Session keys
bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3?' -b 'Yes, exit i3' 'i3-msg exit'"

# General
bindsym $mod+d exec rofi -show run -config /home/andrew/.config/rofi/config
bindsym $mod+w exec rofi -show window -config /home/andrew/.config/rofi/config
bindsym $mod+Shift+w kill

set $green #98971a
set $purple #B16286
set $darkgray #1d2021

client.focused          #98971A #98971A #FFFFFF #B16286
client.focused_inactive #1D2021 #1D2021 #FFFFFF #B16286
client.unfocused        #1D2021 #1D2021 #888888 #B16286
client.urgent           #CC241D #CC241D #FFFFFF #CC241D
client.placeholder      #000000 #0C0C0C #FFFFFF #B16286

client.background       #FFFFFF

#for_window [class=".*"] border pixel 2