From 9179b974dfdee1662f83703c42a5a9c5372911e8 Mon Sep 17 00:00:00 2001 From: Phantop Date: Tue, 26 Oct 2021 21:10:17 -0400 Subject: [PATCH] Clean font, autoload; add torrents-csv, acmus --- dot-config/autostart/invidious.desktop | 5 --- dot-config/fontconfig/fonts.conf | 50 -------------------------- dot-config/qutebrowser/config.py | 6 ++-- dot-config/qutebrowser/quickmarks | 7 ++-- dot-local/bin/acmus | 7 ++++ dot-local/bin/aliases | 1 + dot-local/bin/setup | 2 +- 7 files changed, 15 insertions(+), 63 deletions(-) delete mode 100644 dot-config/autostart/invidious.desktop delete mode 100644 dot-config/fontconfig/fonts.conf create mode 100755 dot-local/bin/acmus diff --git a/dot-config/autostart/invidious.desktop b/dot-config/autostart/invidious.desktop deleted file mode 100644 index 1b520ab..0000000 --- a/dot-config/autostart/invidious.desktop +++ /dev/null @@ -1,5 +0,0 @@ -[Desktop Entry] -Type=Application -Name=Invidious -Description= -Exec=fish -c invid diff --git a/dot-config/fontconfig/fonts.conf b/dot-config/fontconfig/fonts.conf deleted file mode 100644 index b873be8..0000000 --- a/dot-config/fontconfig/fonts.conf +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - true - - - - - hintslight - - - - - true - - - - - rgb - - - - - lcddefault - - - ~/.fonts - - monospace - - Hack - FontAwesome Regular> - Noto Color Emoji - - - - serif - - Clear Sans - - - - sans-serif - - Clear Sans - - - diff --git a/dot-config/qutebrowser/config.py b/dot-config/qutebrowser/config.py index 68d0e9e..b001b36 100644 --- a/dot-config/qutebrowser/config.py +++ b/dot-config/qutebrowser/config.py @@ -55,9 +55,6 @@ config.set('content.notifications.enabled', True, 'https://mail.tutanota.com') config.set('content.register_protocol_handler', True, 'https://mail.tutanota.com') config.set('content.register_protocol_handler', False, 'https://mail.google.com?extsrc=mailto&url=%25s') -#import dracula.draw -#dracula.draw.blood(c, {'spacing': {'vertical': 1,'horizontal': 0}}) - import socket if socket.gethostname() == "wheatley": c.qt.highdpi = True @@ -66,3 +63,6 @@ if socket.gethostname() == "wheatley": c.url.searchengines['y'] = "vid.puffyan.us/search?q={}" c.fonts.default_size = "11pt" c.aliases['mpv'] = mpv + ' --ytdl-format=bestvideo[vcodec^=avc1]+bestaudio' + +#import dracula.draw +#dracula.draw.blood(c, {'spacing': {'vertical': 1,'horizontal': 0}}) diff --git a/dot-config/qutebrowser/quickmarks b/dot-config/qutebrowser/quickmarks index 339661e..0189f62 100644 --- a/dot-config/qutebrowser/quickmarks +++ b/dot-config/qutebrowser/quickmarks @@ -1,8 +1,7 @@ +dial https://covid19.rpi.edu/dailycheckin discord https://canary.discord.com/app drop https://drop.lol hn https://news.ycombinator.com -tuta https://mail.tutanota.com lms https://lms.rpi.edu/ultra/stream -submitty https://submitty.cs.rpi.edu/home -dial https://covid19.rpi.edu/dailycheckin -nands https://docs.google.com/document/d/1ALeMlvv5nxz0vYsVRf47wvGEjt8pdO6Y55ncptBg-Ng +submitty https://submitty.cs.rpi.edu/courses/f21/csci1200/polls +tuta https://mail.tutanota.com diff --git a/dot-local/bin/acmus b/dot-local/bin/acmus new file mode 100755 index 0000000..b61fc6a --- /dev/null +++ b/dot-local/bin/acmus @@ -0,0 +1,7 @@ +#!/bin/bash +source=https://d17orwheorv96d.cloudfront.net +hour=$(date +%-I%p|tr APM apm) +curl $source/$1/$hour.ogg -so/tmp/ac + +loops=$(bc <<< "(3600 - $(date +%s) % 3600)/$(soxi -D /tmp/ac)") +mpv --vid=no --no-resume-playback --loop=$loops /tmp/ac diff --git a/dot-local/bin/aliases b/dot-local/bin/aliases index 55d39d6..66c85a0 100755 --- a/dot-local/bin/aliases +++ b/dot-local/bin/aliases @@ -46,6 +46,7 @@ a invid 'tmux new -s 0 -d "docker-compose -f ~/.config/invid.yml up --build"' a launcher 'rofi -combi-modi "drun,run" -show combi -modi "combi,window"' a listen 'pactl list | grep loop && pactl unload-module module-loopback || pactl load-module module-loopback' a symlinks 'fd -td -d1 . $D -x sh -c "rm ~/{/}; rmdir ~/{/}; ln -s {} ~/{/}"' +a tcsv 'curl -sL http://torrents-csv.ml/service/search?q="$argv"|jq ".[]|.name,.infohash,.seeders";:' a ydl 'yt-dlp -ciw --write-sub --write-auto-sub --embed-subs --sub-lang=en -o "%(title)s.%(ext)s"' a compress '7z a -m0=flzma2 -mx9 -mmt=8 -mfb=273 -md=256m -ms=on (realpath $argv[1]).7z' diff --git a/dot-local/bin/setup b/dot-local/bin/setup index aac85aa..3e0db98 100755 --- a/dot-local/bin/setup +++ b/dot-local/bin/setup @@ -1,7 +1,7 @@ #!/bin/bash alias s=sudo se="sudo eopkg -y" g=git -gnome="$(echo eog file-roller gnome-{calendar,photos,mpv,terminal} nautilus rhythmbox)" +gnome="$(echo eog file-roller gnome-{photos,mpv,terminal} nautilus rhythmbox)" audio="audacious audacious-plugins audacity opus-tools quodlibet spek" dev="ccache docker-compose git-extras llvm-clang neovim parallel solbuild tig upx" gui="bleachbit caja gmic-gimp engrampa keepassxc kitty lutris vorta"