-
Notifications
You must be signed in to change notification settings - Fork 2
/
config
215 lines (173 loc) · 6.95 KB
/
config
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
# mod
set $mod Mod4
# font
font pango: Roboto 12
# thin borders
hide_edge_borders both
new_window pixel 4
gaps inner 10
smart_gaps on
# drag windows
floating_modifier $mod
# change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
# lock
#bindsym $mod+Shift+x exec i3lock --textcolor=eee8d5ff --ringcolor=07364295 --keyhlcolor=268bd295 --bshlcolor=dc322f95 --insidecolor=002b3695 --insidevercolor=268bd295 --ringvercolor=268bd295 --insidewrongcolor=dc322f95 --ringwrongcolor=dc322f95 --linecolor=07364295 --separatorcolor=07364295
bindsym $mod+Shift+x exec "/home/nicola/.config/i3/lock.sh"
# move focused window
bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right
# split in horizontal orientation
bindsym $mod+b split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen
# change container layout
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
set $workspace1 " 1 "
set $workspace2 " 2 "
set $workspace3 " 3 "
set $workspace4 " 4 "
set $workspace5 " 5 "
set $workspace6 " 6 "
set $workspace7 " 7 "
set $workspace8 " 8 "
set $workspace9 " 9 "
set $workspace10 "10"
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $workspace1
bindsym $mod+Shift+2 move container to workspace $workspace2
bindsym $mod+Shift+3 move container to workspace $workspace3
bindsym $mod+Shift+4 move container to workspace $workspace4
bindsym $mod+Shift+5 move container to workspace $workspace5
bindsym $mod+Shift+6 move container to workspace $workspace6
bindsym $mod+Shift+7 move container to workspace $workspace7
bindsym $mod+Shift+8 move container to workspace $workspace8
bindsym $mod+Shift+9 move container to workspace $workspace9
bindsym $mod+Shift+0 move container to workspace $workspace10
# switch to workspace
bindsym $mod+1 workspace $workspace1
bindsym $mod+2 workspace $workspace2
bindsym $mod+3 workspace $workspace3
bindsym $mod+4 workspace $workspace4
bindsym $mod+5 workspace $workspace5
bindsym $mod+6 workspace $workspace6
bindsym $mod+7 workspace $workspace7
bindsym $mod+8 workspace $workspace8
bindsym $mod+9 workspace $workspace9
bindsym $mod+0 workspace $workspace10
# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace
bindsym $mod+Shift+r restart
# exit i3
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Logout?' -b 'Yes' 'i3-msg exit'"
# resize window (you can also use the mouse for that)
mode "resize" {
bindsym h resize shrink width 10 px or 10 ppt
bindsym j resize grow height 10 px or 10 ppt
bindsym k resize shrink height 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt
bindsym Lefj resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
bindsym Return mode "default"
bindsym Escape mode "default"
}
# resize mode
bindsym $mod+r mode "resize"
set $bg-color #2f343fee
set $inactive-bg-color #2f343fee
set $text-color #f3f4f5
set $inactive-text-color #676E7D
set $urgent-bg-color #E53935
#bb <- Good transparency (disabled because of black borders on GTK windows)
set $boract #268bd2
#50
set $boroff #2f343f
#90
set $indcol #93c7eb
# window colors
# border background text indicator
client.focused $boract $boract $text-color $indcol
client.unfocused $boroff $boroff $inactive-text-color $boroff
client.focused_inactive $boroff $boroff $inactive-text-color $boroff
client.urgent $urgent-bg-color $urgent-bg-color $text-color $indcol
# bar
#bar {
# #separator_symbol "╱"
# separator_symbol " "
# height 40
# tray_padding 5
# font pango: Roboto 12
# status_command i3blocks -c "/home/nicola/.config/i3/i3blocks.conf"
# i3bar_command i3bar -t
# #status_command i3status
# colors {
# background $bg-color
# separator #757575
# # border background text
# focused_workspace $bg-color $bg-color $text-color
# inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color
# urgent_workspace $urgent-bg-color $urgent-bg-color $text-color
# }
#}
# sticky window
bindsym $mod+Shift+s sticky toggle
# default floating
for_window [class="Pavucontrol"] floating enable
for_window [class="Skype"] floating enable
for_window [class="URxvt" instance="float"] floating enable
# default workspaces
assign [class="spotify"] $workspace9
# workspace default monitors
#workspace $workspace0 output DVI-I-2
# key-bindings
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 1 +5% #increase sound volume
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 1 -5% #decrease sound volume
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 1 toggle # mute sound
#bindsym XF86AudioPlay exec playerctl play-pause
#bindsym XF86AudioPause exec playerctl play-pause
#bindsym XF86AudioNext exec playerctl next
#bindsym XF86AudioPrev exec playerctl previous
bindsym XF86AudioPlay exec mpc toggle
bindsym XF86AudioPause exec mpc toggle
bindsym XF86AudioNext exec mpc next
bindsym XF86AudioPrev exec mpc previous
bindsym XF86MonBrightnessUp exec light -A 10 && notify-send -u low \" $('light')% \"
bindsym XF86MonBrightnessDown exec light -U 10 && notify-send -u low \" $('light')% \"
bindsym $mod+c exec chromium
bindsym $mod+i exec chromium --incognito
bindsym $mod+n exec thunar
bindsym $mod+Return exec urxvt
bindsym $mod+Shift+Return exec i3-sensible-terminal
bindsym $mod+Shift+q kill
bindsym $mod+d exec rofi -show run -lines 5 -width 100 -padding 300 -fullscreen -opacity "85" -font "Roboto 50" -separator-style "none"
#bindsym $mod+d exec dmenu_run
bindsym Control+Mod1+Down exec xrandr --output eDP-1 --rotate normal
bindsym Control+Mod1+Up exec xrandr --output eDP-1 --rotate inverted
bindsym Control+Mod1+Left exec xrandr --output eDP-1 --rotate right
bindsym Control+Mod1+Right exec xrandr --output eDP-1 --rotate left
# startup
exec_always --no-startup-id feh --bg-fill "/home/nicola/Documents/wallpapers/spike.png"
exec_always --no-startup-id killall polybar; polybar main -c "/home/nicola/.config/i3/polybar"
exec --no-startup-id compton --config "/home/nicola/.config/compton.conf"
exec --no-startup-id dunst -conf "/home/nicola/.config/dunstrc"
exec --no-startup-id nm-applet
exec --no-startup-id conky main -c "/home/nicola/.config/i3/conky"
exec --no-startup-id mopidy