Improved i3, status bar

This commit is contained in:
2017-05-06 12:24:26 +02:00
parent 613bbb16b1
commit 4aaede6757
2 changed files with 77 additions and 38 deletions

View File

@@ -64,20 +64,20 @@ bindsym $mod+d exec rofi -show run -lines 5 -eh 2 -width 100 -padding 300 -opaci
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+m focus right
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
# alternatively, you can use the cursor keys:
bindsym $mod+ISO_Level3_Shift focus left
bindsym $mod+Super_R focus down
bindsym $mod+Print focus up
# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right
bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Alt_R move left
@@ -86,10 +86,10 @@ bindsym $mod+Shift+Print move up
bindsym $mod+Shift+(null) move right
# split in horizontal orientation
bindsym $mod+h split h
bindcode $mod+20 split h
# split in vertical orientation
bindsym $mod+v split v
bindcode $mod+21 split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen
@@ -123,14 +123,8 @@ set $workspace9 "9"
set $workspace10 "10"
workspace $workspace1 output $leftscr
workspace $workspace3 output $leftscr
workspace $workspace5 output $leftscr
workspace $workspace7 output $leftscr
workspace $workspace9 output $leftscr
workspace $workspace2 output $rightscr
workspace $workspace4 output $rightscr
workspace $workspace6 output $rightscr
workspace $workspace8 output $rightscr
workspace $workspace10 output $rightscr
# switch to workspace
@@ -157,7 +151,7 @@ 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
assign [class="Firefox"] $workspace2
assign [class="Firefox"] $workspace1
# reload the configuration file
bindsym $mod+Shift+c reload
@@ -174,10 +168,10 @@ mode "resize" {
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows 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
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
# same bindings, but for the arrow keys
bindsym Alt_R resize shrink width 10 px or 10 ppt
@@ -193,29 +187,32 @@ mode "resize" {
bindsym $mod+r mode "resize"
# Windows Colours
# border background text indicator
client.focused $base01 $base01 $base07 $base0F
client.focused_inactive $base02 $base02 $base03 $base0F
client.unfocused $base02 $base02 $base03 $base0F
client.urgent $base02 $base08 $base00 $base0F
# border background text indicator
client.focused $base01 $base01 $base07 $base0F
client.focused_inactive $base02 $base02 $base03 $base0F
client.unfocused $base02 $base02 $base03 $base0F
client.urgent $base02 $base08 $base00 $base0F
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command i3status
font pango:monospace 11
colors {
separator $base03
background $base01
statusline $base05
# border background text
focused_workspace $base01 $base01 $base07
active_workspace $base01 $base02 $base03
inactive_workspace $base01 $base01 $base03
urgent_workspace $base01 $base01 $base08
}
position top
status_command ~/.local/bin/py3status -c ~/.i3/status
font pango:monospace 11
separator_symbol ""
colors {
separator $base03
background $base01
statusline $base05
# border background text
focused_workspace $base01 $base01 $base07
active_workspace $base01 $base02 $base03
inactive_workspace $base01 $base01 $base03
urgent_workspace $base01 $base01 $base08
}
}
exec xrandr --output $leftscr --left-of $rightscr
exec feh --bg-fill ~/.config/wallpaper.jpg
exec firefox
exec owncloud