piper 10 months ago
commit
2ddd45e9cd
  1. 4
      build.sh
  2. 170
      config/binary
  3. 7
      config/bootloaders/isolinux/advanced.cfg
  4. 1
      config/bootloaders/isolinux/hdt.c32
  5. 11
      config/bootloaders/isolinux/install.cfg
  6. 1
      config/bootloaders/isolinux/isolinux.bin
  7. 4
      config/bootloaders/isolinux/isolinux.cfg
  8. 1
      config/bootloaders/isolinux/ldlinux.c32
  9. 1
      config/bootloaders/isolinux/libcom32.c32
  10. 1
      config/bootloaders/isolinux/libgpl.c32
  11. 1
      config/bootloaders/isolinux/libmenu.c32
  12. 1
      config/bootloaders/isolinux/libutil.c32
  13. 12
      config/bootloaders/isolinux/live.cfg.in
  14. 10
      config/bootloaders/isolinux/menu.cfg
  15. BIN
      config/bootloaders/isolinux/splash.png
  16. 15
      config/bootloaders/isolinux/stdmenu.cfg
  17. 1
      config/bootloaders/isolinux/vesamenu.c32
  18. 89
      config/bootstrap
  19. 11
      config/build
  20. 125
      config/common
  21. 1
      config/hooks/live/0010-disable-kexec-tools.hook.chroot
  22. 1
      config/hooks/live/0030-chown-user-home.chroot
  23. 1
      config/hooks/live/0050-disable-sysvinit-tmpfs.hook.chroot
  24. 1
      config/hooks/normal/0020-create-mtab-symlink.hook.chroot
  25. 1
      config/hooks/normal/0030-enable-cryptsetup.hook.chroot
  26. 1
      config/hooks/normal/0040-create-locales-files.hook.chroot
  27. 1
      config/hooks/normal/0100-remove-adjtime-configuration.hook.chroot
  28. 1
      config/hooks/normal/0110-remove-backup-files.hook.chroot
  29. 1
      config/hooks/normal/0120-remove-dbus-machine-id.hook.chroot
  30. 1
      config/hooks/normal/0130-remove-gnome-icon-cache.hook.chroot
  31. 1
      config/hooks/normal/0140-remove-log-files.hook.chroot
  32. 1
      config/hooks/normal/0150-remove-mdadm-configuration.hook.chroot
  33. 1
      config/hooks/normal/0160-remove-openssh-server-host-keys.hook.chroot
  34. 1
      config/hooks/normal/0170-remove-python-py.hook.chroot
  35. 1
      config/hooks/normal/0180-remove-systemd-machine-id.hook.chroot
  36. 1
      config/hooks/normal/0190-remove-temporary-files.hook.chroot
  37. 1
      config/hooks/normal/0195-remove-ssl-cert-snakeoil.hook.chroot
  38. 1
      config/hooks/normal/0200-remove-udev-persistent-cd-rules.hook.chroot
  39. 1
      config/hooks/normal/0300-remove-udev-persistent-net-rules.hook.chroot
  40. 1
      config/hooks/normal/0400-update-apt-file-cache.hook.chroot
  41. 1
      config/hooks/normal/0410-update-apt-xapian-index.hook.chroot
  42. 1
      config/hooks/normal/0420-update-glx-alternative.hook.chroot
  43. 1
      config/hooks/normal/0430-update-mlocate-database.hook.chroot
  44. 1
      config/hooks/normal/0440-update-nvidia-alternative.hook.chroot
  45. 156
      config/includes.chroot/home/user/.bashrc
  46. 27
      config/includes.chroot/home/user/.bashrcPromptComplex
  47. 15
      config/includes.chroot/home/user/.config/xfce4/desktop/icons.screen0-1008x721.rc
  48. 3
      config/includes.chroot/home/user/.config/xfce4/helpers.rc
  49. 80
      config/includes.chroot/home/user/.config/xfce4/panel/whiskermenu-4.rc
  50. 56
      config/includes.chroot/home/user/.config/xfce4/terminal/accels.scm
  51. 33
      config/includes.chroot/home/user/.config/xfce4/terminal/terminalrc
  52. 7
      config/includes.chroot/home/user/.config/xfce4/xfconf/xfce-perchannel-xml/keyboards.xml
  53. 5
      config/includes.chroot/home/user/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml
  54. 96
      config/includes.chroot/home/user/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml
  55. 154
      config/includes.chroot/home/user/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml
  56. 33
      config/includes.chroot/home/user/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml
  57. 36
      config/includes.chroot/home/user/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
  58. 87
      config/includes.chroot/home/user/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml
  59. 39
      config/includes.chroot/home/user/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml
  60. 586
      config/includes.chroot/home/user/.git-prompt.sh
  61. 22
      config/package-lists/desktop.list.chroot
  62. 3
      config/package-lists/live.list.chroot
  63. 26
      config/package-lists/tools.list.chroot
  64. 9
      config/source
  65. 21
      setup.sh

4
build.sh

@ -0,0 +1,4 @@
#!/bin/bash
lb clean --purge
lb build

170
config/binary

@ -0,0 +1,170 @@
# config/binary - options for live-build(7), binary stage
# $LB_BINARY_FILESYSTEM: set image filesystem
# (Default: fat32)
LB_BINARY_FILESYSTEM="fat32"
# $LB_APT_INDICES: set apt/aptitude generic indices
# (Default: false)
LB_APT_INDICES="false"
# $LB_BOOTAPPEND_LIVE: set boot parameters
# (Default: empty)
LB_BOOTAPPEND_LIVE="boot=live components quiet splash"
# $LB_BOOTAPPEND_INSTALL: set boot parameters
# (Default: empty)
LB_BOOTAPPEND_INSTALL=""
# $LB_BOOTAPPEND_LIVE_FAILSAFE: set boot parameters
# (Default: empty)
LB_BOOTAPPEND_LIVE_FAILSAFE="boot=live components memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal"
# $LB_BOOTLOADERS: set bootloaders
# (Default: syslinux,grub-efi)
LB_BOOTLOADERS="syslinux,grub-efi"
# $LB_CHECKSUMS: set checksums
# (Default: md5)
LB_CHECKSUMS="md5"
# $LB_COMPRESSION: set compression
# (Default: none)
LB_COMPRESSION="none"
# $LB_ZSYNC: set zsync
# (Default: true)
LB_ZSYNC="true"
# ${LB_BUILD_WITH_CHROOT: control if we build binary images chrooted
# (Default: true)
# DO NEVER, *NEVER*, *N*E*V*E*R* SET THIS OPTION to false.
LB_BUILD_WITH_CHROOT="true"
# $LB_DEBIAN_INSTALLER: set debian-installer
# (Default: false)
LB_DEBIAN_INSTALLER="false"
# $LB_DEBIAN_INSTALLER_DISTRIBUTION: set debian-installer suite
# (Default: empty)
LB_DEBIAN_INSTALLER_DISTRIBUTION="buster"
# $LB_DEBIAN_INSTALLER_PRESEEDFILE: set debian-installer preseed filename/url
# (Default: )
LB_DEBIAN_INSTALLER_PRESEEDFILE=""
# $LB_DEBIAN_INSTALLER_GUI: toggle use of GUI debian-installer
# (Default: false)
LB_DEBIAN_INSTALLER_GUI="false"
# $LB_GRUB_SPLASH: set custom grub splash
# (Default: empty)
LB_GRUB_SPLASH=""
# $LB_HDD_LABEL: set hdd label
# (Default: DEBIAN_LIVE)
LB_HDD_LABEL="DEBIAN_LIVE"
# $LB_HDD_SIZE: set hdd filesystem size
# (Default: auto)
LB_HDD_SIZE="auto"
# $LB_HDD_PARTITION_START: set start of partition for the hdd target for BIOSes that expect a specific boot partition start (e.g. "63s"). If empty, use optimal layout.
# (Default: )
LB_HDD_PARTITION_START=""
# $LB_ISO_APPLICATION: set iso author
# (Default: r/techsupport testing and rescue media)
LB_ISO_APPLICATION="r/techsupport testing and rescue media"
# $LB_ISO_PREPARER: set iso preparer
# (Default: PipeItToDevNull)
LB_ISO_PREPARER="PipeItToDevNull"
# $LB_ISO_PUBLISHER: set iso publisher
# (Default: r/techsupport)
LB_ISO_PUBLISHER="r/techsupport"
# $LB_ISO_VOLUME: set iso volume (max 32 chars)
# (Default: Debian buster 20201210-11:07)
LB_ISO_VOLUME="Debian buster 20201210-11:07"
# $LB_JFFS2_ERASEBLOCK: set jffs2 eraseblock size
# (Default: unset)
LB_JFFS2_ERASEBLOCK=""
# $LB_MEMTEST: set memtest
# (Default: memtest86+)
LB_MEMTEST="memtest86+"
# $LB_LOADLIN: set loadlin
# (Default: false)
LB_LOADLIN="false"
# $LB_WIN32_LOADER: set win32-loader
# (Default: false)
LB_WIN32_LOADER="false"
# $LB_NET_ROOT_FILESYSTEM: set netboot filesystem
# (Default: nfs)
LB_NET_ROOT_FILESYSTEM="nfs"
# $LB_NET_ROOT_MOUNTOPTIONS: set nfsopts
# (Default: empty)
LB_NET_ROOT_MOUNTOPTIONS=""
# $LB_NET_ROOT_PATH: set netboot server directory
# (Default: /srv/debian-live)
LB_NET_ROOT_PATH="/srv/debian-live"
# $LB_NET_ROOT_SERVER: set netboot server address
# (Default: 192.168.1.1)
LB_NET_ROOT_SERVER="192.168.1.1"
# $LB_NET_COW_FILESYSTEM: set net client cow filesystem
# (Default: nfs)
LB_NET_COW_FILESYSTEM="nfs"
# $LB_NET_COW_MOUNTOPTIONS: set cow mount options
# (Default: empty)
LB_NET_COW_MOUNTOPTIONS=""
# $LB_NET_COW_PATH: set cow directory
# (Default: )
LB_NET_COW_PATH=""
# $LB_NET_COW_SERVER: set cow server
# (Default: )
LB_NET_COW_SERVER=""
# $LB_NET_TARBALL: set net tarball
# (Default: true)
LB_NET_TARBALL="true"
# $LB_ONIE: set onie
# (Default: false)
LB_ONIE="false"
# $LB_ONIE_KERNEL_CMDLINE: set onie additional kernel cmdline options
# (Default: )
LB_ONIE_KERNEL_CMDLINE=""
# $LB_FIRMWARE_BINARY: include firmware packages in debian-installer
# (Default: true)
LB_FIRMWARE_BINARY="true"
# $LB_FIRMWARE_CHROOT: include firmware packages in debian-installer
# (Default: true)
LB_FIRMWARE_CHROOT="true"
# $LB_SWAP_FILE_PATH: set swap file path
# (Default: )
LB_SWAP_FILE_PATH=""
# $LB_SWAP_FILE_SIZE: set swap file size
# (Default: 512)
LB_SWAP_FILE_SIZE="512"
# $LB_UEFI_SECURE_BOOT: enable/disable UEFI secure boot
# (Default: auto)
LB_UEFI_SECURE_BOOT="auto"

