Swap i3blocks with polybar
This commit is contained in:
@@ -26,6 +26,8 @@ font pango:DejaVu Sans Mono 8
|
||||
# X core fonts rendering does not support right-to-left and this being a bitmap
|
||||
# font, it doesn’t scale on retina/hidpi displays.
|
||||
|
||||
new_window 1pixel
|
||||
|
||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||
floating_modifier $mod
|
||||
|
||||
@@ -36,7 +38,7 @@ bindsym $mod+Return exec termite
|
||||
bindsym $mod+Shift+q kill
|
||||
|
||||
# start dmenu (a program launcher)
|
||||
bindsym $mod+d exec dmenu_run
|
||||
bindsym $mod+d exec dmenu_run -b -p ">"
|
||||
# There also is the (new) i3-dmenu-desktop which only displays applications
|
||||
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
|
||||
# installed.
|
||||
@@ -126,17 +128,6 @@ bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcu
|
||||
# resize window (you can also use the mouse for that)
|
||||
mode "resize" {
|
||||
# These bindings trigger as soon as you enter the resize mode
|
||||
|
||||
# Pressing left will shrink the window’s width.
|
||||
# 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
|
||||
|
||||
# same bindings, but for the arrow keys
|
||||
bindsym Left resize shrink width 10 px or 10 ppt
|
||||
bindsym Down resize grow height 10 px or 10 ppt
|
||||
bindsym Up resize shrink height 10 px or 10 ppt
|
||||
@@ -164,38 +155,33 @@ mode "$mode_system" {
|
||||
}
|
||||
bindsym $mod+Pause mode "$mode_system"
|
||||
|
||||
# Start i3bar to display a workspace bar (plus the system information i3status
|
||||
# finds out, if available)
|
||||
bar {
|
||||
output DVI-0
|
||||
status_command i3blocks -c ~/.dotfiles/i3blocks/desktop.config
|
||||
position bottom
|
||||
mode dock
|
||||
workspace_buttons yes
|
||||
tray_output none
|
||||
|
||||
font pango:DejaVu Sans Mono 10
|
||||
|
||||
colors {
|
||||
background #191716
|
||||
statusline #ffffff
|
||||
|
||||
focused_workspace #ffffff #285577
|
||||
active_workspace #ffffff #333333
|
||||
inactive_workspace #888888 #222222
|
||||
urgent_workspace #ffffff #900000
|
||||
}
|
||||
}
|
||||
|
||||
# Pulse Audio controls
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +2% #increase sound volume
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -2% #decrease sound volume
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +1% #increase sound volume
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -1% #decrease sound volume
|
||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
|
||||
|
||||
# Media keys
|
||||
bindsym XF86AudioPlay exec ~/.dotfiles/bin/mediakeys-play
|
||||
bindsym XF86AudioPause exec ~/.dotfiles/bin/mediakeys-play
|
||||
|
||||
mode "cmus" {
|
||||
bindsym z exec --no-startup-id cmus-remote --previous
|
||||
bindsym x exec --no-startup-id cmus-remote --play
|
||||
bindsym c exec --no-startup-id cmus-remote --pause
|
||||
bindsym v exec --no-startup-id cmus-remote --stop
|
||||
bindsym b exec --no-startup-id cmus-remote --next
|
||||
|
||||
# back to normal: Enter or Escape
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
bindsym $mod+c mode "cmus"
|
||||
|
||||
exec xrandr --output DVI-0 --primary --mode 1920x1200 --pos 1200x390 --output DVI-1 --mode 1920x1200 --rotate left --pos 0x0
|
||||
|
||||
exec --no-startup-id feh --bg-fill ~/wallpapers/Forest.png
|
||||
exec --no-startup-id compton
|
||||
exec_always --no-startup-id ~/.dotfiles/polybar/launch.sh
|
||||
|
||||
exec "setxkbmap gb"
|
||||
|
||||
Reference in New Issue
Block a user