diff --git a/doc/create_screenshot.sh b/doc/create_screenshot.sh deleted file mode 100755 index 575b2700..00000000 --- a/doc/create_screenshot.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -shout() -{ -echo -en "Normal Row\nAlternateRow\nNormal Row active\nAlternateRow Active\nNormal Row urgent\nAlternateRow urgent" -echo -en "\nSelected Row" -echo -en "\n1\n2\n3\n4\n5" -} - -sleep 5 -( shout | rofi -no-hide-scrollbar -columns 1 -width 1200 -location 0 -u 2,3 -a 4,5 -dmenu -p "Prompt" -padding 20 -line-margin 10 -selected-row 6 ) & -P=$! -sleep 5 -scrot -sleep 1 -killall rofi -wait "$P" diff --git a/doc/rofi.png b/doc/rofi.png deleted file mode 100644 index 9b5b70a5..00000000 Binary files a/doc/rofi.png and /dev/null differ diff --git a/doc/sizing.svg b/doc/sizing.svg deleted file mode 100644 index dd87ff69..00000000 --- a/doc/sizing.svg +++ /dev/null @@ -1,906 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - rofi.color-window: bg,border,seperator - - - - - rofi.color-normal: bg,fg,bgalt,bghl,fghl - - - - - - rofi.color-urgent: bg,fg,bgalt,bghl,fghl - - - - rofi.color-active: bg,fg,bgalt,bghl,fghl - - - - - - - hide-scrollbar - - line-margin - - padding - - - - bw - - - diff --git a/script/background.jpg b/script/background.jpg deleted file mode 100644 index ad52a295..00000000 Binary files a/script/background.jpg and /dev/null differ diff --git a/script/rofi-convert-theme.sh b/script/rofi-convert-theme.sh deleted file mode 100755 index 9dc75549..00000000 --- a/script/rofi-convert-theme.sh +++ /dev/null @@ -1,76 +0,0 @@ -#!/usr/bin/env bash -# -# This code is released in public domain by Dave Davenport -# This converts from old style theme (< 1.4) to new style theme (>= 1.4) -# -update_color() -{ - var=${1} - var="${var#"${var%%[![:space:]]*}"}" # remove leading whitespace characters - var="${var%"${var##*[![:space:]]}"}" # remove trailing whitespace characters - if [[ ${var} =~ argb:[0-9a-fA-F]{6,8} ]] - then - echo "#${var:5}" - else - echo "${var}" - fi -} - -parse_window_color() -{ - OLDIFS=${IFS} - IFS="," - entries=( ${1} ) - echo "@window {" - echo " background: $( update_color ${entries[0]});" - echo " foreground: $( update_color ${entries[1]});" - echo "}" - if [ -n "${entries[2]}" ] - then - echo "@separator {" - echo " foreground: $( update_color ${entries[2]});" - echo "}" - echo "@scrollbar {" - echo " foreground: $( update_color ${entries[2]});" - echo "}" - fi - IFS=${OLDIFS} -} - -parse_color() -{ - state=$1 - OLDIFS=${IFS} - IFS="," - entries=( ${2} ) - echo "@textbox normal.${state} { " - echo " background: $( update_color ${entries[0]});" - echo " foreground: $( update_color ${entries[1]});" - echo "}" - echo "@textbox selected.${state} { " - echo " background: $( update_color ${entries[3]});" - echo " foreground: $( update_color ${entries[4]});" - echo "}" - echo "@textbox alternate.${state} { " - echo " background: $( update_color ${entries[2]});" - echo " foreground: $( update_color ${entries[1]});" - echo "}" - IFS=${OLDIFS} -} - -while read LINE -do - if [[ ${LINE} =~ ^rofi\.color-normal: ]] - then - parse_color "normal" "${LINE:18}" - elif [[ ${LINE} =~ ^rofi\.color-urgent: ]] - then - parse_color "urgent" "${LINE:18}" - elif [[ ${LINE} =~ ^rofi\.color-active: ]] - then - parse_color "active" "${LINE:18}" - elif [[ ${LINE} =~ ^rofi\.color-window: ]] - then - parse_window_color "${LINE:18}" - fi -done diff --git a/script/rofi-create-screenshot-theme3.sh b/script/rofi-create-screenshot-theme3.sh deleted file mode 100755 index 5ae3e76a..00000000 --- a/script/rofi-create-screenshot-theme3.sh +++ /dev/null @@ -1,96 +0,0 @@ -#!/usr/bin/env bash - -## -# Script used to create a screenshot of rofi. -# License: See rofi -## -RESET="\e[0m" -COLOR_RED="\e[0;31m" - -THEME_FILE=$1 -shift - -OUTPUT_PNG=$1 -shift - -XVFB=$(which Xvfb 2>/dev/null) -XDOTOOL=$(which xdotool 2>/dev/null) -ROFI=$(which rofi 2>/dev/null) -SCROT=$(which scrot 2>/dev/null) -FEH=$(which feh 2>/dev/null) -COMPTON=$(which compton 2>/dev/null) - -check_tool() -{ - if [ -z "${1}" ] - then - echo -e "${COLOR_RED}Failed to find:${RESET} $2" - exit 1 - fi -} - -XPID= -create_fake_x() -{ - export DISPLAY=":$1" - echo "Starting fake X: ${DISPLAY}" - ${XVFB} "${DISPLAY}" -screen 0 1024x600x24 & - XPID=$! - sleep 1 -} - -destroy_fake_x() -{ - if [ -n "${XPID}" ] - then - echo "Stopping fake X: ${XPID}" - kill "${XPID}" - wait "${XPID}" - fi -} - -generate() -{ - echo "Normal" - echo "Alternative" - echo "Urgent" - echo "Urgent alternative" - echo "Active" - echo "Active alternative" - echo "Normal selected" -} - -# Check required tools -check_tool "${XVFB}" "Xvfb (X on virtual framebuffer)" -check_tool "${XDOTOOL}" "commandline X11 automation tool" -check_tool "${ROFI}" "Rofi, the tool we are screenshotting" -check_tool "${FEH}" "FEH, to set example background" -check_tool "${SCROT}" "Tool to take screenshot" -check_tool "${COMPTON}" "COMPTON, tool to do transparency" - -# Create random display number -VDISPLAY=${RANDOM} -let "VDISPLAY %= 20" -VDISPLAY=$((VDISPLAY+100)) - -echo "Xvfb: ${XVFB}" -echo "Xvfb Display: ${VDISPLAY}" - -ROFI_OPTIONS="-selected-row 6 -u 2,3 -a 4,5 -location 0 -width 100 -lines 7 -columns 1" - -export DISPLAY=${VDISPLAY} - -# Create fake X11 -create_fake_x "${VDISPLAY}" -sleep 1 -fluxbox & -sleep 1 -compton -b -feh --bg-center background.jpg -(generate | ${ROFI} -no-config -theme "${THEME_FILE}" -dmenu ${ROFI_OPTIONS} >/dev/null )& -sleep 1 -#${XDOTOOL} key Alt+S -scrot "${OUTPUT_PNG}" -${XDOTOOL} key Return -sleep 2 -destroy_fake_x diff --git a/script/rofi-create-screenshot.sh b/script/rofi-create-screenshot.sh deleted file mode 100755 index 2b5ab6f7..00000000 --- a/script/rofi-create-screenshot.sh +++ /dev/null @@ -1,101 +0,0 @@ -#!/usr/bin/env bash - -## -# Script used to create a screenshot of rofi. -# License: See rofi -## -RESET="\e[0m" -COLOR_RED="\e[0;31m" -COLOR_YELLOW="\e[0;33m" - -XRDB_FILE=$1 -shift - -OUTPUT_PNG=$1 -shift - -XVFB=$(which Xvfb 2>/dev/null) -XDOTOOL=$(which xdotool 2>/dev/null) -XRDB=$(which xrdb 2>/dev/null) -ROFI=$(which rofi 2>/dev/null) - -check_tool() -{ - if [ -z "${1}" ] - then - echo -e "${COLOR_RED}Failed to find:${RESET} $2" - exit 1 - fi -} - -XPID= -create_fake_x() -{ - export DISPLAY=":$1" - echo "Starting fake X: ${DISPLAY}" - ${XVFB} "${DISPLAY}" -screen 0 800x600x24 & - XPID=$! - sleep 1 -} - -destroy_fake_x() -{ - if [ -n "${XPID}" ] - then - echo "Stopping fake X: ${XPID}" - kill "${XPID}" - wait "${XPID}" - fi -} - -generate() -{ - echo "Normal" - echo "Alternative" - echo "Urgent" - echo "Urgent alternative" - echo "Active" - echo "Active alternative" - echo "Normal selected" -} - -# Check required tools -check_tool "${XVFB}" "Xvfb (X on virtual framebuffer)" -check_tool "${XDOTOOL}" "commandline X11 automation tool" -check_tool "${XRDB}" "X server resource database utility" -check_tool "${ROFI}" "Rofi, the tool we are screenshotting" - -# Create random display number -VDISPLAY=${RANDOM} -let "VDISPLAY %= 20" -VDISPLAY=$((VDISPLAY+100)) - -echo "Xvfb: ${XVFB}" -echo "Xresources: ${XRDB_FILE}" -echo "Xvfb Display: ${VDISPLAY}" - -ROFI_OPTIONS="-selected-row 6 -u 2,3 -a 4,5 -location 0 -width 100 -lines 7 -columns 1" - -export DISPLAY=${VDISPLAY} - -if [ -n "${OUTPUT_PNG}" ] -then - export ROFI_PNG_OUTPUT="${OUTPUT_PNG}" -fi - -# Create fake X11 -create_fake_x "${VDISPLAY}" - -# Load Xresources if specified. -if [ -n "${XRDB_FILE}" ] -then - echo -e "${COLOR_YELLOW}Loading Xresources:${RESET} ${XRDB_FILE}" - ${XRDB} -retain -load "${XRDB_FILE}" -fi - -(generate | ${ROFI} -config "${XRDB_FILE}" -dmenu ${ROFI_OPTIONS} > /dev/null )& -sleep 1 -${XDOTOOL} key Alt+S -${XDOTOOL} key Return -sleep 2 -destroy_fake_x