summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config200
1 files changed, 104 insertions, 96 deletions
diff --git a/config b/config
index 7dd49f2..6488365 100644
--- a/config
+++ b/config
@@ -2,57 +2,76 @@
2# 2#
3# Please see http://i3wm.org/docs/userguide.html for a complete reference! 3# Please see http://i3wm.org/docs/userguide.html for a complete reference!
4 4
5# load xrdb
6exec xrdb ~/.Xresources ; i3-msg reload
5 7
6output DP-1 { 8output DP-1 {
7 pos 0 0 9 pos 0 0
8 res 1920x1080 10 res 1920x1080
9 background ~/.local/share/backgrounds/01-0.jpg center 11 background ~/.local/share/backgrounds/01-0.jpg fill
12 dpms on
10} 13}
11 14
12output DP-2 { 15output DP-2 {
13 pos 1920 0 16 pos 1920 0
14 res 1920x1080 17 res 1920x1080
15 background ~/.local/share/backgrounds/01-1.jpg center 18 background ~/.local/share/backgrounds/01-1.jpg fill
19 # transform 270
20 dpms on
16} 21}
17 22
18# load xrdb 23
19exec xrdb ~/.Xresources ; i3-msg reload 24xwayland enable
25gaps inner 0
26gaps outer 0
27smart_gaps on
28smart_borders no_gaps
20 29
21# force_xinerama yes 30# force_xinerama yes
22# fake-outputs 3840x1080+0+0 31# fake-outputs 3840x1080+0+0
23 32
24# we basically want to configure our font with ~/.config/fontconfig/* 33# we basically want to configure our font with ~/.config/fontconfig/*
25# font pango:FuraCode Nerd Font Mono Retina 9 34# font pango:GoMono Nerd Font 9
26font pango:Monospace 9 35# font pango:FuraCode Nerd Font Mono 9
27# font pango:Code New Roman Nerd Font 9 36# font pango:Code New Roman Nerd Font 9
37font pango:monospace 9
28 38
29hide_edge_borders both 39hide_edge_borders both
40title_align left
41# focus_follows_mouse no
42# mouse_warping none
30 43
31set $mod Mod4 44set $mod Mod4
32 45
46bindsym $mod+j "mark --toggle a"
47
33# Use Mouse+$mod to drag floating windows to their wanted position 48# Use Mouse+$mod to drag floating windows to their wanted position
34floating_modifier $mod 49floating_modifier $mod
35 50
36# start a terminal 51# start a terminal
37# bindsym $mod+Return exec i3-sensible-terminal 52# bindsym $mod+Return exec i3-sensible-terminal
38bindsym $mod+Return exec --no-startup-id xfce4-appfinder 53bindsym $mod+Return exec rofi -show drun -show-icons
39bindsym Mod1+F2 exec --no-startup-id rofi -show run -bg #222222 -fg #888888 -hlbg #285577 -hlfg #ffffff 54bindsym Mod1+F2 exec rofi -show drun -bg #222222 -fg #888888 -hlbg #285577 -hlfg #ffffff -show-icons -5
40bindsym $mod+t exec --no-startup-id xfce4-terminal 55bindsym $mod+t exec termite
41# bindsym $mod+t exec termite 56# bindsym $mod+t exec termite
42# bindsym $mod+t exec urxvt 57# bindsym $mod+t exec urxvt
43bindsym $mod+e exec --no-startup-id thunar 58bindsym $mod+e exec thunar
44bindsym $mod+l exec --no-startup-id ~/.local/bin/i3lock -f -i "/home/max/.local/share/backgrounds/IMG_5656 - IMG_5684-02.png" 59bindsym $mod+l exec swaylock -f -i "/home/max/.local/share/backgrounds/IMG_5656 - IMG_5684-02.png"
45 60
46bindsym Print exec pactl set-sink-mute 0 toggle 61bindsym $mod+F10 exec pactl set-sink-mute 0 toggle
47bindsym Scroll_Lock exec pactl set-sink-volume 0 -5% 62bindsym $mod+F11 exec pactl set-sink-volume 0 -5%
48bindsym Pause exec pactl set-sink-volume 0 +5% 63bindsym $mod+F12 exec pactl set-sink-volume 0 +5%
49 64
50# Pulse Audio controls 65# Pulse Audio controls
51bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +5% # increase sound volume 66bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +5% # increase sound volume
52bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -5% # decrease sound volume 67bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -5% # decrease sound volume
53bindsym XF86AudioMute exec pactl set-sink-mute 0 toggle # mute sound 68bindsym XF86AudioMute exec pactl set-sink-mute 0 toggle # mute sound
54 69
55bindcode 156 exec xrandr --output LVDS-1 --mode 1024x768 && xrandr --output LVDS-1 --mode 1280x800 70# exec xrandr --dpi 95.48 --output LVDS-1 --mode 1024x768 && xrandr --output LVDS-1 --mode 1280x800
71# bindcode 156
72# exec xrandr --output DP-1 --rotate left --pos 1920x-420
73# exec xrandr --output DP1 --rotate left --right-of HDMI1
74# exec xrandr --output DP1 --rotate left --pos 1920x-420
56 75
57# kill focused window 76# kill focused window
58bindsym $mod+Shift+q kill 77bindsym $mod+Shift+q kill
@@ -69,10 +88,10 @@ bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
69 88
70bindsym $mod+Prior focus parent 89bindsym $mod+Prior focus parent
71bindsym $mod+Next focus child 90bindsym $mod+Next focus child
72bindsym $mod+Left [workspace="__focused__"] focus left 91bindsym $mod+Left focus left
73bindsym $mod+Right [workspace="__focused__"] focus right 92bindsym $mod+Right focus right
74bindsym $mod+Down [workspace="__focused__"] focus down 93bindsym $mod+Down focus down
75bindsym $mod+Up [workspace="__focused__"] focus up 94bindsym $mod+Up focus up
76bindsym $mod+Tab focus output right 95bindsym $mod+Tab focus output right
77bindsym $mod+Shift+Tab focus output left 96bindsym $mod+Shift+Tab focus output left
78bindsym mod1+Tab focus right 97bindsym mod1+Tab focus right
@@ -116,20 +135,23 @@ workspace 1 output VGA1
116workspace_layout tabbed 135workspace_layout tabbed
117 136
118# customize workspace names 137# customize workspace names
119set $WS1 1:1⃣ 138set $WS1 1:1⃣
120set $WS2 2:2⃣ 139set $WS2 2:2⃣
121set $WS3 3:3⃣ 140set $WS3 3:3⃣
122set $WS4 4:4⃣ 141set $WS4 4:4⃣
123set $WS5 5:5⃣ 142set $WS5 5:5⃣
124set $WS6 6:6⃣ 143set $WS6 6:6⃣
125set $WS7 7:7⃣ 144set $WS7 7:7⃣
126set $WS8 8:8⃣ 145set $WS8 8:8⃣
127set $WS9 9:9⃣ 146set $WS9 9:9⃣
128set $WS10 10:0⃣ 147set $WS10 10:0⃣
129 148
130assign [class="^Thunderbird$"] → $WS10 149assign [class="^Thunderbird$"] → $WS10
131assign [class="^evolution"] → output right 150assign [class="^Pidgin"] → $WS10
132assign [class="(?i)pidgin"] → output right 151assign [class="^Hexchat"] → $WS10
152assign [class="(?i)pidgin"] → $WS10
153
154bindsym Mod4+BackSpace exec i3-msg move workspace to output right
133 155
134# switch to workspace 156# switch to workspace
135bindsym Mod4+1 workspace $WS1 157bindsym Mod4+1 workspace $WS1
@@ -155,16 +177,16 @@ bindsym Mod4+Shift+8 move container to workspace $WS8
155bindsym Mod4+Shift+9 move container to workspace $WS9 177bindsym Mod4+Shift+9 move container to workspace $WS9
156bindsym Mod4+Shift+0 move container to workspace $WS10 178bindsym Mod4+Shift+0 move container to workspace $WS10
157 179
158workspace 1 output DP-1 180# workspace 1 output DP-1
159workspace 2 output DP-1 181# workspace 2 output DP-1
160workspace 3 output DP-1 182# workspace 3 output DP-1
161workspace 4 output DP-1 183# workspace 4 output DP-1
162workspace 5 output HDMI-1 184# workspace 5 output HDMI-1
163workspace 6 output HDMI-1 185# workspace 6 output HDMI-1
164workspace 7 output HDMI-1 186# workspace 7 output HDMI-1
165workspace 8 output HDMI-1 187# workspace 8 output HDMI-1
166workspace "music" output HDMI-1 188# workspace "music" output HDMI-1
167workspace "background" output HDMI-1 189# workspace "background" output HDMI-1
168 190
169# reload the configuration file 191# reload the configuration file
170bindsym $mod+Shift+c reload 192bindsym $mod+Shift+c reload
@@ -241,25 +263,25 @@ mode $mode_brightness {
241#! exec: execute when starting 263#! exec: execute when starting
242#! exec_always: execute when starting or restarting 264#! exec_always: execute when starting or restarting
243 265
244
245
246# exec xrandr --output HDMI-1 --right-of DP-1 266# exec xrandr --output HDMI-1 --right-of DP-1
247# exec xrandr --output HDMI-1 --right-of VGA-1 267# exec xrandr --output HDMI-1 --right-of VGA-1
248# exec /usr/bin/xrandr-reset.sh 268# exec /usr/bin/xrandr-reset.sh
249# exec setxkbmap -option caps:escape
250exec xset r rate 330 40 269exec xset r rate 330 40
251exec xinput --set-prop 'Xornet gaming mouse' 'libinput Accel Speed' 0.1 270exec xinput --set-prop 'Xornet gaming mouse' 'libinput Accel Speed' 0.1
252exec setsid xautolock -locker i3lock 271# exec setsid xautolock -locker swaylock
253 272
254exec --no-startup-id /usr/lib/gnome-settings-daemon/gsd-xsettings 273exec swayidle -w timeout 300 'swaylock -f' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -c 000000'
255exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
256exec --no-startup-id gnome-keyring-daemon --start --components=secrets
257# start compositor...
258exec --no-startup-id compton -b --config ~/.config/i3/compton.conf
259exec --no-startup-id nitrogen --restore
260exec --no-startup-id nm-applet
261 274
262exec --no-startup-id ln -sf /dev/shm/recently-used.xbel $HOME/.local/share/recently-used.xbel 275# exec gnome-keyring-daemon --start --components=secrets
276# start compositor...
277# exec compton -b --config ~/.config/i3/compton.conf
278# exec nitrogen --restore
279exec setsid mako
280exec nm-applet
281exec pidgin
282exec bash -c 'for d in ~/.config/autostart/*.desktop; do awk -e 'match($0,"Exec=(.*)",q){ gsub(/ %.+/, "", q[1]); system("setsid -f " q[1])};' $d; done'
283exec_always setxkbmap de,us -device evdev -model pc105 -option "" -option keypad:pointerkeys,grp_led:caps,grp:caps_toggle,terminate:ctrl_alt_bksp -v 1 -print
284# exec setxkbmap -option caps:escape
263 285
264 286
265 287
@@ -273,39 +295,28 @@ exec setsid hexchat -e --minimize=2
273# with default values from base16-tomorrow-night 295# with default values from base16-tomorrow-night
274# ============================================== 296# ==============================================
275 297
276set $base00 #1d1f21 298include /home/max/.config/base16/base16-sway/themes/base16-tomorrow.config
277set $base01 #282a2e 299# main variables ssource default
278set $base02 #373b41 300# d variable default
279set $base03 #969896 301set $background $base01
280set $base04 #b4b7b4 302set $foreground $base05
281set $base05 #c5c8c6 303set $cursorColor #00ff00
282set $base06 #e0e0e0 304
283set $base07 #ffffff 305# set_from_resource $foreground base16.cursor $cursorColor
284set $base08 #cc6666 306# set_from_resource $foreground base16.cursor $base05
285set $base09 #de935f
286set $base0A #f0c674
287set $base0B #b5bd68
288set $base0C #8abeb7
289set $base0D #81a2be
290set $base0E #b294bb
291set $base0F #a3685a
292# d variable default
293set $cursorColor $base05
294set $background $base00
295set $foreground $base05
296set $foreground $base05
297#
298 307
299# Basic bar configuration using the Base16 variables. 308# Basic bar configuration using the Base16 variables.
300bar { 309bar {
301 # status_command i3status --config ~/.config/i3/i3status.conf 310 # status_command i3status --config ~/.config/i3/i3status.conf
311 font pango:monospace 9
302 status_command i3status --config ~/.config/i3/i3status.conf 312 status_command i3status --config ~/.config/i3/i3status.conf
303 # status_command /home/max/src/i3status/i3status --config ~/.config/i3/i3status.conf 313 # swaybar_command swaybar
304 314
305 tray_padding 2 315 tray_padding 2
316 tray_output DP-1
306 mode dock 317 mode dock
307 strip_workspace_numbers yes 318 strip_workspace_numbers yes
308 # separator_symbol "" 319 # separator_symbol "|"
309 separator_symbol " " 320 separator_symbol " "
310 321
311 colors { 322 colors {
@@ -318,7 +329,7 @@ bar {
318 inactive_workspace $background $background $base03 329 inactive_workspace $background $background $base03
319 urgent_workspace $background $background $base08 330 urgent_workspace $background $background $base08
320 binding_mode $background $background $foreground 331 binding_mode $background $background $foreground
321} 332 }
322} 333}
323 334
324# Basic color configuration using the Base16 variables for windows and borders. 335# Basic color configuration using the Base16 variables for windows and borders.
@@ -331,30 +342,27 @@ client.placeholder $base00 $base00 $base05 $base00 $base00
331client.background $background 342client.background $background
332 343
333 344
334for_window [class="(?i)evolution"] title_format "📧 %title"
335for_window [class="(?i)thunderbird"] title_format "📧 %title"
336for_window [class="(?i)firefox"] title_format " %title"
337for_window [class="(?i)chromium"] title_format " %title"
338for_window [class="(?i)hexchat"] title_format " %title"
339for_window [class="(?i)pidgin"] title_format "👥 %title"
340for_window [class="(?i)thunar"] title_format "🗄️ %title"
341for_window [class="(?i)keepassx?"] title_format "🔑 %title"
342for_window [class="(?i).*terminal?"] title_format " %title"
343for_window [class="(?i)xfce4-appfinder"] title_format " %title"
344for_window [title="YouTube"] title_format " %title"
345for_window [title="SoundCloud"] title_format " %title"
346for_window [title=""] title_format "%title"
347for_window [title=" "] title_format "%title"
348
349
350# for_window [class="^.*"] border normal 3 345# for_window [class="^.*"] border normal 3
351# for_window [title="^.*Thunderbird"] border pixel 0 346# for_window [title="^.*Thunderbird"] border pixel 0
352# for_window [title="^.*Chromium"] border pixel 0 347# for_window [title="^.*Chromium"] border pixel 0
353# for_window [class="Gvim"] border pixel 0 348# for_window [class="Gvim"] border pixel 0
349for_window [class="(?i)evolution"] title_format "📧 %title"
350for_window [class="(?i)thunderbird"] title_format " %title"
351for_window [class="(?i)firefox"] title_format " %title"
352for_window [class="(?i)chromium"] title_format " %title"
353for_window [class="(?i)hexchat"] title_format " %title"
354for_window [class="(?i)pidgin"] title_format "👥 %title"
355for_window [class="(?i)thunar"] title_format "🗄️ %title"
356for_window [class="(?i)keepassx?"] title_format "🔑 %title"
357for_window [class="(?i).*terminal?"] title_format " %title"
358for_window [class="(?i).*termite?"] title_format " %title"
359for_window [class="(?i)xfce4-appfinder"] title_format " %title"
360for_window [title="YouTube"] title_format " %title"
361for_window [title=""] title_format "%title"
362for_window [title=" "] title_format "%title"
354# for_window [class="(?i)xfce4-terminal"] border pixel 0 363# for_window [class="(?i)xfce4-terminal"] border pixel 0
355# for_window [class="(?i)xfce4-appfinder"] border pixel 0 364# for_window [class="(?i)xfce4-appfinder"] border pixel 0
356# # for_window [title="^.*\|"] border pixel 4 365# for_window [title="^.*\|"] border pixel 4
357
358# for_window [title="^HexChat.*"] border pixel 0 366# for_window [title="^HexChat.*"] border pixel 0
359# for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks 367# for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks
360# for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks 368# for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks
..