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
|
||||
|
||||
# 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
|
||||
@ -202,8 +196,10 @@ bindsym $mod+r mode "resize"
|
||||
# Start i3bar to display a workspace bar (plus the system information i3status
|
||||
# finds out, if available)
|
||||
bar {
|
||||
status_command i3status
|
||||
position top
|
||||
status_command ~/.local/bin/py3status -c ~/.i3/status
|
||||
font pango:monospace 11
|
||||
separator_symbol ""
|
||||
colors {
|
||||
separator $base03
|
||||
background $base01
|
||||
@ -219,3 +215,4 @@ bar {
|
||||
exec xrandr --output $leftscr --left-of $rightscr
|
||||
exec feh --bg-fill ~/.config/wallpaper.jpg
|
||||
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