7
config/bootloaders/isolinux/advanced.cfg

@ -0,0 +1,7 @@
#label hdt
# menu label ^Hardware Detection Tool (HDT)
# com32 hdt.c32
#
label memtest
menu label ^Memory Diagnostic Tool (memtest86+)
linux /live/memtest

1
config/bootloaders/isolinux/hdt.c32

@ -0,0 +1 @@
/usr/lib/syslinux/modules/bios/hdt.c32

11
config/bootloaders/isolinux/install.cfg

@ -0,0 +1,11 @@
label installgui
menu label ^Graphical install
linux /install/gtk/vmlinuz
initrd /install/gtk/initrd.gz
append video=vesa:ywrap,mtrr vga=788 @APPEND_INSTALL@ --- quiet
label install
menu label ^Install
linux /install/vmlinuz
initrd /install/initrd.gz
append vga=788 @APPEND_INSTALL@ --- quiet

1
config/bootloaders/isolinux/isolinux.bin

@ -0,0 +1 @@
/usr/lib/ISOLINUX/isolinux.bin

4
config/bootloaders/isolinux/isolinux.cfg

@ -0,0 +1,4 @@
include menu.cfg
default vesamenu.c32
prompt 0
timeout 0

1
config/bootloaders/isolinux/ldlinux.c32

@ -0,0 +1 @@
/usr/lib/syslinux/modules/bios/ldlinux.c32

1
config/bootloaders/isolinux/libcom32.c32

@ -0,0 +1 @@
/usr/lib/syslinux/modules/bios/libcom32.c32

1
config/bootloaders/isolinux/libgpl.c32

@ -0,0 +1 @@
/usr/lib/syslinux/modules/bios/libgpl.c32

1
config/bootloaders/isolinux/libmenu.c32

@ -0,0 +1 @@
/usr/lib/syslinux/modules/bios/libmenu.c32

1
config/bootloaders/isolinux/libutil.c32

@ -0,0 +1 @@
/usr/lib/syslinux/modules/bios/libutil.c32

12
config/bootloaders/isolinux/live.cfg.in

@ -0,0 +1,12 @@
label live-@FLAVOUR@
menu label ^Live (@FLAVOUR@)
menu default
linux @LINUX@
initrd @INITRD@
append @APPEND_LIVE@
label live-@FLAVOUR@-failsafe
menu label ^Live (@FLAVOUR@ failsafe)
linux @LINUX@
initrd @INITRD@
append @APPEND_LIVE_FAILSAFE@

10
config/bootloaders/isolinux/menu.cfg

@ -0,0 +1,10 @@
menu hshift 0
menu width 82
menu title rTechsupport Rescue Media
include stdmenu.cfg
include live.cfg
include advanced.cfg
menu end
menu clear

BIN
config/bootloaders/isolinux/splash.png

After

Width: 640  |  Height: 480  |  Size: 36 KiB

15
config/bootloaders/isolinux/stdmenu.cfg

@ -0,0 +1,15 @@
menu background splash.png
menu color title * #FFFFFFFF *
menu color border * #00000000 #00000000 none
menu color sel * #ffffffff #76a1d0ff *
menu color hotsel 1;7;37;40 #ffffffff #76a1d0ff *
menu color tabmsg * #ffffffff #00000000 *
menu color help 37;40 #ffdddd00 #00000000 none
menu vshift 12
menu rows 10
menu helpmsgrow 15
# The command line must be at least one line from the bottom.
menu cmdlinerow 16
menu timeoutrow 16
menu tabmsgrow 18
menu tabmsg Press ENTER to boot or TAB to edit a menu entry

1
config/bootloaders/isolinux/vesamenu.c32

@ -0,0 +1 @@
/usr/lib/syslinux/modules/bios/vesamenu.c32

89
config/bootstrap

@ -0,0 +1,89 @@
# config/bootstrap - options for live-build(7), bootstrap stage
# $LB_DISTRIBUTION: select distribution to use
# (Default: buster)
LB_DISTRIBUTION="buster"
# $LB_PARENT_DISTRIBUTION: select parent distribution to use
# (Default: )
LB_PARENT_DISTRIBUTION=""
# $LB_DISTRIBUTION_CHROOT: select distribution to use in the chroot
# (Default: buster)
LB_DISTRIBUTION_CHROOT="buster"
# $LB_PARENT_DISTRIBUTION_CHROOT: select parent distribution to use in the chroot
# (Default: buster)
LB_PARENT_DISTRIBUTION_CHROOT="buster"
# $LB_DISTRIBUTION_BINARY: select distribution to use in the final image
# (Default: buster)
LB_DISTRIBUTION_BINARY="buster"
# $LB_PARENT_DISTRIBUTION_BINARY: select parent distribution to use in the final image
# (Default: buster)
LB_PARENT_DISTRIBUTION_BINARY="buster"
# $LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION: select parent distribution for debian-installer to use
# (Default: buster)
LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION="buster"
# $LB_PARENT_MIRROR_BOOTSTRAP: set parent mirror to bootstrap from
# (Default: http://deb.debian.org/debian/)
LB_PARENT_MIRROR_BOOTSTRAP="http://deb.debian.org/debian/"
# $LB_PARENT_MIRROR_CHROOT: set parent mirror to fetch packages from
# (Default: http://deb.debian.org/debian/)
LB_PARENT_MIRROR_CHROOT="http://deb.debian.org/debian/"
# $LB_PARENT_MIRROR_CHROOT_SECURITY: set security parent mirror to fetch packages from
# (Default: http://security.debian.org/)
LB_PARENT_MIRROR_CHROOT_SECURITY="http://security.debian.org/"
# $LB_PARENT_MIRROR_BINARY: set parent mirror which ends up in the image
# (Default: http://deb.debian.org/debian/)
LB_PARENT_MIRROR_BINARY="http://deb.debian.org/debian/"
# $LB_PARENT_MIRROR_BINARY_SECURITY: set security parent mirror which ends up in the image
# (Default: http://security.debian.org/)
LB_PARENT_MIRROR_BINARY_SECURITY="http://security.debian.org/"
# $LB_PARENT_MIRROR_DEBIAN_INSTALLER: set debian-installer parent mirror
# (Default: http://deb.debian.org/debian/)
LB_PARENT_MIRROR_DEBIAN_INSTALLER="http://deb.debian.org/debian/"
# $LB_MIRROR_BOOTSTRAP: set mirror to bootstrap from
# (Default: http://deb.debian.org/debian/)
LB_MIRROR_BOOTSTRAP="http://deb.debian.org/debian/"
# $LB_MIRROR_CHROOT: set mirror to fetch packages from
# (Default: http://deb.debian.org/debian/)
LB_MIRROR_CHROOT="http://deb.debian.org/debian/"
# $LB_MIRROR_CHROOT_SECURITY: set security mirror to fetch packages from
# (Default: http://security.debian.org/)
LB_MIRROR_CHROOT_SECURITY="http://security.debian.org/"
# $LB_MIRROR_BINARY: set mirror which ends up in the image
# (Default: http://deb.debian.org/debian/)
LB_MIRROR_BINARY="http://deb.debian.org/debian/"
# $LB_MIRROR_BINARY_SECURITY: set security mirror which ends up in the image
# (Default: http://security.debian.org/)
LB_MIRROR_BINARY_SECURITY="http://security.debian.org/"
# $LB_MIRROR_DEBIAN_INSTALLER: set debian-installer mirror
# (Default: http://deb.debian.org/debian/)
LB_MIRROR_DEBIAN_INSTALLER="http://deb.debian.org/debian/"
# $LB_BOOTSTRAP_QEMU_ARCHITECTURES: architectures to use foreign bootstrap
# (Default: )
LB_BOOTSTRAP_QEMU_ARCHITECTURES=""
# $LB_BOOTSTRAP_QEMU_EXCLUDE: packages to exclude during foreign bootstrap
# (Default: )
LB_BOOTSTRAP_QEMU_EXCLUDE=""
# $LB_BOOTSTRAP_QEMU_STATIC: static qemu binary for foreign bootstrap
# (Default: )
LB_BOOTSTRAP_QEMU_STATIC=""

