Update bspwm. Add CoC plug in vim

This commit is contained in:
Smirnov Olexandr 2021-01-31 14:01:25 +02:00
parent 7a0f05c664
commit 64007489ce
14 changed files with 112 additions and 113 deletions

View file

@ -4,16 +4,16 @@
## == Function
Run() {
if ! pgrep $1
then $@& fi
if ! pgrep $1
then $@& fi
}
## == Autostart
Run setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" &
Run feh --randomize --bg-scale ~/Pictures/wallp &
Run sxhkd -c ./.config/bspwm/sxhkd &
~/.config/bspwm/bar.sh &
Run nitrogen --restore &
~/.script/autolock &
Run ~/.script/autolock &
Run lxsession &
Run picom -b &
@ -30,7 +30,6 @@ bspc config borderless_monocle true
bspc config gapless_monocle true
bspc config single_monocle true
bspc config focus_follows_pointer true
bspc config borderless_monocle true
# Colors
bspc config normal_border_color "#262A2B"
@ -42,13 +41,14 @@ bspc config urgent_border_color "#FF6C6B"
# 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=off
bspc rule -a VSCodium desktop='^3' focus=on follow=on
bspc rule -a firefox desktop='^2' focus=on follow=off
bspc rule -a VSCodium desktop='^3' focus=on follow=off
bspc rule -a Sublime_text desktop='^3' focus=on follow=on
bspc rule -a '*:nvim' desktop='^3' focus=on follow=on
bspc rule -a '*:ranger' desktop='^4' focus=on follow=on
bspc rule -a '*:ranger' desktop='^4' focus=on follow=off
bspc rule -a Thunar desktop='^4' focus=on follow=on
bspc rule -a Joplin desktop='^5' focus=off
bspc rule -a discord descord='^6' focus=on
bspc rule -a TelegramDesktop descord='^6' focus=off
bspc rule -a Spotify descord='^9' focus=on
bspc rule -a google-tasks-desktop state=floating
bspc rule -a Joplin desktop='^5' focus=on follow=off
bspc rule -a discord descord='^6' focus=off follow=off
bspc rule -a telegram-desktop descord='^6' focus=off follow=off
bspc rule -a Spotify descord='^9' focus=on follow=on
bspc rule -a google-tasks-desktop state=floating

View file

@ -7,8 +7,8 @@ pseudo-transparency = true
[colors]
background = #262A2B
foreground = #DFDFDF
secondary = #008DCD
alert = #FF6C6B
secondary = #008DCD
alert = #FF6C6B
[bar/bar]
width = 100%
@ -19,7 +19,7 @@ foreground = ${colors.foreground}
wm-restack = bspwm
font-0 = Iosevka Nerd Font:style=Medium:size=8;3
font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5
modules-left = powermenu windowname
modules-left = windowname
modules-center = bspwm
modules-right = pulseaudio archupd wifi-signal weather memory cpu keyboard time date
tray-position = right

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1 MiB

View file

@ -2,52 +2,27 @@
# BSPWM/SXKBD config file
## == USER Applications
super + Return
kitty
super + {_,shift} Return
{alacritty, \
rofi -show drun }
super + shift + w
firefox
super + shift + {w,f,e,c,q}
{firefox, \
alacritty --class=ranger -e ranger, \
alacritty --class=nvim -e nvim, \
subl, \
xkill }
super + shift + f
kitty --class=ranger -e ranger
super + shift + z
betterlockscreen --off 180 -t "Computer is lokerd" -l
super + shift + e
kitty --class=nvim -e nvim
super + shift + c
vscodium
super + shift + d
org.zealdocs.Zeal
super + shift + q
xkill
## == USER volume
super + minus
amixer sset Master 2%-
super + equal
amixer sset Master 2%+
super + shift + minus
amixer sset Master toggle
## == USER Menus
super + shift + Return
rofi -location 2 -show drun
super + Escape
~/.script/dmenu/dmenu-power.sh
super + ctrl + i
~/.script/dmenu/dmenu-pass.sh
super + ctrl + u
~/.script/dmenu/dmenu-config-edit.sh
super + {equal, minus, shift + minus}
amixer sset Master {2%+,2%-,toggle}
super + {Escape, ctrl + u, ctrl + i}
{./.script/dmenu/dmenu-power.sh, \
./.script/dmenu/dmenu-config-edit.sh, \
./.script/dmenu/dmenu-pass.sh }
## == BSPWM keys
super + q
@ -66,35 +41,21 @@ super + ctrl + {h,j,k,l}
super + {_,shift + }{h,j,k,l}
bspc node -{f,s} {west,south,north,east}
# Change focus window
super + {_,shift + }c
bspc node -f {next,prev}.local.!hidden.window
# Preselect the direction
super + alt + {h,j,k,l}
bspc node -p {west,south,north,east}
# Preselect the ratio
super + alt + {1-9}
bspc node -o 0.{1-9}
# Cancel the preselection
super + ctrl + space
super + alt + {space,0}
bspc node -p cancel
## == BSPWM workspace
## Next/Prev workspace
super + bracket{left,right}
bspc desktop -f {prev,next}.local
# Change WP & send window to WP
super + {_,shift + }{1-9}
bspc {desktop -f,node -d} focused:'^{1-9}'
## == BSPWM windwo layouts
# Set window layouts for specific window
super + {t,shift + t,s,f}
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
super + ctrl + {t, s, f}
bspc node -t {tiled,floating,fullscreen}
# Change windows layout
super + ctrl + {m,x,y,z}