This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sh | |
# disable some processes from showing | |
systemctl -t service --plain --no-legend --no-pager list-unit-files --state enabled,disabled | grep -Fv -e freedesktop -e systemd | sed 's/\..*//' > /tmp/sysunits & | |
systemctl list-unit-files -t service --no-legend --user --state enabled,disabled | sed 's/\..*//' > /tmp/usrunits & | |
action=$(dmenu <<EOF | |
start | |
stop | |
restart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
[ $2 != "playing" ] && exit 0 | |
# file_path=$(echo "$@" | grep -o "file .*\...." | sed s/file\ //) # Does not always work? | |
# file_path=$(echo "$@" | sed -e 's/^.*file //; s/artist.*$//') # new sed command | |
file_path=$(echo "$@" | sed -e 's/.*file \(.*\) artist.*/\1/') # Experimental! | |
# try albumartist instead of artist | |
if [ "$file_path" = "$@" ] ;then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Rijnder Wever <[email protected]> | |
pkgname='fd-git' | |
pkgver=7.4.0.r3.gd48aeda | |
pkgrel=1 | |
pkgdesc="Simple, fast and user-friendly alternative to find" | |
arch=('x86_64') | |
url='https://github.com/sharkdp/fd' | |
license=('MIT' 'APACHE') | |
depends=('gcc-libs') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~> pyinstrument --show-all (which castero) | |
_ ._ __/__ _ _ _ _ _/_ Recorded: 19:07:19 Samples: 469 | |
/_//_/// /_\ / //_// / //_'/ // Duration: 0.899 CPU time: 0.748 | |
/ _/ v3.0.0 | |
Program: /usr/bin/castero | |
0.898 <module> castero:3 | |
└─ 0.898 load_entry_point pkg_resources/__init__.py:487 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23:59:12 DEBUG keyboard basekeyparser:_debug_log:196 Clearing keystring (was: :). | |
23:59:12 DEBUG commands command:run:541 command called: set-cmd-text [':'] | |
23:59:12 DEBUG commands command:run:555 Calling qutebrowser.mainwindow.statusbar.command.Command.set_cmd_text_command(<qutebrowser.mainwindow.statusbar.command.Command>, ':', None, False, False, False) | |
23:59:12 DEBUG completion completer:schedule_completion_update:215 Scheduling completion update. | |
23:59:12 DEBUG completion completer:schedule_completion_update:212 Ignoring update because there were no changes. | |
23:59:12 DEBUG modes command:set_cmd_text:112 Setting command text, focusing <qutebrowser.mainwindow.statusbar.command.Command> | |
23:59:12 DEBUG modes modeman:enter:317 Entering mode KeyMode.command (reason: cmd focus) | |
23:59:12 DEBUG statusbar text:set_text:56 Setting normal text to '-- COMMAND MODE --'. | |
23:59:12 DEBUG statusbar bar:set_mode_active:291 Setting command flag to True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo tlp-stat -s -b | |
--- TLP 1.2.2 -------------------------------------------- | |
+++ System Info | |
System = HUAWEI M14 MACH-WX9 | |
BIOS = 1.12 | |
Release = "Arch Linux" | |
Kernel = 5.5.0-1-mainline #1 SMP PREEMPT Mon, 27 Jan 2020 10:55:21 +0000 x86_64 | |
/proc/cmdline = BOOT_IMAGE=/boot/vmlinuz-linux-mainline root=UUID=811aabe2-ca25-4039-ae49-bd4fa1de5dc3 rw console=tty12 quiet loglevel=1 vga=current rd.systemd.show_status=false udev.log_priority=3 acpi_osi=Linux i915.fastboot=1 i915.enable_fbc=1 i915.enable_psr=0 i915.enable_guc=2 i915.enable_dc=2 i915.disable_power_well=0i915.error_capture=0 i915.modeset=1 drm.vblankoffdelay=1 drm.debug=0 snd_hda_intel.power_save=1 pcie_aspm=force pcie_port_pm=on nmi_watchdog=0 nowatchdog | |
Init system = systemd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sh | |
echo "message-info 'Opening $QUTE_URL with mpv'" >> "$QUTE_FIFO" & | |
if echo "$QUTE_URL" | grep -q 'youtube'; then | |
youtube-viewer -A --quiet --no-video-info --no-interactive --no-get-captions --append-arg="--osc yes " --player "mpv" "$QUTE_URL" | |
elif echo "$QUTE_URL" | grep -q 'bandcamp\.com'; then | |
d="bandcamp-"$(date +%s) | |
mkdir -p /tmp/$d | |
bandcamp-dl --base-dir /tmp/$d --template='%{track}' "$QUTE_URL" > /dev/null 2> /dev/null & | |
echo "01.mp3.tmp" > /tmp/$d/playlist.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* I add this to html files generated with pandoc. | |
*/ | |
html { | |
font-size: 100%; | |
overflow-y: scroll; | |
-webkit-text-size-adjust: 100%; | |
-ms-text-size-adjust: 100%; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
border-color: #215c6a !important; | |
} | |
a { | |
color: #24262a !important; | |
} | |
a:visited { | |
color: #24262a !important; | |
} | |
body { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
border-color: #88c0d0 !important; | |
} | |
a { | |
color: #eef1f6 !important; | |
} | |
a:visited { | |
color: #eef1f6 !important; | |
} | |
body { |