11
config/build

@ -0,0 +1,11 @@
[Image]
Architecture: amd64
Archive-Areas: main contrib non-free
Distribution-Chroot: buster
Distribution-Binary: buster
Mirror-Bootstrap: http://deb.debian.org/debian/
[FIXME]
Configuration-Version: 1:20191221kali5
Name: live-image
Type: iso

125
config/common

@ -0,0 +1,125 @@
# config/common - common options for live-build(7)
# $LB_APT: set package manager
# (Default: apt)
LB_APT="apt"
# $LB_APT_FTP_PROXY: set apt/aptitude ftp proxy
# (Default: autodetected or empty)
LB_APT_FTP_PROXY=""
# $LB_APT_HTTP_PROXY: set apt/aptitude http proxy
# (Default: autodetected or empty)
LB_APT_HTTP_PROXY=""
# $LB_APT_PIPELINE: set apt/aptitude pipeline depth
# (Default: )
LB_APT_PIPELINE=""
# $LB_APT_RECOMMENDS: set apt/aptitude recommends
# (Default: true)
LB_APT_RECOMMENDS="true"
# $LB_APT_SECURE: set apt/aptitude security
# (Default: true)
LB_APT_SECURE="true"
# $LB_APT_SOURCE_ARCHIVES: set apt/aptitude source entries in sources.list
# (Default: true)
LB_APT_SOURCE_ARCHIVES="true"
# $LB_CACHE: control cache
# (Default: false)
LB_CACHE="false"
# $LB_CACHE_INDICES: control if downloaded package indices should be cached
# (Default: false)
LB_CACHE_INDICES="false"
# $LB_CACHE_PACKAGES: control if downloaded packages files should be cached
# (Default: true)
LB_CACHE_PACKAGES="true"
# $LB_CACHE_STAGES: control if completed stages should be cached
# (Default: bootstrap)
LB_CACHE_STAGES="bootstrap"
# $LB_DEBCONF_FRONTEND: set debconf(1) frontend to use
# (Default: noninteractive)
LB_DEBCONF_FRONTEND="noninteractive"
# $LB_DEBCONF_PRIORITY: set debconf(1) priority to use
# (Default: critical)
LB_DEBCONF_PRIORITY="critical"
# $LB_INITRAMFS: set initramfs hook
# (Default: live-boot)
LB_INITRAMFS="live-boot"
# $LB_INITRAMFS_COMPRESSION: set initramfs compression
# (Default: gzip)
LB_INITRAMFS_COMPRESSION="gzip"
# $LB_INITSYSTEM: set init system
# (Default: systemd)
LB_INITSYSTEM="systemd"
# $LB_FDISK: set fdisk program
# (Default: autodetected)
LB_FDISK="fdisk"
# $LB_LOSETUP: set losetup program
# (Default: autodetected)
LB_LOSETUP="losetup"
# $LB_MODE: set distribution mode
# (Default: debian)
LB_MODE="debian"
# $LB_SYSTEM: set system type
# (Default: live)
LB_SYSTEM="live"
# $LB_TASKSEL: set tasksel program
# (Default: apt)
LB_TASKSEL="apt"
# live-build options
# $_BREAKPOINTS: enable breakpoints
# If set here, overrides the command line option
# (Default: false)
#_BREAKPOINTS="false"
# $_DEBUG: enable debug
# If set here, overrides the command line option
# (Default: false)
#_DEBUG="false"
# $_COLOR: enable color
# If set here, overrides the command line option
# (Default: false)
#_COLOR="false"
# $_FORCE: enable force
# If set here, overrides the command line option
# (Default: false)
#_FORCE="false"
# $_QUIET: enable quiet
# If set here, overrides the command line option
# (Default: false)
#_QUIET="false"
# $_VERBOSE: enable verbose
# If set here, overrides the command line option
# (Default: false)
#_VERBOSE="false"
# Internal stuff (FIXME)
APT_OPTIONS="--yes -o Acquire::Retries=5"
APTITUDE_OPTIONS="--assume-yes -o Acquire::Retries=5"
DEBOOTSTRAP_OPTIONS=""
DEBOOTSTRAP_SCRIPT=""
GZIP_OPTIONS="-6 --rsyncable"
ISOHYBRID_OPTIONS=""

1
config/hooks/live/0010-disable-kexec-tools.hook.chroot

@ -0,0 +1 @@
/usr/share/live/build/hooks/live/0010-disable-kexec-tools.hook.chroot

1
config/hooks/live/0030-chown-user-home.chroot

@ -0,0 +1 @@
chown 1000:1000 -R /home/user

1
config/hooks/live/0050-disable-sysvinit-tmpfs.hook.chroot

@ -0,0 +1 @@
/usr/share/live/build/hooks/live/0050-disable-sysvinit-tmpfs.hook.chroot

1
config/hooks/normal/0020-create-mtab-symlink.hook.chroot

@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/0020-create-mtab-symlink.hook.chroot

1
config/hooks/normal/0030-enable-cryptsetup.hook.chroot

@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/0030-enable-cryptsetup.hook.chroot

1
config/hooks/normal/0040-create-locales-files.hook.chroot

@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/0040-create-locales-files.hook.chroot

1
config/hooks/normal/0100-remove-adjtime-configuration.hook.chroot

@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/0100-remove-adjtime-configuration.hook.chroot

1
config/hooks/normal/0110-remove-backup-files.hook.chroot

@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/0110-remove-backup-files.hook.chroot

1
config/hooks/normal/0120-remove-dbus-machine-id.hook.chroot

@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/0120-remove-dbus-machine-id.hook.chroot

1
config/hooks/normal/0130-remove-gnome-icon-cache.hook.chroot

@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/0130-remove-gnome-icon-cache.hook.chroot

1
config/hooks/normal/0140-remove-log-files.hook.chroot

@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/0140-remove-log-files.hook.chroot

1
config/hooks/normal/0150-remove-mdadm-configuration.hook.chroot

@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/0150-remove-mdadm-configuration.hook.chroot

1
config/hooks/normal/0160-remove-openssh-server-host-keys.hook.chroot

@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/0160-remove-openssh-server-host-keys.hook.chroot

1
config/hooks/normal/0170-remove-python-py.hook.chroot

@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/0170-remove-python-py.hook.chroot

1
config/hooks/normal/0180-remove-systemd-machine-id.hook.chroot

@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/0180-remove-systemd-machine-id.hook.chroot

1
config/hooks/normal/0190-remove-temporary-files.hook.chroot

@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/0190-remove-temporary-files.hook.chroot

1
config/hooks/normal/0195-remove-ssl-cert-snakeoil.hook.chroot

@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/0195-remove-ssl-cert-snakeoil.hook.chroot

1
config/hooks/normal/0200-remove-udev-persistent-cd-rules.hook.chroot

@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/0200-remove-udev-persistent-cd-rules.hook.chroot

1
config/hooks/normal/0300-remove-udev-persistent-net-rules.hook.chroot

@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/0300-remove-udev-persistent-net-rules.hook.chroot

1
config/hooks/normal/0400-update-apt-file-cache.hook.chroot

@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/0400-update-apt-file-cache.hook.chroot

1
config/hooks/normal/0410-update-apt-xapian-index.hook.chroot

@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/0410-update-apt-xapian-index.hook.chroot

1
config/hooks/normal/0420-update-glx-alternative.hook.chroot

@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/0420-update-glx-alternative.hook.chroot

1
config/hooks/normal/0430-update-mlocate-database.hook.chroot

@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/0430-update-mlocate-database.hook.chroot

