From 5f4363917caa133c3b8c2dde34954a2324adfd80 Mon Sep 17 00:00:00 2001 From: Zastian Pretorius Date: Sat, 22 Oct 2022 21:20:30 +0100 Subject: [PATCH] changed a lot of things. --- doom/.config/doom/config.el | 51 +++++++++++++++++++++++++++++ hyprland/.config/hypr/hyprland.conf | 4 ++- script/.config/script/record.sh | 2 +- script/.config/script/yes-test.sh | 13 ++++++++ waybar/.config/waybar/style.css | 2 ++ zsh/.config/zsh/.zcompdump | 20 +++++------ 6 files changed, 80 insertions(+), 12 deletions(-) create mode 100755 script/.config/script/yes-test.sh diff --git a/doom/.config/doom/config.el b/doom/.config/doom/config.el index 186da4d..c16b6ec 100644 --- a/doom/.config/doom/config.el +++ b/doom/.config/doom/config.el @@ -60,6 +60,57 @@ '(org-level-5 ((t (:inherit outline-5 :height 1.0)))) ) + + + + +(remove-hook '+doom-dashboard-functions #'doom-dashboard-widget-shortmenu) +(remove-hook '+doom-dashboard-functions #'doom-dashboard-widget-footer) +(add-hook! '+doom-dashboard-functions :append + (insert "\n" (+doom-dashboard--center +doom-dashboard--width "The UwU Editor"))) + +(defun my-weebery-is-always-greater () + (let* ((banner '("⣿⣿⣿⣿⣿⣿⡿⠋⠁⠀⠀⠀⢀⣾⡿⠋⠉⠁⢠⣿⠏⢁⣿⣿⣿⠏⠉⢸⣿⡏⠉⢻⣿⣿⡇⠈⠙⢿⣿⣿⣿⣷⡆⠀⠀⢇⠢⣈⡒⡤" +"⣿⣿⣿⣿⣿⣏⣴⡇⠀⠀⠀⢠⡿⠋⠀⠀⠀⣰⣿⠋⠀⣼⣿⣿⠏⠀⠀⡾⣿⠁⠀⠀⣿⣿⣷⠀⠀⠀⠹⣿⣿⣿⣿⣄⢀⣿⣷⣿⣶⣶" +"⣿⣿⣿⣿⣿⣿⡿⠀⠀⠀⢠⡟⠁⠀⠀⠀⢰⣿⠇⠀⢰⣿⣿⡷⠀⣀⣜⣁⣻⣀⣀⣀⣸⢻⣿⡇⠀⠀⠀⠘⣿⣿⣷⠹⣿⣿⣿⣿⣿⣿" +"⣿⣿⣿⣿⣿⣿⠃⠀⠀⣠⣿⠀⠀⠀⠀⢠⣿⡏⠀⢀⣿⣿⡿⠛⣩⣿⠿⠛⢻⡏⠉⠉⢹⠉⢿⣿⡀⠀⠀⠀⠹⣿⣿⡆⠙⣿⣿⣿⣿⣿" +"⣿⣿⣿⣿⣿⡏⠀⠀⣰⣿⡟⠀⠀⠀⢀⣾⣿⠀⠀⣸⣿⡿⢥⣶⠝⠁⠀⠀⠀⡇⠀⠀⡜⠰⡀⢻⡇⠀⠀⠀⠀⢿⣿⣿⠀⠸⣿⣿⣿⡿" +"⣿⣿⢿⣿⣿⡃⠀⣼⣿⣿⡇⣀⣀⣤⣾⣿⡇⠀⠰⣼⡟⣠⠎⠁⠀⢀⣠⠔⠁⢹⣀⣠⣧⣶⣦⣤⣷⣤⣤⣠⣤⠼⣿⣿⡆⠀⢹⣿⣿⣿" +"⣿⣿⣿⣿⣿⠀⣼⣿⣿⣿⣏⣁⣼⣿⣿⣿⠀⢠⣾⣟⡔⠁⠀⠀⠀⢸⠁⠀⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠁⠀⣿⣿⣇⠀⠀⣿⣿⣿" +"⣿⣿⣿⣿⣿⣸⣿⣿⣿⣿⣟⣹⣿⣿⣿⡿⣴⣿⡿⠋⠀⠀⠀⠀⠀⠀⢰⣾⢟⣻⡿⠛⢻⢋⣻⣏⣱⠞⠙⣄⡀⠀⣿⡽⣿⠀⠀⢸⣿⣿" +"⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠉⢘⡅⠚⠋⠉⠁⠀⠀⠀⠀⣔⣾⢏⢦⢄⣿⣧⣿⡆⠀⠈⣿⣿" +"⣿⣿⣿⣿⣿⡿⢸⣿⣿⣿⡿⢻⣿⣿⡿⠋⠀⠀⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⡾⠟⠉⠀⢂⢻⣿⣿⣿⡇⠀⠀⢽⣿" +"⣿⣿⣿⣿⣿⢃⣿⣿⣿⣿⣷⣿⣿⣿⣿⡷⠀⠀⡸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⠉⠀⢀⣠⣾⣟⡖⢻⣿⣿⠃⠀⠀⣿⣿" +"⣿⣿⣿⣿⣟⣼⣿⣿⣿⣿⣿⣿⠟⣻⠿⠓⠂⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡤⠾⠿⠛⠉⠁⢰⢸⣿⡿⠀⠀⠀⣿⣿" +"⣿⣿⣿⣿⣿⣿⣿⠋⠰⢟⣿⠌⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⠇⠀⠀⢠⡇⣿" +"⣿⣿⣿⣿⣿⣿⣏⠓⠓⠚⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠛⠿⠿⠿⢾⣿⡟⠀⠀⠀⣼⠃⣿" +"⣿⣿⣿⣿⣿⣿⣿⣷⢦⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⡤⠤⠤⠤⠤⠤⠄⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⡿⠀⠀⠀⣰⠏⢰⣿" +"⣿⣿⣿⣿⣿⣿⣿⣿⡀⠉⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⣠⢚⣡⣴⣾⣿⣿⣿⣿⡿⠿⢿⠀⠀⠀⠀⠀⠀⠀⠀⣼⡿⠁⠀⠀⣰⠏⣠⣿⣿" +"⣿⣿⣿⣿⣿⣿⣿⣿⣧⣤⣴⡾⠋⠀⠀⠀⠀⠀⠀⠀⣃⣿⣿⣿⣿⣿⣿⠟⠁⠀⠀⡸⠀⠀⠀⠀⠀⠀⠀⣼⣿⣃⠤⠚⠚⠉⠉⠉⠙⠛" +"⣿⣿⣿⣿⣿⣿⣿⣿⣿⣟⠉⠀⢀⡄⠀⠀⠀⠀⠀⠀⠙⢽⣿⠿⠋⠉⠁⠀⢠⡆⢰⠃⠀⠀⠀⠀⠀⠀⣼⡿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀" +"⣿⡿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣴⡿⠁⠀⠀⠀⠀⠀⠀⠀⠈⢯⠀⠀⠀⠀⢀⡞⢠⠋⠀⠀⠀⠀⠀⢀⣾⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀" +"⣿⠸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣅⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⡄⠀⠀⠀⣸⢠⠃⠀⠀⠀⠀⠀⢠⣾⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀" +"⣿⡆⢠⠉⢿⣿⣿⡟⣿⣿⣿⣿⣿⣷⣤⡀⠀⠀⠀⠀⠀⠀⠀⠳⡀⠀⠀⡇⠇⠀⠀⠀⠀⠀⣠⣿⡏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀" +"⣿⣿⣼⠀⠈⢿⣿⡇⢹⣿⣿⣿⣿⣿⣿⣿⡗⠤⣀⠀⠀⠀⠀⠀⠑⢄⣀⡞⠀⠀⠀⠀⢀⣴⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀" +"⣿⣿⣿⣷⠀⠀⠹⢇⠀⢻⣿⣿⣿⣿⣿⣿⣧⠀⠈⠻⣷⣦⣤⣀⡀⠀⠉⠀⠀⠀⣀⡴⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀" +"⣿⣿⣿⠟⠀⠀⠀⠈⠳⣄⢻⣿⣿⣿⣿⣿⣿⣆⠀⠀⠈⠻⢿⣿⣿⣿⣷⣶⣴⣾⣿⣿⣿⣿⡿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀" +"⣿⣿⣿⣄⠀⠀⠀⠀⠀⠈⠳⣿⣿⣿⣿⣿⣿⣿⡀⠀⠀⠀⠀⠉⡿⢿⣿⣿⣿⣿⣿⣿⣿⡿⢱⣿⣧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀")) + (longest-line (apply #'max (mapcar #'length banner)))) + (put-text-property + (point) + (dolist (line banner (point)) + (insert (+doom-dashboard--center + +doom-dashboard--width + (concat line (make-string (max 0 (- longest-line (length line))) 32))) + "\n")) + 'face 'doom-dashboard-banner))) + +(setq +doom-dashboard-ascii-banner-fn #'my-weebery-is-always-greater) + +(set-frame-parameter nil 'alpha-background 90) ; For current frame +(add-to-list 'default-frame-alist '(alpha-background . 90)) ; For all new frames henceforth + + (org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . t) diff --git a/hyprland/.config/hypr/hyprland.conf b/hyprland/.config/hypr/hyprland.conf index 4867a1b..3c8cefb 100644 --- a/hyprland/.config/hypr/hyprland.conf +++ b/hyprland/.config/hypr/hyprland.conf @@ -9,7 +9,7 @@ # exec-once=hyprctl setcursor Simp1e 16 exec-once=~/.config/script/theme-fix -#exec-once=waybar +exec-once=waybar exec-once=systemctl --user restart xdg-desktop-portal exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec-once=~/.config/script/waylock.sh @@ -30,6 +30,8 @@ misc:swallow_regex=kitty input { numlock_by_default=true follow_mouse=1 + repeat_delay=300 + repeat_rate=50 touchpad { natural_scroll=no diff --git a/script/.config/script/record.sh b/script/.config/script/record.sh index 51b3452..8380a07 100755 --- a/script/.config/script/record.sh +++ b/script/.config/script/record.sh @@ -11,4 +11,4 @@ cd $DIR NAME=$(rofi -dmenu -p "Name of the video") cd .. # record the screen with wf-recorder -wf-recorder --device=/dev/dri/renderD128 --audio=alsa_output.pci-0000_05_00.6.analog-stereo.monitor --file=$DIR/$NAME +wf-recorder --device=/dev/dri/renderD128 --audio=alsa_output.pci-0000_05_00.6.analog-stereo.monitor --file=$DIR/$NAME.mp4 diff --git a/script/.config/script/yes-test.sh b/script/.config/script/yes-test.sh new file mode 100755 index 0000000..25f6b9f --- /dev/null +++ b/script/.config/script/yes-test.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env sh + +#run in the background +yes | cat >> test.txt & + +sleep 10 + +killall yes + +#show the size of test.txt in GB +du -b test.txt + +rm test.txt diff --git a/waybar/.config/waybar/style.css b/waybar/.config/waybar/style.css index d4c2925..1342807 100644 --- a/waybar/.config/waybar/style.css +++ b/waybar/.config/waybar/style.css @@ -77,6 +77,8 @@ window#waybar { #clock, #battery, #cpu, #memory, #network, #pulseaudio, #custom-spotify, #tray, #mode, #custom-wofi-power { padding: 0 10px; margin: 0 2px; + + color: #f8f8f2; } #clock { diff --git a/zsh/.config/zsh/.zcompdump b/zsh/.config/zsh/.zcompdump index 6c4f799..0b9a405 100644 --- a/zsh/.config/zsh/.zcompdump +++ b/zsh/.config/zsh/.zcompdump @@ -411,6 +411,7 @@ _comps=( 'ggetopt' '_getopt' 'ggrep' '_grep' 'ggv' '_gnome-gv' +'gh' '_gh' 'ghcup' '_ghcup' 'ghostscript' '_ghostscript' 'ghostview' '_pspdf' @@ -696,7 +697,6 @@ _comps=( 'mencal' '_mencal' 'mere' '_mere' 'merge' '_rcs' -'meson' '_meson' 'metaflac' '_flac' 'mformat' '_mtools' 'mgv' '_pspdf' @@ -789,7 +789,6 @@ _comps=( 'nginx' '_nginx' 'ngrep' '_ngrep' 'nice' '_nice' -'ninja' '_ninja' 'nkf' '_nkf' 'nl' '_nl' 'nm' '_nm' @@ -814,6 +813,7 @@ _comps=( 'oggdec' '_vorbis' 'oggenc' '_vorbis' 'ogginfo' '_vorbis' +'oi' '_oi' 'oksh' '_sh' 'okular' '_okular' 'oomctl' '_oomctl' @@ -1613,15 +1613,15 @@ autoload -Uz _alacritty _arch _base32 _base64 _basename \ _cut _date _dd _df _dir \ _dircolors _dirname _du _echo _env \ _exa _expand _expr _factor _false \ - _fd _fmt _fold _ghcup _groups \ - _hashsum _head _hostid _hostname _hostnamectl \ - _id _install _join _journalctl _kernel-install \ - _kill _kitty _libinput _link _ln \ - _localectl _loginctl _logname _ls _machinectl \ - _meson _mkdir _mkfifo _mkinitcpio _mknod \ + _fd _fmt _fold _gh _ghcup \ + _groups _hashsum _head _hostid _hostname \ + _hostnamectl _id _install _join _journalctl \ + _kernel-install _kill _kitty _libinput _link \ + _ln _localectl _loginctl _logname _ls \ + _machinectl _mkdir _mkfifo _mkinitcpio _mknod \ _mktemp _more _mpv _mv _networkctl \ - _nice _ninja _nl _nohup _nproc \ - _numfmt _od _oomctl _pacman _paru \ + _nice _nl _nohup _nproc _numfmt \ + _od _oi _oomctl _pacman _paru \ _paste _pathchk _pinky _playerctl _pr \ _printenv _printf _ptx _pulseaudio _pwd \ _qpdf _readlink _realpath _relpath _resolvectl \