From 4aaede67575974858dc4317d335ecb3ef8e47134 Mon Sep 17 00:00:00 2001 From: Meutel Date: Sat, 6 May 2017 12:24:26 +0200 Subject: [PATCH] Improved i3, status bar --- _i3__abraracourcix/config | 73 +++++++++++++++++++-------------------- _i3__abraracourcix/status | 42 ++++++++++++++++++++++ 2 files changed, 77 insertions(+), 38 deletions(-) create mode 100644 _i3__abraracourcix/status diff --git a/_i3__abraracourcix/config b/_i3__abraracourcix/config index 14c82ab..c1121b0 100644 --- a/_i3__abraracourcix/config +++ b/_i3__abraracourcix/config @@ -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 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 + 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 diff --git a/_i3__abraracourcix/status b/_i3__abraracourcix/status new file mode 100644 index 0000000..8b5bf5b --- /dev/null +++ b/_i3__abraracourcix/status @@ -0,0 +1,42 @@ +general { + output_format = "i3bar" + interval = 5 + colors = true + separator = " > " +} + +order += mpd_status +#order += "ipv6" +#order += "ethernet re0" +order += "disk /" +order += "disk /srv/data" +order += "online_status" +order += "load" +order += "tztime local" + +online_status { + icon_on = "" + icon_off = "" +} + +ethernet "re0" { + format_up = "%ip" +} +load { + format = " %5min" +} +tztime local { + locale = "fr_FR.UTF-8" + format = "%A %e %B %H:%M" +} +disk "/" { + format = " abra %free" +} +disk "/srv/data" { + format = " zdata %free" +} +mpd_status { + host = "/home/meutel/.mpd/socket" + state_pause = "" + state_play = "" +}