1
config/hooks/normal/0440-update-nvidia-alternative.hook.chroot

@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/0440-update-nvidia-alternative.hook.chroot

156
config/includes.chroot/home/user/.bashrc

@ -0,0 +1,156 @@
# ~/.bashrc: executed by bash(1) for non-login shells.
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;; esac
export TERM=xterm
set -o vi
########
# Path #
########
export PATH=$PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/share/games:/sbin:/usr/sbin:/snap/bin:~/bin
###########
# History #
###########
HISTCONTROL=ignoreboth
shopt -s histappend
shopt -s cdspell
HISTSIZE=1000
HISTFILESIZE=2000
HISTIGNORE="jrnl *"
###############
# Winsize fix #
###############
shopt -s checkwinsize
###########
# Prompts #
###########
# Prompts come from the alt files that can be chain loaded with `source`
#######################
# Colorize + Humanize #
#######################
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls -h --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
#################
# Auto Complete #
#################
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
#########
# Title #
#########
# This will run before any command is executed.
function PreCommand() {
if [ -z "$AT_PROMPT" ]; then
return
fi
unset AT_PROMPT
# Do stuff.
trap 'echo -ne "\033]2;$(history 1 | sed "s/^[ ]*[0-9]*[ ]*//g")\007"' DEBUG
}
trap "PreCommand" DEBUG
# This will run after the execution of the previous full command line. We don't
# want it PostCommand to execute when first starting a bash session (i.e., at
# the first prompt).
FIRST_PROMPT=1
function PostCommand() {
AT_PROMPT=1
if [ -n "$FIRST_PROMPT" ]; then
unset FIRST_PROMPT
return
fi
# Do stuff.
#echo "Return"
}
PROMPT_COMMAND="PostCommand"
##############
# Source RVM #
##############
#source /etc/profile.d/rvm.sh
###########
# Aliases #
###########
alias r='source ~/.bashrc'
alias pub='curl -s ipinfo.io/ip'
alias x='startx'
alias iptables-list='sudo iptables -L -n --line-numbers'
alias rm='rm -i'
alias clean-comments="grep -o '^[^#]*'"
alias dex='docker exec -it $1 /bin/bash'
alias share="fc -s > /tmp/share ; curl -T /tmp/share -H 'Linx-Expiry: 600' -H 'Linx-Randomize: yes' https://share.dev0.sh/upload/ ; rm -f /tmp/share"
alias git-update="for d in */; do cd "$d" ; git pull origin master ; cd .. ;done"
# Docker
alias docker-stats='docker ps --format "table {{.Names}}\t{{.RunningFor}}\t{{.Status}}\t{{.Ports}}"'
alias docker-update='docker-compose down && docker-compose pull && docker-compose up -d --build'
# bash env
alias upbash='curl -s -L -k https://git.dev0.sh/piper/rcs/raw/branch/master/bashrc > ~/.bashrc && curl -s -L -k https://git.dev0.sh/piper/rcs/raw/branch/master/bashrcPromptSimple > ~/.bashrcPromptSimple && curl -s -L -k https://git.dev0.sh/piper/rcs/raw/branch/master/bashrcPromptComplex > ~/.bashrcPromptComplex && curl -s -L -k https://git.dev0.sh/piper/rcs/raw/branch/master/bashrcPromptPowerline > ~/.bashrcPromptPowerline && source ~/.bashrc'
alias getvim='curl -s -L -k https://git.dev0.sh/piper/rcs/raw/branch/master/vimrc > ~/.vimrc ; mkdir ~/.bak'
alias upvim='curl -s -L -k https://git.dev0.sh/piper/rcs/raw/branch/master/vimrc > ~/.vimrc'
alias getgit='curl -s https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh > ~/.git-prompt.sh && source ~/.bashrc'
alias simple='source .bashrcPromptSimple'
alias complex='source .bashrcPromptComplex'
# Sudo Fixes
alias apt='sudo apt'
alias dpkg='sudo dpkg'
alias eopkg='sudo eopkg'
alias yum='sudo yum'
alias pacman='sudo pacman'
alias zypper='sudo zypper'
#Functions
function wttr {
curl wttr.in/"$1";
}
function speed {
curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -;
}
function git-setup {
gpg --list-secret-keys --keyid-format LONG
echo 'git-setup "name" "email" "ssb"'
git config --local user.name "$1"
git config --local user.email "$2"
git config --local user.signingkey "$3"
git config --local tag.forceSignAnnotated true
git config --local push.gpgsign if-asked
git config --global commit.gpgsign true
}
# Exports
export -f wttr
export PATH="$PATH:$HOME/.rvm/"
export -f speed
export VISUAL=vim
export EDITOR="$VISUAL"
# Commands
#echo -e "Hi, I am $(hostname). I am working with $(free -h | sed -n '2p' | awk '{print $4}') out of $(free -h | sed -n '2p' | awk '{print $2}') of RAM. I have been $(uptime -p). I can be found here $(ip route | sed -n '1p' | awk '{print $3}') and $(pub)."
source ~/.bashrcPromptComplex

27
config/includes.chroot/home/user/.bashrcPromptComplex

@ -0,0 +1,27 @@
###########
# Prompts #
###########
color_prompt=yes
RED="$(tput setaf 1)"
BRED="$(tput bold; tput setaf 1)"
RESET="$(tput sgr0)"
BLUE="$(tput setaf 4)"
GREEN="$(tput setaf 2)"
YELLOW="$(tput setaf 3)"
CYAN="$(tput setaf 6)"
PURPLE="$(tput setaf 5)"
TIME="$(date +%H:%M:%S)"
source ~/.git-prompt.sh
export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWUPSTREAM="auto"
export GIT_PS1_SHOWSTASHSTATE=1
export GIT_PS1_SHOWUNTRACKEDFILES=1
if [ -n "$SSH_CLIENT" ]; then SES="$(tput setaf 3)ssh"; else SES="$(tput setaf 2)local"; fi
if [ $(whoami) == root ]; then USER="$(tput blink)$(tput setaf 1)groot$(tput sgr0)"; else USER="$(tput setaf 4)$(whoami)"; fi
PS1='\[$BRED\]┌[\[$RESET\]$USER\[$YELLOW\]@\[$PURPLE\]\H\[$BRED\]][\[$RESET\]\[$CYAN\]$(__git_ps1 "%s|")\w\[$BRED\]]\n\[$BRED\]┕\[$RESET\] '

15
config/includes.chroot/home/user/.config/xfce4/desktop/icons.screen0-1008x721.rc

@ -0,0 +1,15 @@
[xfdesktop-version-4.10.3+-rcfile_format]
4.10.3+=true
[Trash]
row=0
col=0
[/]
row=1
col=0
[/home/user]
row=2
col=0

3
config/includes.chroot/home/user/.config/xfce4/helpers.rc

@ -0,0 +1,3 @@
WebBrowser=firefox
TerminalEmulator=xfce4-terminal

80
config/includes.chroot/home/user/.config/xfce4/panel/whiskermenu-4.rc

@ -0,0 +1,80 @@
favorites=exo-terminal-emulator.desktop,exo-file-manager.desktop,exo-web-browser.desktop
recent=exo-preferred-applications.desktop,exo-terminal-emulator.desktop,exo-web-browser.desktop
button-title=Applications
button-icon=xfce4-panel-menu
button-single-row=false
show-button-title=false
show-button-icon=true
launcher-show-name=true
launcher-show-description=true
launcher-show-tooltip=true
item-icon-size=2
hover-switch-category=false
category-show-name=true
category-icon-size=1
load-hierarchy=false
recent-items-max=10
favorites-in-recent=true
display-recent-default=false
position-search-alternate=false
position-commands-alternate=false
position-categories-alternate=false
stay-on-focus-out=false
confirm-session-command=true
menu-width=360
menu-height=400
menu-opacity=100
command-settings=xfce4-settings-manager
show-command-settings=true
command-lockscreen=xflock4
show-command-lockscreen=true
command-switchuser=dm-tool switch-to-greeter
show-command-switchuser=false
command-logoutuser=xfce4-session-logout --logout --fast
show-command-logoutuser=false
command-restart=xfce4-session-logout --reboot --fast
show-command-restart=false
command-shutdown=xfce4-session-logout --halt --fast
show-command-shutdown=false
command-suspend=xfce4-session-logout --suspend
show-command-suspend=false
command-hibernate=xfce4-session-logout --hibernate
show-command-hibernate=false
command-logout=xfce4-session-logout
show-command-logout=true
command-menueditor=menulibre
show-command-menueditor=true
command-profile=mugshot
show-command-profile=true
search-actions=5
[action0]
name=Man Pages
pattern=#
command=exo-open --launch TerminalEmulator man %s
regex=false
[action1]
name=Web Search
pattern=?
command=exo-open --launch WebBrowser https://duckduckgo.com/?q=%u
regex=false
[action2]
name=Wikipedia
pattern=!w
command=exo-open --launch WebBrowser https://en.wikipedia.org/wiki/%u
regex=false
[action3]
name=Run in Terminal
pattern=!
command=exo-open --launch TerminalEmulator %s
regex=false
[action4]
name=Open URI
pattern=^(file|http|https):\\/\\/(.*)$
command=exo-open \\0
regex=true

