From 5011ed6adc06ba6e3a55953e25a36c9105bed171 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Tue, 2 May 2017 08:10:10 +0200 Subject: White version with several usability improvements --- config | 104 +++++++++++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 73 insertions(+), 31 deletions(-) (limited to 'config') diff --git a/config b/config index 0a3cbde..67b177b 100644 --- a/config +++ b/config @@ -18,7 +18,8 @@ set $mod Mod4 # This font is widely installed, provides lots of unicode glyphs, right-to-left # text rendering and scalability on retina/hidpi displays (thanks to pango). # font pango:Neris SemiBold 10 -font pango:Source Code Pro Bold 11 +font pango:Source Code Pro SemiBold 11 +# font pango:Liberation Sans Mono Bold 11 # font pango:DejaVu Sans Mono 12 # Before i3 v4.8, we used to recommend this one as the default: @@ -36,6 +37,8 @@ floating_modifier $mod bindsym $mod+Return exec xfce4-appfinder bindsym Mod1+F2 exec --no-startup-id rofi -show run -bg #222222 -fg #888888 -hlbg #285577 -hlfg #ffffff bindsym $mod+t exec xfce4-terminal +# bindsym $mod+t exec termite +# bindsym $mod+t exec urxvt bindsym $mod+e exec thunar # kill focused window @@ -58,6 +61,8 @@ bindsym $mod+Down focus down ; exec pkill -SIGRTMIN+11 i3blocks bindsym $mod+Up focus up ; exec pkill -SIGRTMIN+11 i3blocks bindsym $mod+Right focus right ; exec pkill -SIGRTMIN+11 i3blocks +bindsym Mod1+Tab focus right +bindsym Mod1+Shift+Tab focus left # alternatively, you can use the cursor keys: @@ -104,8 +109,8 @@ bindsym $mod+5 workspace 5 bindsym $mod+6 workspace 6 bindsym $mod+7 workspace 7 bindsym $mod+8 workspace 8 -bindsym $mod+9 workspace 9 -bindsym $mod+0 workspace 10 +bindsym $mod+9 workspace music +bindsym $mod+0 workspace background # move focused container to workspace bindsym $mod+Shift+1 move container to workspace 1 @@ -116,8 +121,20 @@ bindsym $mod+Shift+5 move container to workspace 5 bindsym $mod+Shift+6 move container to workspace 6 bindsym $mod+Shift+7 move container to workspace 7 bindsym $mod+Shift+8 move container to workspace 8 -bindsym $mod+Shift+9 move container to workspace 9 -bindsym $mod+Shift+0 move container to workspace 10 +bindsym $mod+Shift+9 move container to workspace music +bindsym $mod+Shift+0 move container to workspace background + +workspace 1 output VGA1 +workspace 2 output VGA1 +workspace 3 output VGA1 +workspace 4 output VGA1 +workspace 5 output VGA1 +workspace 6 output HDMI1 +workspace 7 output HDMI1 +workspace 8 output HDMI1 +workspace "music" output HDMI1 +workspace "background" output HDMI1 + # reload the configuration file bindsym $mod+Shift+c reload @@ -130,17 +147,20 @@ bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcu bindsym $mod+m move scratchpad bindsym $mod+Shift+m scratchpad show ; resize set 1920 920 ; move position center -for_window [class="^.*"] border normal 4 +for_window [class="^.*"] border normal 2 for_window [title="^.*Thunderbird"] border pixel 0 +for_window [title="^.*Chromium"] border pixel 0 +# for_window [title="^.*\|"] border pixel 4 for_window [title="^HexChat.*"] border pixel 0 for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks for_window [title="cairo-dock"] floating enable ; border none for_window[class="Plank"] floating enable,move absolute center - - -smart_borders on +for_window [class=".*"] title_format "┋ %title" +# for_window [con_id="__focused__"] title_format "%title" +# hide_edge_borders both +# smart_borders on # gaps inner 5 # gaps outer 5 @@ -152,16 +172,30 @@ bar { status_command i3status --config ~/.config/i3/i3status.conf # status_command i3blocks colors { - background #2a3448 - statusline #ffffff + # background #2a3448 + # statusline #ffffff + background #ffffff + statusline #000000 + focused_workspace #ffffff #ffffff #000000 + active_workspace #ffffff #ffffff #888888 + inactive_workspace #ffffff #ffffff #888888 + urgent_workspace #2f343a #900000 #ffffff + binding_mode #2f343a #900000 #ffffff } # tray_output VGA1 - # tray_padding 4 - # font pango:DejaVu Sans Mono 12 - # separator_symbol "┋" + # output HDMI1 + # tray_output HDMI1 + tray_padding 2 + #font pango:DejaVu Sans Mono 11 + #font pango:DejaVu Sans Mono 11 + #font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 + # font pango:DejaVu Sans Mono, Icons 8 + # font pango:DejaVu Sans Mono, Awesome 8 + separator_symbol "┋" position bottom # output VGA1 binding_mode_indicator yes + # strip_workspace_numbers yes } @@ -169,13 +203,12 @@ bar { # client.unfocused #000000 #061229 #ffffff #ff0000 #000000 #colors: border backgr. text indicator -client.focused #2a3448 #5299bf #2a3448 #f0a000 -client.focused_inactive #061229 #061229 #ffffff #ffffff -client.unfocused #061229 #061229 #5299bf #ffffff +client.focused #ffffff #ffffff #000000 #000000 +client.focused_inactive #ffffff #ffffff #888888 #ffffff +client.unfocused #ffffff #ffffff #888888 #ffffff client.urgent #2a3448 #900000 #5299bf #ffffff client.background #000000 #000000 #000000 #ffffff -# hide_edge_borders both bindsym $mod+F2 exec i3-input -F 'rename workspace to "%s"' -P 'New name: ' bindsym Control+Mod1+Left workspace prev_on_output @@ -222,16 +255,16 @@ mode "resize" { # Pressing right will grow the window’s width. # Pressing up will shrink the window’s height. # Pressing down will grow the window’s height. - bindsym $mod+h resize shrink width 10 px or 10 ppt - bindsym $mod+j resize grow height 10 px or 10 ppt - bindsym $mod+k resize shrink height 10 px or 10 ppt - bindsym $mod+l resize grow width 10 px or 10 ppt + bindsym $mod+h resize shrink width 1 px or 1 ppt + bindsym $mod+j resize grow height 4 px or 4 ppt + bindsym $mod+k resize shrink height 4 px or 4 ppt + bindsym $mod+l resize grow width 1 px or 1 ppt # same bindings, but for the arrow keys - bindsym Left 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 Left resize shrink width 1 px or 1 ppt + bindsym Up resize grow height 4 px or 4 ppt + bindsym Down resize shrink height 4 px or 4 ppt + bindsym Right resize grow width 1 px or 1 ppt # back to normal: Enter or Escape bindsym Return mode "default" @@ -242,13 +275,22 @@ mode "resize" { -exec --no-startup-id dbus-launch gnome-settings-daemon -exec --no-startup-id dbus-launch nm-applet -exec --no-startup-id dbus-launch nextcloud +assign [class="^Thunderbird$"] → background exec --no-startup-id setxkbmap -option caps:escape exec --no-startup-id xset r rate 330 40 +exec --no-startup-id dbus-launch gnome-settings-daemon +exec --no-startup-id dbus-launch nm-applet + +# exec xrandr --output HDMI1 --fb 3270x1080 --scale 1.05468x1.05468 +# exec xrandr --output HDMI1 --fb 3270x1080 --right-of VGA1 --panning 1350x1080+1920+0 --scale 1.05468x1.05468 +exec /usr/bin/xrandr-reset.sh + # start compositor... -exec --no-startup-id compton -bc -exec --no-startup-id nitrogen --restore +exec --no-startup-id dbus-launch nitrogen --restore +exec --no-startup-id dbus-launch compton -b --config /home/max/.config/i3/compton.conf +exec --no-startup-id dbus-launch setsid udiskie -2 -s +exec --no-startup-id dbus-launch nextcloud + + -- cgit v1.2.3