This commit is contained in:
pim-wtf
2022-02-17 10:30:31 +01:00
parent 12a52d5b4c
commit 75d5babfc3
7 changed files with 210 additions and 180 deletions

View File

@ -189,7 +189,7 @@ colors:
primary:
# background: '#1d1f21'
# background: '#1c2833'
background: '#0c181d'
background: '#000000'
# foreground: '#c5c8c6'
# Bright and dim foreground colors
@ -367,7 +367,7 @@ colors:
#
# Window opacity as a floating point number from `0.0` to `1.0`.
# The value `0.0` is completely transparent and `1.0` is opaque.
background_opacity: 0.95
# background_opacity: 1
#selection:
# This string contains all characters that are used as separators for

View File

@ -17,15 +17,19 @@ $HOME/.config/polybar/launch.sh
# Set wallpaper.
nitrogen --set-zoom-fill ~/.wallpapers/sf.jpg
# Load BT manager for keyboard.
blueman-manager &
# Load applications which require X server & WM to have launched.
nextcloud --background &
redshift &
bspc monitor -d I II III IV V VI
bspc monitor -d I II III IV V VI VII VIII
# Match the bspwm window gap to the gaps of polybar.
bspc config border_width 2
bspc config window_gap 10
bspc config window_gap 0
bspc config top_padding 26
bspc config split_ratio 0.50
bspc config borderless_monocle true

View File

@ -17,15 +17,21 @@ Plug 'rust-lang/rust.vim'
Plug 'Gavinok/vim-troff'
Plug 'vim-airline/vim-airline'
Plug 'Yggdroot/indentLine'
Plug 'vim-airline/vim-airline-themes'
call plug#end()
" configurations.
set number relativenumber
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
set softtabstop=0 noexpandtab
autocmd BufRead *.md set spell spelllang=en_uk
highlight LineNr ctermfg=8
" airline configuration.
let g:airline_theme='minimalist'
let g:airline_powerline_fonts=1
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#wordcount#enabled=1
" vimtex configuration.
let g:tex_flavor='latex'
let g:vimtex_view_method='zathura'
@ -41,4 +47,8 @@ autocmd BufRead *.py hi ColorColumn ctermbg=8
" other plugins configuration
let g:indentLine_leadingSpaceEnabled=1
let g:airline#extensions#wordcount#enabled=1
let g:indentLine_leadingSpaceChar = '⬞'
" Custom commands
" Uses F4 to find and replace every instance of the word under the cursor.
nnoremap <F4> :%s/<c-r><c-w>/<c-r><c-w>/gc<c-f>$F/i

View File

@ -18,22 +18,21 @@
# unless explicitly requested using the wintypes option.
#
# shadow = false
shadow = true;
shadow = false;
# The blur radius for shadows, in pixels. (defaults to 12)
# shadow-radius = 12
shadow-radius = 20;
# shadow-radius = 20;
# The opacity of shadows. (0.0 - 1.0, defaults to 0.75)
shadow-opacity = 0.9
# shadow-opacity = 0.9
# The left offset for shadows, in pixels. (defaults to -15)
# shadow-offset-x = -15
shadow-offset-x = -20;
# shadow-offset-x = -20;
# The top offset for shadows, in pixels. (defaults to -15)
# shadow-offset-y = -15
shadow-offset-y = -20;
# shadow-offset-y = -20;
# Avoid drawing shadows on dock/panel windows. This option is deprecated,
# you should use the *wintypes* option in your config file instead.

View File

