From 41fa4263c042bcef66918092efcdbb6a991bc84f Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Mon, 13 Dec 2021 16:34:55 -0500 Subject: more renames --- .dzen/battery.sh | 49 ---------- .dzen/dzen.sh | 156 -------------------------------- .dzen/icons/arrow_down.xbm | 4 - .dzen/icons/arrow_up.xbm | 4 - .dzen/icons/bluetooth.xbm | 4 - .dzen/icons/corner.xbm | 5 - .dzen/icons/cpu.xbm | 6 -- .dzen/icons/down.xbm | 6 -- .dzen/icons/fwd.xbm | 4 - .dzen/icons/layout-full-black.xbm | 5 - .dzen/icons/layout-full.xbm | 8 -- .dzen/icons/layout-gimp.xbm | 8 -- .dzen/icons/layout-im-full.xbm | 8 -- .dzen/icons/layout-im-mirror.xbm | 8 -- .dzen/icons/layout-im-tall.xbm | 8 -- .dzen/icons/layout-im.xbm | 8 -- .dzen/icons/layout-mirror-black.xbm | 5 - .dzen/icons/layout-mirror-bottom.xbm | 8 -- .dzen/icons/layout-mirror-top.xbm | 8 -- .dzen/icons/layout-tall-black.xbm | 5 - .dzen/icons/layout-tall-left.xbm | 8 -- .dzen/icons/layout-tall-right.xbm | 8 -- .dzen/icons/layout-threecol.xbm | 8 -- .dzen/icons/load.xbm | 6 -- .dzen/icons/mail.xbm | 4 - .dzen/icons/mem.xbm | 6 -- .dzen/icons/mpd.xbm | 6 -- .dzen/icons/net-wifi.xbm | 6 -- .dzen/icons/net-wifi3.xbm | 6 -- .dzen/icons/net-wifi4.xbm | 6 -- .dzen/icons/net-wifi5.xbm | 6 -- .dzen/icons/net-wired.xbm | 6 -- .dzen/icons/net-wired2.xbm | 6 -- .dzen/icons/next.xbm | 4 - .dzen/icons/pause.xbm | 4 - .dzen/icons/phones.xbm | 4 - .dzen/icons/play.xbm | 4 - .dzen/icons/plus.xbm | 5 - .dzen/icons/power-ac.xbm | 6 -- .dzen/icons/power-bat.xbm | 6 -- .dzen/icons/power-bat2.xbm | 6 -- .dzen/icons/prev.xbm | 4 - .dzen/icons/rwd.xbm | 4 - .dzen/icons/spkr_hi.xbm | 4 - .dzen/icons/spkr_mute.xbm | 4 - .dzen/icons/square.xbm | 5 - .dzen/icons/stop.xbm | 4 - .dzen/icons/temp.xbm | 6 -- .dzen/icons/up.xbm | 6 -- .dzen/icons/vol-hi.xbm | 6 -- .dzen/icons/vol-mute.xbm | 6 -- .dzen/icons/wifi_01.xbm | 4 - .dzen/icons/wifi_02.xbm | 4 - .dzen/temperature.sh | 26 ------ .gitconfig | 40 -------- .gitconfig-debian | 3 - .gtkrc-2.0 | 1 - .inputrc | 4 - .mailcap | 7 -- .mailrc | 6 -- .sbuildrc | 124 ------------------------- .signature | 2 - .signature-mailx | 4 - .vf1rc | 3 - dot_dzen/battery.sh | 49 ++++++++++ dot_dzen/dzen.sh | 156 ++++++++++++++++++++++++++++++++ dot_dzen/icons/arrow_down.xbm | 4 + dot_dzen/icons/arrow_up.xbm | 4 + dot_dzen/icons/bluetooth.xbm | 4 + dot_dzen/icons/corner.xbm | 5 + dot_dzen/icons/cpu.xbm | 6 ++ dot_dzen/icons/down.xbm | 6 ++ dot_dzen/icons/fwd.xbm | 4 + dot_dzen/icons/layout-full-black.xbm | 5 + dot_dzen/icons/layout-full.xbm | 8 ++ dot_dzen/icons/layout-gimp.xbm | 8 ++ dot_dzen/icons/layout-im-full.xbm | 8 ++ dot_dzen/icons/layout-im-mirror.xbm | 8 ++ dot_dzen/icons/layout-im-tall.xbm | 8 ++ dot_dzen/icons/layout-im.xbm | 8 ++ dot_dzen/icons/layout-mirror-black.xbm | 5 + dot_dzen/icons/layout-mirror-bottom.xbm | 8 ++ dot_dzen/icons/layout-mirror-top.xbm | 8 ++ dot_dzen/icons/layout-tall-black.xbm | 5 + dot_dzen/icons/layout-tall-left.xbm | 8 ++ dot_dzen/icons/layout-tall-right.xbm | 8 ++ dot_dzen/icons/layout-threecol.xbm | 8 ++ dot_dzen/icons/load.xbm | 6 ++ dot_dzen/icons/mail.xbm | 4 + dot_dzen/icons/mem.xbm | 6 ++ dot_dzen/icons/mpd.xbm | 6 ++ dot_dzen/icons/net-wifi.xbm | 6 ++ dot_dzen/icons/net-wifi3.xbm | 6 ++ dot_dzen/icons/net-wifi4.xbm | 6 ++ dot_dzen/icons/net-wifi5.xbm | 6 ++ dot_dzen/icons/net-wired.xbm | 6 ++ dot_dzen/icons/net-wired2.xbm | 6 ++ dot_dzen/icons/next.xbm | 4 + dot_dzen/icons/pause.xbm | 4 + dot_dzen/icons/phones.xbm | 4 + dot_dzen/icons/play.xbm | 4 + dot_dzen/icons/plus.xbm | 5 + dot_dzen/icons/power-ac.xbm | 6 ++ dot_dzen/icons/power-bat.xbm | 6 ++ dot_dzen/icons/power-bat2.xbm | 6 ++ dot_dzen/icons/prev.xbm | 4 + dot_dzen/icons/rwd.xbm | 4 + dot_dzen/icons/spkr_hi.xbm | 4 + dot_dzen/icons/spkr_mute.xbm | 4 + dot_dzen/icons/square.xbm | 5 + dot_dzen/icons/stop.xbm | 4 + dot_dzen/icons/temp.xbm | 6 ++ dot_dzen/icons/up.xbm | 6 ++ dot_dzen/icons/vol-hi.xbm | 6 ++ dot_dzen/icons/vol-mute.xbm | 6 ++ dot_dzen/icons/wifi_01.xbm | 4 + dot_dzen/icons/wifi_02.xbm | 4 + dot_dzen/temperature.sh | 26 ++++++ dot_gitconfig | 40 ++++++++ dot_gitconfig-debian | 3 + dot_gtkrc-2.0 | 1 + dot_inputrc | 4 + dot_mailcap | 7 ++ dot_mailrc | 6 ++ dot_sbuildrc | 124 +++++++++++++++++++++++++ dot_signature | 2 + dot_vf1rc | 3 + 127 files changed, 711 insertions(+), 715 deletions(-) delete mode 100755 .dzen/battery.sh delete mode 100755 .dzen/dzen.sh delete mode 100644 .dzen/icons/arrow_down.xbm delete mode 100644 .dzen/icons/arrow_up.xbm delete mode 100644 .dzen/icons/bluetooth.xbm delete mode 100644 .dzen/icons/corner.xbm delete mode 100644 .dzen/icons/cpu.xbm delete mode 100644 .dzen/icons/down.xbm delete mode 100644 .dzen/icons/fwd.xbm delete mode 100644 .dzen/icons/layout-full-black.xbm delete mode 100644 .dzen/icons/layout-full.xbm delete mode 100644 .dzen/icons/layout-gimp.xbm delete mode 100644 .dzen/icons/layout-im-full.xbm delete mode 100644 .dzen/icons/layout-im-mirror.xbm delete mode 100644 .dzen/icons/layout-im-tall.xbm delete mode 100644 .dzen/icons/layout-im.xbm delete mode 100644 .dzen/icons/layout-mirror-black.xbm delete mode 100644 .dzen/icons/layout-mirror-bottom.xbm delete mode 100644 .dzen/icons/layout-mirror-top.xbm delete mode 100644 .dzen/icons/layout-tall-black.xbm delete mode 100644 .dzen/icons/layout-tall-left.xbm delete mode 100644 .dzen/icons/layout-tall-right.xbm delete mode 100644 .dzen/icons/layout-threecol.xbm delete mode 100644 .dzen/icons/load.xbm delete mode 100644 .dzen/icons/mail.xbm delete mode 100644 .dzen/icons/mem.xbm delete mode 100644 .dzen/icons/mpd.xbm delete mode 100644 .dzen/icons/net-wifi.xbm delete mode 100644 .dzen/icons/net-wifi3.xbm delete mode 100644 .dzen/icons/net-wifi4.xbm delete mode 100644 .dzen/icons/net-wifi5.xbm delete mode 100644 .dzen/icons/net-wired.xbm delete mode 100644 .dzen/icons/net-wired2.xbm delete mode 100644 .dzen/icons/next.xbm delete mode 100644 .dzen/icons/pause.xbm delete mode 100644 .dzen/icons/phones.xbm delete mode 100644 .dzen/icons/play.xbm delete mode 100644 .dzen/icons/plus.xbm delete mode 100644 .dzen/icons/power-ac.xbm delete mode 100644 .dzen/icons/power-bat.xbm delete mode 100644 .dzen/icons/power-bat2.xbm delete mode 100644 .dzen/icons/prev.xbm delete mode 100644 .dzen/icons/rwd.xbm delete mode 100644 .dzen/icons/spkr_hi.xbm delete mode 100644 .dzen/icons/spkr_mute.xbm delete mode 100644 .dzen/icons/square.xbm delete mode 100644 .dzen/icons/stop.xbm delete mode 100644 .dzen/icons/temp.xbm delete mode 100644 .dzen/icons/up.xbm delete mode 100644 .dzen/icons/vol-hi.xbm delete mode 100644 .dzen/icons/vol-mute.xbm delete mode 100644 .dzen/icons/wifi_01.xbm delete mode 100644 .dzen/icons/wifi_02.xbm delete mode 100755 .dzen/temperature.sh delete mode 100644 .gitconfig delete mode 100644 .gitconfig-debian delete mode 100644 .gtkrc-2.0 delete mode 100644 .inputrc delete mode 100644 .mailcap delete mode 100644 .mailrc delete mode 100644 .sbuildrc delete mode 100644 .signature delete mode 100644 .signature-mailx delete mode 100644 .vf1rc create mode 100755 dot_dzen/battery.sh create mode 100755 dot_dzen/dzen.sh create mode 100644 dot_dzen/icons/arrow_down.xbm create mode 100644 dot_dzen/icons/arrow_up.xbm create mode 100644 dot_dzen/icons/bluetooth.xbm create mode 100644 dot_dzen/icons/corner.xbm create mode 100644 dot_dzen/icons/cpu.xbm create mode 100644 dot_dzen/icons/down.xbm create mode 100644 dot_dzen/icons/fwd.xbm create mode 100644 dot_dzen/icons/layout-full-black.xbm create mode 100644 dot_dzen/icons/layout-full.xbm create mode 100644 dot_dzen/icons/layout-gimp.xbm create mode 100644 dot_dzen/icons/layout-im-full.xbm create mode 100644 dot_dzen/icons/layout-im-mirror.xbm create mode 100644 dot_dzen/icons/layout-im-tall.xbm create mode 100644 dot_dzen/icons/layout-im.xbm create mode 100644 dot_dzen/icons/layout-mirror-black.xbm create mode 100644 dot_dzen/icons/layout-mirror-bottom.xbm create mode 100644 dot_dzen/icons/layout-mirror-top.xbm create mode 100644 dot_dzen/icons/layout-tall-black.xbm create mode 100644 dot_dzen/icons/layout-tall-left.xbm create mode 100644 dot_dzen/icons/layout-tall-right.xbm create mode 100644 dot_dzen/icons/layout-threecol.xbm create mode 100644 dot_dzen/icons/load.xbm create mode 100644 dot_dzen/icons/mail.xbm create mode 100644 dot_dzen/icons/mem.xbm create mode 100644 dot_dzen/icons/mpd.xbm create mode 100644 dot_dzen/icons/net-wifi.xbm create mode 100644 dot_dzen/icons/net-wifi3.xbm create mode 100644 dot_dzen/icons/net-wifi4.xbm create mode 100644 dot_dzen/icons/net-wifi5.xbm create mode 100644 dot_dzen/icons/net-wired.xbm create mode 100644 dot_dzen/icons/net-wired2.xbm create mode 100644 dot_dzen/icons/next.xbm create mode 100644 dot_dzen/icons/pause.xbm create mode 100644 dot_dzen/icons/phones.xbm create mode 100644 dot_dzen/icons/play.xbm create mode 100644 dot_dzen/icons/plus.xbm create mode 100644 dot_dzen/icons/power-ac.xbm create mode 100644 dot_dzen/icons/power-bat.xbm create mode 100644 dot_dzen/icons/power-bat2.xbm create mode 100644 dot_dzen/icons/prev.xbm create mode 100644 dot_dzen/icons/rwd.xbm create mode 100644 dot_dzen/icons/spkr_hi.xbm create mode 100644 dot_dzen/icons/spkr_mute.xbm create mode 100644 dot_dzen/icons/square.xbm create mode 100644 dot_dzen/icons/stop.xbm create mode 100644 dot_dzen/icons/temp.xbm create mode 100644 dot_dzen/icons/up.xbm create mode 100644 dot_dzen/icons/vol-hi.xbm create mode 100644 dot_dzen/icons/vol-mute.xbm create mode 100644 dot_dzen/icons/wifi_01.xbm create mode 100644 dot_dzen/icons/wifi_02.xbm create mode 100755 dot_dzen/temperature.sh create mode 100644 dot_gitconfig create mode 100644 dot_gitconfig-debian create mode 100644 dot_gtkrc-2.0 create mode 100644 dot_inputrc create mode 100644 dot_mailcap create mode 100644 dot_mailrc create mode 100644 dot_sbuildrc create mode 100644 dot_signature create mode 100644 dot_vf1rc diff --git a/.dzen/battery.sh b/.dzen/battery.sh deleted file mode 100755 index c50e53d..0000000 --- a/.dzen/battery.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/sh -# -# original script by lyon8 -# modifications from original by -# show your laptop battery state in dzen -# Taken from http://www.webframp.com/2008/08/17/switchdzen/ and modified by Ryan -# Kavanagh to add support for a missing battery and use -# /sys instead of /proc/acpi/battery - -BG='#000000' # dzen backgrounad -FG='#008dd5' # dzen foreground -W=114 # width of the dzen bar -GW=50 # width of the gauge -GFG='#33ccff' # color of the gauge -GH=7 # height of the gauge -GBG='#333' # color of gauge background -X=0 # x position -Y=0 # y position -FN='-misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-iso8859-1' # font - -LOWBAT=10 # percentage of battery life marked as low -LOWCOL='#ff4747' # color when battery is low -CHGCOL='#60da11' # color when battery is charging -TIME_INT=2 # time interval in seconds to hold display -TIME_ITER=5 # no of iterations in which time is displayed - -PREBAR="^i(${HOME}/.dzen/icons/power-bat.xbm) " # caption (also icons are possible) - -echo -n $PREBAR #uncomment for an icon - -PRESENT=`acpi -b`; -if [ "${PRESENT}" ]; then - STATUS=`echo ${PRESENT} | grep Charging`; - - RPERC=`echo ${PRESENT} | cut -d, -f2 | sed -e 's/[^0-9]//g'`; - - # draw the bar and pipe everything into dzen - if [ $RPERC -le $LOWBAT ]; then - GFG=$LOWCOL; - fi - if [ "${STATUS}" ]; then - GFG=$CHGCOL; - else - GFG='#33ccff'; - fi - echo $RPERC -else - echo '??' -fi diff --git a/.dzen/dzen.sh b/.dzen/dzen.sh deleted file mode 100755 index 0d2b8e4..0000000 --- a/.dzen/dzen.sh +++ /dev/null @@ -1,156 +0,0 @@ -#!/bin/sh - -typeset -A DISKS -### -# Config -### -DATE_FORMAT="%a %d %b, %Y" -TIME_ZONES=("America/Toronto" "UTC") -DISKS=(home /home root /) -SEPERATOR=' ^fg(#86AA3F)^c(3)^fg() ' -BAR_BG='#7DA926' -BAR_FG='#B9D56E' -BAR_HH=6 -BAR_HW=40 -BAR_VH=12 -BAR_VW=3 -BAR_ARGS="-bg $BAR_BG -fg $BAR_FG -w $BAR_HW -h $BAR_HH" -ICON_DIR="$HOME/.dzen/icons/" -NETWORK_INTERFACE=eth0 -NET_DOWN_MAX=55 -NET_UP_MAX=14 -MAILDIR=~/.maildb/GMAIL/ - -GLOBALIVAL=1m -DATEIVAL=60 -TIMEIVAL=1 -DISKIVAL=1 -#CPUTEMPIVAL=5 -#CPUIVAL=1 -#NPIVAL=3 -NETIVAL=1 - - -### -# Functions -### -_date() -{ - date +${DATE_FORMAT} -} - -_time() -{ - local zone - print_space=0 - for zone in $TIME_ZONES; do - [[ $print_space -eq 1 ]] && print -n " " - print -n "${zone:t}: $(TZ=$zone date '+%H:%M')" - print_space=1 - done -} - -# -# Format: label1 mountpoint1 label2 mountpoint2 ... labelN mountpointN -# Copied and modified from Rob -get_disk_usage() { - local rstr; local tstr; local i; local sep - for i in ${(k)DISKS}; do - tstr=$(print `df -h $DISKS[$i]|sed -ne 's/^.* \([0-9]*\)% .*/\1/p'` 100 | \ - dzen2-gdbar -h $BAR_HH -w $BAR_HW -fg $BAR_FG -bg $BAR_BG -l "${i}" -nonl | \ - sed 's/[0-9]\+%//g;s/ / /g') - if [ ! -z "$rstr" ]; then - sep=${SEPERATOR} - fi - rstr="${rstr}${sep}${tstr}" - done - print -n $rstr -} - -# Requires mesure -get_net_rates() { - local up; local down - up=`mesure -K -l -c 3 -t -o $NETWORK_INTERFACE` - down=`mesure -K -l -c 3 -t -i $NETWORK_INTERFACE` - echo "$down $up" -} - -#cpu_temp() -#{ -# print -n ${(@)$( -# modifications from original by -# show your laptop battery state in dzen -# Taken from http://www.webframp.com/2008/08/17/switchdzen/ and modified by Ryan -# Kavanagh to add support for a missing battery and use -# /sys instead of /proc/acpi/battery - -BG='#171717' # dzen backgrounad -FG='#11DD11' # dzen foreground -W=130 # width of the dzen bar -GW=50 # width of the gauge -GFG='#33ccff' # color of the gauge -GH=7 # height of the gauge -GBG='#333' # color of gauge background -X=922 # x position -Y=0 # y position -FN='snap' # font -TIME_INT=10 - -TEMPERATURE=`acpi -t` - -while true; do - echo $TEMPERATURE | sed -e 's/.*ok, //g' && sleep $TIME_INT -done | dzen2 -ta c -tw $W -y $Y -x $X -fg $FG -bg $BG #-fn $FN diff --git a/.gitconfig b/.gitconfig deleted file mode 100644 index bead2ea..0000000 --- a/.gitconfig +++ /dev/null @@ -1,40 +0,0 @@ -[user] - name = Ryan Kavanagh - email = rak@rak.ac -[color] - ui = auto -[sendemail] - smtpserver = /usr/sbin/sendmail -[alias] - wdiff = diff --color-words - pusha = push origin : - lg = !"git lg1" - lg1 = !"git lg1-specific --all" - lg2 = !"git lg2-specific --all" - lg3 = !"git lg3-specific --all" - lsd = !"git lg3-specific --all --simplify-by-decoration" - - lg1-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' - lg2-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' - lg3-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset) %C(bold cyan)(committed: %cD)%C(reset) %C(auto)%d%C(reset)%n'' %C(white)%s%C(reset)%n'' %C(dim white)- %an <%ae> %C(reset) %C(dim white)(committer: %cn <%ce>)%C(reset)' - - subrepo = !~/.local/lib/git-core/git-subrepo -[push] - default = simple -[url "git://anonscm.debian.org"] - insteadOf = "git://git.debian.org" -[url "ssh://git.debian.org"] - pushInsteadOf = "git://git.debian.org" -[rerere] - enabled = true -[url "git@salsa.debian.org:"] - pushInsteadOf = https://salsa.debian.org/ -[core] - quotePath = false -[includeIf "gitdir:/media/t/work/packaging/"] - path = ~/.gitconfig-debian -[diff] - mnemonicPrefix = true - algorithm = histogram -[diff "gpg"] - textconv = gpg --no-tty --decrypt diff --git a/.gitconfig-debian b/.gitconfig-debian deleted file mode 100644 index 409be7c..0000000 --- a/.gitconfig-debian +++ /dev/null @@ -1,3 +0,0 @@ -[user] - name = Ryan Kavanagh - email = rak@debian.org diff --git a/.gtkrc-2.0 b/.gtkrc-2.0 deleted file mode 100644 index 99749fa..0000000 --- a/.gtkrc-2.0 +++ /dev/null @@ -1 +0,0 @@ -gtk-key-theme-name = "Emacs" diff --git a/.inputrc b/.inputrc deleted file mode 100644 index 4fd5901..0000000 --- a/.inputrc +++ /dev/null @@ -1,4 +0,0 @@ -set meta-flag on -set convert-meta off -set output-meta on -set bell-style audible diff --git a/.mailcap b/.mailcap deleted file mode 100644 index 1a9ea17..0000000 --- a/.mailcap +++ /dev/null @@ -1,7 +0,0 @@ -text/html; mutt_bgrun firefox %s; nametemplate=%s.html -text/html; w3m -T text/html -dump %s; nametemplate=%s.html; copiousoutput -application/pdf; mutt_bgrun evince %s; nametemplate=%s.pdf; test=test "$DISPLAY" != ""; description=Portable Document Format -application/x-pdf; mupdf %s; nametemplate=%s.pdf; test=test "$DISPLAY" != ""; description=Portable Document Format -application/x-gzpdf; evince %s; nametemplate=%s.pdf.gz; test=test "$DISPLAY" != ""; description=Portable Document Format -application/x-bzpdf; evince %s; nametemplate=%s.pdf.bz2; test=test "$DISPLAY" != ""; description=Portable Document Format -audio/mpeg; mplayer %s; description=MPEG Audio diff --git a/.mailrc b/.mailrc deleted file mode 100644 index aa2b595..0000000 --- a/.mailrc +++ /dev/null @@ -1,6 +0,0 @@ -set ask -set crt -set editheaders -ignore message-id received date fcc status resent-date resent-message-id resent-from in-reply-to - -set mailx-extra-rc=~/.s-nail.rc diff --git a/.sbuildrc b/.sbuildrc deleted file mode 100644 index 1d259f6..0000000 --- a/.sbuildrc +++ /dev/null @@ -1,124 +0,0 @@ -# example for ~/.sbuildrc. (Also see /etc/sbuild/sbuild.conf.) -*- Perl -*- -# -# Default settings are commented out. -# Additional options found in /etc/sbuild/sbuild.conf may be -# overridden here. - - -## -## DPKG-BUILDPACKAGE OPTIONS -## - -# Name to use as override in .changes files for the Maintainer: field -# Defaults to the DEBEMAIL environment variable, if set, or else the -# Maintainer: field will not be overridden unless set here. -#$maintainer_name='Francesco Paolo Lovergine '; - -# Name to use as override in .changes file for the Changed-By: field. -#$uploader_name='Francesco Paolo Lovergine '; - -# Key ID to use in .changes for the current upload. -# It overrides both $maintainer_name and $uploader_name -#$key_id='Francesco Paolo Lovergine '; - -# PGP-related option to pass to dpkg-buildpackage. Usually neither .dsc -# nor .changes files shall be signed automatically. -#$pgp_options = ['-us', '-uc']; - -# By default, do not build a source package (binary only build). -# Set to 1 to force creation of a source package, but note that -# this is inappropriate for binary NMUs, where the option will -# always be disabled. -#$build_source = 0; - -# By default, the -s option only includes the .orig.tar.gz when needed -# (i.e. when the Debian revision is 0 or 1). By setting this option -# to 1, the .orig.tar.gz will always be included when -s is used. -# This is equivalent to --force-orig-source. -#$force_orig_source = 0; - -# PATH to set when running dpkg-buildpackage. -#$path = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/usr/games"; - -# This command is run with the dpkg-buildpackage command line passed to it -# (in the chroot, if doing a chrooted build). It is used by the sparc buildd -# (which is sparc64) to call the wrapper script that sets the environment to -# sparc (32-bit). It could be used for other build environment setup scripts -# -#$build_env_cmnd = ""; - -$build_arch_all = 1; - -$run_lintian = 1; -$lintian_opts = ['-i', '-I', '-v', '-E']; - -## -## SBUILD BEHAVIOUR -## - -# Default distribution. By default, no distribution is defined, and -# the user must specify it with the -d option. However, a default may -# be configured here if desired. Users must take care not to upload -# to the wrong distribution when this option is set, for example -# experimental packages will be built for upload to unstable when this -# is not what is required. -$distribution = 'unstable'; - -# Default chroot (defaults to distribution[-arch][-sbuild]) -$chroot = 'chroot:unstable-amd64'; - -# When to purge the build directory afterwards; possible values are "never", -# "successful", and "always" -#$purge_build_directory="successful"; -# We use LVM snapshots, no need -$purge_build_directory="never"; - -# sbuild behaviour; possible values are "user" (exit status reports -# build failures) and "buildd" (exit status does not report build -# failures) for use in a buildd setup. -#$sbuild_mode = "user"; - - -## -## TIMEOUTS -## - -# Time to wait for a source dependency lock. The default is 1 minute. -#$srcdep_lock_wait = 1; # 1 minute - -# Time (in minutes) of inactivity after which a build is terminated. Activity -# is measured by output to the log file. -#$stalled_pkg_timeout = 150; - -# Some packages may exceed the general timeout (e.g. redirecting output to -# a file) and need a different timeout. Below are some examples. -#%individual_stalled_pkg_timeout = (smalleiffel => 300, -# jade => 300, -# atlas => 300, -# glibc => 1000, -# 'gcc-3.3' => 300, -# kwave => 600); -# - -## -## FILE AND DIRECTORY LOCATIONS -## - -# This option is deprecated. Directory for chroot symlinks and sbuild -# logs. Defaults to the current directory if unspecified. It is used -# as the location of chroot symlinks (obsolete) and for current build -# log symlinks and some build logs. There is no default; if unset, it -# defaults to the current working directory. $HOME/build is another -# common configuration. -#$build_dir = undef; - -# Directory for writing build logs to -$log_dir = "$HOME/tmp/sbuild/logs"; - -# Directory for writing build statistics to -$stats_dir = "$HOME/tmp/sbuild/stats"; - - -# don't remove this, Perl needs it: -1; - diff --git a/.signature b/.signature deleted file mode 100644 index 8ae035d..0000000 --- a/.signature +++ /dev/null @@ -1,2 +0,0 @@ -|)|/ Ryan Kavanagh | 4E46 9519 ED67 7734 268F -|\|\ https://rak.ac | BD95 8F7B F8FC 4A11 C97A diff --git a/.signature-mailx b/.signature-mailx deleted file mode 100644 index eed0e68..0000000 --- a/.signature-mailx +++ /dev/null @@ -1,4 +0,0 @@ - --- -|)|/ Ryan Kavanagh | GPG: 4E46 9519 ED67 7734 268F -|\|\ https://rak.ac | BD95 8F7B F8FC 4A11 C97A diff --git a/.vf1rc b/.vf1rc deleted file mode 100644 index 22c33c4..0000000 --- a/.vf1rc +++ /dev/null @@ -1,3 +0,0 @@ -handler image/* display %s -set color_menus True -g gopher://rak.ac/ diff --git a/dot_dzen/battery.sh b/dot_dzen/battery.sh new file mode 100755 index 0000000..c50e53d --- /dev/null +++ b/dot_dzen/battery.sh @@ -0,0 +1,49 @@ +#!/bin/sh +# +# original script by lyon8 +# modifications from original by +# show your laptop battery state in dzen +# Taken from http://www.webframp.com/2008/08/17/switchdzen/ and modified by Ryan +# Kavanagh to add support for a missing battery and use +# /sys instead of /proc/acpi/battery + +BG='#000000' # dzen backgrounad +FG='#008dd5' # dzen foreground +W=114 # width of the dzen bar +GW=50 # width of the gauge +GFG='#33ccff' # color of the gauge +GH=7 # height of the gauge +GBG='#333' # color of gauge background +X=0 # x position +Y=0 # y position +FN='-misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-iso8859-1' # font + +LOWBAT=10 # percentage of battery life marked as low +LOWCOL='#ff4747' # color when battery is low +CHGCOL='#60da11' # color when battery is charging +TIME_INT=2 # time interval in seconds to hold display +TIME_ITER=5 # no of iterations in which time is displayed + +PREBAR="^i(${HOME}/.dzen/icons/power-bat.xbm) " # caption (also icons are possible) + +echo -n $PREBAR #uncomment for an icon + +PRESENT=`acpi -b`; +if [ "${PRESENT}" ]; then + STATUS=`echo ${PRESENT} | grep Charging`; + + RPERC=`echo ${PRESENT} | cut -d, -f2 | sed -e 's/[^0-9]//g'`; + + # draw the bar and pipe everything into dzen + if [ $RPERC -le $LOWBAT ]; then + GFG=$LOWCOL; + fi + if [ "${STATUS}" ]; then + GFG=$CHGCOL; + else + GFG='#33ccff'; + fi + echo $RPERC +else + echo '??' +fi diff --git a/dot_dzen/dzen.sh b/dot_dzen/dzen.sh new file mode 100755 index 0000000..0d2b8e4 --- /dev/null +++ b/dot_dzen/dzen.sh @@ -0,0 +1,156 @@ +#!/bin/sh + +typeset -A DISKS +### +# Config +### +DATE_FORMAT="%a %d %b, %Y" +TIME_ZONES=("America/Toronto" "UTC") +DISKS=(home /home root /) +SEPERATOR=' ^fg(#86AA3F)^c(3)^fg() ' +BAR_BG='#7DA926' +BAR_FG='#B9D56E' +BAR_HH=6 +BAR_HW=40 +BAR_VH=12 +BAR_VW=3 +BAR_ARGS="-bg $BAR_BG -fg $BAR_FG -w $BAR_HW -h $BAR_HH" +ICON_DIR="$HOME/.dzen/icons/" +NETWORK_INTERFACE=eth0 +NET_DOWN_MAX=55 +NET_UP_MAX=14 +MAILDIR=~/.maildb/GMAIL/ + +GLOBALIVAL=1m +DATEIVAL=60 +TIMEIVAL=1 +DISKIVAL=1 +#CPUTEMPIVAL=5 +#CPUIVAL=1 +#NPIVAL=3 +NETIVAL=1 + + +### +# Functions +### +_date() +{ + date +${DATE_FORMAT} +} + +_time() +{ + local zone + print_space=0 + for zone in $TIME_ZONES; do + [[ $print_space -eq 1 ]] && print -n " " + print -n "${zone:t}: $(TZ=$zone date '+%H:%M')" + print_space=1 + done +} + +# +# Format: label1 mountpoint1 label2 mountpoint2 ... labelN mountpointN +# Copied and modified from Rob +get_disk_usage() { + local rstr; local tstr; local i; local sep + for i in ${(k)DISKS}; do + tstr=$(print `df -h $DISKS[$i]|sed -ne 's/^.* \([0-9]*\)% .*/\1/p'` 100 | \ + dzen2-gdbar -h $BAR_HH -w $BAR_HW -fg $BAR_FG -bg $BAR_BG -l "${i}" -nonl | \ + sed 's/[0-9]\+%//g;s/ / /g') + if [ ! -z "$rstr" ]; then + sep=${SEPERATOR} + fi + rstr="${rstr}${sep}${tstr}" + done + print -n $rstr +} + +# Requires mesure +get_net_rates() { + local up; local down + up=`mesure -K -l -c 3 -t -o $NETWORK_INTERFACE` + down=`mesure -K -l -c 3 -t -i $NETWORK_INTERFACE` + echo "$down $up" +} + +#cpu_temp() +#{ +# print -n ${(@)$( +# modifications from original by +# show your laptop battery state in dzen +# Taken from http://www.webframp.com/2008/08/17/switchdzen/ and modified by Ryan +# Kavanagh to add support for a missing battery and use +# /sys instead of /proc/acpi/battery + +BG='#171717' # dzen backgrounad +FG='#11DD11' # dzen foreground +W=130 # width of the dzen bar +GW=50 # width of the gauge +GFG='#33ccff' # color of the gauge +GH=7 # height of the gauge +GBG='#333' # color of gauge background +X=922 # x position +Y=0 # y position +FN='snap' # font +TIME_INT=10 + +TEMPERATURE=`acpi -t` + +while true; do + echo $TEMPERATURE | sed -e 's/.*ok, //g' && sleep $TIME_INT +done | dzen2 -ta c -tw $W -y $Y -x $X -fg $FG -bg $BG #-fn $FN diff --git a/dot_gitconfig b/dot_gitconfig new file mode 100644 index 0000000..bead2ea --- /dev/null +++ b/dot_gitconfig @@ -0,0 +1,40 @@ +[user] + name = Ryan Kavanagh + email = rak@rak.ac +[color] + ui = auto +[sendemail] + smtpserver = /usr/sbin/sendmail +[alias] + wdiff = diff --color-words + pusha = push origin : + lg = !"git lg1" + lg1 = !"git lg1-specific --all" + lg2 = !"git lg2-specific --all" + lg3 = !"git lg3-specific --all" + lsd = !"git lg3-specific --all --simplify-by-decoration" + + lg1-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' + lg2-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' + lg3-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset) %C(bold cyan)(committed: %cD)%C(reset) %C(auto)%d%C(reset)%n'' %C(white)%s%C(reset)%n'' %C(dim white)- %an <%ae> %C(reset) %C(dim white)(committer: %cn <%ce>)%C(reset)' + + subrepo = !~/.local/lib/git-core/git-subrepo +[push] + default = simple +[url "git://anonscm.debian.org"] + insteadOf = "git://git.debian.org" +[url "ssh://git.debian.org"] + pushInsteadOf = "git://git.debian.org" +[rerere] + enabled = true +[url "git@salsa.debian.org:"] + pushInsteadOf = https://salsa.debian.org/ +[core] + quotePath = false +[includeIf "gitdir:/media/t/work/packaging/"] + path = ~/.gitconfig-debian +[diff] + mnemonicPrefix = true + algorithm = histogram +[diff "gpg"] + textconv = gpg --no-tty --decrypt diff --git a/dot_gitconfig-debian b/dot_gitconfig-debian new file mode 100644 index 0000000..409be7c --- /dev/null +++ b/dot_gitconfig-debian @@ -0,0 +1,3 @@ +[user] + name = Ryan Kavanagh + email = rak@debian.org diff --git a/dot_gtkrc-2.0 b/dot_gtkrc-2.0 new file mode 100644 index 0000000..99749fa --- /dev/null +++ b/dot_gtkrc-2.0 @@ -0,0 +1 @@ +gtk-key-theme-name = "Emacs" diff --git a/dot_inputrc b/dot_inputrc new file mode 100644 index 0000000..4fd5901 --- /dev/null +++ b/dot_inputrc @@ -0,0 +1,4 @@ +set meta-flag on +set convert-meta off +set output-meta on +set bell-style audible diff --git a/dot_mailcap b/dot_mailcap new file mode 100644 index 0000000..1a9ea17 --- /dev/null +++ b/dot_mailcap @@ -0,0 +1,7 @@ +text/html; mutt_bgrun firefox %s; nametemplate=%s.html +text/html; w3m -T text/html -dump %s; nametemplate=%s.html; copiousoutput +application/pdf; mutt_bgrun evince %s; nametemplate=%s.pdf; test=test "$DISPLAY" != ""; description=Portable Document Format +application/x-pdf; mupdf %s; nametemplate=%s.pdf; test=test "$DISPLAY" != ""; description=Portable Document Format +application/x-gzpdf; evince %s; nametemplate=%s.pdf.gz; test=test "$DISPLAY" != ""; description=Portable Document Format +application/x-bzpdf; evince %s; nametemplate=%s.pdf.bz2; test=test "$DISPLAY" != ""; description=Portable Document Format +audio/mpeg; mplayer %s; description=MPEG Audio diff --git a/dot_mailrc b/dot_mailrc new file mode 100644 index 0000000..aa2b595 --- /dev/null +++ b/dot_mailrc @@ -0,0 +1,6 @@ +set ask +set crt +set editheaders +ignore message-id received date fcc status resent-date resent-message-id resent-from in-reply-to + +set mailx-extra-rc=~/.s-nail.rc diff --git a/dot_sbuildrc b/dot_sbuildrc new file mode 100644 index 0000000..1d259f6 --- /dev/null +++ b/dot_sbuildrc @@ -0,0 +1,124 @@ +# example for ~/.sbuildrc. (Also see /etc/sbuild/sbuild.conf.) -*- Perl -*- +# +# Default settings are commented out. +# Additional options found in /etc/sbuild/sbuild.conf may be +# overridden here. + + +## +## DPKG-BUILDPACKAGE OPTIONS +## + +# Name to use as override in .changes files for the Maintainer: field +# Defaults to the DEBEMAIL environment variable, if set, or else the +# Maintainer: field will not be overridden unless set here. +#$maintainer_name='Francesco Paolo Lovergine '; + +# Name to use as override in .changes file for the Changed-By: field. +#$uploader_name='Francesco Paolo Lovergine '; + +# Key ID to use in .changes for the current upload. +# It overrides both $maintainer_name and $uploader_name +#$key_id='Francesco Paolo Lovergine '; + +# PGP-related option to pass to dpkg-buildpackage. Usually neither .dsc +# nor .changes files shall be signed automatically. +#$pgp_options = ['-us', '-uc']; + +# By default, do not build a source package (binary only build). +# Set to 1 to force creation of a source package, but note that +# this is inappropriate for binary NMUs, where the option will +# always be disabled. +#$build_source = 0; + +# By default, the -s option only includes the .orig.tar.gz when needed +# (i.e. when the Debian revision is 0 or 1). By setting this option +# to 1, the .orig.tar.gz will always be included when -s is used. +# This is equivalent to --force-orig-source. +#$force_orig_source = 0; + +# PATH to set when running dpkg-buildpackage. +#$path = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/usr/games"; + +# This command is run with the dpkg-buildpackage command line passed to it +# (in the chroot, if doing a chrooted build). It is used by the sparc buildd +# (which is sparc64) to call the wrapper script that sets the environment to +# sparc (32-bit). It could be used for other build environment setup scripts +# +#$build_env_cmnd = ""; + +$build_arch_all = 1; + +$run_lintian = 1; +$lintian_opts = ['-i', '-I', '-v', '-E']; + +## +## SBUILD BEHAVIOUR +## + +# Default distribution. By default, no distribution is defined, and +# the user must specify it with the -d option. However, a default may +# be configured here if desired. Users must take care not to upload +# to the wrong distribution when this option is set, for example +# experimental packages will be built for upload to unstable when this +# is not what is required. +$distribution = 'unstable'; + +# Default chroot (defaults to distribution[-arch][-sbuild]) +$chroot = 'chroot:unstable-amd64'; + +# When to purge the build directory afterwards; possible values are "never", +# "successful", and "always" +#$purge_build_directory="successful"; +# We use LVM snapshots, no need +$purge_build_directory="never"; + +# sbuild behaviour; possible values are "user" (exit status reports +# build failures) and "buildd" (exit status does not report build +# failures) for use in a buildd setup. +#$sbuild_mode = "user"; + + +## +## TIMEOUTS +## + +# Time to wait for a source dependency lock. The default is 1 minute. +#$srcdep_lock_wait = 1; # 1 minute + +# Time (in minutes) of inactivity after which a build is terminated. Activity +# is measured by output to the log file. +#$stalled_pkg_timeout = 150; + +# Some packages may exceed the general timeout (e.g. redirecting output to +# a file) and need a different timeout. Below are some examples. +#%individual_stalled_pkg_timeout = (smalleiffel => 300, +# jade => 300, +# atlas => 300, +# glibc => 1000, +# 'gcc-3.3' => 300, +# kwave => 600); +# + +## +## FILE AND DIRECTORY LOCATIONS +## + +# This option is deprecated. Directory for chroot symlinks and sbuild +# logs. Defaults to the current directory if unspecified. It is used +# as the location of chroot symlinks (obsolete) and for current build +# log symlinks and some build logs. There is no default; if unset, it +# defaults to the current working directory. $HOME/build is another +# common configuration. +#$build_dir = undef; + +# Directory for writing build logs to +$log_dir = "$HOME/tmp/sbuild/logs"; + +# Directory for writing build statistics to +$stats_dir = "$HOME/tmp/sbuild/stats"; + + +# don't remove this, Perl needs it: +1; + diff --git a/dot_signature b/dot_signature new file mode 100644 index 0000000..8ae035d --- /dev/null +++ b/dot_signature @@ -0,0 +1,2 @@ +|)|/ Ryan Kavanagh | 4E46 9519 ED67 7734 268F +|\|\ https://rak.ac | BD95 8F7B F8FC 4A11 C97A diff --git a/dot_vf1rc b/dot_vf1rc new file mode 100644 index 0000000..22c33c4 --- /dev/null +++ b/dot_vf1rc @@ -0,0 +1,3 @@ +handler image/* display %s +set color_menus True +g gopher://rak.ac/ -- cgit v1.2.3