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
#!/bin/bash | |
# | |
# This is an easier-to-tweak version of Steffen Honig's i3lock | |
# script. If it doesn't work, it's his fault ;) | |
# | |
TEMP_FILE=/tmp/lock.png | |
TEMP_FILE_POST=/tmp/lock.modified.png | |
BAR_BG_COLOR="orange" | |
BAR_FONT_COLOR="white" | |
BAR_FONT="Source-Code-Pro-Black" |
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 perl | |
use Switch; | |
# Grab the first line from 'mpc' and throw it into | |
@song = split("\n", `mpc 2>&1`); | |
switch ($song[0]) { | |
case /Connection refused/ { print "MPD not running\n" } | |
case /^volume/ { print "Music playback stopped\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
# Brightness bindings | |
bindsym XF86MonBrightnessUp exec "xbacklight -inc 10" | |
bindsym XF86MonBrightnessDown exec "xbacklight -dec 10" | |
# Audio bindings | |
bindsym XF86AudioPlay exec "mpc toggle" | |
bindsym XF86AudioStop exec "mpc stop" | |
bindsym XF86AudioNext exec "mpc next" | |
bindsym XF86AudioPrev exec "mpc prev" |
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
' This is what you have Arlen... | |
do while MoreSold = "yes" | |
' Notice that you have 'FoodType' | |
FoodType = Inputbox("What type of food sold? (hamburger, hotdog, corndog, or nacho)") | |
NumSold = Inputbox("How many were sold?") | |
' ...and you have 'foodtype' here... | |
Select Case foodtype | |
Case "hamburger" | |
NumSold = NumHamburgers |
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
jweatherly@rog ~ % last -h | |
last: invalid option -- 'h' | |
Usage: last [-num | -n num] [-f file] [-t YYYYMMDDHHMMSS] [-R] [-adioxFw] [username..] [tty..] | |
1 jweatherly@rog ~ % last -R -F reboot :( | |
wtmp begins Sun May 5 13:27:59 2013 | |
jweatherly@rog ~ % |
NewerOlder