@ -9,7 +9,7 @@
# Polybar configuation file.
[colors]
background = #ee0c181d
background = #ff000000
foreground = #ccffffff
background-alt = #444
@ -20,16 +20,13 @@ secondary = #e60053
alert = #bd2c40
[bar/top]
width = 1900
height = 30
width = 1920
height = 26
background = ${colors.background}
foreground = ${colors.foreground}
border-color = #00000000
offset-y = 10
offset-x = 10
padding-left = 0
padding-right = 1
@ -41,7 +38,7 @@ font-1 = MaterialIcons;3
font-2 = coins;3
modules-left = bspwm
modules-right = xbps-updates pulseaudio-control brightnessctl wlan wireless-network battery date
modules-right = xbps-updates pulseaudio-control wlan wireless-network battery date
# modules-center = crypto
fixed-center = true
@ -63,7 +60,7 @@ format-prefix = " "
type = custom/script
exec = ~/.config/polybar/scripts/xbps-updates.sh
click-left = alacritty -e sudo xbps-install -Su
nterval = 60
interval = 60
label-foreground = ${colors.foreground}
[module/pulseaudio-control]
@ -101,7 +98,7 @@ full-at = 98
click-left = ~/.config/polybar/scripts/bat_toggle.sh
format-charging = <label-charging>
format-discharging = <ramp-capacity><label-discharging>
format-full = <ramp-capacity><label-full>
format-full = ""
format-charging-foreground = #90C2E7
@ -128,24 +125,42 @@ bar-capacity-empty-foreground = #44ffffff
[module/bspwm]
type = internal/bspwm
label-focused = ""
pin-workspaces = true
fuzzy-match = true
ws-icon-0 = I;
ws-icon-1 = II;
ws-icon-2 = III;
ws-icon-3 = IV;
ws-icon-4 = V;
ws-icon-5 = VI;
ws-icon-6 = VII;
ws-icon-7 = VIII;
ws-icon-default = 
format = <label-state>
label-monitor = %icon%
label-focused = %icon%
label-focused-background= ${colors.foreground-alt}
label-focused-padding = 1
label-occupied = ""
label-occupied = %icon%
label-occupied-padding = 1
label-urgent = ""
label-urgent = %icon%
label-urgent-background = ${colors.alert}
label-urgent-padding = 1
label-empty = ""
label-empty = %icon%
label-empty-foreground = ${colors.foreground-alt}
label-empty-padding = 1
[module/date]
type = internal/date
date = %H:%M
date = %Y-%m-%d %H:%M:%S
format =  <label>
; full date: %Y-%m-%d %H:%M:%S
[module/wlan]

View File

