1---
2layout: post
3title: Formatting Tests
4date: 2018-08-13 23:23:16
5---
6# Hello, world!
7
8* Test bullet one
9* Test bullet two
10 * Test sub-bullet one
11* Test bullet three
12 * Test sub-bullet two
13 * Test sub-bullet three
14
151. Numbered bullet test one
16 * Sub-bullet test one
172. Numbered bullet test two
18 * Sub-bullet test two
192. Numbered bullet test three
20 * Sub-bullet test three
21
22## Level 2 Header (where formatting tests happen)
23
24~~testing strikethrough~~
25
26*italics*
27
28**bold**
29
30***bold and italics***
31
32~~***bold, italics, and strikethrough***~~
33
34### Level three header test
35```
36#!/bin/bash
37
38# Pick a random wallpaper (ignoring anything starting with .) and set the path equal to ${wp}
39WP=$(find ~/Pictures/Wallpapers -not -path '*/\.*' -type f | shuf | head -n1 )
40
41# Generate a GTK theme/colour scheme
42# Apply the colour scheme to terminals
43# Set rxvt's transparency to 75%
44wal -gi "$WP" -a 75
45
46# Scale the wallpaper (fixes multi-monitor setups)
47feh --bg-scale "$WP"
48
49# Check if the wallpaper is in Favourites
50echo $WP | grep "^~/Pictures/Wallpapers/Favourites" &> /dev/null && TEXT="This wallpaper is in Favourites" || TEXT="This wallpaper is not in Favourites"
51
52# Send notification with variable defined above
53notify-send "Wallpaper Changed to $WP" "$TEXT"
54
55# Apply colours to Steam
56wal_steam
57
58# Open a zenity window and give a GUI for deciding what to do with the wallpaper
59VAR=$(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")
60
61if [ "$VAR" = "Add to favourites" ]
62then
63 cp $WP ~/Pictures/Wallpapers/Favourites
64 notify-send "Wallpaper has been added to your favourites!"
65elif [ "$VAR" = "Delete it" ]
66then
67 notify-send "Wallpaper has been deleted"
68 rm -rf $WP
69else
70 exit
71fi
72```
73This script can be found in my repository on [GitLab](https://gitlab.com/Amolith/dotfiles)
74#### Level four header test (in which we check quoting)
75> 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.
76
77> You need to actively disown your code to make it completely free. It’s 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.
78
79\- p410n3, [UNLICENSE - cuz I can't be bothered](https://blog.palone.top/detail/news/unlicense-cuz-i-cant-be-bothered/)