summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xaur4
-rwxr-xr-xbattery2
-rwxr-xr-xci8
-rwxr-xr-xlock2
-rwxr-xr-xratdm23
-rwxr-xr-xratws4
6 files changed, 26 insertions, 17 deletions
diff --git a/aur b/aur
index fd1c5cb..2e3afbc 100755
--- a/aur
+++ b/aur
@@ -29,8 +29,8 @@ echo -ne "Edit PKGBUILD? "
read -r edit
[ "$edit" = "y" ] && $EDITOR PKGBUILD
echo Building...
-if makepkg -f; then
+if makepkg -srf; then
name=$1"-$(sed -n 's/pkgver=//p' PKGBUILD)-$(sed -n 's/pkgrel=//p' PKGBUILD)"
echo Installing...
- sudo pacman -U "$name"*.xz
+ sudo pacman -U $name*.xz
fi
diff --git a/battery b/battery
index d98974c..ef3997e 100755
--- a/battery
+++ b/battery
@@ -2,5 +2,5 @@
# Quick hack to display battery levels for the laptop
-str="s/ Charging, /C/;s/ Discharging, /D/;s/ Unknown,/U/"
+str="s/ Charging, /C/;s/ Discharging, /D/;s/ Unknown,/U/;s/ Full, /F/"
acpi | cut -d: -f 2- | sed "$str" | cut -d\ -f 1-2 | cut -d: -f 1-2;
diff --git a/ci b/ci
index 5ed71df..3870b3c 100755
--- a/ci
+++ b/ci
@@ -12,9 +12,13 @@ for k in $LIBR; do
echo "#include<$k.h>" >> $SRC
done
+#echo -e "int main(int argc, char ** argv) {\n\n return 0;\n}" >> $SRC
+#zile +8 $SRC
+
echo "int main(int argc, char ** argv) {" >> $SRC
-cat - >> $SRC
-echo "return 0; }" >> $SRC
+rlwrap -o cat >> $SRC
+echo "return 0;}" >> $SRC
+
echo -e "\n\n\t!!! Compiling ..."
gcc $FLAG $SRC -o $BIN
diff --git a/lock b/lock
index aad1615..080983b 100755
--- a/lock
+++ b/lock
@@ -3,3 +3,5 @@ killall -s HUP gpg-agent
keychain --clear
xset dpms force off
slock
+xset -dpms
+xset s off \ No newline at end of file
diff --git a/ratdm b/ratdm
index a97eb34..d9579d6 100755
--- a/ratdm
+++ b/ratdm
@@ -1,17 +1,20 @@
#!/usr/bin/env sh
-font="DejaVu Sans Mono:size=20"
-nb='grey10'
-nf='grey'
+font="DejaVu Sans Mono:size=18"
+nb='#EAFFFF'
+nf='black'
sb='grey'
sf='black'
-screen=$(ratpoison -c sdump | tr ',' '\n' | grep '0$')
-width=$(echo "$screen" | cut -d ' ' -f 5)
-height=$(echo "$screen" | cut -d ' ' -f 6)
+screen=$(ratpoison -c sdump | tr ',' '\n' | grep '1$')
s=$(echo "$screen" | cut -d ' ' -f 2)
-w=$((width/2))
-x=$((width/4))
-y=$((height/3))
-dmenu -p "Select >" -l 16 -m "$s" -x "$x" -y "$y" -w "$w" -sb "$sb" -sf "$sf" -nb "$nb" -nf "$nf" -fn "$font" -i "$@"
+dmenu -p "Select >" -l 8 -m "$s" -sb "$sb" -sf "$sf" -nb "$nb" -nf "$nf" -fn "$font" -i "$@"
+
+#width=$(echo "$screen" | cut -d ' ' -f 5)
+#height=$(echo "$screen" | cut -d ' ' -f 6)
+#w=$((width/2))
+#x=$((width/4))
+#y=$((height/3))
+#dmenu -p "Select >" -l 16 -m "$s" -x "$x" -y "$y" -w "$w" -sb "$sb" -sf "$sf" -nb "$nb" -nf "$nf" -fn "$font" -i "$@"
+
diff --git a/ratws b/ratws
index 6dc09ce..1c093a8 100755
--- a/ratws
+++ b/ratws
@@ -1,8 +1,8 @@
#!/usr/bin/env sh
w=$(ratpoison -c windows)
-[ "$1" = "-s" ] && p="Tab" && w=$(echo "$w" | grep '(surf)')
-[ "$1" = "-w" ] && p="Windows" && w=$(echo "$w" | grep -v '(surf)')
+#[ "$1" = "-s" ] && p="Tab" && w=$(echo "$w" | grep '(surf)')
+#[ "$1" = "-w" ] && p="Windows" && w=$(echo "$w" | grep -v '(surf)')
[ -z "$w" ] && exit
sel=$(echo "$w" | ratdm -p ${p:-All}' >' | cut -d ' ' -f 1)
if [ -n "$sel" ]; then