56
config/includes.chroot/home/user/.config/xfce4/terminal/accels.scm

@ -0,0 +1,56 @@
; xfce4-terminal GtkAccelMap rc-file -*- scheme -*-
; this file is an automated accelerator map dump
;
(gtk_accel_path "<Actions>/terminal-window/goto-tab-1" "<Alt>1")
(gtk_accel_path "<Actions>/terminal-window/goto-tab-3" "<Alt>3")
; (gtk_accel_path "<Actions>/terminal-window/file-menu" "")
; (gtk_accel_path "<Actions>/terminal-window/close-other-tabs" "")
; (gtk_accel_path "<Actions>/terminal-window/search" "<Primary><Shift>f")
; (gtk_accel_path "<Actions>/terminal-window/next-tab" "<Primary>Page_Down")
; (gtk_accel_path "<Actions>/terminal-window/copy-html" "")
; (gtk_accel_path "<Actions>/terminal-window/show-menubar" "")
; (gtk_accel_path "<Actions>/terminal-window/zoom-reset" "<Primary>0")
; (gtk_accel_path "<Actions>/terminal-window/close-window" "<Primary><Shift>q")
; (gtk_accel_path "<Actions>/terminal-window/save-contents" "")
; (gtk_accel_path "<Actions>/terminal-window/close-tab" "<Primary><Shift>w")
; (gtk_accel_path "<Actions>/terminal-window/view-menu" "")
; (gtk_accel_path "<Actions>/terminal-window/new-tab" "<Primary><Shift>t")
; (gtk_accel_path "<Actions>/terminal-window/show-toolbar" "")
; (gtk_accel_path "<Actions>/terminal-window/copy-input" "")
; (gtk_accel_path "<Actions>/terminal-window/paste" "<Primary><Shift>v")
; (gtk_accel_path "<Actions>/terminal-window/copy" "<Primary><Shift>c")
; (gtk_accel_path "<Actions>/terminal-window/edit-menu" "")
; (gtk_accel_path "<Actions>/terminal-window/fullscreen" "F11")
(gtk_accel_path "<Actions>/terminal-window/goto-tab-6" "<Alt>6")
; (gtk_accel_path "<Actions>/terminal-window/read-only" "")
; (gtk_accel_path "<Actions>/terminal-window/detach-tab" "<Primary><Shift>d")
(gtk_accel_path "<Actions>/terminal-window/goto-tab-8" "<Alt>8")
(gtk_accel_path "<Actions>/terminal-window/goto-tab-2" "<Alt>2")
; (gtk_accel_path "<Actions>/terminal-window/scroll-on-output" "")
(gtk_accel_path "<Actions>/terminal-window/goto-tab-5" "<Alt>5")
; (gtk_accel_path "<Actions>/terminal-window/prev-tab" "<Primary>Page_Up")
; (gtk_accel_path "<Actions>/terminal-window/move-tab-left" "<Primary><Shift>Page_Up")
; (gtk_accel_path "<Actions>/terminal-window/zoom-in" "<Primary>plus")
; (gtk_accel_path "<Actions>/terminal-window/search-prev" "")
; (gtk_accel_path "<Actions>/terminal-window/reset-and-clear" "")
; (gtk_accel_path "<Actions>/terminal-window/about" "")
; (gtk_accel_path "<Actions>/terminal-window/search-next" "")
(gtk_accel_path "<Actions>/terminal-window/toggle-menubar" "F10")
(gtk_accel_path "<Actions>/terminal-window/goto-tab-7" "<Alt>7")
; (gtk_accel_path "<Actions>/terminal-window/select-all" "<Primary><Shift>a")
; (gtk_accel_path "<Actions>/terminal-window/help-menu" "")
(gtk_accel_path "<Actions>/terminal-window/goto-tab-9" "<Alt>9")
; (gtk_accel_path "<Actions>/terminal-window/show-borders" "")
; (gtk_accel_path "<Actions>/terminal-window/new-window" "<Primary><Shift>n")
(gtk_accel_path "<Actions>/terminal-window/goto-tab-4" "<Alt>4")
; (gtk_accel_path "<Actions>/terminal-window/contents" "F1")
; (gtk_accel_path "<Actions>/terminal-window/preferences" "")
; (gtk_accel_path "<Actions>/terminal-window/move-tab-right" "<Primary><Shift>Page_Down")
; (gtk_accel_path "<Actions>/terminal-window/zoom-out" "<Primary>minus")
; (gtk_accel_path "<Actions>/terminal-window/set-title" "<Primary><Shift>s")
; (gtk_accel_path "<Actions>/terminal-window/paste-selection" "")
; (gtk_accel_path "<Actions>/terminal-window/undo-close-tab" "")
; (gtk_accel_path "<Actions>/terminal-window/tabs-menu" "")
; (gtk_accel_path "<Actions>/terminal-window/zoom-menu" "")
; (gtk_accel_path "<Actions>/terminal-window/reset" "")
; (gtk_accel_path "<Actions>/terminal-window/terminal-menu" "")

33
config/includes.chroot/home/user/.config/xfce4/terminal/terminalrc

@ -0,0 +1,33 @@
[Configuration]
ColorForeground=#839496
ColorBackground=#002b36
ColorCursor=#93a1a1
ColorBold=#93a1a1
ColorBoldUseDefault=FALSE
ColorPalette=#073642;#dc322f;#859900;#b58900;#268bd2;#d33682;#2aa198;#eee8d5;#002b36;#cb4b16;#586e75;#657b83;#839496;#6c71c4;#93a1a1;#fdf6e3
MiscAlwaysShowTabs=FALSE
MiscBell=FALSE
MiscBellUrgent=FALSE
MiscBordersDefault=TRUE
MiscCursorBlinks=FALSE
MiscCursorShape=TERMINAL_CURSOR_SHAPE_BLOCK
MiscDefaultGeometry=80x24
MiscInheritGeometry=FALSE
MiscMenubarDefault=TRUE
MiscMouseAutohide=FALSE
MiscMouseWheelZoom=TRUE
MiscToolbarDefault=FALSE
MiscConfirmClose=TRUE
MiscCycleTabs=TRUE
MiscTabCloseButtons=TRUE
MiscTabCloseMiddleClick=TRUE
MiscTabPosition=GTK_POS_TOP
MiscHighlightUrls=TRUE
MiscMiddleClickOpensUri=FALSE
MiscCopyOnSelect=FALSE
MiscShowRelaunchDialog=TRUE
MiscRewrapOnResize=TRUE
MiscUseShiftArrowsToScroll=FALSE
MiscSlimTabs=FALSE
MiscNewTabAdjacent=FALSE
TabActivityColor=#dc322f

7
config/includes.chroot/home/user/.config/xfce4/xfconf/xfce-perchannel-xml/keyboards.xml

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<channel name="keyboards" version="1.0">
<property name="Default" type="empty">
<property name="Numlock" type="bool" value="false"/>
</property>
</channel>

5
config/includes.chroot/home/user/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<channel name="thunar" version="1.0">
<property name="last-view" type="string" value="ThunarIconView"/>
</channel>

96
config/includes.chroot/home/user/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml

@ -0,0 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?>
<channel name="xfce4-desktop" version="1.0">
<property name="backdrop" type="empty">
<property name="screen0" type="empty">
<property name="monitor0" type="empty">
<property name="brightness" type="empty"/>
<property name="color1" type="empty"/>
<property name="color2" type="empty"/>
<property name="color-style" type="empty"/>
<property name="image-path" type="empty"/>
<property name="image-show" type="empty"/>
<property name="last-image" type="empty"/>
<property name="last-single-image" type="empty"/>
<property name="workspace0" type="empty">
<property name="color-style" type="int" value="1"/>
<property name="color1" type="array">
<value type="uint" value="7936"/>
<value type="uint" value="16128"/>
<value type="uint" value="28416"/>
<value type="uint" value="65535"/>
</property>
<property name="color2" type="array">
<value type="uint" value="26880"/>
<value type="uint" value="34048"/>
<value type="uint" value="46848"/>
<value type="uint" value="65535"/>
</property>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/usr/share/images/desktop-base/default"/>
</property>
<property name="workspace1" type="empty">
<property name="color-style" type="int" value="1"/>
<property name="color1" type="array">
<value type="uint" value="7936"/>
<value type="uint" value="16128"/>
<value type="uint" value="28416"/>
<value type="uint" value="65535"/>
</property>
<property name="color2" type="array">
<value type="uint" value="26880"/>
<value type="uint" value="34048"/>
<value type="uint" value="46848"/>
<value type="uint" value="65535"/>
</property>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/usr/share/images/desktop-base/default"/>
</property>
<property name="workspace2" type="empty">
<property name="color-style" type="int" value="1"/>
<property name="color1" type="array">
<value type="uint" value="7936"/>
<value type="uint" value="16128"/>
<value type="uint" value="28416"/>
<value type="uint" value="65535"/>
</property>
<property name="color2" type="array">
<value type="uint" value="26880"/>
<value type="uint" value="34048"/>
<value type="uint" value="46848"/>
<value type="uint" value="65535"/>
</property>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/usr/share/images/desktop-base/default"/>
</property>
<property name="workspace3" type="empty">
<property name="color-style" type="int" value="1"/>
<property name="color1" type="array">
<value type="uint" value="7936"/>
<value type="uint" value="16128"/>
<value type="uint" value="28416"/>
<value type="uint" value="65535"/>
</property>
<property name="color2" type="array">
<value type="uint" value="26880"/>
<value type="uint" value="34048"/>
<value type="uint" value="46848"/>
<value type="uint" value="65535"/>
</property>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/usr/share/images/desktop-base/default"/>
</property>
</property>
<property name="monitor1" type="empty">
<property name="brightness" type="empty"/>
<property name="color1" type="empty"/>
<property name="color2" type="empty"/>
<property name="color-style" type="empty"/>
<property name="image-path" type="empty"/>
<property name="image-show" type="empty"/>
<property name="last-image" type="empty"/>
<property name="last-single-image" type="empty"/>
</property>
</property>
</property>
</channel>

