This file contains 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
if [ "$color_prompt" = yes ]; then | |
PS1="\[\033[01;32m\]\u@\h\[\033[01;34m\]:\w\[\033[00m\]\n\\$: \[$(tput sgr0)\]" | |
else | |
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' | |
fi | |
unset color_prompt force_color_prompt |
This file contains 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/env bash | |
UPTIME_DAYS=$(expr `cat /proc/uptime | cut -d '.' -f1` % 31556926 / 86400) | |
UPTIME_HOURS=$(expr `cat /proc/uptime | cut -d '.' -f1` % 31556926 % 86400 / 3600) | |
UPTIME_MINUTES=$(expr `cat /proc/uptime | cut -d '.' -f1` % 31556926 % 86400 % 3600 / 60) | |
# Basic info | |
HOSTNAME=`uname -n` | |
ROOT=`df -Ph | grep -w nbd0p1 | awk '{print $4}' | tr -d '\n'` |
This file contains 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
* { | |
font-family: sans-serif !important; | |
} | |
body { | |
background: #222 !important; | |
color: #eee; | |
} | |
a:visited { |
This file contains 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'm using FiraGo (https://github.com/bBoxType/FiraGO) as the default font in the browser */ | |
* {font-family: sans-serif !important;} | |
/* adds a bit of padding to the card showing a tweet */ | |
article { | |
padding: 10px 5px !important | |
} | |
/* I prefer light borders */ | |
html.dark .stream-item, html.dark .column-header { |
This file contains 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
* { | |
-webkit-font-smoothing: subpixel-antialiased !important; | |
text-rendering: optimizelegibility !important; | |
-moz-osx-font-smoothing: grayscale !important; | |
/*font-smooth: grayscale !important;*/ | |
font-smooth: always !important; | |
} | |
:root { | |
--text-link: hsl(212,calc(var(--saturation-factor, 1)*100%),43.9%); |
This file contains 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
# ░█▀█░▀█▀░█▀▀░█▀█░█▄█░░░░█▀▀░█▀█░█▀█░█▀▀ | |
# ░█▀▀░░█░░█░░░█░█░█░█░░░░█░░░█░█░█░█░█▀▀ | |
# ░▀░░░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀░░▀▀▀░▀▀▀░▀░▀░▀░░ | |
# | |
# X compositor configuration | |
# ░█▀▀░█░█░█▀█░█▀▄░█▀█░█░█ | |
# ░▀▀█░█▀█░█▀█░█░█░█░█░█▄█ | |
# ░▀▀▀░▀░▀░▀░▀░▀▀░░▀▀▀░▀░▀ |
This file contains 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
:root, | |
html, | |
body { | |
font-family: "inter", rubik, sans-serif !important; | |
} | |
body.theme-mastodon-light { | |
background: #f4f8fa !important; | |
} |
This file contains 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
# Toot with images from the command line | |
# License: GPLv3 (https://www.gnu.org/licenses/gpl-3.0.txt) | |
function tooti { | |
# Allow using trap inside a function | |
set -o localoptions -o localtraps | |
# Check if toot is in $PATH | |
if ! type toot > /dev/null; then | |
echo -e "\n\e[0;93mWarning: toot not found in \$PATH\n" | |
echo -e "Please install it using your package manager or from https://github.com/ihabunek/toot\n" |
This file contains 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
function XScreenManage { | |
if ! command -v notify-send &> /dev/null; then | |
echo -e "Warning: notify-send could not be found. Please install it using\ | |
your distribution native package manager. On Arch Linux, you can install it\ | |
with \"sudo pacman -Sy libnotify\"" | |
return 1 2>/dev/null | |
fi | |
local blanking() { |