wip
This commit is contained in:
@@ -15,6 +15,7 @@ static const Rule rules[] = {
|
|||||||
{ "librewolf", NULL, NULL, 1 << 1, 0, -1 },
|
{ "librewolf", NULL, NULL, 1 << 1, 0, -1 },
|
||||||
{ "steam", NULL, NULL, 1 << 2, 0, -1 },
|
{ "steam", NULL, NULL, 1 << 2, 0, -1 },
|
||||||
{ "PrismLauncher", NULL, NULL, 1 << 2, 0, -1 },
|
{ "PrismLauncher", NULL, NULL, 1 << 2, 0, -1 },
|
||||||
|
{ "Hello World", NULL, NULL, 1, 1, -1 },
|
||||||
};
|
};
|
||||||
|
|
||||||
static const float mfact = 0.55;
|
static const float mfact = 0.55;
|
||||||
@@ -37,7 +38,7 @@ static const Layout layouts[] = {
|
|||||||
|
|
||||||
#include "X11/XF86keysym.h"
|
#include "X11/XF86keysym.h"
|
||||||
static const Key keys[] = {
|
static const Key keys[] = {
|
||||||
{ MODKEY, XK_Return, spawn, SHCMD("ghostty") },
|
{ MODKEY, XK_Return, spawn, SHCMD("ghostty -e tmux a") },
|
||||||
{ MODKEY, XK_space, spawn, SHCMD("dmenu_run -l 6") },
|
{ MODKEY, XK_space, spawn, SHCMD("dmenu_run -l 6") },
|
||||||
{ MODKEY, XK_f, spawn, SHCMD("librewolf") },
|
{ MODKEY, XK_f, spawn, SHCMD("librewolf") },
|
||||||
{ MODKEY|ShiftMask, XK_s, spawn, SHCMD("steam") },
|
{ MODKEY|ShiftMask, XK_s, spawn, SHCMD("steam") },
|
||||||
|
|||||||
+1
-14
@@ -26,19 +26,6 @@ else
|
|||||||
fi
|
fi
|
||||||
logical_threads=$(nproc --all)
|
logical_threads=$(nproc --all)
|
||||||
|
|
||||||
# CPU usage (quick sample)
|
|
||||||
cpu_usage() {
|
|
||||||
read -r _ u n s i _ < <(grep '^cpu ' /proc/stat)
|
|
||||||
prev=$((u+n+s+i)); prev_idle=$i
|
|
||||||
sleep 0.1
|
|
||||||
read -r _ u n s i _ < <(grep '^cpu ' /proc/stat)
|
|
||||||
cur=$((u+n+s+i)); idle=$i
|
|
||||||
dt=$((cur - prev)); di=$((idle - prev_idle))
|
|
||||||
((dt>0)) && printf "%.1f%%" "$(bc -l <<< "100*($dt-$di)/$dt")" || echo "0.0%"
|
|
||||||
}
|
|
||||||
|
|
||||||
cpu_use=$(cpu_usage)
|
|
||||||
|
|
||||||
# Memory
|
# Memory
|
||||||
mem_usage=$(free -h | awk '/Mem:/ {print $3 "/" $2}')
|
mem_usage=$(free -h | awk '/Mem:/ {print $3 "/" $2}')
|
||||||
|
|
||||||
@@ -50,7 +37,7 @@ pkg_count=$(find /var/db/pkg -mindepth 2 -maxdepth 2 -type d 2>/dev/null | wc -l
|
|||||||
|
|
||||||
# --- Define lines (easy to add new ones) ---
|
# --- Define lines (easy to add new ones) ---
|
||||||
lines=(
|
lines=(
|
||||||
"${cyan}CPU${reset}: ${physical_cores}c/${logical_threads}t/${cpu_use}"
|
"${cyan}CPU${reset}: ${physical_cores}c/${logical_threads}t"
|
||||||
"${green}Memory${reset}: ${mem_usage}"
|
"${green}Memory${reset}: ${mem_usage}"
|
||||||
"${red}Age${reset}: ${sys_age} days"
|
"${red}Age${reset}: ${sys_age} days"
|
||||||
"${blue}Pkgs${reset}: ${pkg_count}"
|
"${blue}Pkgs${reset}: ${pkg_count}"
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
if [[ -f ~/.last_world_update ]]; then
|
|
||||||
last_epoch=$(stat -c %Y ~/.last_world_update)
|
|
||||||
days_since_update=$(( ( $(date +%s) - last_epoch ) / 86400 ))
|
|
||||||
else
|
|
||||||
days_since_update=0
|
|
||||||
fi
|
|
||||||
@@ -8,11 +8,12 @@
|
|||||||
Uses Everforest and DWM
|
Uses Everforest and DWM
|
||||||
- Packages Needed:
|
- Packages Needed:
|
||||||
- Libs:
|
- Libs:
|
||||||
- libXinerama, libXft, libX11
|
- libXft, libX11
|
||||||
- X11:
|
- X11:
|
||||||
- xwallpaper, xrandr, xinput
|
- xwallpaper, xrandr, xinput
|
||||||
- Software:
|
- Software:
|
||||||
- ghostty, tmux, neovim, dunst, pipewire + wireplumber, picom (Pijulius's Picom for animations)
|
- ghostty, tmux, neovim, dunst, pipewire + wireplumber, picom (Pijulius's Picom for animations)
|
||||||
```
|
```
|
||||||
<img width="1920" height="1080" alt="2025-09-06-151621_1920x1080_scrot" src="https://github.com/user-attachments/assets/c42103f8-ae24-4205-8e95-ed2c40b0013d" />
|
<img width="1920" height="1080" alt="browser" src="https://github.com/user-attachments/assets/420145f9-f38c-41c5-bbb9-4d4fa0dd1ff8" />
|
||||||
<img width="1920" height="1080" alt="2025-09-06-151513_1920x1080_scrot" src="https://github.com/user-attachments/assets/449a5be8-66ab-4c3e-8db5-ac600fb80bd7" />
|
|
||||||
|
<img width="1920" height="1080" alt="terminal" src="https://github.com/user-attachments/assets/3ec949d2-6266-4278-b421-d49240a14051" />
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ DOTFILES_HOME="/home/andrew/personal/dotfiles/"
|
|||||||
DOTFILES_CONFIG="${DOTFILES_HOME}.config/"
|
DOTFILES_CONFIG="${DOTFILES_HOME}.config/"
|
||||||
DOTFILES_LOCAL="${DOTFILES_HOME}.local/"
|
DOTFILES_LOCAL="${DOTFILES_HOME}.local/"
|
||||||
|
|
||||||
PERSONAL_HOME="/home/andrew/"
|
HOME="/home/andrew/"
|
||||||
CONFIG="${PERSONAL_HOME}.config/"
|
CONFIG="${HOME}.config/"
|
||||||
LOCAL="${PERSONAL_HOME}.local/"
|
LOCAL="${HOME}.local/"
|
||||||
|
|
||||||
ORIGINAL_DOTS=(
|
ORIGINAL_DOTS=(
|
||||||
"${DOTFILES_CONFIG}nvim/"
|
"${DOTFILES_CONFIG}nvim/"
|
||||||
@@ -34,9 +34,9 @@ COPY_DOTS=(
|
|||||||
"${CONFIG}picom.conf"
|
"${CONFIG}picom.conf"
|
||||||
"${LOCAL}share/fonts/"
|
"${LOCAL}share/fonts/"
|
||||||
"${LOCAL}bin/"
|
"${LOCAL}bin/"
|
||||||
"${PERSONAL_HOME}.xinitrc"
|
"${HOME}.xinitrc"
|
||||||
"${PERSONAL_HOME}.bashrc"
|
"${HOME}.bashrc"
|
||||||
"${PERSONAL_HOME}.bash_profile"
|
"${HOME}.bash_profile"
|
||||||
)
|
)
|
||||||
|
|
||||||
for x in "${!ORIGINAL_DOTS[@]}"; do
|
for x in "${!ORIGINAL_DOTS[@]}"; do
|
||||||
@@ -54,11 +54,5 @@ for x in "${!ORIGINAL_DOTS[@]}"; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo -e "${GREEN}Rebuilding Suckless Software${RESET}"
|
|
||||||
for x in "${CONFIG}suckless"/*/; do
|
|
||||||
[[ -d "${x}" ]] || continue
|
|
||||||
cd "${x}" && make && doas make install && make clean && pkill dwm
|
|
||||||
done
|
|
||||||
|
|
||||||
echo -e "${GREEN}Re-caching fonts${RESET}"
|
echo -e "${GREEN}Re-caching fonts${RESET}"
|
||||||
fc-cache -f
|
fc-cache -f
|
||||||
|
|||||||
Reference in New Issue
Block a user