154
config/includes.chroot/home/user/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml

@ -0,0 +1,154 @@
<?xml version="1.0" encoding="UTF-8"?>
<channel name="xfce4-keyboard-shortcuts" version="1.0">
<property name="commands" type="empty">
<property name="default" type="empty">
<property name="&lt;Alt&gt;F1" type="empty"/>
<property name="&lt;Alt&gt;F2" type="empty">
<property name="startup-notify" type="empty"/>
</property>
<property name="&lt;Alt&gt;F3" type="empty">
<property name="startup-notify" type="empty"/>
</property>
<property name="&lt;Primary&gt;&lt;Alt&gt;Delete" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;l" type="empty"/>
<property name="XF86Display" type="empty"/>
<property name="&lt;Super&gt;p" type="empty"/>
<property name="&lt;Primary&gt;Escape" type="empty"/>
<property name="XF86WWW" type="empty"/>
<property name="XF86Mail" type="empty"/>
</property>
<property name="custom" type="empty">
<property name="&lt;Alt&gt;F3" type="string" value="xfce4-appfinder">
<property name="startup-notify" type="bool" value="true"/>
</property>
<property name="&lt;Alt&gt;F1" type="string" value="xfce4-popup-applicationsmenu"/>
<property name="&lt;Alt&gt;F2" type="string" value="xfce4-appfinder --collapsed">
<property name="startup-notify" type="bool" value="true"/>
</property>
<property name="&lt;Primary&gt;&lt;Alt&gt;Delete" type="string" value="xflock4"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;l" type="string" value="xflock4"/>
<property name="XF86Mail" type="string" value="exo-open --launch MailReader"/>
<property name="XF86Display" type="string" value="xfce4-display-settings --minimal"/>
<property name="XF86WWW" type="string" value="exo-open --launch WebBrowser"/>
<property name="&lt;Super&gt;p" type="string" value="xfce4-display-settings --minimal"/>
<property name="&lt;Primary&gt;Escape" type="string" value="xfdesktop --menu"/>
<property name="override" type="bool" value="true"/>
</property>
</property>
<property name="xfwm4" type="empty">
<property name="default" type="empty">
<property name="&lt;Alt&gt;Insert" type="empty"/>
<property name="Escape" type="empty"/>
<property name="Left" type="empty"/>
<property name="Right" type="empty"/>
<property name="Up" type="empty"/>
<property name="Down" type="empty"/>
<property name="&lt;Alt&gt;Tab" type="empty"/>
<property name="&lt;Alt&gt;&lt;Shift&gt;Tab" type="empty"/>
<property name="&lt;Alt&gt;Delete" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;Down" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;Left" type="empty"/>
<property name="&lt;Shift&gt;&lt;Alt&gt;Page_Down" type="empty"/>
<property name="&lt;Alt&gt;F4" type="empty"/>
<property name="&lt;Alt&gt;F6" type="empty"/>
<property name="&lt;Alt&gt;F7" type="empty"/>
<property name="&lt;Alt&gt;F8" type="empty"/>
<property name="&lt;Alt&gt;F9" type="empty"/>
<property name="&lt;Alt&gt;F10" type="empty"/>
<property name="&lt;Alt&gt;F11" type="empty"/>
<property name="&lt;Alt&gt;F12" type="empty"/>
<property name="&lt;Primary&gt;&lt;Shift&gt;&lt;Alt&gt;Left" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;End" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;Home" type="empty"/>
<property name="&lt;Primary&gt;&lt;Shift&gt;&lt;Alt&gt;Right" type="empty"/>
<property name="&lt;Primary&gt;&lt;Shift&gt;&lt;Alt&gt;Up" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;KP_1" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;KP_2" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;KP_3" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;KP_4" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;KP_5" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;KP_6" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;KP_7" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;KP_8" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;KP_9" type="empty"/>
<property name="&lt;Alt&gt;space" type="empty"/>
<property name="&lt;Shift&gt;&lt;Alt&gt;Page_Up" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;Right" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;d" type="empty"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;Up" type="empty"/>
<property name="&lt;Super&gt;Tab" type="empty"/>
<property name="&lt;Primary&gt;F1" type="empty"/>
<property name="&lt;Primary&gt;F2" type="empty"/>
<property name="&lt;Primary&gt;F3" type="empty"/>
<property name="&lt;Primary&gt;F4" type="empty"/>
<property name="&lt;Primary&gt;F5" type="empty"/>
<property name="&lt;Primary&gt;F6" type="empty"/>
<property name="&lt;Primary&gt;F7" type="empty"/>
<property name="&lt;Primary&gt;F8" type="empty"/>
<property name="&lt;Primary&gt;F9" type="empty"/>
<property name="&lt;Primary&gt;F10" type="empty"/>
<property name="&lt;Primary&gt;F11" type="empty"/>
<property name="&lt;Primary&gt;F12" type="empty"/>
</property>
<property name="custom" type="empty">
<property name="Up" type="string" value="up_key"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;KP_9" type="string" value="move_window_workspace_9_key"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;KP_8" type="string" value="move_window_workspace_8_key"/>
<property name="Left" type="string" value="left_key"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;KP_6" type="string" value="move_window_workspace_6_key"/>
<property name="&lt;Alt&gt;Insert" type="string" value="add_workspace_key"/>
<property name="&lt;Alt&gt;Tab" type="string" value="cycle_windows_key"/>
<property name="&lt;Alt&gt;&lt;Shift&gt;Tab" type="string" value="cycle_reverse_windows_key"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;KP_7" type="string" value="move_window_workspace_7_key"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;Right" type="string" value="right_workspace_key"/>
<property name="&lt;Primary&gt;&lt;Shift&gt;&lt;Alt&gt;Right" type="string" value="move_window_right_key"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;d" type="string" value="show_desktop_key"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;Up" type="string" value="up_workspace_key"/>
<property name="&lt;Primary&gt;F7" type="string" value="workspace_7_key"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;Home" type="string" value="move_window_prev_workspace_key"/>
<property name="&lt;Alt&gt;F4" type="string" value="close_window_key"/>
<property name="&lt;Primary&gt;&lt;Shift&gt;&lt;Alt&gt;Left" type="string" value="move_window_left_key"/>
<property name="&lt;Alt&gt;F6" type="string" value="stick_window_key"/>
<property name="&lt;Alt&gt;F10" type="string" value="maximize_window_key"/>
<property name="&lt;Alt&gt;F12" type="string" value="above_key"/>
<property name="&lt;Alt&gt;F9" type="string" value="hide_window_key"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;Down" type="string" value="down_workspace_key"/>
<property name="&lt;Alt&gt;F8" type="string" value="resize_window_key"/>
<property name="&lt;Super&gt;Tab" type="string" value="switch_window_key"/>
<property name="Escape" type="string" value="cancel_key"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;End" type="string" value="move_window_next_workspace_key"/>
<property name="&lt;Primary&gt;F10" type="string" value="workspace_10_key"/>
<property name="&lt;Primary&gt;F11" type="string" value="workspace_11_key"/>
<property name="&lt;Alt&gt;F11" type="string" value="fullscreen_key"/>
<property name="&lt;Primary&gt;&lt;Shift&gt;&lt;Alt&gt;Up" type="string" value="move_window_up_key"/>
<property name="Right" type="string" value="right_key"/>
<property name="Down" type="string" value="down_key"/>
<property name="&lt;Alt&gt;F7" type="string" value="move_window_key"/>
<property name="&lt;Shift&gt;&lt;Alt&gt;Page_Down" type="string" value="lower_window_key"/>
<property name="&lt;Primary&gt;F12" type="string" value="workspace_12_key"/>
<property name="&lt;Primary&gt;F1" type="string" value="workspace_1_key"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;Left" type="string" value="left_workspace_key"/>
<property name="&lt;Primary&gt;F2" type="string" value="workspace_2_key"/>
<property name="&lt;Primary&gt;F4" type="string" value="workspace_4_key"/>
<property name="&lt;Primary&gt;F5" type="string" value="workspace_5_key"/>
<property name="&lt;Primary&gt;F6" type="string" value="workspace_6_key"/>
<property name="&lt;Alt&gt;space" type="string" value="popup_menu_key"/>
<property name="&lt;Primary&gt;F8" type="string" value="workspace_8_key"/>
<property name="&lt;Primary&gt;F9" type="string" value="workspace_9_key"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;KP_1" type="string" value="move_window_workspace_1_key"/>
<property name="&lt;Alt&gt;Delete" type="string" value="del_workspace_key"/>
<property name="&lt;Shift&gt;&lt;Alt&gt;Page_Up" type="string" value="raise_window_key"/>
<property name="&lt;Primary&gt;F3" type="string" value="workspace_3_key"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;KP_2" type="string" value="move_window_workspace_2_key"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;KP_3" type="string" value="move_window_workspace_3_key"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;KP_4" type="string" value="move_window_workspace_4_key"/>
<property name="&lt;Primary&gt;&lt;Alt&gt;KP_5" type="string" value="move_window_workspace_5_key"/>
<property name="override" type="bool" value="true"/>
</property>
</property>
<property name="providers" type="array">
<value type="string" value="commands"/>
<value type="string" value="xfwm4"/>
</property>
</channel>

