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