Update zsh, bspwm

This commit is contained in:
Smirnov Alexandr 2021-03-18 21:24:43 +02:00
parent 1be1c9c53e
commit c4d54758ef
7 changed files with 31 additions and 36 deletions

View file

@ -34,20 +34,15 @@ bspc config presel_feedback_color "#51AFEF"
bspc config urgent_border_color "#FF6C6B"
###== BSPWM Rules
bspc rule -a Alacritty desktop='^1' focus=on follow=on
bspc rule -a kitty desktop='^1' focus=on follow=on
bspc rule -a firefox desktop='^2' focus=on follow=on
bspc rule -a Google-chrome desktop='^2' focus=on follow=on
bspc rule -a LibreWolf desktop='^2' focus=on follow=on
bspc rule -a Code desktop='^3' focus=on follow=on
bspc rule -a Emacs desktop='^3' focus=on follow=on state='tiled'
bspc rule -a '*:nvim' desktop='^3' focus=on follow=on
bspc rule -a '*:nvim' desktop='^4' focus=on follow=off
bspc rule -a '*:ranger' desktop='^4' focus=on follow=off
bspc rule -a Thunar desktop='^4' focus=on follow=off
bspc rule -a Todoist desktop='^5' focus=on follow=off
bspc rule -a Joplin desktop='^5' focus=on follow=on
bspc rule -a Simplenote desktop='^5' focus=on follow=on
bspc rule -a discord desktop='^6' focus=off follow=off
bspc rule -a telegram-desktop desktop='^6' focus=off follow=on
bspc rule -a KeePassXC desktop='^7' focus=on follow=off
bspc rule -a Spotify desktop='^9' focus=on follow=on

View file

@ -1,5 +1,5 @@
#!/bin/bash
killall -q polybar
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
polybar -c ~/.config/bspwm/polybar/polybar min&
#polybar -c ~/.config/bspwm/polybar/polybar bar&
#polybar -c ~/.config/bspwm/polybar/polybar min&
polybar -c ~/.config/bspwm/polybar/polybar bar&

View file

@ -3,8 +3,8 @@
[settings]
enable-ipc = true
format-padding = 1
screenchange-reload = true
pseudo-transparency = true
;screenchange-reload = true
;pseudo-transparency = true
[colors]
background = #262A2B
@ -34,6 +34,7 @@ fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
wm-restack = bspwm
override-redirect = true
font-0 = Iosevka Nerd Font:style=Medium:size=8;3
font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5
modules-left = bspwm

View file

@ -3,21 +3,19 @@
## == USER keys
super + {_,shift} Return
{kitty, \
{kitty, \
rofi -show drun -theme ntenV2}
super + shift + {w, f, e, c, s, t, q}
{google-chrome-stable, \
kitty --class ranger -e ranger, \
kitty --class nvim -e nvim, \
code, \
.applications/simplenote.appimage, \
.applications/todoist.appimage, \
xkill }
super + shift + {w, e, f, c, a, q}
{google-chrome-stable, \
kitty --class nvim -e nvim, \
kitty --class ranger -e ranger, \
code, \
.applications/todoist.appimage, \
xkill }
super + {_,shift} Print
{scrot -s, \
scrot }
{_,shift,ctrl} Print
{scrot -s, scrot, scrot -u}
super + {equal, minus, shift+minus}
amixer sset Master {2%+,2%-,toggle}
@ -31,8 +29,8 @@ super + q
bspc node -c
super + control + r
bspc wm -r \
pkill -USR1 -x sxhkd
bspc wm -r && \
sxhkd -c ~/.config/bspwm/sxhkd
### == BSPWM windows
## Resize window
@ -40,7 +38,7 @@ super + ctrl + {h,j,k,l}
bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
# Change focus & move focus window
super + {_,shift + }{h,j,k,l}
super + {_,shift + } {h,j,k,l}
bspc node -{f,s} {west,south,north,east}
# Preselect the direction