summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorstkhan <personal@slickd.xyz>2022-05-13 18:15:43 +0000
committerstkhan <personal@slickd.xyz>2022-05-13 18:15:43 +0000
commit2e81fbdf15168a5b6df291b7062d120156a5ce45 (patch)
tree57de36552c6f46e43d8520ccf65acb80ef5f6c29 /scripts
parent7a93f153bf5e088ab6e2da6fcc0518744cfd54af (diff)
Removed dwm scripts, sfm, , added scroll, and added dark theme to surf
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile7
-rwxr-xr-xscripts/get_weather5
-rw-r--r--scripts/ip.c32
3 files changed, 0 insertions, 44 deletions
diff --git a/scripts/Makefile b/scripts/Makefile
deleted file mode 100644
index 1b32df7..0000000
--- a/scripts/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-include ../config.mk
-
-install:
- gcc -o gip ip.c
- cp get_weather fehbg gip $(PREFIX)/bin
-clean:
- rm $(PREFIX)/bin/{gip, , fehbg, get_weather}
diff --git a/scripts/get_weather b/scripts/get_weather
deleted file mode 100755
index 1b3767b..0000000
--- a/scripts/get_weather
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-echo "Date: $(date)" >> ~/.cache/weather_report
-curl wttr.in > ~/.cache/weather_report
-st less -Srf ~/.cache/weather_report
diff --git a/scripts/ip.c b/scripts/ip.c
deleted file mode 100644
index 3276696..0000000
--- a/scripts/ip.c
+++ /dev/null
@@ -1,32 +0,0 @@
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h> /* for strncpy */
-
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/ioctl.h>
-#include <netinet/in.h>
-#include <net/if.h>
-#include <arpa/inet.h>
-
-int
-main()
-{
- int fd;
- struct ifreq ifr;
-
- fd = socket(AF_INET, SOCK_DGRAM, 0);
-
- /* I want to get an IPv4 IP address */
- ifr.ifr_addr.sa_family = AF_INET;
- strncpy(ifr.ifr_name, "wlan0", IFNAMSIZ-1);
-
- ioctl(fd, SIOCGIFADDR, &ifr);
-
- close(fd);
-
- /* display result */
- printf("%s\n", inet_ntoa(((struct sockaddr_in *)&ifr.ifr_addr)->sin_addr));
-
- return 0;
-}