makedeb
making dwm as beautiful as possible
Click here to go back to the commit logs for chadwm-git.
Hash: c56604fac74038b460ce0b9a628db7d252463c27
Message: version update
diff --git a/.SRCINFO b/.SRCINFO
index 0672348..568ee52 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,9 +2,9 @@ generated-by = makedeb-makepkg
pkgbase = chadwm-git
pkgdesc = making dwm as beautiful as possible
- pkgver = 1172021.10.01
- pkgrel = 1
- url = https://github.com/siduck76/chadwm
+ pkgver = 1522022.02.07
+ pkgrel = 2
+ url = https://github.com/siduck/chadwm
arch = any
license = MIT
makedepends = make
@@ -25,12 +25,18 @@ pkgbase = chadwm-git
optdepends = fzf-extras: fzf keybindings from junegunn wiki and dotfiles
optdepends = tmux: fzf-tmux script for launching fzf in a tmux pane
optdepends = zsh: zsh keybindings
- optdepends = st-siduck76-git: siduck76s st build https://mpr.hunterwittenborn.com/packages/st-siduck76-git/
+ optdepends = st-siduck76-git: siducks st build https://mpr.hunterwittenborn.com/packages/st-siduck76-git/
provides = dwm
conflicts = dwm
- source = git://github.com/siduck76/chadwm.git
+ source = git://github.com/siduck/chadwm.git
+ source = autostart
+ source = bar.sh
+ source = Xresources
source = dwm.desktop
sha512sums = SKIP
+ sha512sums = 1214ea72716888a2b597e399e43ad72f8a3204af8540e48fc96155ff26b9b6a0a7e0b3ce35526fdd929c32805372330b1f806a38b5c2cab6dc71e1a9f0e9685a
+ sha512sums = 5ad18ea8f404679f1761f83de69681155a22ab013986f8b5dd68492936e6757d1cf35b4281f6b6204c65ac0a645be85306c7c8302cbc3f1b285081a6e213a043
+ sha512sums = aec8a26b5ba51b8d0b89d07e1cd3125ff1e89c6c18253f6e428f5ff16e18ca62ff846b50c0eb8247540a34788788b5669b39aee7b3472f2b110897e7adf05328
sha512sums = 886eb6608fb9b5570c7aa1d6aab40ba5aef8b3bd1444537a2713bcf62bdefac0bfb1bf378fc6bdca9a7293f8e1466dcfefcadd13770ee5097b14a62b8d4e7ccf
pkgname = chadwm-git
diff --git a/PKGBUILD b/PKGBUILD
index f83a66d..7f6838d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
# Maintainer: only_vip <onlyme_vip@protonmail.com>
pkgname=chadwm-git
_pkgname=chadwm
-pkgver=1172021.10.01
-pkgrel=1
+pkgver=1522022.02.07
+pkgrel=2
pkgdesc="making dwm as beautiful as possible"
arch=('any')
depends=('maim' 'stterm' 'xbacklight' 'aptitude' 'tasksel')
@@ -11,14 +11,19 @@ optdepends=('fish: fish keybindings'
'fzf-extras: fzf keybindings from junegunn wiki and dotfiles'
'tmux: fzf-tmux script for launching fzf in a tmux pane'
'zsh: zsh keybindings'
- 'st-siduck76-git: siduck76s st build https://mpr.hunterwittenborn.com/packages/st-siduck76-git/')
-url="https://github.com/siduck76/chadwm"
+ 'st-siduck76-git: siducks st build https://mpr.hunterwittenborn.com/packages/st-siduck76-git/')
+url="https://github.com/siduck/chadwm"
license=('MIT')
-source=("git://github.com/siduck76/chadwm.git"
- "dwm.desktop")
+source=("git://github.com/siduck/chadwm.git"
+ "autostart"
+ "bar.sh"
+ "Xresources"
+ "dwm.desktop")
sha512sums=("SKIP"
- "886eb6608fb9b5570c7aa1d6aab40ba5aef8b3bd1444537a2713bcf62bdefac0bfb1bf378fc6bdca9a7293f8e1466dcfefcadd13770ee5097b14a62b8d4e7ccf"
- )
+ "1214ea72716888a2b597e399e43ad72f8a3204af8540e48fc96155ff26b9b6a0a7e0b3ce35526fdd929c32805372330b1f806a38b5c2cab6dc71e1a9f0e9685a"
+ "5ad18ea8f404679f1761f83de69681155a22ab013986f8b5dd68492936e6757d1cf35b4281f6b6204c65ac0a645be85306c7c8302cbc3f1b285081a6e213a043"
+ "aec8a26b5ba51b8d0b89d07e1cd3125ff1e89c6c18253f6e428f5ff16e18ca62ff846b50c0eb8247540a34788788b5669b39aee7b3472f2b110897e7adf05328"
+ "886eb6608fb9b5570c7aa1d6aab40ba5aef8b3bd1444537a2713bcf62bdefac0bfb1bf378fc6bdca9a7293f8e1466dcfefcadd13770ee5097b14a62b8d4e7ccf")
provides=('dwm')
conflicts=('dwm')
# replaces=('dwm')
@@ -33,20 +38,21 @@ pkgver() {
package() {
cd ${srcdir}/${_pkgname}/${_pkgname}
+ ## build chadwm
make DESTDIR="${pkgdir}" install
- install -d "${pkgdir}/$HOME/.dwm"
- chown $USER ${pkgdir}/$HOME/.dwm
- #install -Dm755 "${srcdir}/${_pkgname}/.dwm/"* "${pkgdir}/$HOME/.dwm"
- mkdir -p "${pkgdir}/$HOME/.dwm/bars"
- install -Dm755 "${srcdir}/${_pkgname}/.dwm/bars/"*.sh "${pkgdir}/$HOME/.dwm/bars/"
- chown $USER "${pkgdir}/$HOME/.dwm/bars"*
- install -Dm755 "${srcdir}/${_pkgname}/.dwm/layoutmenu.sh" "${pkgdir}/$HOME/.dwm"
- chown $USER "${pkgdir}/$HOME/.dwm/layoutmenu.sh"
- install -Dm755 "${srcdir}/${_pkgname}/.dwm/autostart" "${pkgdir}/$HOME/.dwm"
- chown $USER "${pkgdir}/$HOME/.dwm/autostart"
- install -Dm755 "${srcdir}/${_pkgname}/.dwm/autostart" "${pkgdir}/usr/bin/dwm-autostart"
- install -Dm755 "${srcdir}/${_pkgname}/.dwm/layoutmenu.sh" "${pkgdir}/usr/bin/layoutmenu.sh"
+ install -d "${pkgdir}/usr/share/chadwm/"{eww,rofi,scripts}
+ # install eww, rofi and scripts folder to /usr/share/chadwm dir
+ cp -vRf "${srcdir}/${_pkgname}/eww/"* "${pkgdir}/usr/share/chadwm/eww/"
+ cp -vRf "${srcdir}/${_pkgname}/rofi/"* "${pkgdir}/usr/share/chadwm/rofi/"
+ install -D -m755 "${srcdir}/${_pkgname}/scripts/"*.sh "${pkgdir}/usr/share/chadwm/scripts/"
+ # install custom autostart script
+ install -Dm755 "${srcdir}/autostart" "${pkgdir}/usr/bin/dwm-autostart"
+ # install and overwrite custom bar.sh script
+ install -Dm755 "${srcdir}/bar.sh" "${pkgdir}/usr/share/chadwm/scripts/bar.sh"
+ install -Dm755 "${srcdir}/Xresources" "${pkgdir}/usr/share/chadwm/Xresources"
+ #install the desktop entry and some docs
install -Dm644 "${srcdir}/dwm.desktop" "${pkgdir}/usr/share/xsessions/dwm.desktop"
install -Dm644 "${srcdir}/${_pkgname}/keyssheet.md" "${pkgdir}/usr/share/doc/dwm/keyssheet.md"
install -Dm644 "${srcdir}/${_pkgname}/LICENSE" "${pkgdir}/usr/share/doc/dwm/LICENSE"
+
}
diff --git a/Xresources b/Xresources
new file mode 100644
index 0000000..dad9d10
--- /dev/null
+++ b/Xresources
@@ -0,0 +1,61 @@
+Xft.antialias: 1
+Xft.hinting: 1
+Xft.autohint: 0
+Xft.hintstyle: hintslight
+Xft.rgba: rgb
+Xft.lcdfilter: lcddefault
+
+! window padding
+st.borderpx: 20
+
+!-- values between 0.1 - 1.0 --!
+
+st.alpha: 1.0
+st.font: JetBrainsMono Nerd Font:style:medium:pixelsize=15
+
+#define base00 #282c34
+#define base01 #353b45
+#define base02 #3e4451
+#define base03 #545862
+#define base04 #565c64
+#define base05 #abb2bf
+#define base06 #b6bdca
+#define base07 #c8ccd4
+#define base08 #e06c75
+#define base09 #d19a66
+#define base0A #e5c07b
+#define base0B #98c379
+#define base0C #56b6c2
+#define base0D #61afef
+#define base0E #c678dd
+#define base0F #be5046
+
+*foreground: base07
+*background: #1e222a
+*cursorColor: base05
+
+*color0: base00
+*color1: base08
+*color2: base0B
+*color3: base0A
+*color4: base0D
+*color5: base0E
+*color6: base0C
+*color7: base05
+
+*color8: base03
+*color9: base08
+*color10: base0B
+*color11: base0A
+*color12: base0D
+*color13: base0E
+*color14: base0C
+*color15: base07
+
+! just remove this if you dont use my tabbed
+
+tabbed.selfgcolor: #d6d8eb
+tabbed.selbgcolor: #1e222a
+
+tabbed.normfgcolor: #9294a8
+tabbed.normbgcolor: #282c34
diff --git a/autostart b/autostart
new file mode 100755
index 0000000..1c4beff
--- /dev/null
+++ b/autostart
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# this is just an example!
+# add your autostart stuffs here
+xbacklight -set 5 &
+#xmodmap ~/.xmodmap-sid &
+picom &
+#xrdb merge ~/.Xresources &
+xrdb merge /usr/share/chadwm/Xresources &
+#feh --bg-fill ~/Pictures/wall/gruvchad.png &
+
+# run bar script and dwm ( do not remove this )
+#~/.config/chadwm/scripts/./bar.sh &
+/usr/share/chadwm/scripts/bar.sh
+dwm
diff --git a/bar.sh b/bar.sh
new file mode 100755
index 0000000..0f90226
--- /dev/null
+++ b/bar.sh
@@ -0,0 +1,64 @@
+#!/bin/dash
+
+# ^c$var^ = fg color
+# ^b$var^ = bg color
+
+interval=0
+
+# load colors
+#. ~/.config/chadwm/scripts/bar_themes/onedark
+. /usr/share/chadwm/scripts/bar_themes/onedark
+
+cpu() {
+ cpu_val=$(grep -o "^[^ ]*" /proc/loadavg)
+
+ printf "^c$black^ ^b$green^ CPU"
+ printf "^c$white^ ^b$grey^ $cpu_val"
+}
+
+pkg_updates() {
+ #updates=$(doas xbps-install -un | wc -l) # void
+ # updates=$(checkupdates | wc -l) # arch , needs pacman contrib
+ updates=$(aptitude search '~U' | wc -l) # apt (ubuntu,debian etc)
+
+ if [ -z "$updates" ]; then
+ printf "^c$green^ Fully Updated"
+ else
+ printf "^c$green^ $updates"" updates"
+ fi
+}
+
+battery() {
+ get_capacity="$(cat /sys/class/power_supply/BAT1/capacity)"
+ printf "^c$blue^ $get_capacity"
+}
+
+brightness() {
+ printf "^c$red^ "
+ printf "^c$red^%.0f\n" $(cat /sys/class/backlight/*/brightness)
+}
+
+mem() {
+ printf "^c$blue^^b$black^ "
+ printf "^c$blue^ $(free -h | awk '/^Mem/ { print $3 }' | sed s/i//g)"
+}
+
+wlan() {
+ case "$(cat /sys/class/net/wl*/operstate 2>/dev/null)" in
+ up) printf "^c$black^ ^b$blue^ ^d^%s" " ^c$blue^Connected" ;;
+ down) printf "^c$black^ ^b$blue^ ^d^%s" " ^c$blue^Disconnected" ;;
+ esac
+}
+
+clock() {
+ printf "^c$black^ ^b$darkblue^ "
+ printf "^c$black^^b$blue^ $(date '+%I:%M %p') "
+}
+
+while true; do
+
+ [ $interval = 0 ] || [ $(($interval % 3600)) = 0 ] && updates=$(pkg_updates)
+ interval=$((interval + 1))
+
+ sleep 1 && xsetroot -name "$updates $(battery) $(brightness) $(cpu) $(mem) $(wlan) $(clock)"
+done