NixNet/_posts/2018-08-12-Formatting-tests.md

90 lines
2.8 KiB
Markdown
Raw Normal View History

2018-12-14 05:47:01 +00:00
---
layout: post
title: Formatting Tests
2018-12-15 05:52:02 +00:00
date: 2018-08-11 23:23:16
2018-12-14 05:47:01 +00:00
---
# Hello, world!
* Test bullet one
* Test bullet two
* Test sub-bullet one
* Test bullet three
* Test sub-bullet two
* Test sub-bullet three
1. Numbered bullet test one
* Sub-bullet test one
2. Numbered bullet test two
* Sub-bullet test two
2. Numbered bullet test three
* Sub-bullet test three
## Level 2 Header (where formatting tests happen)
~~testing strikethrough~~
*italics*
**bold**
***bold and italics***
~~***bold, italics, and strikethrough***~~
### Level three header test
```
#!/bin/bash
# Pick a random wallpaper (ignoring anything starting with .) and set the path equal to ${wp}
WP=$(find ~/Pictures/Wallpapers -not -path '*/\.*' -type f | shuf | head -n1 )
# Generate a GTK theme/colour scheme
# Apply the colour scheme to terminals
# Set rxvt's transparency to 75%
wal -gi "$WP" -a 75
# Scale the wallpaper (fixes multi-monitor setups)
feh --bg-scale "$WP"
# Check if the wallpaper is in Favourites
echo $WP | grep "^~/Pictures/Wallpapers/Favourites" &> /dev/null && TEXT="This wallpaper is in Favourites" || TEXT="This wallpaper is not in Favourites"
# Send notification with variable defined above
notify-send "Wallpaper Changed to $WP" "$TEXT"
# Apply colours to Steam
wal_steam
# Open a zenity window and give a GUI for deciding what to do with the wallpaper
VAR=$(zenity --list --text="Decide the fate of this wallpaper" --radiolist --hide-header --column "Select" --column "Option" FALSE "Delete it" FALSE "Add to favourites" TRUE "Do nothing")
if [ "$VAR" = "Add to favourites" ]
then
cp $WP ~/Pictures/Wallpapers/Favourites
notify-send "Wallpaper has been added to your favourites!"
elif [ "$VAR" = "Delete it" ]
then
notify-send "Wallpaper has been deleted"
rm -rf $WP
else
exit
fi
```
This script can be found in my repository on [GitLab](https://gitlab.com/Amolith/dotfiles)
#### Level four header test (in which we check quoting)
> It's a dangerous business, Frodo, going out your door. You step onto the Road, and if you don't keep your feet, there's no knowing where you might be swept off to.
> You need to actively disown your code to make it completely free. Its not in the public domain just because you released it in the public. Even worse, when using no license, the copyright might behave different depending where you and someone allegedly breaking it lives. It differs from country to country.
2018-12-15 00:56:04 +00:00
\- p410n3, *[UNLICENSE - cuz I can't be bothered](https://blog.palone.top/detail/news/unlicense-cuz-i-cant-be-bothered/)*
2018-12-15 05:52:02 +00:00
#### Some definitions
Pellentesque habitant morbi tristique senectus
: Curabitur malesuada lacus ac gravida porttitor
: Duis sodales feugiat lorem et mollis.
Pellentesque habitant morbi tristique senectus
: Curabitur malesuada lacus ac gravida porttitor
: Duis sodales feugiat lorem et mollis.