33
config/includes.chroot/home/user/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<channel name="xfce4-panel" version="1.0">
<property name="configver" type="int" value="2"/>
<property name="panels" type="array">
<value type="int" value="1"/>
<property name="panel-1" type="empty">
<property name="position" type="string" value="p=6;x=0;y=0"/>
<property name="length" type="uint" value="100"/>
<property name="position-locked" type="bool" value="true"/>
<property name="size" type="uint" value="30"/>
<property name="plugin-ids" type="array">
<value type="int" value="4"/>
<value type="int" value="3"/>
<value type="int" value="15"/>
<value type="int" value="5"/>
<value type="int" value="6"/>
<value type="int" value="2"/>
</property>
</property>
</property>
<property name="plugins" type="empty">
<property name="plugin-2" type="string" value="actions"/>
<property name="plugin-3" type="string" value="tasklist"/>
<property name="plugin-15" type="string" value="separator">
<property name="expand" type="bool" value="true"/>
<property name="style" type="uint" value="0"/>
</property>
<property name="plugin-5" type="string" value="clock"/>
<property name="plugin-6" type="string" value="systray"/>
<property name="plugin-4" type="string" value="whiskermenu"/>
</property>
</channel>

36
config/includes.chroot/home/user/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<channel name="xfce4-session" version="1.0">
<property name="splash" type="empty">
<property name="Engine" type="empty"/>
<property name="engines" type="empty">
<property name="simple" type="empty">
<property name="Font" type="empty"/>
<property name="BgColor" type="empty"/>
<property name="FgColor" type="empty"/>
<property name="Image" type="empty"/>
</property>
</property>
</property>
<property name="general" type="empty">
<property name="FailsafeSessionName" type="empty"/>
<property name="SessionName" type="string" value="Default"/>
<property name="SaveOnExit" type="bool" value="true"/>
</property>
<property name="sessions" type="empty">
<property name="Failsafe" type="empty">
<property name="IsFailsafe" type="empty"/>
<property name="Count" type="empty"/>
<property name="Client0_Command" type="empty"/>
<property name="Client0_PerScreen" type="empty"/>
<property name="Client1_Command" type="empty"/>
<property name="Client1_PerScreen" type="empty"/>
<property name="Client2_Command" type="empty"/>
<property name="Client2_PerScreen" type="empty"/>
<property name="Client3_Command" type="empty"/>
<property name="Client3_PerScreen" type="empty"/>
<property name="Client4_Command" type="empty"/>
<property name="Client4_PerScreen" type="empty"/>
</property>
</property>
</channel>

87
config/includes.chroot/home/user/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml

@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<channel name="xfwm4" version="1.0">
<property name="general" type="empty">
<property name="activate_action" type="string" value="bring"/>
<property name="borderless_maximize" type="bool" value="true"/>
<property name="box_move" type="bool" value="false"/>
<property name="box_resize" type="bool" value="false"/>
<property name="button_layout" type="string" value="O|SHMC"/>
<property name="button_offset" type="int" value="0"/>
<property name="button_spacing" type="int" value="0"/>
<property name="click_to_focus" type="bool" value="true"/>
<property name="cycle_apps_only" type="bool" value="false"/>
<property name="cycle_draw_frame" type="bool" value="true"/>
<property name="cycle_hidden" type="bool" value="true"/>
<property name="cycle_minimum" type="bool" value="true"/>
<property name="cycle_preview" type="bool" value="true"/>
<property name="cycle_tabwin_mode" type="int" value="0"/>
<property name="cycle_workspaces" type="bool" value="false"/>
<property name="double_click_action" type="string" value="maximize"/>
<property name="double_click_distance" type="int" value="5"/>
<property name="double_click_time" type="int" value="250"/>
<property name="easy_click" type="string" value="Alt"/>
<property name="focus_delay" type="int" value="250"/>
<property name="focus_hint" type="bool" value="true"/>
<property name="focus_new" type="bool" value="true"/>
<property name="frame_opacity" type="int" value="100"/>
<property name="full_width_title" type="bool" value="true"/>
<property name="horiz_scroll_opacity" type="bool" value="false"/>
<property name="inactive_opacity" type="int" value="100"/>
<property name="maximized_offset" type="int" value="0"/>
<property name="mousewheel_rollup" type="bool" value="true"/>
<property name="move_opacity" type="int" value="100"/>
<property name="placement_mode" type="string" value="center"/>
<property name="placement_ratio" type="int" value="20"/>
<property name="popup_opacity" type="int" value="100"/>
<property name="prevent_focus_stealing" type="bool" value="false"/>
<property name="raise_delay" type="int" value="250"/>
<property name="raise_on_click" type="bool" value="true"/>
<property name="raise_on_focus" type="bool" value="false"/>
<property name="raise_with_any_button" type="bool" value="true"/>
<property name="repeat_urgent_blink" type="bool" value="false"/>
<property name="resize_opacity" type="int" value="100"/>
<property name="scroll_workspaces" type="bool" value="true"/>
<property name="shadow_delta_height" type="int" value="0"/>
<property name="shadow_delta_width" type="int" value="0"/>
<property name="shadow_delta_x" type="int" value="0"/>
<property name="shadow_delta_y" type="int" value="-3"/>
<property name="shadow_opacity" type="int" value="50"/>
<property name="show_app_icon" type="bool" value="false"/>
<property name="show_dock_shadow" type="bool" value="true"/>
<property name="show_frame_shadow" type="bool" value="true"/>
<property name="show_popup_shadow" type="bool" value="false"/>
<property name="snap_resist" type="bool" value="false"/>
<property name="snap_to_border" type="bool" value="true"/>
<property name="snap_to_windows" type="bool" value="false"/>
<property name="snap_width" type="int" value="10"/>
<property name="sync_to_vblank" type="bool" value="false"/>
<property name="theme" type="string" value="Default"/>
<property name="tile_on_move" type="bool" value="true"/>
<property name="title_alignment" type="string" value="center"/>
<property name="title_font" type="string" value="Sans Bold 9"/>
<property name="title_horizontal_offset" type="int" value="0"/>
<property name="titleless_maximize" type="bool" value="false"/>
<property name="title_shadow_active" type="string" value="false"/>
<property name="title_shadow_inactive" type="string" value="false"/>
<property name="title_vertical_offset_active" type="int" value="0"/>
<property name="title_vertical_offset_inactive" type="int" value="0"/>
<property name="toggle_workspaces" type="bool" value="false"/>
<property name="unredirect_overlays" type="bool" value="true"/>
<property name="urgent_blink" type="bool" value="false"/>
<property name="use_compositing" type="bool" value="false"/>
<property name="workspace_count" type="int" value="4"/>
<property name="workspace_names" type="array">
<value type="string" value="Workspace 1"/>
<value type="string" value="Workspace 2"/>
<value type="string" value="Workspace 3"/>
<value type="string" value="Workspace 4"/>
</property>
<property name="wrap_cycle" type="bool" value="true"/>
<property name="wrap_layout" type="bool" value="true"/>
<property name="wrap_resistance" type="int" value="10"/>
<property name="wrap_windows" type="bool" value="true"/>
<property name="wrap_workspaces" type="bool" value="false"/>
<property name="zoom_desktop" type="bool" value="true"/>
</property>
</channel>

