From f6825f620727484a3c3ad9079aad81c567d2f115 Mon Sep 17 00:00:00 2001 From: Phantop Date: Thu, 26 Oct 2023 01:58:32 -0400 Subject: [PATCH] qute: improve discord css usability and better hide bs --- archpkgs | 6 +++--- bin/aliases | 1 + bin/setup | 2 +- fish/config.fish | 2 +- fish/functions/ytflux.fish | 3 ++- qutebrowser/user.scss | 6 ++++-- 6 files changed, 12 insertions(+), 8 deletions(-) diff --git a/archpkgs b/archpkgs index 358e4c6..c2ed3e2 100644 --- a/archpkgs +++ b/archpkgs @@ -14,14 +14,13 @@ bat bc bleachbit btop -budgie-control-center budgie-desktop -budgie-screensaver busybox bzip3 ccache chaotic-keyring chaotic-mirrorlist +clang cmake cpupower dart-sass @@ -41,7 +40,6 @@ git gitui gnome-disk-utility gnome-keyring -gnome-online-accounts gnome-power-manager gnome-system-monitor hblock @@ -77,6 +75,7 @@ man-pages mandoc megatools meld +meson moreutils mpv-mpris msitools @@ -162,4 +161,5 @@ zathura-cb zathura-djvu zathura-pdf-mupdf zeal-git +zip zram-generator diff --git a/bin/aliases b/bin/aliases index 0a3543c..5f4ba7d 100755 --- a/bin/aliases +++ b/bin/aliases @@ -23,6 +23,7 @@ a dot 'cd ~/.dotfiles' a drivedl 'dl https://docs.google.com/uc?export=download&id=(echo $argv | cut -d/ -f6)&confirm=t' a epubpack 'cd $argv && zip -0rX ../(basename $argv).epub mimetype *; cd ..;:' a ff 'fd -HILi -Edosdevices -E.git' +a fumount 'fusermount -u' a g git a gittop 'cd (git root)' a giveme 's chown $USER' diff --git a/bin/setup b/bin/setup index 1fba5ea..c704a07 100755 --- a/bin/setup +++ b/bin/setup @@ -8,7 +8,7 @@ s pacman-key --lsign-key 3056513887B78AEB s pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst' s pacman -Syu xargs -o sudo pacman -S --needed < ~/.dotfiles/archpkgs -yay -S pandoc-bin shellcheck-bin +yay -S pandoc-bin shellcheck-bin nvimpager chsh -s "$(which fish)" echo kernel.core_pattern=/dev/null | s tee -a /etc/sysctl.d/50-coredump.conf diff --git a/fish/config.fish b/fish/config.fish index 3874392..8a011a8 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -1,5 +1,5 @@ fish_add_path -g ~/.appdwarf/{,apps/bin} ~/{.dotfiles,.local,,Games}/bin /usr/lib64/ccache/bin -export EDITOR=nvim MANPAGER='nvim +Man!' USE_CCACHE=1 +export EDITOR=nvim MANPAGER='nvim +Man!' USE_CCACHE=1 PAGER=nvimpager export QT_STYLE_OVERRIDE=kvantum set fish_greeting diff --git a/fish/functions/ytflux.fish b/fish/functions/ytflux.fish index 02e14fc..e2171b1 100644 --- a/fish/functions/ytflux.fish +++ b/fish/functions/ytflux.fish @@ -1,5 +1,6 @@ function ytflux set cat 3 - eval curl (cat ~/.miniflux)/entries?status=unread\&category_id=$cat | jq .entries[].url | xargs yt-dlp & + set entries (eval curl (cat ~/.miniflux)/entries?status=unread\&category_id=$cat | jq .entries[].url) eval curl -X PUT (cat ~/.miniflux)/categories/$cat/mark-all-as-read + parallel -u yt-dlp ::: $entries end diff --git a/qutebrowser/user.scss b/qutebrowser/user.scss index bdab2a8..9a73067 100644 --- a/qutebrowser/user.scss +++ b/qutebrowser/user.scss @@ -15,9 +15,11 @@ [class^="container"], section {background: transparent} #channels [class^="unread"] {background: #cfcdcf} - $aria: gift, Help, Inbox, sidebar; + $aria: gift, Help, Inbox; @each $i in $aria {[aria-label$="#{$i}"] {display: none}} - [class^="private"] [class^="search"], [href="/store"] {display: none} + [class^="private"] [class^="search"], [href="/store"], [href="/shop"] {display: none} + + [aria-label="Servers"] + div { display: none; + div { display: none; + div + div { display: none; } } } font-family: "Ubuntu Mono"; background: url("https://cdn.discordapp.com/attachments/773556458234052608/1140629357505826896/out.webp");