diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-03-26 00:37:32 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-03-26 00:37:32 +0900 |
| commit | 9aca83e1b1075244a236cd9833ee9f5fb5e2d29b (patch) | |
| tree | 8b8e63e3b39df7d9cf4e4c616e3cbf4420ff81fa | |
| parent | 743b294dc93cbad7eacd988c0c0ac191ca501ccc (diff) | |
modified dwm/config.def.h, modified dwmblocks/config.def.h, deleted dwmblocks/config.h
| -rw-r--r-- | dwm/config.def.h | 4 | ||||
| -rw-r--r-- | dwmblocks/config.def.h | 27 | ||||
| -rw-r--r-- | dwmblocks/config.h | 54 |
3 files changed, 21 insertions, 64 deletions
diff --git a/dwm/config.def.h b/dwm/config.def.h index 92e4542..f11d65c 100644 --- a/dwm/config.def.h +++ b/dwm/config.def.h @@ -221,8 +221,8 @@ static const char *layoutmenu_cmd = "layoutmenu"; static const Arg tagexec[] = { { .v = termcmd }, // 1 { .v = (const char *[]){ BROWSER, NULL } }, // 2 - SHCMD(TERMINAL " -e neomutt ; pkill -RTMIN+20 dwmblocks"), // 3 - SHCMD(TERMINAL " -e newsboat ; pkill -RTMIN+19 dwmblocks"), // 4 + SHCMD(TERMINAL " -e neomutt; pkill -RTMIN+20 dwmblocks"), // 3 + SHCMD(TERMINAL " -e newsboat; pkill -RTMIN+19 dwmblocks"), // 4 { .v = (const char *[]){ TERMINAL, "-e", "ncmpcpp", NULL } }, // 5 { .v = (const char *[]){ "torwrap", NULL } }, // 6 { .v = (const char *[]){ TERMINAL, "-e", "sudo", "nmtui", NULL } }, // 7 diff --git a/dwmblocks/config.def.h b/dwmblocks/config.def.h index cffa5ab..93fda0d 100644 --- a/dwmblocks/config.def.h +++ b/dwmblocks/config.def.h @@ -41,14 +41,25 @@ X("", "sb-ecrypt", 0, 2) \ X("", "sb-help-icon", 0, 1) - /* X("", "sb-price xmr-btc \"Monero to Bitcoin\" 🔒 30", 9000, 31) \ */ - /* X("", "sb-price xmr Monero 🔒 29", 9000, 30) \ */ - /* X("", "sb-price bnb Binance 🫧 28", 9000, 29) \ */ - /* X("", "sb-price xrp XRP 🪓 27", 9000, 28) \ */ - /* X("", "sb-price usdt Tether ⛺ 26", 9000, 27) \ */ - /* X("", "sb-price eth Ethereum 🍸 25", 9000, 26) \ */ - /* X("", "sb-price btc Bitcoin 💰 24", 9000, 25) \ */ - /* X("", "sb-iplocate", 0, 6) \ */ + /* X("", "sb-price xmr-btc \"Monero to Bitcoin\" 🔒 30", 9000, 31) \ */ + /* X("", "sb-price xmr Monero 🔒 29", 9000, 30) \ */ + /* X("", "sb-price bnb Binance 🫧 28", 9000, 29) \ */ + /* X("", "sb-price xrp XRP 🪓 27", 9000, 28) \ */ + /* X("", "sb-price usdt Tether ⛺ 26", 9000, 27) \ */ + /* X("", "sb-price eth Ethereum 🍸 25", 9000, 26) \ */ + /* X("", "sb-price btc Bitcoin 💰 24", 9000, 25) \ */ + /* X("", "sb-ticker", 0, 25) \ */ + /* X("", "sb-iplocate", 0, 6) \ */ #endif // CONFIG_H +// Have dwmblocks automatically recompile and run when you edit this file in +// vim with the following line in your vimrc/init.vim: + +// autocmd BufWritePost ~/.local/src/suckless/dwmblocks/config.def.h !cd ~/.local/src/suckless/dwmblocks/; sudo make install && { killall -q dwmblocks;setsid -f dwmblocks } + +// Although, pkill is slightly slower than the command kill, which can +// make a big difference if we are making semi-frequent changes in a script. +// To signal with kill, we must send the value plus 34. Just remember 34. +// So, 10 + 34 = 44, so we use this command: kill -44 $(pidof dwmblocks) + diff --git a/dwmblocks/config.h b/dwmblocks/config.h deleted file mode 100644 index cffa5ab..0000000 --- a/dwmblocks/config.h +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef CONFIG_H -#define CONFIG_H - -// String used to delimit block outputs in the status. -#define DELIMITER " " - -// Maximum number of Unicode characters that a block can output. -#define MAX_BLOCK_OUTPUT_LENGTH 50 - -// Control whether blocks are clickable. -#define CLICKABLE_BLOCKS 1 - -// Control whether a leading delimiter should be prepended to the status. -#define LEADING_DELIMITER 0 - -// Control whether a trailing delimiter should be appended to the status. -#define TRAILING_DELIMITER 0 - -// Define blocks for the status feed as X(icon, cmd, interval, signal). -#define BLOCKS(X)\ - X("", "sb-music", 0, 23) \ - X("", "sb-torrent", 0, 22) \ - X("", "sb-queues", 10, 21) \ - X("", "sb-mailbox", 300, 20) \ - X("", "sb-news", 0, 19) \ - X("", "sb-repos", 60, 18) \ - X("", "sb-tasks", 60, 17) \ - X("", "sb-packages", 0, 16) \ - X("", "sb-forecast", 10800, 15) \ - X("", "sb-cpu", 60, 13) \ - X("", "sb-memory", 60, 12) \ - X("", "sb-disk", 10800, 11) \ - X("", "sb-keyboard", 0, 10) \ - X("", "sb-bghitness", 0, 9) \ - X("", "sb-brightness", 0, 8) \ - X("", "sb-internet", 5, 7) \ - X("", "sb-mic", 0, 6) \ - X("", "sb-volume", 0, 5) \ - X("", "sb-battery", 5, 4) \ - X("", "sb-clock", 60, 3) \ - X("", "sb-ecrypt", 0, 2) \ - X("", "sb-help-icon", 0, 1) - - /* X("", "sb-price xmr-btc \"Monero to Bitcoin\" 🔒 30", 9000, 31) \ */ - /* X("", "sb-price xmr Monero 🔒 29", 9000, 30) \ */ - /* X("", "sb-price bnb Binance 🫧 28", 9000, 29) \ */ - /* X("", "sb-price xrp XRP 🪓 27", 9000, 28) \ */ - /* X("", "sb-price usdt Tether ⛺ 26", 9000, 27) \ */ - /* X("", "sb-price eth Ethereum 🍸 25", 9000, 26) \ */ - /* X("", "sb-price btc Bitcoin 💰 24", 9000, 25) \ */ - /* X("", "sb-iplocate", 0, 6) \ */ - -#endif // CONFIG_H - |
