From 9a6771b513520222e6c967dbadd982021f71235e Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sun, 16 Oct 2016 03:31:37 +0200 Subject: Cool config with window highlighting uses compton and a special i3 version, currently i3-gaps to make windows borderless if they are the only windows on the screen --- config | 102 ++++++++++++++++++++++++++++++++++------------------------------- 1 file changed, 53 insertions(+), 49 deletions(-) (limited to 'config') diff --git a/config b/config index d613e14..0a3cbde 100644 --- a/config +++ b/config @@ -17,7 +17,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 11 +# font pango:Neris SemiBold 10 +font pango:Source Code Pro Bold 11 # font pango:DejaVu Sans Mono 12 # Before i3 v4.8, we used to recommend this one as the default: @@ -32,7 +33,8 @@ floating_modifier $mod # start a terminal # bindsym $mod+Return exec i3-sensible-terminal -bindsym $mod+Return exec xfce4-terminal +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+e exec thunar @@ -47,22 +49,22 @@ bindsym Mod1+F4 kill # installed. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop bindsym $mod+d exec --no-startup-id j4-dmenu-desktop -bindsym Mod1+F2 exec --no-startup-id j4-dmenu-desktop # alternatively, you can use the cursor keys: -bindsym $mod+Left focus left -bindsym $mod+Down focus down -bindsym $mod+Up focus up -bindsym $mod+Right focus right +bindsym $mod+Left focus left ; exec pkill -SIGRTMIN+11 i3blocks +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 + # alternatively, you can use the cursor 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 +bindsym $mod+Shift+Left move left ; exec pkill -SIGRTMIN+11 i3blocks +bindsym $mod+Shift+Down move down ; exec pkill -SIGRTMIN+11 i3blocks +bindsym $mod+Shift+Up move up ; exec pkill -SIGRTMIN+11 i3blocks +bindsym $mod+Shift+Right move right ; exec pkill -SIGRTMIN+11 i3blocks # split in horizontal orientation # bindsym $mod+h split h @@ -91,6 +93,7 @@ bindsym $mod+a focus parent #bindsym $mod+d focus child workspace 1 output VGA1 +workspace_layout tabbed # switch to workspace bindsym $mod+1 workspace 1 @@ -127,34 +130,19 @@ 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 pixel 8 -# smart_borders on -# gaps inner 8 -# gaps outer 8 +for_window [class="^.*"] border normal 4 +for_window [title="^.*Thunderbird"] border pixel 0 +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 + -# resize window (you can also use the mouse for that) -# mode "resize" { -# # These bindings trigger as soon as you enter the resize mode -# -# # Pressing left will shrink the window’s width. -# # 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 j resize shrink width 10 px or 10 ppt -# bindsym k resize grow height 10 px or 10 ppt -# bindsym l resize shrink height 10 px or 10 ppt -# bindsym semicolon resize grow width 10 px or 10 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 -# -# # back to normal: Enter or Escape -# bindsym Return mode "default" -# bindsym Escape mode "default" -# } + +smart_borders on +# gaps inner 5 +# gaps outer 5 bindsym $mod+r mode "resize" @@ -162,21 +150,32 @@ bindsym $mod+r mode "resize" # finds out, if available) bar { status_command i3status --config ~/.config/i3/i3status.conf + # status_command i3blocks colors { - background #061229 + background #2a3448 statusline #ffffff } # tray_output VGA1 - tray_padding 4 + # tray_padding 4 # font pango:DejaVu Sans Mono 12 # separator_symbol "┋" - position top + position bottom # output VGA1 binding_mode_indicator yes } -client.focused #ffffff #061229 #ffffff #5299BF #ffffff -# client.unfocused #000000 #061229 #000000 #ff0000 #000000 + +# client.focused #ffffff #061229 #ffffff #5299BF #ffffff +# 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.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 @@ -195,10 +194,10 @@ bindsym Control+Mod1+Right workspace next_on_output # bindsym $mod+Shift+semicolon move right # change focus -bindsym $mod+h focus left -bindsym $mod+j focus down -bindsym $mod+k focus up -bindsym $mod+l focus right +bindsym $mod+h focus left ; exec killall -USR1 i3status +bindsym $mod+j focus down ; exec killall -USR1 i3status +bindsym $mod+k focus up ; exec killall -USR1 i3status +bindsym $mod+l focus right ; exec killall -USR1 i3status # move focused window bindsym $mod+Shift+h move left @@ -242,9 +241,14 @@ 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 -exec --no-startup-id nitrogen --restore + exec --no-startup-id setxkbmap -option caps:escape -exec xset r rate 330 75 +exec --no-startup-id xset r rate 330 40 + +# start compositor... +exec --no-startup-id compton -bc +exec --no-startup-id nitrogen --restore -- cgit v1.2.3