summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Guschin <saintruler@gmail.com>2021-06-14 21:38:18 +0400
committerAndrew Guschin <saintruler@gmail.com>2021-06-14 21:38:18 +0400
commit2fa70859c5c383ea5b94854ea70d858e5198ba1b (patch)
tree57e031b79914cbae6ffe16da36bba8bb72f221d1
parent1749fbcdedbdaa3a490712ade94ed050510d2930 (diff)
Fixed PKGBUILD file
-rw-r--r--.gitignore57
-rw-r--r--PKGBUILD8
-rw-r--r--blocks.def.h10
-rw-r--r--blocks.h13
4 files changed, 16 insertions, 72 deletions
diff --git a/.gitignore b/.gitignore
index c4bb970..87d37d2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,53 +1,8 @@
-# Prerequisites
-*.d
-
-# Object files
*.o
-*.ko
-*.obj
-*.elf
-
-# Linker output
-*.ilk
-*.map
-*.exp
-
-# Precompiled Headers
-*.gch
-*.pch
-
-# Libraries
-*.lib
-*.a
-*.la
-*.lo
-
-# Shared objects (inc. Windows DLLs)
-*.dll
-*.so
-*.so.*
-*.dylib
-
-# Executables
-*.exe
-*.out
-*.app
-*.i*86
-*.x86_64
-*.hex
dwmblocks
-
-# Debug files
-*.dSYM/
-*.su
-*.idb
-*.pdb
-
-# Kernel Module Compile Results
-*.mod*
-*.cmd
-.tmp_versions/
-modules.order
-Module.symvers
-Mkfile.old
-dkms.conf
+*.orig
+*.rej
+src
+pkg
+*.zst
+blocks.h
diff --git a/PKGBUILD b/PKGBUILD
index 26d62c5..b2e0f32 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,12 +7,12 @@ url="https://git.vasthecat.ru/dwmblocks.git"
arch=('i686' 'x86_64')
provides=('dwmblocks')
conflicts=('dwmblocks')
-source=('config.h' 'dwmblocks.c' 'LICENSE' 'Makefile')
+source=('blocks.def.h' 'dwmblocks.c' 'LICENSE' 'Makefile')
md5sums=(
'SKIP'
- 'd0be83080b876500d4dab40371e79237'
- 'b234ee4d69f5fce4486a80fdaf4a4263'
- 'c2e8f80f0fb857daedab59c9c3b65636'
+ '241b3be916d950f6fbd8ca10f8ec2b3e'
+ '7e629c99d5be645e97db4baf07b64993'
+ '07846434a8794ecb9d3d209fa0d02daf'
)
build() {
diff --git a/blocks.def.h b/blocks.def.h
index 9c22d68..c33b349 100644
--- a/blocks.def.h
+++ b/blocks.def.h
@@ -1,9 +1,11 @@
//Modify this file to change what commands output to your statusbar, and recompile using the make command.
static const Block blocks[] = {
- /*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
- {"Mem:", "free -h | awk '/^Mem/ { print $3\"/\"$2 }' | sed s/i//g", 30, 0},
-
- {"", "date '+%b %d (%a) %I:%M%p'", 5, 0},
+ /*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
+ {"PKG: ", "dwm-packages", 3600, 3},
+ {"VOL: ", "dwm-volume", 0, 9},
+ {"BAT: ", "dwm-battery", 10, 6},
+ {"LNG: ", "xkb-switch", 1, 0},
+ {"CLK: ", "dwm-clock", 60, 10},
};
//sets delimeter between status commands. NULL character ('\0') means no delimeter.
diff --git a/blocks.h b/blocks.h
deleted file mode 100644
index c33b349..0000000
--- a/blocks.h
+++ /dev/null
@@ -1,13 +0,0 @@
-//Modify this file to change what commands output to your statusbar, and recompile using the make command.
-static const Block blocks[] = {
- /*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
- {"PKG: ", "dwm-packages", 3600, 3},
- {"VOL: ", "dwm-volume", 0, 9},
- {"BAT: ", "dwm-battery", 10, 6},
- {"LNG: ", "xkb-switch", 1, 0},
- {"CLK: ", "dwm-clock", 60, 10},
-};
-
-//sets delimeter between status commands. NULL character ('\0') means no delimeter.
-static char delim[] = " | ";
-static unsigned int delimLen = 5;