mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 16:51:34 +02:00
Update zsh, bspwm, nvim, vscode, tmux. Add fish
This commit is contained in:
parent
1f5249ea78
commit
53d009b671
14 changed files with 236 additions and 115 deletions
|
|
@ -2,28 +2,28 @@
|
|||
# Smirnov-O <ss2316544@gmail.com>
|
||||
# BSPWM config file
|
||||
|
||||
## == Function
|
||||
###== Function
|
||||
Run() {
|
||||
if ! pgrep $1
|
||||
then $@& fi
|
||||
}
|
||||
|
||||
## == Autostart
|
||||
###== 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 &
|
||||
Run sxhkd -c ~/.config/bspwm/sxhkd &
|
||||
~/.config/bspwm/bar.sh &
|
||||
Run ~/.script/autolock &
|
||||
Run lxsession &
|
||||
Run picom -b &
|
||||
|
||||
## == BSPWM
|
||||
###== BSPWM
|
||||
# Workspaces
|
||||
bspc monitor -d 1 2 3 4 5 6 7 8 9
|
||||
|
||||
# General
|
||||
bspc config border_width 2
|
||||
bspc config window_gap 8
|
||||
bspc config window_gap 4
|
||||
bspc config split_ratio 0.50
|
||||
bspc config borderless_monocle true
|
||||
bspc config gapless_monocle true
|
||||
|
|
@ -38,16 +38,17 @@ bspc config presel_feedback_color "#51AFEF"
|
|||
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=on follow=off
|
||||
bspc rule -a Code 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=off
|
||||
bspc rule -a Thunar desktop='^4' focus=on follow=on
|
||||
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
|
||||
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 Code 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=off
|
||||
bspc rule -a Thunar desktop='^4' focus=on follow=off
|
||||
bspc rule -a Joplin desktop='^5' focus=on follow=off
|
||||
bspc rule -a discord desktop='^6' focus=on follow=off
|
||||
bspc rule -a telegram-desktop desktop='^6' focus=off follow=off
|
||||
bspc rule -a KeePassXC desktop='^7' focus=on follow=off
|
||||
bspc rule -a Spotify desktop='^9' focus=on follow=on
|
||||
bspc rule -a google-tasks-desktop state=floating
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
# vim: ft=dosini
|
||||
|
||||
[settings]
|
||||
enable-ipc = true
|
||||
format-padding = 1
|
||||
|
|
@ -19,9 +21,9 @@ 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 = windowname
|
||||
modules-center = bspwm
|
||||
modules-right = pulseaudio archupd wifi-signal weather memory cpu keyboard time date
|
||||
modules-left = bspwm
|
||||
modules-center = windowname
|
||||
modules-right = keyboard pulseaudio weather wifi-signal archupd time
|
||||
tray-position = right
|
||||
tray-padding = 0
|
||||
|
||||
|
|
@ -47,7 +49,7 @@ label-empty-padding = 2
|
|||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
interval = 2
|
||||
format-volume = <ramp-volume> <label-volume>
|
||||
format-volume = <ramp-volume> <label-volume>
|
||||
label-volume = %percentage%%
|
||||
label-volume-foreground = ${root.foreground}
|
||||
label-muted =
|
||||
|
|
@ -63,6 +65,12 @@ type = custom/script
|
|||
exec = ~/.config/polybar/scripts/updates-pacman-aur.sh
|
||||
interval = 60
|
||||
|
||||
[module/wifi-signal]
|
||||
type = custom/script
|
||||
label = %output:%%
|
||||
exec = ~/.config/polybar/scripts/wifi-signal.sh
|
||||
interval = 3
|
||||
|
||||
[module/keyboard]
|
||||
type = internal/xkeyboard
|
||||
format-prefix = ""
|
||||
|
|
|
|||
|
|
@ -1,20 +1,21 @@
|
|||
# Smirnov-O <ss2316544@gmail.com>
|
||||
# BSPWM/SXKBD config file
|
||||
|
||||
## == USER keys
|
||||
## == USER keys
|
||||
super + {_,shift} Return
|
||||
{alacritty, \
|
||||
rofi -show drun }
|
||||
{kitty, \
|
||||
rofi -show drun -theme ntenV2}
|
||||
|
||||
super + shift + {w,f,e,c,q}
|
||||
{firefox, \
|
||||
alacritty --class=ranger -e ranger, \
|
||||
alacritty --class=nvim -e nvim, \
|
||||
code, \
|
||||
xkill }
|
||||
super + shift + {w,f,e,c,v,q}
|
||||
{google-chrome-stable, \
|
||||
alacritty --class=ranger -e ranger, \
|
||||
alacritty --class=nvim -e nvim, \
|
||||
code, \
|
||||
veracrypt, \
|
||||
xkill }
|
||||
|
||||
super + shift + z
|
||||
betterlockscreen --off 180 -t "Computer is lokerd" -l
|
||||
betterlockscreen --off 180 -t "Computer is locked" -l
|
||||
|
||||
super + {equal, minus, shift+minus}
|
||||
amixer sset Master {2%+,2%-,toggle}
|
||||
|
|
@ -26,10 +27,11 @@ super + {Escape, ctrl + u, ctrl + i}
|
|||
|
||||
### == BSPWM keys
|
||||
super + q
|
||||
bspc node -{c,k}
|
||||
bspc node -c
|
||||
|
||||
super + control + r
|
||||
bspc wm -r && pkill -USR1 -x sxhkd
|
||||
bspc wm -r \
|
||||
pkill -USR1 -x sxhkd
|
||||
|
||||
### == BSPWM windows
|
||||
## Resize window
|
||||
|
|
@ -43,8 +45,10 @@ super + {_,shift + }{h,j,k,l}
|
|||
# Preselect the direction
|
||||
super + alt + {h,j,k,l}
|
||||
bspc node -p {west,south,north,east}
|
||||
|
||||
super + alt + {1-9}
|
||||
bspc node -o 0.{1-9}
|
||||
|
||||
super + alt + {space,0}
|
||||
bspc node -p cancel
|
||||
|
||||
|
|
@ -52,10 +56,11 @@ super + alt + {space,0}
|
|||
super + {_,shift + }{1-9}
|
||||
bspc {desktop -f,node -d} focused:'^{1-9}'
|
||||
|
||||
## == BSPWM windwo layouts
|
||||
super + ctrl + {t, s, f}
|
||||
bspc node -t {tiled,floating,fullscreen}
|
||||
## == BSPWM window layouts
|
||||
super + shift + {Tab, F11}
|
||||
bspc node -t {floating,fullscreen}
|
||||
|
||||
# Change windows layout
|
||||
super + ctrl + {m,x,y,z}
|
||||
bspc node -g {marked,locked,sticky,private}
|
||||
super + Tab
|
||||
bspc node -t tiled
|
||||
|
||||
# vim: ft=sxhkdrc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue