-
Notifications
You must be signed in to change notification settings - Fork 0
/
i3_config
222 lines (184 loc) · 8.42 KB
/
i3_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
216
217
218
219
220
221
222
# set modifier
set $super Mod4
set $alt Mod1
# set font
font pango: Noto Sans 13
# Use Mouse+$super to drag floating windows to their wanted position
floating_modifier $super
#autostart
# exec --no-startup-id hsetroot -full ~/Pictures/foo33.png
#exec -no-startup-id hsetroot -fill ~/Pictures/archie.png
exec --no-startup-id hsetroot -fill ~/Pictures/test/buckethead2.png
#exec --no-startup-id hsetroot -fill ~/Pictures/lake3.png
exec --no-startup-id xsettingsd &
#exec --no-startup-id compton -b
#exec --no-startup-id picom -f --config ~/.config/picom.conf
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
exec --no-startup-id /usr/lib/geoclue-2.0/demos/agent
exec --no-startup-id "redshift-gtk &"
exec --no-startup-id "setxkbmap -option caps:swapescape"
exec --no-startup-id dunst
exec --no-startup-id ./.config/battinfo/battinfo &
#scratchpad for notes (vim+orgmode?/vim-notes)
#exec --no-startup-id konsole -p tabtitle='Notepad' --profile ~/.local/share/konsole/Notes.profile --hide-menubar -e tmux -u attach-session -t Notes -c ~/workspace/notes/src/manage-notes.sh
#exec_always --no-startup-id konsole -p tabtitle='Notepad' --profile ~/.local/share/konsole/Notes.profile --hide-menubar -e tmux -u attach-session -t Notes -c ~/workspace/notes/src/manage-notes.sh --name=dropdown
exec --no-startup-id gnome-terminal --name=Notepad --hide-menubar -- tmux -u new-session -A -s Notes -c ~/workspace/notes/
for_window [instance="Notepad"] floating enable;
for_window [instance="Notepad"] move scratchpad; [instance="Notepad"] scratchpad show; move scratchpad
#bindsym $super+u [instance="Notepad"] scratchpad show; [instance="Notepad"] move position center
#bindsym $super+Shift+u resize grow height 10 px or 10 ppt
#useless
#for_window [instance="dropdown"] floating enable;
#for_window [instance="dropdown"] move scratchpad; [instance="dropdown"] scratchpad show; move scratchpad
#bindsym $super+u [instance="dropdown"] scratchpad show
#bindsym $super+Shift+u resize grow height 10 px or 10 ppt
################################################################################
## TESTING ##
################################################################################
# Swaps container marked »A« and »B«
#[con_mark="^A$"] swap container with mark B
# bindsym $super+Shift+s swap container with container last
################################################################################
## TESTING ##
################################################################################
# Make the currently focused window a scratchpad
bindsym $super+Shift+u move scratchpad
# Show the first scratchpad window
bindsym $super+u scratchpad show
bindsym $super+Return exec konsole
# start dmenu (a program launcher)
bindsym $super+Shift+d exec i3-dmenu-desktop --dmenu="dmenu -i -fn 'Noto Sans:size=13'"
bindsym $super+d exec rofi -lines 12 -padding 18 -width 60 -location 0 -show drun -sidebar-mode -columns 3 -font 'Noto Sans 13'
# common apps keybinds
bindsym Print exec scrot 'Cheese_%a-%d%b%y_%H.%M.png' -e 'viewnior ~/$f'
bindsym $super+l exec i3lock -u -i ~/Pictures/zeppelin2.png
# bindsym $super+l exec i3lock -u -i ~/Downloads/ronnie.png
bindsym $super+Shift+w exec firefox
bindsym $super+Shift+f exec thunar;workspace 3;focus
bindsym $super+Shift+g exec geany
# change volume
bindsym XF86AudioRaiseVolume exec "amixer -q set Master 5%+"
bindsym XF86AudioLowerVolume exec "amixer -q set Master 5%-"
bindsym XF86AudioMute exec "amixer set Master toggle"
# configure brightness
bindsym XF86MonBrightnessUp exec "xbacklight -inc 10"
bindsym XF86MonBrightnessDown exec "xbacklight -dec 10"
# music control
bindsym XF86AudioNext exec mpc next
bindsym XF86AudioPrev exec mpc prev
bindsym XF86AudioPlay exec mpc toggle
bindsym XF86AudioStop exec mpc stop
# kill focused window
bindsym $super+c kill
bindsym $alt+F4 kill
# change focus
bindsym $super+Left focus left
bindsym $super+Down focus down
bindsym $super+Up focus up
bindsym $super+Right focus right
# move focused window
bindsym $super+Shift+Left move left
bindsym $super+Shift+Down move down
bindsym $super+Shift+Up move up
bindsym $super+Shift+Right move right
# split in horizontal orientation
bindsym $super+h split h
# split in vertical orientation
bindsym $super+v split v
# enter fullscreen mode for the focused container
bindsym $super+f fullscreen toggle
# change container layout split
bindsym $super+s layout toggle split
bindsym $super+t layout stacking
# toggle tiling / floating
bindsym $super+space floating toggle
# saving pdf files and restoring them (when reboot)
# change needed if restore_pdfs_test.sh succeeds
bindsym $super+Control+p exec "restore_pdfs.sh"
bindsym $super+Control+Shift+p exec "save_pdfs.sh"
# change focus between tiling / floating windows
bindsym $super+Shift+space focus mode_toggle
# switch to workspace
bindsym $super+1 workspace 1
bindsym $super+2 workspace 2
bindsym $super+3 workspace 3
bindsym $super+4 workspace 4
bindsym $super+5 workspace 5
bindsym $super+6 workspace 6
bindsym $super+7 workspace 7
bindsym $super+8 workspace 8
bindsym $super+9 workspace 9
bindsym $super+0 workspace 10
# switching to workspaces: next, previous, last visited
bindsym $super+Tab workspace next
bindsym $super+Shift+Tab workspace prev
bindsym $alt+Tab workspace back_and_forth
# move focused container to workspace
bindsym $super+Shift+1 move container to workspace 1
bindsym $super+Shift+2 move container to workspace 2
bindsym $super+Shift+3 move container to workspace 3
bindsym $super+Shift+4 move container to workspace 4
bindsym $super+Shift+5 move container to workspace 5
bindsym $super+Shift+6 move container to workspace 6
bindsym $super+Shift+7 move container to workspace 7
bindsym $super+Shift+8 move container to workspace 8
bindsym $super+Shift+9 move container to workspace 9
bindsym $super+Shift+0 move container to workspace 10
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $super+Shift+r restart
# exit i3
#bindsym $super+q exec "i3-nagbar -t warning -m 'Really, exit?' -b 'Yes' 'i3-msg exit'"
# resize window (you can also use the mouse for that)
mode "resize" {
bindsym Left resize shrink width 5 px or 5 ppt
bindsym Down resize grow height 5 px or 5 ppt
bindsym Up resize shrink height 5 px or 5 ppt
bindsym Right resize grow width 5 px or 5 ppt
bindsym Return mode "default"
}
bindsym $super+r mode "resize"
# persona
hide_edge_borders both
# read 1 character and mark the current window with this character
bindsym $alt+w exec i3-input -F 'mark %s' -l 1 -P 'Mark: '
# read 1 character and go to the window with the character
bindsym $alt+q exec i3-input -F '[con_mark="%s"] focus' -l 1 -P 'Goto: '
# panel
#bar {
# status_command polybar topbar
#}
#bar {
# colors {
# background #000000
# statusline #ffffff
# separator #8a0000
#
# # colour of border, background, and text
# focused_workspace #2f343f #bf616a #d8dee8
# active_workspace #2f343f #2f343f #d8dee8
# inactive_workspace #2f343f #2f343f #d8dee8
# urgent_workspace #2f343f #ebcb8b #2f343f
# }
#
# status_command polybar topbar
#}
# window rules, you can find the window class using xprop
for_window [class=".*"] border pixel 3
#assign [class=konsole] 2
#assign [class=Firefox|Transmission-gtk] 4
#assign [class=Emacs] 3
#assign [class=Thunar|File-roller] 4
#assign [class=Geany|Evince|Gucharmap|Soffice|] 4
#assign [class=Audacity|Vlc|mpv|Ghb|Xfburn|Gimp*|Inkscape] 4
#assign [class=Lxappearance|System-config-printer.py|Lxtask|GParted|Pavucontrol|Exo-helper*|Lxrandr|Arandr] 6
for_window [class=Viewnior|feh|Audacious|File-roller|Lxappearance|Lxtask|Pavucontrol] floating enable
for_window [class=konsole|URxvt|Firefox|Geany|Evince|Soffice|libreoffice*|mpv|Ghb|Xfburn|Gimp*|Inkscape|Vlc|Lxappearance|Audacity] focus
for_window [class=Xfburn|GParted|System-config-printer.py|Lxtask|Pavucontrol|Exo-helper*|Lxrandr|Arandr] focus
# class border backgr. text indicator child_border
client.focused #4c7899 #285577 #ffffff #2e9ef4 #285577
client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a
client.unfocused #333333 #222222 #888888 #292d2e #222222
client.urgent #2f343a #900000 #ffffff #900000 #900000
client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
client.background #ffffff
# vim:filetype=i3