Compare commits
10 commits
bceca6350d
...
878e6b322e
Author | SHA1 | Date | |
---|---|---|---|
Alexis Jhon Gaspar | 878e6b322e | ||
Alexis Jhon Gaspar | 57f140e400 | ||
Alexis Jhon Gaspar | 740dd33505 | ||
Alexis Jhon Gaspar | 7c3b91ea52 | ||
Alexis Jhon Gaspar | b91e26bb11 | ||
Alexis Jhon Gaspar | d7be91503d | ||
Alexis Jhon Gaspar | b37edcb094 | ||
Alexis Jhon Gaspar | d477fba524 | ||
Alexis Jhon Gaspar | d962800e93 | ||
Alexis Jhon Gaspar | 11ed18bc11 |
|
@ -76,6 +76,8 @@ Linux/Unix users:
|
|||
- imlibs2(-devel or -dev)
|
||||
- picom (for transparency)
|
||||
- feh (optional)
|
||||
- pywal (for colors/wallpaper)
|
||||
- slop (for riodraw)
|
||||
|
||||
Termux users:
|
||||
- xorg
|
||||
|
|
|
@ -1,8 +1,14 @@
|
|||
#!/bin/sh
|
||||
systemctl --user restart clipmenud.service # restarts clipmenud, if installed
|
||||
wal -i "/usr/local/share/wallpapers/opensuse.png" --backend colorz # could be changed
|
||||
wal -R # could be changed
|
||||
picom -b # launches compositor
|
||||
/usr/local/bin/dwmblocks & # launches slstatus/dwmblocks
|
||||
/usr/bin/dunst & # launches dunst daemon
|
||||
while true; do
|
||||
xsetroot -name ";$(date +'%A, %B %d, %Y') | Kernel $(uname -r) | suckless-utils 6.4"
|
||||
sleep infinity
|
||||
done &
|
||||
paplay /usr/share/sounds/Oxygen-Sys-Special.ogg # autoplay sound, optional
|
||||
pkill -f "sleep infinity" &
|
||||
nm-applet &
|
||||
exec /usr/local/bin/dwm # launch dwm
|
||||
|
|
|
@ -900,25 +900,29 @@ static const Key on_empty_keys[] = {
|
|||
static const Key keys[] = {
|
||||
/* modifier key function argument */
|
||||
/* spmenu bindings here */
|
||||
{ Mod4Mask, XK_s, spawn, SHCMD("spmenu_run -d -a '-g 4 -l 10'") },
|
||||
{ Mod4Mask|ShiftMask, XK_s, spawn, SHCMD("spmenu_run -a '-g 4 -l 10'") },
|
||||
{ Mod4Mask, XK_f, spawn, SHCMD("spmenu_run -fm -a '-g 4 -l 10'") },
|
||||
{ Mod4Mask, XK_s, spawn, SHCMD("spmenu_run -d -a '-g 4 -l 10'") },
|
||||
{ Mod4Mask|ShiftMask, XK_s, spawn, SHCMD("spmenu_run -a '-g 4 -l 10'") },
|
||||
{ Mod4Mask, XK_f, spawn, SHCMD("spmenu_run -fm -a '-g 4 -l 10'") },
|
||||
/* spmenu scripts down here */
|
||||
{ Mod4Mask, XK_v, spawn, SHCMD("clipmenu-spmenu") },
|
||||
{ Mod4Mask, XK_Print, spawn, SHCMD("screenshot-spmenu -f") },
|
||||
{ Mod4Mask|Mod1Mask, XK_Print, spawn, SHCMD("screenshot-spmenu -s") },
|
||||
{ Mod4Mask, XK_p, spawn, SHCMD("pirokit") },
|
||||
{ Mod4Mask|ShiftMask, XK_w, spawn, SHCMD("wallpaper-spmenu") },
|
||||
{ Mod4Mask, XK_v, spawn, SHCMD("clipmenu-spmenu") },
|
||||
{ Mod4Mask, XK_Print, spawn, SHCMD("screenshot-spmenu -f") },
|
||||
{ Mod4Mask|ShiftMask, XK_Print, spawn, SHCMD("screenshot-spmenu -s") },
|
||||
{ Mod4Mask, XK_p, spawn, SHCMD("pirokit") },
|
||||
{ Mod4Mask|ShiftMask, XK_w, spawn, SHCMD("wallpaper-spmenu") },
|
||||
/* end of spmenu keybinds */
|
||||
/* dunst specific keybinds */
|
||||
{ Mod4Mask, XK_n, spawn, SHCMD("dunstctl history-pop") },
|
||||
{ Mod4Mask, XK_x, spawn, SHCMD("dunstctl close-all") },
|
||||
{ Mod4Mask, XK_n, spawn, SHCMD("dunstctl history-pop") },
|
||||
{ Mod4Mask, XK_x, spawn, SHCMD("dunstctl close-all") },
|
||||
/* install paplay, dunst, and the scripts on scripts/dunst first */
|
||||
{ Mod4Mask, XK_u, spawn, SHCMD("volume-dunst up") },
|
||||
{ Mod4Mask, XK_d, spawn, SHCMD("volume-dunst down") },
|
||||
{ Mod4Mask, XK_m, spawn, SHCMD("volume-dunst mute") },
|
||||
{ Mod4Mask, XK_u, spawn, SHCMD("volume-dunst up") },
|
||||
{ Mod4Mask, XK_d, spawn, SHCMD("volume-dunst down") },
|
||||
{ Mod4Mask, XK_m, spawn, SHCMD("volume-dunst mute") },
|
||||
/* slock must be installed */
|
||||
{ Mod4Mask, XK_l, spawn, SHCMD("slock") },
|
||||
{ Mod4Mask, XK_l, spawn, SHCMD("slock") },
|
||||
/* suckless-utils keymaps */
|
||||
{ Mod4Mask, XK_t, spawn, SHCMD("tabbed -r 2 st -w ''") },
|
||||
{ Mod4Mask, XK_i, spawn, SHCMD("firefox") },
|
||||
{ Mod4Mask, XK_e, spawn, SHCMD("st -T sfm sfm") },
|
||||
#if KEYMODES_PATCH
|
||||
{ MODKEY, XK_Escape, setkeymode, {.ui = COMMANDMODE} },
|
||||
#endif // KEYMODES_PATCH
|
||||
|
@ -928,10 +932,6 @@ static const Key keys[] = {
|
|||
{ MODKEY|ControlMask, XK_s, riospawnsync, {.v = dmenucmd } },
|
||||
{ MODKEY|ControlMask, XK_Return, riospawn, {.v = termcmd } },
|
||||
{ MODKEY, XK_s, rioresize, {0} },
|
||||
/* suckless-utils keymaps */
|
||||
{ MODKEY|ShiftMask, XK_t, spawn, SHCMD("tabbed -r 2 st -w ''") },
|
||||
{ MODKEY|ShiftMask, XK_i, spawn, SHCMD("firefox") },
|
||||
{ Mod4Mask, XK_e, spawn, SHCMD("st -T sfm sfm") },
|
||||
#endif // RIODRAW_PATCH
|
||||
{ MODKEY, XK_b, togglebar, {0} },
|
||||
#if TOGGLETOPBAR_PATCH
|
||||
|
@ -1375,6 +1375,9 @@ static const Button buttons[] = {
|
|||
{ ClkStatusText, 0, Button1, sigstatusbar, {.i = 1 } },
|
||||
{ ClkStatusText, 0, Button2, sigstatusbar, {.i = 2 } },
|
||||
{ ClkStatusText, 0, Button3, sigstatusbar, {.i = 3 } },
|
||||
{ ClkStatusText, 0, Button4, sigstatusbar, {.i = 4 } },
|
||||
{ ClkStatusText, 0, Button5, sigstatusbar, {.i = 5 } },
|
||||
{ ClkStatusText, 0, Button6, sigstatusbar, {.i = 6 } },
|
||||
#elif BAR_STATUSCMD_PATCH
|
||||
{ ClkStatusText, 0, Button1, spawn, {.v = statuscmd } },
|
||||
{ ClkStatusText, 0, Button2, spawn, {.v = statuscmd } },
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
* Patch: https://gist.github.com/danbyl/54f7c1d57fc6507242a95b71c3d8fdea
|
||||
* https://dwm.suckless.org/patches/statuscmd/
|
||||
*/
|
||||
#define BAR_DWMBLOCKS_SIGUSR1_PATCH 1
|
||||
#define BAR_DWMBLOCKS_SIGUSR1_PATCH 0
|
||||
|
||||
/* This patch shows the titles of all visible windows in the status bar
|
||||
* (as opposed to showing only the selected one).
|
||||
|
@ -955,7 +955,7 @@
|
|||
* This patch was backported from instantWM.
|
||||
* https://github.com/bakkeby/patches/blob/master/dwm/dwm-riodraw-6.2.diff
|
||||
*/
|
||||
#define RIODRAW_PATCH 0
|
||||
#define RIODRAW_PATCH 1
|
||||
|
||||
/* This patch let's you rotate through the stack using keyboard shortcuts.
|
||||
* https://dwm.suckless.org/patches/rotatestack/
|
||||
|
|
|
@ -10,6 +10,7 @@ Block blocks[] = {
|
|||
{"sb-record", 0, 4 },
|
||||
{"sb-volume", 1, 5 },
|
||||
{"sb-date", 1, 6 },
|
||||
{"sb-user", 0, 7 },
|
||||
};
|
||||
|
||||
const unsigned short blockCount = LEN(blocks);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Displays the current time in HH:MM:SS (AM|PM)
|
||||
|
||||
notify() {
|
||||
notify-send -i office-calendar-symbolic \
|
||||
notify-send -a Calendar -i office-calendar-symbolic \
|
||||
-h string:x-canonical-private-synchronous:"$1" "$@"
|
||||
}
|
||||
|
||||
|
|
16
scripts/dwmblocks/sb-forecast
Executable file
16
scripts/dwmblocks/sb-forecast
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Displays today's weather. A simpler version of luke smith's script.
|
||||
# Usually intended for the statusbar.
|
||||
|
||||
showweather() {
|
||||
curl -s 'wttr.in/?format=1' | sed 's/ //'
|
||||
}
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
1) "$TERMINAL" -e "curl wttr.in" ;;
|
||||
3) notify-send "🌈 Weather module" "\- Left click for full forecast." ;;
|
||||
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||
esac
|
||||
|
||||
showweather
|
|
@ -10,4 +10,4 @@ load=$(cut -d' ' -f1 /proc/loadavg)
|
|||
|
||||
. sb-theme
|
||||
[ 1 -eq "$(echo "$load > $threshold" | bc)" ] && color=9
|
||||
display " $load" "$color"
|
||||
display " $load" "$color"
|
||||
|
|
|
@ -6,4 +6,4 @@ case $BLOCK_BUTTON in
|
|||
esac
|
||||
|
||||
. sb-theme
|
||||
display " $(free --mebi | awk 'NR==2 {printf ("%2.2fGiB\n", ($3 / 1024))}')"
|
||||
display " $(free --mebi | awk 'NR==2 {printf ("%2.2fGiB\n", ($3 / 1024))}')"
|
||||
|
|
5
scripts/dwmblocks/sb-user
Executable file
5
scripts/dwmblocks/sb-user
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
# Displays the current user
|
||||
|
||||
. sb-theme
|
||||
display " $(whoami)"
|
|
@ -35,7 +35,7 @@
|
|||
* The background image patch takes precedence over this patch.
|
||||
* https://tools.suckless.org/slock/patches/blur-pixelated-screen/
|
||||
*/
|
||||
#define BLUR_PIXELATED_SCREEN_PATCH 1
|
||||
#define BLUR_PIXELATED_SCREEN_PATCH 0
|
||||
|
||||
/* This patch introduces an additional color to indicate the state of Caps Lock.
|
||||
* https://tools.suckless.org/slock/patches/capscolor/
|
||||
|
|
Loading…
Reference in a new issue