summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTslil Clingman <hiato1@gmail.com>2014-06-20 19:15:46 +0200
committerTslil Clingman <hiato1@gmail.com>2014-06-20 19:15:46 +0200
commitefd9525d83d25ae2cd3c308e4a6ca25fc8f5aeb1 (patch)
tree150253de60b71dab99b657a453ed6e09d383c35b
parent23de8238428186ad7a4c50ea40f8763c7a4a1298 (diff)
Fixed aur script to work with new format
-rwxr-xr-xaur7
-rwxr-xr-xci2
-rwxr-xr-xsc14
3 files changed, 12 insertions, 11 deletions
diff --git a/aur b/aur
index dfe68c1..30df19a 100755
--- a/aur
+++ b/aur
@@ -1,9 +1,10 @@
# Simple AUR wrapper
#!/bin/sh
if [ "$1" = "-s" ]; then
- echo Searching for "$2" ...
- echo
- echo -e "$(wget -q "https://aur.archlinux.org/rpc.php?type=search&arg=$2" -O - | tr '{:' '\n ' | grep Name | sed 's/.*,"Name"\ "\(.*\)","Version"\ "\([0-9.-]*\).*,"Description"\ "\(.*\)","URL".*/\1 \2\n \3\n/')"
+ shift
+ echo Searching for "$*" ...
+ var="$(echo $* | sed 's/\ /%20/g')"
+ echo -e "$(wget -q "https://aur.archlinux.org/rpc.php?type=search&arg=$var" -O - | tr '{' '\n ' | grep Name | sed 's/.*"Name":"\(.*\)",.*,"Version":"\(.*\)",.*,"Description":"\(.*\)","URL".*/\1 \2\n \3\n/')"
exit
fi;
diff --git a/ci b/ci
index ffa9f8f..7418f79 100755
--- a/ci
+++ b/ci
@@ -1,7 +1,7 @@
# Convenient frontend for quickly evaluating C code
#!/bin/bash
-LIBR="stdlib stdio math ieee754"
+LIBR="stdlib stdio math ieee754 limits"
FLAG="-Wall -lm"
NAME=/tmp/$RANDOM-$RANDOM
diff --git a/sc b/sc
index d543338..8fa6029 100755
--- a/sc
+++ b/sc
@@ -1,13 +1,13 @@
# Quick hack to manage screen hotplugging
#!/bin/dash
case "$1" in
- "d") xrandr --nograb --output VGA-0 --off --output LVDS --auto;;
- "r") xrandr --nograb --output VGA-0 --auto --primary --output LVDS --off;;
- "c") xrandr --nograb --output VGA-0 --auto --output LVDS --auto;;
- "n") xrandr --nograb --output LVDS --auto --above VGA-0 --output VGA-0 --auto;;
- "s") xrandr --nograb --output LVDS --auto --below VGA-0 --output VGA-0 --auto;;
- "e") xrandr --nograb --output LVDS --auto --right-of VGA-0 --output VGA-0 --auto;;
- "w") xrandr --nograb --output LVDS --auto --left-of VGA-0 --output VGA-0 --auto;;
+ "d") xrandr --nograb --output CRT1 --off --output LVDS --auto;;
+ "r") xrandr --nograb --output CRT1 --auto --primary --output LVDS --off;;
+ "c") xrandr --nograb --output CRT1 --auto --output LVDS --auto;;
+ "n") xrandr --nograb --output LVDS --auto --above CRT1 --output CRT1 --auto;;
+ "s") xrandr --nograb --output LVDS --auto --below CRT1 --output CRT1 --auto;;
+ "e") xrandr --nograb --output LVDS --auto --right-of CRT1 --output CRT1 --auto;;
+ "w") xrandr --nograb --output LVDS --auto --left-of CRT1 --output CRT1 --auto;;
*) xrandr --nograb ;;
esac;
#feh --bg-center "$BKG"