From e9717375ea0f22ac273218eaead2857fbb5be960 Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Fri, 21 May 2021 14:08:34 -0500 Subject: Switch from polybar to i3blocks Switch my top bar from polybar to i3blocks. Polybar requires a separate startup script while i3blocks runs as a child process of i3 itself. Signed-off-by: Danny Holman --- .config/i3/config | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to '.config/i3') diff --git a/.config/i3/config b/.config/i3/config index 148db12..ecc383b 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -74,6 +74,12 @@ bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart +# i3blocks +bar { + status_command i3blocks + position top +} + # resize window (you can also use the mouse for that) set $mode_resize Resize window mode "$mode_resize" { @@ -101,13 +107,13 @@ mode "$mode_system" { } # Volume -bindsym $mod+Shift+greater exec --no-startup-id amixer sset Master 5%+ -bindsym $mod+Shift+less exec --no-startup-id amixer sset Master 5%- -bindsym $mod+Shift+m exec --no-startup-id amixer sset Master toggle -bindsym $mod+Shift+t exec --no-startup-id amixer sset Front toggle -bindsym XF86AudioRaiseVolume exec --no-startup-id amixer sset Master 5%+ -bindsym XF86AudioLowerVolume exec --no-startup-id amixer sset Master 5%- -bindsym XF86AudioMute exec --no-startup-id amixer sset Master toggle +bindsym $mod+Shift+greater exec --no-startup-id amixer sset Master 5%+ && pkill -RTMIN+10 i3blocks +bindsym $mod+Shift+less exec --no-startup-id amixer sset Master 5%- && pkill -RTMIN+10 i3blocks +bindsym $mod+Shift+m exec --no-startup-id amixer sset Master toggle && pkill -RTMIN+10 i3blocks +bindsym $mod+Shift+t exec --no-startup-id amixer sset Front toggle && pkill -RTMIN+10 i3blocks +bindsym XF86AudioRaiseVolume exec --no-startup-id amixer sset Master 5%+ && pkill -RTMIN+10 i3blocks +bindsym XF86AudioLowerVolume exec --no-startup-id amixer sset Master 5%- && pkill -RTMIN+10 i3blocks +bindsym XF86AudioMute exec --no-startup-id amixer sset Master toggle && pkill -RTMIN+10 i3blocks # Screen brightness bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 10% @@ -133,18 +139,12 @@ bindsym $mod+Shift+p exec --no-startup-id "rofi-pass" # Gap stuff hide_edge_borders both new_window 1pixel -gaps inner 15 -gaps outer 15 # Start helpful programs exec --no-startup-id ~/.screenlayout/screen.sh exec --no-startup-id wal -s -i "$HOME/Pictures/wal/" exec --no-startup-id xautolock -time 5 -locker "i3lock -c 000000" -exec --no-startup-id picom -cCf -i 1 -m 1 exec --no-startup-id tilda -exec --no-startup-id polybar -r main0 -exec --no-startup-id polybar -r main1 -exec --no-startup-id polybar -r main2 exec --no-startup-id dex -a # Play nice with Steam windows -- cgit v1.2.3