Browse Source

Install script replace fix

main
Yiğit Çolakoğlu 4 years ago
parent
commit
be19c4ea33
4 changed files with 51 additions and 51 deletions
  1. +1
    -1
      install.sh
  2. +1
    -1
      local/bin/status-bar/mpc
  3. +48
    -48
      local/bin/status-bar/weather
  4. +1
    -1
      suckless/dwmblocks/dwmblocks.c

+ 1
- 1
install.sh View File

@ -11,7 +11,7 @@ mvie(){
# Configuring for your username # Configuring for your username
if [ ! "$username" = "yigit" ]; then if [ ! "$username" = "yigit" ]; then
grep -rl "yigit" | xargs sed -i "s/yigit/$username/g"
grep -rl "/home/yigit" | grep -v ".git" | xargs sed -i "s/\/home\/yigit/\/home\/$username/g"
fi fi
# Don't prompt for a password for the rest of the script # Don't prompt for a password for the rest of the script


+ 1
- 1
local/bin/status-bar/mpc View File

@ -8,7 +8,7 @@ if [ ! "$online" = "" ]; then
if [ "$(echo "$online" | wc -l)" -le 1 ]; then if [ "$(echo "$online" | wc -l)" -le 1 ]; then
echo -n "^c#a48ead^ ^d^" echo -n "^c#a48ead^ ^d^"
else else
echo -n "^c#a48ead^ ^d^ ${title:0:30} - ${artist:0:30}"
echo -n "^c#a48ead^ ^d^ ${title:0:20} - ${artist:0:20}"
fi fi
else else
echo -n "^c#a48ead^ﳌ ^d^" echo -n "^c#a48ead^ﳌ ^d^"


+ 48
- 48
local/bin/status-bar/weather View File

@ -9,51 +9,51 @@ WCODES=(
["113"]="^c#ebcb8b^ " ["113"]="^c#ebcb8b^ "
["116"]="^c#ebcb8b^杖" ["116"]="^c#ebcb8b^杖"
["119"]="^c#ffffff^摒" ["119"]="^c#ffffff^摒"
["122"]="^c#ffffff^ "
["143"]="^c#ffffff^ "
["176"]="^c#81a1c1^ "
["179"]="^c#81a1c1^ "
["182"]="^c#81a1c1^ "
["185"]="^c#81a1c1^ "
["200"]="^c#81a1c1^ "
["227"]="^c#ffffff^ "
["230"]="^c#ffffff^ "
["248"]="^c#ffffff^ "
["260"]="^c#ffffff^ "
["263"]="^c#81a1c1^ "
["266"]="^c#81a1c1^ "
["281"]="^c#81a1c1^ "
["284"]="^c#81a1c1^ "
["293"]="^c#81a1c1^ "
["296"]="^c#81a1c1^ "
["299"]="^c#81a1c1^ "
["302"]="^c#81a1c1^ "
["305"]="^c#81a1c1^ "
["308"]="^c#81a1c1^ "
["311"]="^c#81a1c1^ "
["314"]="^c#81a1c1^ "
["317"]="^c#81a1c1^ "
["320"]="^c#ffffff^ "
["323"]="^c#81a1c1^ "
["326"]="^c#81a1c1^ "
["329"]="^c#ffffff^ "
["332"]="^c#ffffff^ "
["335"]="^c#81a1c1^ "
["338"]="^c#ffffff^ "
["350"]="^c#81a1c1^ "
["353"]="^c#81a1c1^ "
["356"]="^c#81a1c1^ "
["359"]="^c#81a1c1^ "
["362"]="^c#81a1c1^ "
["365"]="^c#81a1c1^ "
["368"]="^c#81a1c1^ "
["371"]="^c#81a1c1^ "
["374"]="^c#81a1c1^ "
["377"]="^c#81a1c1^ "
["386"]="^c#81a1c1^ "
["389"]="^c#81a1c1^ "
["392"]="^c#81a1c1^ "
["395"]="^c#81a1c1^ "
["122"]="^c#ffffff^ "
["143"]="^c#ffffff^ "
["176"]="^c#81a1c1^ "
["179"]="^c#81a1c1^ "
["182"]="^c#81a1c1^ "
["185"]="^c#81a1c1^ "
["200"]="^c#81a1c1^ "
["227"]="^c#ffffff^ "
["230"]="^c#ffffff^ "
["248"]="^c#ffffff^ "
["260"]="^c#ffffff^ "
["263"]="^c#81a1c1^ "
["266"]="^c#81a1c1^ "
["281"]="^c#81a1c1^ "
["284"]="^c#81a1c1^ "
["293"]="^c#81a1c1^ "
["296"]="^c#81a1c1^ "
["299"]="^c#81a1c1^ "
["302"]="^c#81a1c1^ "
["305"]="^c#81a1c1^ "
["308"]="^c#81a1c1^ "
["311"]="^c#81a1c1^ "
["314"]="^c#81a1c1^ "
["317"]="^c#81a1c1^ "
["320"]="^c#ffffff^ "
["323"]="^c#81a1c1^ "
["326"]="^c#81a1c1^ "
["329"]="^c#ffffff^ "
["332"]="^c#ffffff^ "
["335"]="^c#81a1c1^ "
["338"]="^c#ffffff^ "
["350"]="^c#81a1c1^ "
["353"]="^c#81a1c1^ "
["356"]="^c#81a1c1^ "
["359"]="^c#81a1c1^ "
["362"]="^c#81a1c1^ "
["365"]="^c#81a1c1^ "
["368"]="^c#81a1c1^ "
["371"]="^c#81a1c1^ "
["374"]="^c#81a1c1^ "
["377"]="^c#81a1c1^ "
["386"]="^c#81a1c1^ "
["389"]="^c#81a1c1^ "
["392"]="^c#81a1c1^ "
["395"]="^c#81a1c1^ "
) )
getforecast() { curl -sf "wttr.in/$LOCATION" > "$weatherreport" || exit 1 ;} getforecast() { curl -sf "wttr.in/$LOCATION" > "$weatherreport" || exit 1 ;}
@ -67,11 +67,11 @@ showweather() {
data=$(echo -ne $(echo $data | cut -d' ' -f 1-4)" ${WCODES[$(echo $data | cut -d' ' -f 5)]}") data=$(echo -ne $(echo $data | cut -d' ' -f 1-4)" ${WCODES[$(echo $data | cut -d' ' -f 5)]}")
echo $data | awk -F' ' '{ echo $data | awk -F' ' '{
if ($4 > 30) if ($4 > 30)
print "^c#ffffff^ ^d^" $4 "kh "$5 " ^d^" $1 "°C"
print "^c#ffffff^ ^d^" $4 "kh / "$5 " ^d^ " $1 "°C"
else if ($2 < $3) else if ($2 < $3)
print "^c#ffffff^ ^d^" $3 "% "$5 " ^d^" $1 "°C"
print "^c#ffffff^ ^d^" $3 "% / "$5 " ^d^ " $1 "°C"
else else
print "^c#81a1c1^ ^d^" $2 "% " $5 " ^d^" $1 "°C"}'
print "^c#81a1c1^ ^d^" $2 "% / " $5 " ^d^ " $1 "°C"}'
} }
case $BLOCK_BUTTON in case $BLOCK_BUTTON in


+ 1
- 1
suckless/dwmblocks/dwmblocks.c View File

@ -5,7 +5,7 @@
#include<signal.h> #include<signal.h>
#include<X11/Xlib.h> #include<X11/Xlib.h>
#define LENGTH(X) (sizeof(X) / sizeof (X[0])) #define LENGTH(X) (sizeof(X) / sizeof (X[0]))
#define CMDLENGTH 50
#define CMDLENGTH 75
typedef struct { typedef struct {
char* icon; char* icon;


Loading…
Cancel
Save