From 53183bd8eb5d05367f3349f9038c316dba6b59d5 Mon Sep 17 00:00:00 2001 From: umgbhalla Date: Sat, 26 Nov 2022 19:36:01 +0530 Subject: [PATCH] feat(polybar): updated polybar cava integration --- base/programs/program-list | 89 ++++- base/scripts/.scripts/boxes | 2 +- base/scripts/.scripts/p_now | 2 +- base/zsh/.config/zsh/.zcompdump | 347 +++++++++--------- base/zsh/.config/zsh/profile.zsh | 1 + themes/cr0nus/bspwm/.config/bspwm/bspwmrc | 4 +- themes/cr0nus/dunst/.config/dunst/dunstrc | 2 +- .../cr0nus/polybar/.config/polybar/bars.ini | 26 +- themes/cr0nus/polybar/.config/polybar/cava.sh | 42 +++ .../cr0nus/polybar/.config/polybar/config.ini | 4 +- .../cr0nus/polybar/.config/polybar/launch.sh | 6 +- .../polybar/.config/polybar/modules.ini | 16 + .../.config/polybar/scripts/modules/cava.py | 315 ++++++++++++++++ themes/cr0nus/sxhkd/.config/sxhkd/sxhkdrc | 12 +- 14 files changed, 665 insertions(+), 203 deletions(-) create mode 100755 themes/cr0nus/polybar/.config/polybar/cava.sh create mode 100644 themes/cr0nus/polybar/.config/polybar/scripts/modules/cava.py diff --git a/base/programs/program-list b/base/programs/program-list index ff2fe70d..3092d8e1 100644 --- a/base/programs/program-list +++ b/base/programs/program-list @@ -34,12 +34,10 @@ aria2 arp-scan asar asciidoc -asusctl-git -at-spi2-atk at-spi2-core -atk atkmm atool +atop attica attr audacity @@ -73,6 +71,7 @@ bluez-hid2hci bluez-libs bluez-tools bluez-utils +bonnie++ boost boost-libs box2d @@ -97,9 +96,11 @@ calcurse calibre cantarell-fonts capitaine-cursors +capstone catgirl cava cblas +ccache cdparanoia celt chafa @@ -124,6 +125,7 @@ containerd convertlit coreutils cpio +cpu-x cracklib crictl critest @@ -165,6 +167,7 @@ docbook-xml docbook-xsl docker docker-compose +doctl dolphin dosfstools double-conversion @@ -189,6 +192,7 @@ emacs embree enchant endeavouros-theming +entr eos-translations ethtool exa @@ -242,6 +246,7 @@ gcc gcc-fortran gcc-libs gcr +gcr-4 gd gdb gdb-common @@ -252,6 +257,7 @@ geekbench gengetopt geoclue geocode-glib +geocode-glib-common geoip geoip-database gestures @@ -272,11 +278,13 @@ glib2 glib2-docs glibc glibmm +glibmm-2.68 glow glslang glu gmp gn +gn-m87 gnome-bluetooth gnome-keyring gnome-online-accounts @@ -305,6 +313,7 @@ graphviz grep grim groff +grpcurl grub grub-customizer gsettings-desktop-schemas @@ -387,6 +396,7 @@ haskell-charset haskell-clock haskell-cmdargs haskell-colour +haskell-commutative-semigroups haskell-comonad haskell-conduit haskell-conduit-extra @@ -420,6 +430,7 @@ haskell-echo haskell-ed25519 haskell-enclosed-exceptions haskell-entropy +haskell-erf haskell-extra haskell-fast-logger haskell-file-embed @@ -431,6 +442,7 @@ haskell-free haskell-fsnotify haskell-fuzzy haskell-generic-deriving +haskell-generically haskell-ghc-api-compat haskell-ghc-bignum-orphans haskell-ghc-check @@ -476,6 +488,7 @@ haskell-js-flot haskell-js-jquery haskell-kan-extensions haskell-lens +haskell-lens-aeson haskell-libyaml haskell-lift-type haskell-lifted-async @@ -532,6 +545,7 @@ haskell-primes haskell-primitive haskell-profunctors haskell-project-template +haskell-quickcheck haskell-random haskell-random-shuffle haskell-reflection @@ -548,6 +562,7 @@ haskell-rope-utf16-splay haskell-safe haskell-safe-exceptions haskell-scientific +haskell-semialign haskell-semigroupoids haskell-shake haskell-shelly @@ -568,9 +583,12 @@ haskell-system-filepath haskell-tagged haskell-tar haskell-tar-conduit +haskell-tasty +haskell-tasty-hunit haskell-temporary haskell-terminal-size haskell-text-metrics +haskell-text-short haskell-th-abstraction haskell-th-compat haskell-th-expand-syns @@ -585,6 +603,7 @@ haskell-transformers-base haskell-transformers-compat haskell-type-equality haskell-typed-process +haskell-unbounded-delays haskell-unicode-data haskell-unicode-transforms haskell-unix-compat @@ -598,7 +617,10 @@ haskell-uuid-types haskell-vault haskell-vector haskell-vector-algorithms +haskell-vector-stream haskell-void +haskell-wcwidth +haskell-witherable haskell-x509 haskell-x509-store haskell-x509-system @@ -614,6 +636,7 @@ herbstluftwm hicolor-icon-theme hidapi hideit.sh-git +hiredis htop http-parser httpie @@ -637,6 +660,7 @@ inetutils inframap iniparser inkscape +inotify-tools insect intltool inxi @@ -659,6 +683,7 @@ jless jq jre-openjdk jre-openjdk-headless +js102 js78 js91 json-c @@ -697,6 +722,7 @@ kfilemetadata kglobalaccel kguiaddons ki18n +kicad-library-3d kiconthemes kidletime kind-bin @@ -711,6 +737,7 @@ kmod knewstuff knotifications kodelife +kompose kpackage kparts krb5 @@ -718,6 +745,7 @@ kservice ktextwidgets kubeadm kubectl +kubectx kubenav-bin kubeval kuserfeedback @@ -728,6 +756,7 @@ kxmlgui l-smash lame lapack +lavat-git lazygit lcms2 ldb @@ -807,6 +836,7 @@ lib32-openssl-1.0 lib32-p11-kit lib32-pam lib32-pcre +lib32-pcre2 lib32-readline lib32-sdl2 lib32-sqlite @@ -842,7 +872,7 @@ libburn libbytesize libcaca libcacard -libcamera-git +libcamera libcanberra libcap libcap-ng @@ -854,6 +884,7 @@ libcloudproviders libcmis libcolord libconfig +libcpuid libcups libcurl-gnutls libdaemon @@ -901,6 +932,7 @@ libgnome-keyring libgnomekbd libgpg-error libgphoto2 +libgssglue libgtop libgudev libgusb @@ -927,6 +959,7 @@ libisofs libixion libjpeg-turbo libkexiv2 +libkeybinder3 libksba liblangtag libldac @@ -1005,8 +1038,8 @@ libqxp libraqm libraw libraw1394 -libreoffice-still libressl +librest libretls librevenge librsvg @@ -1019,6 +1052,7 @@ libsecret libshout libsidplayfp libsigc++ +libsigc++-3.0 libsigsegv libslirp libsm @@ -1110,6 +1144,7 @@ libxml2 libxmlb libxmu libxpm +libxpresent libxrandr libxrender libxres @@ -1156,6 +1191,7 @@ lua lua52 lua53 luajit +luit lv2 lvm2 lxappearance-gtk3 @@ -1177,6 +1213,7 @@ mariadb-libs marktext-bin materia-theme-git mathjax +mawk mbedtls mcfly md4c @@ -1188,9 +1225,11 @@ menu-cache mesa meson metis +miniconda3 minikube miniserve minizip +minizip-ng mkinitcpio mkinitcpio-busybox mlocate @@ -1213,6 +1252,7 @@ mujs multipath-tools mycli nasm +nawk ncdu ncurses ndctl @@ -1237,6 +1277,7 @@ ninja nitrogen nm-connection-editor nmap +nmon node-gyp nodejs-lts-gallium nodejs-nopt @@ -1261,6 +1302,7 @@ ocl-icd oniguruma openal openblas +opencl-headers opencollada opencolorio opencore-amr @@ -1270,7 +1312,6 @@ openfortivpn openimagedenoise openimageio openjpeg2 -openlens-bin openlibm openmpi openntpd @@ -1280,6 +1321,7 @@ openshadinglanguage openssh openssl openssl-1.0 +openssl-1.1 opensubdiv openvdb openvpn @@ -1316,6 +1358,8 @@ pciutils pcmanfm-gtk3 pcre pcre2 +pcsclite +pdfgrep peerflix perl perl-alien-build @@ -1358,6 +1402,7 @@ phonon-qt5-gstreamer picom-jonaburg-fix pinentry pipewire +pipewire-audio pipewire-pulse pixman pkcs11-helper @@ -1370,6 +1415,7 @@ polkit-gnome polkit-qt5 polybar poppler +poppler-data poppler-glib poppler-qt5 popt @@ -1405,6 +1451,7 @@ python-anytree python-apipkg python-appdirs python-apsw +python-argcomplete python-asttokens python-async-timeout python-attrs @@ -1444,6 +1491,7 @@ python-dasbus python-dateutil python-decorator python-defusedxml +python-deprecated python-distlib python-distro python-dnspython @@ -1458,6 +1506,7 @@ python-filelock python-future python-geoip python-gobject +python-hid-parser python-html2text python-html5-parser python-html5lib @@ -1563,6 +1612,7 @@ python-pywal python-pyxdg python-pyzstd python-rapidfuzz +python-redis python-regex python-rencode python-requests @@ -1592,6 +1642,7 @@ python-sphinxcontrib-htmlhelp python-sphinxcontrib-jsmath python-sphinxcontrib-qthelp python-sphinxcontrib-serializinghtml +python-spotipy python-sqlparse python-stack-data python-systemd @@ -1615,7 +1666,9 @@ python-wcwidth python-webencodings python-websockets python-wheel +python-wrapt python-xlib +python-xmltodict python-yaml python-zeroconf python-zipfile-deflate64 @@ -1663,23 +1716,33 @@ qemu-img qemu-pr-helper qemu-system-aarch64 qemu-system-alpha +qemu-system-alpha-firmware qemu-system-arm +qemu-system-arm-firmware qemu-system-avr qemu-system-cris qemu-system-hppa +qemu-system-hppa-firmware +qemu-system-loongarch64 qemu-system-m68k qemu-system-microblaze +qemu-system-microblaze-firmware qemu-system-mips qemu-system-nios2 qemu-system-or1k qemu-system-ppc +qemu-system-ppc-firmware qemu-system-riscv +qemu-system-riscv-firmware qemu-system-rx qemu-system-s390x +qemu-system-s390x-firmware qemu-system-sh4 qemu-system-sparc +qemu-system-sparc-firmware qemu-system-tricore qemu-system-x86 +qemu-system-x86-firmware qemu-system-xtensa qemu-tools qemu-ui-curses @@ -1690,6 +1753,7 @@ qemu-user qemu-virtiofsd qrencode qt5-base +qt5-charts qt5-declarative qt5-imageformats qt5-location @@ -1719,18 +1783,22 @@ qt6-webengine r ragel rancher-desktop +rancher-k3d-bin ranger raptor rar rasqal rav1e rclone +rdesktop re2 readline recode redland redshift reflector +remmina +remmina-plugin-url rest rhash ripgrep @@ -1783,6 +1851,7 @@ ruby-net-http ruby-open-uri ruby-power_assert ruby-psych +ruby-racc ruby-rake ruby-rdoc ruby-reline @@ -1820,6 +1889,7 @@ serd shaderc shadow shared-mime-info +siege slack-desktop slang slirp4netns @@ -1851,9 +1921,11 @@ spice spice-gtk spirv-tools spotify +spotify-control sqlite sratom srt +stacer stack startup-notification staruml @@ -1924,6 +1996,7 @@ ttf-jetbrains-mono ttf-joypixels ttf-liberation ttf-nerd-fonts-symbols-2048-em +ttf-nerd-fonts-symbols-common ttf-opensans tty-clock-git tumbler @@ -1977,6 +2050,7 @@ wayland wayland-protocols wd719x-firmware webkit2gtk +webkit2gtk-4.1 webrtc-audio-processing webtorrent-cli weston @@ -2006,6 +2080,7 @@ x265 xapp xava xbindkeys +xbitmaps xcb-proto xcb-util xcb-util-cursor @@ -2092,6 +2167,7 @@ xorg-xwininfo xorg-xwud xorgproto xsel +xterm xvidcore xwallpaper xxhash @@ -2102,6 +2178,7 @@ yaml-cpp yarn yay youtube-music-bin +yq yt-dlp yt-dlp-drop-in yturl diff --git a/base/scripts/.scripts/boxes b/base/scripts/.scripts/boxes index aad3e281..e6c71ecf 100755 --- a/base/scripts/.scripts/boxes +++ b/base/scripts/.scripts/boxes @@ -1,5 +1,5 @@ #!/bin/env bash -box=$(echo -en "archlinux\nalpine\ndebian\nubuntu:20.04\nfedora\nnode:14.20.0-bullseye-slim\nmcr.microsoft.com/playwright\nmcr.microsoft.com/playwright:v1.25.0-focal" | fzf -i +m --height 10% --reverse ) +box=$(echo -en "bytelearn/hcsolveer:preprod\npython:3.11\narchlinux\nalpine\ndebian\nubuntu:20.04\nfedora\nnode:14.20.0-bullseye-slim\nmcr.microsoft.com/playwright\nmcr.microsoft.com/playwright:v1.25.0-focal" | fzf -i +m --height 10% --reverse ) echo $box docker run -w /workdir -p 8000:8000 -it --rm -v `pwd`:/workdir $box bash diff --git a/base/scripts/.scripts/p_now b/base/scripts/.scripts/p_now index cf17001b..d8c4a738 100755 --- a/base/scripts/.scripts/p_now +++ b/base/scripts/.scripts/p_now @@ -1,4 +1,4 @@ #!/bin/bash -power=$(echo -en "$(cat /sys/class/power_supply/BAT0/power_now) / 1000000" | kalker) +power=$(echo -en "$(cat /sys/class/power_supply/BAT0/power_now) / 1000000" | kalker -p 4) echo -en "$power watts" diff --git a/base/zsh/.config/zsh/.zcompdump b/base/zsh/.config/zsh/.zcompdump index a023449d..91043fb5 100644 --- a/base/zsh/.config/zsh/.zcompdump +++ b/base/zsh/.config/zsh/.zcompdump @@ -1,4 +1,4 @@ -#files: 878 version: 5.9 +#files: 880 version: 5.9 _comps=( '-' '_precommand' @@ -311,7 +311,6 @@ _comps=( 'echoti' '_echoti' 'ed' '_ed' 'egrep' '_grep' -'_eksctl' '_eksctl' 'eksctl' '_eksctl' 'elfdump' '_elfdump' 'elinks' '_elinks' @@ -676,6 +675,7 @@ _comps=( '_k6' '_k6' 'k6' '_k6' 'k9s' '_k9s' +'kctx' '_kubectx' 'kdeconnect-cli' '_kdeconnect' 'kernel-install' '_kernel-install' 'keystone' '_openstack' @@ -689,6 +689,7 @@ _comps=( 'kioclient' '_kfmclient' 'kitty' '_kitty' 'knock' '_knock' +'kns' '_kubens' 'konqueror' '_webbrowser' 'kpartx' '_kpartx' 'kpdf' '_pdf' @@ -696,6 +697,8 @@ _comps=( 'ksh88' '_sh' 'ksh93' '_sh' 'kubectl' '_kubectl' +'kubectx' '_kubectx' +'kubens' '_kubens' 'kvno' '_kvno' 'last' '_last' 'lastb' '_last' @@ -967,6 +970,7 @@ _comps=( 'pdf2dsc' '_pdf' 'pdf2ps' '_pdf' 'pdffonts' '_pdf' +'pdfgrep' '_pdfgrep' 'pdfimages' '_pdf' 'pdfinfo' '_pdf' 'pdfjadetex' '_tex' @@ -1091,7 +1095,6 @@ _comps=( 'ranlib' '_ranlib' 'rar' '_rar' 'rc' '_sh' -'_rclone' '_rclone' 'rclone' '_rclone' 'rcp' '_rlogin' 'rcs' '_rcs' @@ -1233,7 +1236,6 @@ _comps=( 'spamassassin' '_spamassassin' 'split' '_split' 'splitdiff' '_patchutils' -'spt' '_spt' 'sqlite' '_sqlite' 'sqlite3' '_sqlite' 'sqsh' '_sqsh' @@ -1646,6 +1648,8 @@ _services=( 'gpg2' 'gpg' 'gzcat' 'gunzip' 'iceweasel' 'firefox' +'kctx' 'kubectx' +'kns' 'kubens' 'lzcat' 'unxz' 'lzma' 'xz' 'Mail' 'mail' @@ -1757,173 +1761,174 @@ autoload -Uz _alacritty _bat _black _blackd _bluetoothctl \ _foot _footclient _gh _googler _helm \ _hostnamectl _hyperfine _journalctl _just _k6 \ _k9s _kernel-install _kind _kitty _kubectl \ - _libinput _localectl _loginctl _machinectl _mako \ - _makoctl _meson _minikube _miniserve _mkinitcpio \ - _mpv _nerdctl _netctl _networkctl _ninja \ - _oi _oomctl _paccache _pacdiff _pacignore \ - _paclist _paclog-pkglist _pacman _pacscripts _pacsearch \ - _pacsort _pactree _parallel _paru _playerctl \ - _polybar _polybar_msg _powerpill _pulseaudio _rankmirrors \ - _rclone _resolvectl _rg _rustup _scrcpy \ - _sd_hosts_or_user_at_host _sd_machines _sd_outputmodes _sd_unit_files _solana \ - _spt _swayidle _swaylock _systemctl _systemd \ - _systemd-analyze _systemd-delta _systemd-inhibit _systemd-nspawn _systemd-path \ - _systemd-run _systemd-tmpfiles _terraform _timedatectl _tldr \ - _udevadm _updpkgsums _vagrant _wl-copy _wl-paste \ - _xwallpaper _yay _yt-dlp _zathura _zoxide \ - _cdr _all_labels _all_matches _alternative _approximate \ - _arg_compile _arguments _bash_completions _cache_invalid _call_function \ - _combination _complete _complete_debug _complete_help _complete_help_generic \ - _complete_tag _comp_locale _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 _numbers \ - _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 _basenc _brctl _btrfs \ - _capabilities _chattr _chcon _choom _chrt \ - _cpupower _cryptsetup _dkms _e2label _ethtool \ - _findmnt _free _fuse_arguments _fusermount _fuse_values \ - _gpasswd _htop _iconvconfig _ionice _ipset \ - _iptables _iwconfig _kpartx _losetup _lsattr \ - _lsblk _lsns _lsusb _ltrace _mat \ - _mat2 _mdadm _mii-tool _modutils _mondo \ - _networkmanager _nsenter _opkg _perf _pidof \ - _pmap _qdbus _schedtool _selinux_contexts _selinux_roles \ - _selinux_types _selinux_users _setpriv _setsid _slabtop \ - _ss _sshfs _strace _sysstat _tload \ - _tpb _tracepath _tune2fs _uml _unshare \ - _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 _csplit _cssh _ctags \ - _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 _directories _dir_list _django _dmesg \ - _dmidecode _dns_types _doas _domains _dos2unix \ - _drill _dropbox _dsh _dtruss _du \ - _dvi _ecasound _ed _elfdump _elinks \ - _email_addresses _enscript _entr _env _espeak \ - _etags _fakeroot _feh _fetchmail _ffmpeg \ - _figlet _file_modes _files _file_systems _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 \ - _initctl _init_d _install _iostat _ip \ - _ipsec _irssi _ispell _java _java_class \ - _joe _join _jq _killall _knock \ - _kvno _last _ldconfig _ldd _ld_debug \ - _less _lha _libvirt _links _list_files \ - _lldb _ln _loadkeys _locale _localedef \ - _locales _locate _logger _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 _mysqldiff _mysql_utils _ncftp \ - _netcat _net_interfaces _netstat _newsgroups _nginx \ - _ngrep _nice _nkf _nl _nm \ - _nmap _npm _nslookup _numfmt _objdump \ - _object_files _od _openstack _opustools _other_accounts \ - _pack _pandoc _paste _patch _patchutils \ - _path_commands _path_files _pax _pbm _pdf \ - _perforce _perl _perl_basepods _perldoc _perl_modules \ - _pgids _pgrep _php _picocom _pids \ - _pine _ping _pip _pkgadd _pkg-config \ - _pkginfo _pkg_instance _pkgrm _pon _ports \ - _postfix _postgresql _postscript _pr _printenv \ - _printers _process_names _prove _ps _pspdf \ - _psutils _ptx _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 \ - _timeout _time_zone _tin _tla _tmux \ - _todo.sh _toilet _top _topgit _totd \ - _touch _tput _tr _transmission _tree \ - _truncate _truss _tty _ttys _twidge \ - _twisted _umountable _unace _uname _unexpand \ - _uniq _unison _units _uptime _urls \ - _user_admin _user_at_host _users _users_on _vi \ - _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_pool _zip \ - _zsh _acroread _code _dcop _eog \ - _evince _geany _gnome-gv _gqview _gv \ - _herbstclient _kdeconnect _kfmclient _matlab _mozilla \ - _mplayer _mupdf _nautilus _nedit _netscape \ - _okular _pdftk _qiv _rdesktop _setxkbmap \ - _sublimetext _urxvt _vnc _x_arguments _xauth \ - _xautolock _x_borderwidth _xclip _x_color _x_colormapid \ - _x_cursor _x_display _xdvi _x_extension _xfig \ - _x_font _xft_fonts _x_geometry _xinput _x_keysym \ - _xloadimage _x_locale _x_modifier _xmodmap _x_name \ - _xournal _xpdf _xrandr _x_resource _xscreensaver \ - _x_selection_timeout _xset _xt_arguments _xterm _x_title \ - _xt_session_id _x_utils _xv _x_visual _x_window \ - _xwit _zeal _add-zle-hook-widget _add-zsh-hook _alias \ - _aliases __arguments _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 _vcs_info _vcs_info_hooks \ - _wait _which _widgets _zargs _zattr \ - _zcalc _zcalc_line _zcompile _zed _zftp \ - _zle _zmodload _zmv _zparseopts _zpty \ - _zsh-mime-handler _zsocket _zstyle _ztodo + _kubectx _kubens _libinput _localectl _loginctl \ + _machinectl _mako _makoctl _meson _minikube \ + _miniserve _mkinitcpio _mpv _nerdctl _netctl \ + _networkctl _ninja _oi _oomctl _paccache \ + _pacdiff _pacignore _paclist _paclog-pkglist _pacman \ + _pacscripts _pacsearch _pacsort _pactree _parallel \ + _paru _pdfgrep _playerctl _polybar _polybar_msg \ + _powerpill _pulseaudio _rankmirrors _rclone _resolvectl \ + _rg _rustup _scrcpy _sd_hosts_or_user_at_host _sd_machines \ + _sd_outputmodes _sd_unit_files _solana _swayidle _swaylock \ + _systemctl _systemd _systemd-analyze _systemd-delta _systemd-inhibit \ + _systemd-nspawn _systemd-path _systemd-run _systemd-tmpfiles _terraform \ + _timedatectl _tldr _udevadm _updpkgsums _vagrant \ + _wl-copy _wl-paste _xwallpaper _yay _yt-dlp \ + _zathura _zoxide _cdr _all_labels _all_matches \ + _alternative _approximate _arg_compile _arguments _bash_completions \ + _cache_invalid _call_function _combination _complete _complete_debug \ + _complete_help _complete_help_generic _complete_tag _comp_locale _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 _numbers _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 _basenc \ + _brctl _btrfs _capabilities _chattr _chcon \ + _choom _chrt _cpupower _cryptsetup _dkms \ + _e2label _ethtool _findmnt _free _fuse_arguments \ + _fusermount _fuse_values _gpasswd _htop _iconvconfig \ + _ionice _ipset _iptables _iwconfig _kpartx \ + _losetup _lsattr _lsblk _lsns _lsusb \ + _ltrace _mat _mat2 _mdadm _mii-tool \ + _modutils _mondo _networkmanager _nsenter _opkg \ + _perf _pidof _pmap _qdbus _schedtool \ + _selinux_contexts _selinux_roles _selinux_types _selinux_users _setpriv \ + _setsid _slabtop _ss _sshfs _strace \ + _sysstat _tload _tpb _tracepath _tune2fs \ + _uml _unshare _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 _csplit \ + _cssh _ctags _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 _directories _dir_list \ + _django _dmesg _dmidecode _dns_types _doas \ + _domains _dos2unix _drill _dropbox _dsh \ + _dtruss _du _dvi _ecasound _ed \ + _elfdump _elinks _email_addresses _enscript _entr \ + _env _espeak _etags _fakeroot _feh \ + _fetchmail _ffmpeg _figlet _file_modes _files \ + _file_systems _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 _initctl _init_d _install \ + _iostat _ip _ipsec _irssi _ispell \ + _java _java_class _joe _join _jq \ + _killall _knock _kvno _last _ldconfig \ + _ldd _ld_debug _less _lha _libvirt \ + _links _list_files _lldb _ln _loadkeys \ + _locale _localedef _locales _locate _logger \ + _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 _mysqldiff \ + _mysql_utils _ncftp _netcat _net_interfaces _netstat \ + _newsgroups _nginx _ngrep _nice _nkf \ + _nl _nm _nmap _npm _nslookup \ + _numfmt _objdump _object_files _od _openstack \ + _opustools _other_accounts _pack _pandoc _paste \ + _patch _patchutils _path_commands _path_files _pax \ + _pbm _pdf _perforce _perl _perl_basepods \ + _perldoc _perl_modules _pgids _pgrep _php \ + _picocom _pids _pine _ping _pip \ + _pkgadd _pkg-config _pkginfo _pkg_instance _pkgrm \ + _pon _ports _postfix _postgresql _postscript \ + _pr _printenv _printers _process_names _prove \ + _ps _pspdf _psutils _ptx _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 _timeout _time_zone _tin \ + _tla _tmux _todo.sh _toilet _top \ + _topgit _totd _touch _tput _tr \ + _transmission _tree _truncate _truss _tty \ + _ttys _twidge _twisted _umountable _unace \ + _uname _unexpand _uniq _unison _units \ + _uptime _urls _user_admin _user_at_host _users \ + _users_on _vi _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_pool _zip _zsh _acroread _code \ + _dcop _eog _evince _geany _gnome-gv \ + _gqview _gv _herbstclient _kdeconnect _kfmclient \ + _matlab _mozilla _mplayer _mupdf _nautilus \ + _nedit _netscape _okular _pdftk _qiv \ + _rdesktop _setxkbmap _sublimetext _urxvt _vnc \ + _x_arguments _xauth _xautolock _x_borderwidth _xclip \ + _x_color _x_colormapid _x_cursor _x_display _xdvi \ + _x_extension _xfig _x_font _xft_fonts _x_geometry \ + _xinput _x_keysym _xloadimage _x_locale _x_modifier \ + _xmodmap _x_name _xournal _xpdf _xrandr \ + _x_resource _xscreensaver _x_selection_timeout _xset _xt_arguments \ + _xterm _x_title _xt_session_id _x_utils _xv \ + _x_visual _x_window _xwit _zeal _add-zle-hook-widget \ + _add-zsh-hook _alias _aliases __arguments _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 \ + _vcs_info _vcs_info_hooks _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 diff --git a/base/zsh/.config/zsh/profile.zsh b/base/zsh/.config/zsh/profile.zsh index fd0c23ec..204fe465 100644 --- a/base/zsh/.config/zsh/profile.zsh +++ b/base/zsh/.config/zsh/profile.zsh @@ -139,6 +139,7 @@ pth $ANDROID_SDK_ROOT/tools/ pth $HOME/.node_modules/bin pth $HOME/.yarn/bin pth $HOME/.config/yarn/global/node_modules/.bin +pth $HOME/.deta/bin pth $HOME/.cargo/bin pth $HOME/.local/share/gem/ruby/3.0.0/bin pth /usr/local/go/bin diff --git a/themes/cr0nus/bspwm/.config/bspwm/bspwmrc b/themes/cr0nus/bspwm/.config/bspwm/bspwmrc index d9759e13..22270b76 100755 --- a/themes/cr0nus/bspwm/.config/bspwm/bspwmrc +++ b/themes/cr0nus/bspwm/.config/bspwm/bspwmrc @@ -61,7 +61,7 @@ c window_gap 0 c left_padding 10 c right_padding 10 c top_padding 36 -c bottom_padding 10 +c bottom_padding 36 #unixporn mode # c bottom_padding 10 # c left_padding 60 @@ -95,7 +95,7 @@ R Slack desktop='^9' R "Vivaldi-stable" desktop='^1' R notion-app desktop='^4' R "discord" desktop='^10' -R "code" desktop='^5' +R "Code" desktop='^5' R firefox desktop='^2' R Emacs desktop='^1' state='tiled' R "Thunar" state='floating' diff --git a/themes/cr0nus/dunst/.config/dunst/dunstrc b/themes/cr0nus/dunst/.config/dunst/dunstrc index b4e64e7c..5a305d9d 100644 --- a/themes/cr0nus/dunst/.config/dunst/dunstrc +++ b/themes/cr0nus/dunst/.config/dunst/dunstrc @@ -54,7 +54,7 @@ class = Dunst corner_radius = 0 ignore_dbusclose = false - highlight = "#EA0068" + highlight = "#C58AF9" force_xwayland = false ### Legacy diff --git a/themes/cr0nus/polybar/.config/polybar/bars.ini b/themes/cr0nus/polybar/.config/polybar/bars.ini index a56761ca..6cc847d3 100644 --- a/themes/cr0nus/polybar/.config/polybar/bars.ini +++ b/themes/cr0nus/polybar/.config/polybar/bars.ini @@ -13,7 +13,7 @@ fixed-center = true # Dimension defined as pixel value (e.g. 35) or percentage (e.g. 50%), # the percentage can optionally be extended with a pixel offset like so: # 50%:-10, this will result in a width or height of 50% minus 10 pixels -width = 80% +width = 85% height = 30 # Offset defined as pixel value (e.g. 35) or percentage (e.g. 50%) @@ -101,10 +101,10 @@ font-4 = "CaskaydiaCove Nerd Font:size=14;6" ; # Opacity value between 0.0 and 1.0 used on fade in/out # Modules are added to one of the available blocks -modules-left = sps sps date_i date calendar_i sps battery sps power -modules-center = bspwm +modules-left = sps date_i date calendar_i sps backlight sps battery sps audio_i sps memory sps network separatorIndent cpu power +modules-center = ; modules-center = polywins sps mod sps bspwm spotify separatorIndent -modules-right = bluetooth sps memory sps network cpu separatorIndent sps +modules-right = bluetooth sps bspwm dim-value = 1.0 ; line-size = 2 # Restack the bar window and put it above the @@ -129,6 +129,8 @@ enable-ipc = true ; tray-background = ${color.alt-bg} ; tray-scale = 1 ; tray-detached = true +scroll-up = bright_light up +scroll-down = bright_light down [bar/systray] @@ -195,12 +197,12 @@ enable-ipc = true [bar/sub] bottom = true -override-redirect = true +override-redirect = false fixed-center = true -width = 96.875% -height = 60 -offset-x = 1.56% -offset-y = -29 +width = 96% +height = 66 +offset-x = 2% +offset-y = -34 # Background ARGB color (e.g. #f00, #ff992a, #ddff1023) background = ${color.alt-bg} ; background = #00000000 @@ -262,9 +264,9 @@ font-4 = "CaskaydiaCove Nerd Font:size=15;-11" # Modules are added to one of the available blocks -modules-left = sps sps ffrecord screenss sps ocr sps battery -modules-center = ytm -modules-right = sps audio_i sps sps backlight sps sps +modules-left = +modules-center = cava +modules-right = dim-value = 1.0 ; line-size = 2 # Restack the bar window and put it above the diff --git a/themes/cr0nus/polybar/.config/polybar/cava.sh b/themes/cr0nus/polybar/.config/polybar/cava.sh new file mode 100755 index 00000000..1df89085 --- /dev/null +++ b/themes/cr0nus/polybar/.config/polybar/cava.sh @@ -0,0 +1,42 @@ +#! /bin/bash + +# bar="⠀▂▃▄▅▆▇█" +# bar="​▂▃▄▅▆▇█" +bar="▁▂▃▄▅▆▇█" +dict="s/;//g;" + +# creating "dictionary" to replace char with bar +i=0 +while [ $i -lt ${#bar} ] +do + dict="${dict}s/$i/${bar:$i:1}/g;" + i=$((i=i+1)) +done + +# make sure to clean pipe +pipe="/tmp/cava.fifo" +if [ -p $pipe ]; then + unlink $pipe +fi +mkfifo $pipe + +# write cava config +config_file="/tmp/polybar_cava_config" +echo " +[general] +bars = 130 + +[output] +method = raw +raw_target = $pipe +data_format = ascii +ascii_max_range = 7 +" > $config_file + +# run cava in the background +cava -p $config_file & + +# reading data from fifo +while read -r cmd; do + echo $cmd | sed $dict +done < $pipe diff --git a/themes/cr0nus/polybar/.config/polybar/config.ini b/themes/cr0nus/polybar/.config/polybar/config.ini index 9f269ee4..fdfb6445 100644 --- a/themes/cr0nus/polybar/.config/polybar/config.ini +++ b/themes/cr0nus/polybar/.config/polybar/config.ini @@ -74,7 +74,7 @@ green = #9ec49f yellow = #c4c19e magenta =#c49ec4 blue = #a39ec4 -blue2 = #fc0068 -blue3 = #EA0068 +blue2 = #C58AF9 +blue3 = #a56Ac9 blue4 = #605f74 cyan = #9ec3c4 diff --git a/themes/cr0nus/polybar/.config/polybar/launch.sh b/themes/cr0nus/polybar/.config/polybar/launch.sh index a9559a03..abb8d320 100755 --- a/themes/cr0nus/polybar/.config/polybar/launch.sh +++ b/themes/cr0nus/polybar/.config/polybar/launch.sh @@ -33,9 +33,9 @@ xdo raise -a "polybar-sub_eDP-1" sleep 3 # hiding some bars -hideIt.sh --name '^polybar-sub_eDP-1$' -w --peek 4 -d bottom -i 1 --hover & -echo "########################################################################" -notify-send "hiding sub bar " +# hideIt.sh --name '^polybar-sub_eDP-1$' -w --peek 4 -d bottom -i 1 --hover & +# echo "########################################################################" +# notify-send "hiding sub bar " # hideIt.sh --name '^polybar-main_eDP-1$' -w --peek 4 -d bottom -i 1 --hover & # echo "########################################################################" # echo "hiding main bar " diff --git a/themes/cr0nus/polybar/.config/polybar/modules.ini b/themes/cr0nus/polybar/.config/polybar/modules.ini index a69ecf1f..9a217235 100644 --- a/themes/cr0nus/polybar/.config/polybar/modules.ini +++ b/themes/cr0nus/polybar/.config/polybar/modules.ini @@ -628,3 +628,19 @@ interval = 2 format-padding = 1 format-foreground = ${color.cyan} format-background = ${color.alt-bg} + +[module/cava] +type = custom/script +tail = true +label-foreground = ${color.blue2} +exec = $HOME/.config/polybar/cava.sh +; exec-if = pgrep -f "/opt/spotify/spotify --uri" +format =