These are a few configuration tweaks I use with the i3 window manager.
Reqired extra programs: i3blocks scrot i3lock xautolock feh
bar {
status_command i3blocks
colors {
background #140b05
| #!/bin/bash | |
| # make sure we're not on Wayland, because xrandr doesn't work on Wayland | |
| if [ "$(loginctl show-session $(loginctl user-status $USER | grep -E -m 1 'session-[0-9]+\.scope' | sed -E 's/^.*?session-([0-9]+)\.scope.*$/\1/') -p Type | grep -ic "wayland")" -ge 1 ]; then # stolen from stackoverflow | |
| echo "You aren't using X!" | |
| exit | |
| fi | |
| # no more annoying cursor | |
| tput civis |
| #!/usr/bin/env python | |
| # fuzzysleep - sleep with random delay, so you don't overload the server at midnight | |
| import time, random, argparse | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument("delay", help="Desired maximum delay", type=int) | |
| parser.add_argument("--verbose", help="Prints extra info", action="store_true") | |
| group = parser.add_mutually_exclusive_group() |
| #!/bin/bash | |
| while [ "$1" != "" ]; do | |
| printf "\033[1m%s\033[m%s " "${1:0:$(( ${#1} / 2 ))}" "${1:$(( ${#1} / 2 ))}" | |
| shift 1 | |
| done | |
| printf "\n" |
| *{ | |
| box-sizing: border-box; | |
| } | |
| html { | |
| height: 100%; | |
| margin: 0; | |
| padding: 0; | |
| } |
I hereby claim:
To claim this, I am signing this object:
| <body> | |
| <div class="codeheader">code box demo</div> | |
| <div class="codebox"> | |
| <pre><code> | |
| code goes here | |
| </code></pre> | |
| </div> | |
| </body> |
| -- just a conky config. probably won't work on your machine without tweaks, but feel free to use for whatever. | |
| conky.config = { | |
| alignment = 'top_right', | |
| border_width = 1, | |
| cpu_avg_samples = 1, | |
| default_color = 'white', | |
| default_outline_color = 'white', | |
| double_buffer = true, | |
| draw_borders = false, |