Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
version="Refracta UEFI Installer (Yad) 9.3.4 (20180310)"
uefi_help="/usr/lib/refractainstaller/uefi_install.readme"
TEXTDOMAIN=refractainstaller-gui
TEXTDOMAINDIR=/usr/share/locale/
# Copyright 2011-2018 fsmithred@gmail.com
#!/usr/bin/env bash
# redshifty2
# run one-shot redshift with desired settings
selection=$(yad --list --title redshifty2 --text "Set screen temperature and brightness" \
--checklist --column "" --column "tempK bright%" --height 460 \
--separator " " --button=$"OK":0 --button=$"Cancel":1 \
FALSE "6800 95" \
FALSE "6300 95" \
#!/usr/bin/env bash
# redshifty
# run one-shot redshift with desired settings
LOGFILE="/tmp/redshifty.log"
# set limits here.
MINT="3800"
MAXT="7800"
#!/bin/bash
# test-find-block
#set -x
# Check for UEFI boot.
if [[ -d /sys/firmware/efi ]]; then
uefi_boot="yes"
yad --title="$window_title" --width=480 --button=$"Help":0 \
--button=$"Continue":1 --button=Exit:2 --center \
#!/bin/sh
## live-config(7) - System Configuration Components
## Copyright (C) 2006-2014 Daniel Baumann <mail@daniel-baumann.ch>
##
## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
## This is free software, and you are welcome to redistribute it
## under certain conditions; see COPYING for details.
#!/usr/bin/env bash
version="Refracta Installer (Yad) 9.1.8 (20160508)"
# Copyright 2011, 2012, 2013, 2014, 2015, 2016 fsmithred@gmail.com
# Portions may be copyright Dean Linkous and/or David Hare and/or others.
# Based on refractainstaller-8.0.3 by Dean Linkous
# License: GPL-3
# This is free software with NO WARRANTY. Use at your own risk!
#!/usr/bin/env bash
# make-refracta.sh
#
#file_repo="/root/extra_files"
# Check that user is root.
[[ $(id -u) -eq 0 ]] || { echo -e "\t You need to be root!\n" ; exit 1 ; }
#!/usr/bin/env bash
# firemenu
DIALOG="yad"
#DIALOG="zenity"
tmpfile="/tmp/applist"
if [[ -f "$tmpfile" ]] ; then
rm "$tmpfile"
#!/usr/bin/env bash
version="Refracta Snapshot 9.3.4+10.0.0beta (20160530)"
# Copyright: fsmithred@gmail.com 2011-2016
# based on refractasnapshot-8.0.4 by Dean Linkous
# Some code contributed by David Hare.
# License: GPL-3
# This is free software with NO WARRANTY. Use at your own risk!
# DESCRIPTION
# This script makes a copy of your system with rsync and then creates
# rsync excludes file for live-snapshot-auto1.sh
#
# Exclude some system files. These are required, and you probably
# shouldn't change them.
- "$source_system"/dev/*
- "$source_system"/cdrom/*
- "$source_system"/media/*