@ -1,4 +1,4 @@
#files: 757 version: 5.8
#files: 758 version: 5.8.1
_comps=(
'-' '_precommand'
@ -1619,158 +1619,158 @@ bindkey '^[,' _history-complete-newer
bindkey '^[/' _history-complete-older
bindkey '^[~' _bash_complete-word
autoload -Uz _alacritty _bluetoothctl _bspc _flameshot _gh \
_libinput _mpv _polybar _polybar_msg _pulseaudio \
_rg _sv _xbps _xbps_src _xtools \
_zathura _cdr _all_labels _all_matches _alternative \
_approximate _arg_compile _arguments _bash_completions _cache_invalid \
_call_function _combination _comp_locale _complete _complete_debug \
_complete_help _complete_help_generic _complete_tag _correct _correct_filename \
_correct_word _describe _description _dispatch _expand \
_expand_alias _expand_word _extensions _external_pwds _generic \
_guard _history _history_complete_word _ignored _list \
_main_complete _match _menu _message _most_recent_file \
_multi_parts _next_label _next_tags _normal _nothing \
_oldlist _pick_variant _prefix _read_comp _regex_arguments \
_regex_words _requested _retrieve_cache _sep_parts _sequence \
_set_command _setup _store_cache _sub_commands _tags \
_user_expand _values _wanted _acpi _acpitool \
_alsa-utils _analyseplugin _brctl _btrfs _chattr \
_chcon _chrt _cpupower _cryptsetup _dkms \
_e2label _ethtool _findmnt _free _fuse_arguments \
_fuse_values _fusermount _gpasswd _htop _iconvconfig \
_ionice _ipset _iptables _iwconfig _kpartx \
_losetup _lsattr _lsblk _lsusb _ltrace \
_mdadm _mii-tool _modutils _mondo _networkmanager \
_opkg _pidof _pmap _qdbus _schedtool \
_selinux_contexts _selinux_roles _selinux_types _selinux_users _setsid \
_slabtop _ss _sshfs _strace _sysstat \
_tload _tpb _tracepath _tune2fs _uml \
_valgrind _vserver _wakeup_capable_devices _wipefs _wpa_cli \
_a2ps _aap _abcde _absolute_command_paths _ack \
_adb _ansible _ant _antiword _apachectl \
_apm _arch_archives _arch_namespace _arp _arping \
_asciidoctor _asciinema _at _attr _augeas \
_avahi _awk _base64 _basename _bash \
_baudrates _baz _beep _bibtex _bind_addresses \
_bison _bittorrent _bogofilter _bpf_filters _bpython \
_bzip2 _bzr _cabal _cal _calendar \
_canonical_paths _cat _ccal _cdcd _cdrdao \
_cdrecord _chkconfig _chmod _chown _chroot \
_chsh _cksum _clay _cmdambivalent _cmdstring \
_cmp _column _comm _composer _compress \
_configure _cowsay _cp _cpio _cplay \
_crontab _cscope _cssh _ctags_tags _curl \
_cut _cvs _darcs _date _date_formats \
_dates _dbus _dconf _dd _devtodo \
_df _dhclient _dict _dict_words _diff \
_diff3 _diff_options _diffstat _dig _dir_list \
_directories _django _dmesg _dmidecode _dns_types \
_doas _domains _dos2unix _drill _dsh \
_dtruss _du _dvi _ecasound _ed \
_elfdump _elinks _email_addresses _enscript _entr \
_env _espeak _etags _fakeroot _feh \
_fetchmail _ffmpeg _figlet _file_modes _file_systems \
_files _find _find_net_interfaces _finger _flac \
_flex _fmt _fold _fortune _fsh \
_fuser _gcc _gcore _gdb _gem \
_genisoimage _getconf _getent _getfacl _getmail \
_getopt _ghostscript _git _global _global_tags \
_gnu_generic _gnupod _gnutls _go _gpg \
_gphoto2 _gprof _gradle _graphicsmagick _grep \
_groff _groups _growisofs _gsettings _guilt \
_gzip _have_glob_qual _head _hexdump _host \
_hostname _hosts _iconv _id _ifconfig \
_iftop _imagemagick _init_d _initctl _install \
_iostat _ip _ipsec _irssi _ispell \
_java _java_class _joe _join _jq \
_killall _knock _kvno _last _ld_debug \
_ldconfig _ldd _less _lha _libvirt \
_links _list_files _lldb _ln _loadkeys \
_locale _localedef _locales _locate _look \
_lp _ls _lsof _lua _luarocks \
_lynx _lz4 _lzop _mail _mailboxes \
_make _man _md5sum _mencal _mh \
_mime_types _mkdir _mkfifo _mknod _mktemp \
_module _monotone _moosic _mosh _mount \
_mpc _mt _mtools _mtr _mutt \
_mv _my_accounts _myrepos _mysql_utils _mysqldiff \
_ncftp _net_interfaces _netcat _netstat _newsgroups \
_nginx _ngrep _nice _nkf _nl \
_nm _nmap _npm _nslookup _numfmt \
_objdump _object_files _od _openstack _other_accounts \
_pack _pandoc _paste _patch _patchutils \
_path_commands _path_files _pax _pbm _pdf \
_perforce _perl _perl_basepods _perl_modules _perldoc \
_pgrep _php _picocom _pids _pine \
_ping _pkg-config _pkg_instance _pkgadd _pkginfo \
_pkgrm _pon _ports _postfix _postgresql \
_postscript _printenv _printers _process_names _prove \
_ps _pspdf _psutils _pump _pv \
_pwgen _pydoc _python _python_modules _qemu \
_quilt _rake _ranlib _rar _rclone \
_rcs _readelf _readlink _remote_files _renice \
_ri _rlogin _rm _rmdir _route \
_rrdtool _rsync _rubber _ruby _runit \
_samba _sccs _scons _screen _script \
_seafile _sed _seq _service _services \
_setfacl _sh _shasum _showmount _shred \
_shuf _shutdown _signals _sisu _slrn \
_smartmontools _socket _sort _spamassassin _split \
_sqlite _sqsh _ssh _ssh_hosts _stat \
_stdbuf _stgit _stow _strings _strip \
_stty _su _subversion _sudo _surfraw \
_swaks _swanctl _swift _sys_calls _sysctl \
_tac _tail _tar _tar_archive _tardy \
_tcpdump _tcptraceroute _tee _telnet _terminals \
_tex _texi _texinfo _tidy _tiff \
_tilde_files _time_zone _timeout _tin _tla \
_tmux _todo.sh _toilet _top _topgit \
_totd _touch _tput _tr _transmission \
_tree _truss _tty _ttys _twidge \
_twisted _umountable _unace _uname _unexpand \
_uniq _unison _units _uptime _urls \
_user_admin _user_at_host _users _users_on _vcsh \
_vim _visudo _vmstat _vorbis _vpnc \
_w _w3m _watch _wc _webbrowser \
_wget _whereis _who _whois _wiggle \
_xargs _xmlsoft _xmlstarlet _xmms2 _xxd \
_xz _yafc _yodl _yp _zcat \
_zdump _zfs _zfs_dataset _zfs_keysource_props _zfs_pool \
_zip _zpool _zsh _acroread _code \
_dcop _eog _evince _geany _gnome-gv \
_gqview _gv _kdeconnect _kfmclient _matlab \
_mozilla _mplayer _mupdf _nautilus _nedit \
_netscape _okular _pdftk _qiv _rdesktop \
_setxkbmap _sublimetext _urxvt _vnc _x_arguments \
_x_borderwidth _x_color _x_colormapid _x_cursor _x_display \
_x_extension _x_font _x_geometry _x_keysym _x_locale \
_x_modifier _x_name _x_resource _x_selection_timeout _x_title \
_x_utils _x_visual _x_window _xauth _xautolock \
_xclip _xdvi _xfig _xft_fonts _xloadimage \
_xmodmap _xournal _xpdf _xrandr _xscreensaver \
_xset _xt_arguments _xt_session_id _xterm _xv \
_xwit _zeal _add-zle-hook-widget _add-zsh-hook _alias \
_aliases _arrays _assign _autocd _bindkey \
_brace_parameter _builtin _cd _command _command_names \
_compadd _compdef _completers _condition _default \
_delimiters _directory_stack _dirs _disable _dynamic_directory_name \
_echotc _echoti _emulate _enable _equal \
_exec _fc _file_descriptors _first _functions \
_globflags _globqual_delims _globquals _hash _history_modifiers \
_in_vared _jobs _jobs_bg _jobs_builtin _jobs_fg \
_kill _limit _limits _math _math_params \
_mere _module_math_func _options _options_set _options_unset \
_parameter _parameters _precommand _print _prompt \
_ps1234 _read _redirect _run-help _sched \
_set _setopt _source _strftime _subscript \
_suffix_alias_files _tcpsys _tilde _trap _ttyctl \
_typeset _ulimit _unhash _user_math_func _value \
_vared _vars _wait _which _widgets \
_zargs _zattr _zcalc _zcalc_line _zcompile \
_zed _zftp _zle _zmodload _zmv \
_zparseopts _zpty _zsh-mime-handler _zsocket _zstyle \
_ztodo
autoload -Uz _alacritty _bluetoothctl _bspc _curl _flameshot \
_gh _libinput _mpv _polybar _polybar_msg \
_pulseaudio _rg _sv _xbps _xbps_src \
_xtools _zathura _cdr _all_labels _all_matches \
_alternative _approximate _arg_compile _arguments _bash_completions \
_cache_invalid _call_function _combination _comp_locale _complete \
_complete_debug _complete_help _complete_help_generic _complete_tag _correct \
_correct_filename _correct_word _describe _description _dispatch \
_expand _expand_alias _expand_word _extensions _external_pwds \
_generic _guard _history _history_complete_word _ignored \
_list _main_complete _match _menu _message \
_most_recent_file _multi_parts _next_label _next_tags _normal \
_nothing _oldlist _pick_variant _prefix _read_comp \
_regex_arguments _regex_words _requested _retrieve_cache _sep_parts \
_sequence _set_command _setup _store_cache _sub_commands \
_tags _user_expand _values _wanted _acpi \
_acpitool _alsa-utils _analyseplugin _brctl _btrfs \
_chattr _chcon _chrt _cpupower _cryptsetup \
_dkms _e2label _ethtool _findmnt _free \
_fuse_arguments _fuse_values _fusermount _gpasswd _htop \
_iconvconfig _ionice _ipset _iptables _iwconfig \
_kpartx _losetup _lsattr _lsblk _lsusb \
_ltrace _mdadm _mii-tool _modutils _mondo \
_networkmanager _opkg _pidof _pmap _qdbus \
_schedtool _selinux_contexts _selinux_roles _selinux_types _selinux_users \
_setsid _slabtop _ss _sshfs _strace \
_sysstat _tload _tpb _tracepath _tune2fs \
_uml _valgrind _vserver _wakeup_capable_devices _wipefs \
_wpa_cli _a2ps _aap _abcde _absolute_command_paths \
_ack _adb _ansible _ant _antiword \
_apachectl _apm _arch_archives _arch_namespace _arp \
_arping _asciidoctor _asciinema _at _attr \
_augeas _avahi _awk _base64 _basename \
_bash _baudrates _baz _beep _bibtex \
_bind_addresses _bison _bittorrent _bogofilter _bpf_filters \
_bpython _bzip2 _bzr _cabal _cal \
_calendar _canonical_paths _cat _ccal _cdcd \
_cdrdao _cdrecord _chkconfig _chmod _chown \
_chroot _chsh _cksum _clay _cmdambivalent \
_cmdstring _cmp _column _comm _composer \
_compress _configure _cowsay _cp _cpio \
_cplay _crontab _cscope _cssh _ctags_tags \
_curl _cut _cvs _darcs _date \
_date_formats _dates _dbus _dconf _dd \
_devtodo _df _dhclient _dict _dict_words \
_diff _diff3 _diff_options _diffstat _dig \
_dir_list _directories _django _dmesg _dmidecode \
_dns_types _doas _domains _dos2unix _drill \
_dsh _dtruss _du _dvi _ecasound \
_ed _elfdump _elinks _email_addresses _enscript \
_entr _env _espeak _etags _fakeroot \
_feh _fetchmail _ffmpeg _figlet _file_modes \
_file_systems _files _find _find_net_interfaces _finger \
_flac _flex _fmt _fold _fortune \
_fsh _fuser _gcc _gcore _gdb \
_gem _genisoimage _getconf _getent _getfacl \
_getmail _getopt _ghostscript _git _global \
_global_tags _gnu_generic _gnupod _gnutls _go \
_gpg _gphoto2 _gprof _gradle _graphicsmagick \
_grep _groff _groups _growisofs _gsettings \
_guilt _gzip _have_glob_qual _head _hexdump \
_host _hostname _hosts _iconv _id \
_ifconfig _iftop _imagemagick _init_d _initctl \
_install _iostat _ip _ipsec _irssi \
_ispell _java _java_class _joe _join \
_jq _killall _knock _kvno _last \
_ld_debug _ldconfig _ldd _less _lha \
_libvirt _links _list_files _lldb _ln \
_loadkeys _locale _localedef _locales _locate \
_look _lp _ls _lsof _lua \
_luarocks _lynx _lz4 _lzop _mail \
_mailboxes _make _man _md5sum _mencal \
_mh _mime_types _mkdir _mkfifo _mknod \
_mktemp _module _monotone _moosic _mosh \
_mount _mpc _mt _mtools _mtr \
_mutt _mv _my_accounts _myrepos _mysql_utils \
_mysqldiff _ncftp _net_interfaces _netcat _netstat \
_newsgroups _nginx _ngrep _nice _nkf \
_nl _nm _nmap _npm _nslookup \
_numfmt _objdump _object_files _od _openstack \
_other_accounts _pack _pandoc _paste _patch \
_patchutils _path_commands _path_files _pax _pbm \
_pdf _perforce _perl _perl_basepods _perl_modules \
_perldoc _pgrep _php _picocom _pids \
_pine _ping _pkg-config _pkg_instance _pkgadd \
_pkginfo _pkgrm _pon _ports _postfix \
_postgresql _postscript _printenv _printers _process_names \
_prove _ps _pspdf _psutils _pump \
_pv _pwgen _pydoc _python _python_modules \
_qemu _quilt _rake _ranlib _rar \
_rclone _rcs _readelf _readlink _remote_files \
_renice _ri _rlogin _rm _rmdir \
_route _rrdtool _rsync _rubber _ruby \
_runit _samba _sccs _scons _screen \
_script _seafile _sed _seq _service \
_services _setfacl _sh _shasum _showmount \
_shred _shuf _shutdown _signals _sisu \
_slrn _smartmontools _socket _sort _spamassassin \
_split _sqlite _sqsh _ssh _ssh_hosts \
_stat _stdbuf _stgit _stow _strings \
_strip _stty _su _subversion _sudo \
_surfraw _swaks _swanctl _swift _sys_calls \
_sysctl _tac _tail _tar _tar_archive \
_tardy _tcpdump _tcptraceroute _tee _telnet \
_terminals _tex _texi _texinfo _tidy \
_tiff _tilde_files _time_zone _timeout _tin \
_tla _tmux _todo.sh _toilet _top \
_topgit _totd _touch _tput _tr \
_transmission _tree _truss _tty _ttys \
_twidge _twisted _umountable _unace _uname \
_unexpand _uniq _unison _units _uptime \
_urls _user_admin _user_at_host _users _users_on \
_vcsh _vim _visudo _vmstat _vorbis \
_vpnc _w _w3m _watch _wc \
_webbrowser _wget _whereis _who _whois \
_wiggle _xargs _xmlsoft _xmlstarlet _xmms2 \
_xxd _xz _yafc _yodl _yp \
_zcat _zdump _zfs _zfs_dataset _zfs_keysource_props \
_zfs_pool _zip _zpool _zsh _acroread \
_code _dcop _eog _evince _geany \
_gnome-gv _gqview _gv _kdeconnect _kfmclient \
_matlab _mozilla _mplayer _mupdf _nautilus \
_nedit _netscape _okular _pdftk _qiv \
_rdesktop _setxkbmap _sublimetext _urxvt _vnc \
_x_arguments _x_borderwidth _x_color _x_colormapid _x_cursor \
_x_display _x_extension _x_font _x_geometry _x_keysym \
_x_locale _x_modifier _x_name _x_resource _x_selection_timeout \
_x_title _x_utils _x_visual _x_window _xauth \
_xautolock _xclip _xdvi _xfig _xft_fonts \
_xloadimage _xmodmap _xournal _xpdf _xrandr \
_xscreensaver _xset _xt_arguments _xt_session_id _xterm \
_xv _xwit _zeal _add-zle-hook-widget _add-zsh-hook \
_alias _aliases _arrays _assign _autocd \
_bindkey _brace_parameter _builtin _cd _command \
_command_names _compadd _compdef _completers _condition \
_default _delimiters _directory_stack _dirs _disable \
_dynamic_directory_name _echotc _echoti _emulate _enable \
_equal _exec _fc _file_descriptors _first \
_functions _globflags _globqual_delims _globquals _hash \
_history_modifiers _in_vared _jobs _jobs_bg _jobs_builtin \
_jobs_fg _kill _limit _limits _math \
_math_params _mere _module_math_func _options _options_set \
_options_unset _parameter _parameters _precommand _print \
_prompt _ps1234 _read _redirect _run-help \
_sched _set _setopt _source _strftime \
_subscript _suffix_alias_files _tcpsys _tilde _trap \
_ttyctl _typeset _ulimit _unhash _user_math_func \
_value _vared _vars _wait _which \
_widgets _zargs _zattr _zcalc _zcalc_line \
_zcompile _zed _zftp _zle _zmodload \
_zmv _zparseopts _zpty _zsh-mime-handler _zsocket \
_zstyle _ztodo
autoload -Uz +X _call_program
typeset -gUa _comp_assocs

View File

@ -15,6 +15,8 @@ HISTFILE=~/.cache/zsh/histfile
HISTSIZE=1000
SAVEHIST=2500
export GPG_TTY=$(tty)
# Load autocompletion & include hidden dotfiles.
zstyle :compinstall filename '/home/pim/.zshrc'
zstyle ':completion:*' menu select