39
config/includes.chroot/home/user/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<channel name="xsettings" version="1.0">
<property name="Net" type="empty">
<property name="ThemeName" type="string" value="Adwaita-dark"/>
<property name="IconThemeName" type="empty"/>
<property name="DoubleClickTime" type="empty"/>
<property name="DoubleClickDistance" type="empty"/>
<property name="DndDragThreshold" type="empty"/>
<property name="CursorBlink" type="empty"/>
<property name="CursorBlinkTime" type="empty"/>
<property name="SoundThemeName" type="empty"/>
<property name="EnableEventSounds" type="empty"/>
<property name="EnableInputFeedbackSounds" type="empty"/>
</property>
<property name="Xft" type="empty">
<property name="DPI" type="empty"/>
<property name="Antialias" type="empty"/>
<property name="Hinting" type="empty"/>
<property name="HintStyle" type="empty"/>
<property name="RGBA" type="empty"/>
</property>
<property name="Gtk" type="empty">
<property name="CanChangeAccels" type="empty"/>
<property name="ColorPalette" type="empty"/>
<property name="FontName" type="empty"/>
<property name="MonospaceFontName" type="empty"/>
<property name="IconSizes" type="empty"/>
<property name="KeyThemeName" type="empty"/>
<property name="ToolbarStyle" type="empty"/>
<property name="ToolbarIconSize" type="empty"/>
<property name="MenuImages" type="empty"/>
<property name="ButtonImages" type="empty"/>
<property name="MenuBarAccel" type="empty"/>
<property name="CursorThemeName" type="empty"/>
<property name="CursorThemeSize" type="empty"/>
<property name="DecorationLayout" type="empty"/>
</property>
</channel>

586
config/includes.chroot/home/user/.git-prompt.sh

@ -0,0 +1,586 @@
# bash/zsh git prompt support
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see repository status in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).
# 2) Add the following line to your .bashrc/.zshrc:
# source ~/.git-prompt.sh
# 3a) Change your PS1 to call __git_ps1 as
# command-substitution:
# Bash: PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ '
# ZSH: setopt PROMPT_SUBST ; PS1='[%n@%m %c$(__git_ps1 " (%s)")]\$ '
# the optional argument will be used as format string.
# 3b) Alternatively, for a slightly faster prompt, __git_ps1 can
# be used for PROMPT_COMMAND in Bash or for precmd() in Zsh
# with two parameters, <pre> and <post>, which are strings
# you would put in $PS1 before and after the status string
# generated by the git-prompt machinery. e.g.
# Bash: PROMPT_COMMAND='__git_ps1 "\u@\h:\w" "\\\$ "'
# will show username, at-sign, host, colon, cwd, then
# various status string, followed by dollar and SP, as
# your prompt.
# ZSH: precmd () { __git_ps1 "%n" ":%~$ " "|%s" }
# will show username, pipe, then various status string,
# followed by colon, cwd, dollar and SP, as your prompt.
# Optionally, you can supply a third argument with a printf
# format string to finetune the output of the branch status
#
# The repository status will be displayed only if you are currently in a
# git repository. The %s token is the placeholder for the shown status.
#
# The prompt status always includes the current branch name.
#
# In addition, if you set GIT_PS1_SHOWDIRTYSTATE to a nonempty value,
# unstaged (*) and staged (+) changes will be shown next to the branch
# name. You can configure this per-repository with the
# bash.showDirtyState variable, which defaults to true once
# GIT_PS1_SHOWDIRTYSTATE is enabled.
#
# You can also see if currently something is stashed, by setting
# GIT_PS1_SHOWSTASHSTATE to a nonempty value. If something is stashed,
# then a '$' will be shown next to the branch name.
#
# If you would like to see if there're untracked files, then you can set
# GIT_PS1_SHOWUNTRACKEDFILES to a nonempty value. If there're untracked
# files, then a '%' will be shown next to the branch name. You can
# configure this per-repository with the bash.showUntrackedFiles
# variable, which defaults to true once GIT_PS1_SHOWUNTRACKEDFILES is
# enabled.
#
# If you would like to see the difference between HEAD and its upstream,
# set GIT_PS1_SHOWUPSTREAM="auto". A "<" indicates you are behind, ">"
# indicates you are ahead, "<>" indicates you have diverged and "="
# indicates that there is no difference. You can further control
# behaviour by setting GIT_PS1_SHOWUPSTREAM to a space-separated list
# of values:
#
# verbose show number of commits ahead/behind (+/-) upstream
# name if verbose, then also show the upstream abbrev name
# legacy don't use the '--count' option available in recent
# versions of git-rev-list
# git always compare HEAD to @{upstream}
# svn always compare HEAD to your SVN upstream
#
# You can change the separator between the branch name and the above
# state symbols by setting GIT_PS1_STATESEPARATOR. The default separator
# is SP.
#
# When there is an in-progress operation such as a merge, rebase,
# revert, cherry-pick, or bisect, the prompt will include information
# related to the operation, often in the form "|<OPERATION-NAME>".
#
# When the repository has a sparse-checkout, a notification of the form
# "|SPARSE" will be included in the prompt. This can be shortened to a
# single '?' character by setting GIT_PS1_COMPRESSSPARSESTATE, or omitted
# by setting GIT_PS1_OMITSPARSESTATE.
#
# By default, __git_ps1 will compare HEAD to your SVN upstream if it can
# find one, or @{upstream} otherwise. Once you have set
# GIT_PS1_SHOWUPSTREAM, you can override it on a per-repository basis by
# setting the bash.showUpstream config variable.
#
# If you would like to see more information about the identity of
# commits checked out as a detached HEAD, set GIT_PS1_DESCRIBE_STYLE
# to one of these values:
#
# contains relative to newer annotated tag (v1.6.3.2~35)
# branch relative to newer tag or branch (master~4)
# describe relative to older annotated tag (v1.6.3.1-13-gdd42c2f)
# tag relative to any older tag (v1.6.3.1-13-gdd42c2f)
# default exactly matching tag
#
# If you would like a colored hint about the current dirty state, set
# GIT_PS1_SHOWCOLORHINTS to a nonempty value. The colors are based on
# the colored output of "git status -sb" and are available only when
# using __git_ps1 for PROMPT_COMMAND or precmd in Bash,
# but always available in Zsh.
#
# If you would like __git_ps1 to do nothing in the case when the current
# directory is set up to be ignored by git, then set
# GIT_PS1_HIDE_IF_PWD_IGNORED to a nonempty value. Override this on the
# repository level by setting bash.hideIfPwdIgnored to "false".
# check whether printf supports -v
__git_printf_supports_v=
printf -v __git_printf_supports_v -- '%s' yes >/dev/null 2>&1
# stores the divergence from upstream in $p
# used by GIT_PS1_SHOWUPSTREAM
__git_ps1_show_upstream ()
{
local key value
local svn_remote svn_url_pattern count n
local upstream=git legacy="" verbose="" name=""
svn_remote=()
# get some config options from git-config
local output="$(git config -z --get-regexp '^(svn-remote\..*\.url|bash\.showupstream)$' 2>/dev/null | tr '\0\n' '\n ')"
while read -r key value; do
case "$key" in
bash.showupstream)
GIT_PS1_SHOWUPSTREAM="$value"
if [[ -z "${GIT_PS1_SHOWUPSTREAM}" ]]; then
p=""
return
fi
;;
svn-remote.*.url)
svn_remote[$((${#svn_remote[@]} + 1))]="$value"
svn_url_pattern="$svn_url_pattern\\|$value"
upstream=svn+git # default upstream is SVN if available, else git
;;
esac
done <<< "$output"
# parse configuration values
local option
for option in ${GIT_PS1_SHOWUPSTREAM}; do
case "$option" in
git|svn) upstream="$option" ;;
verbose) verbose=1 ;;
legacy) legacy=1 ;;
name) name=1 ;;
esac
done
# Find our upstream
case "$upstream" in
git) upstream="@{upstream}" ;;
svn*)
# get the upstream from the "git-svn-id: ..." in a commit message
# (git-svn uses essentially the same procedure internally)
local -a svn_upstream
svn_upstream=($(git log --first-parent -1 \
--grep="^git-svn-id: \(${svn_url_pattern#??}\)" 2>/dev/null))
if [[ 0 -ne ${#svn_upstream[@]} ]]; then
svn_upstream=${svn_upstream[${#svn_upstream[@]} - 2]}
svn_upstream=${svn_upstream%@*}
local n_stop="${#svn_remote[@]}"
for ((n=1; n <= n_stop; n++)); do
svn_upstream=${svn_upstream#${svn_remote[$n]}}
done
if [[ -z "$svn_upstream" ]]; then
# default branch name for checkouts with no layout:
upstream=${GIT_SVN_ID:-git-svn}
else
upstream=${svn_upstream#/}
fi
elif [[ "svn+git" = "$upstream" ]]; then
upstream="@{upstream}"
fi
;;
esac
# Find how many commits we are ahead/behind our upstream
if [[ -z "$legacy" ]]; then
count="$(git rev-list --count --left-right \