diff --git a/dwm/dwm/fibonacci.c b/dwm/dwm/fibonacci.c index c328322..c31d076 100644 --- a/dwm/dwm/fibonacci.c +++ b/dwm/dwm/fibonacci.c @@ -1,5 +1,6 @@ -void -fibonacci(Monitor *mon, int s) { + +//------------------------ fibonacci function ------------------------------------ +void fibonacci(Monitor *mon, int s) { unsigned int i, n, nx, ny, nw, nh; Client *c; @@ -54,13 +55,16 @@ fibonacci(Monitor *mon, int s) { resize(c, nx + gap, ny + gap, nw - gap-gap - 2 * c->bw, nh - gap-gap - 2 * c->bw, 0); } } +//-------------------------------------------------------------------------------- -void -dwindle(Monitor *mon) { +//----------- dwindle -------- +void dwindle(Monitor *mon) { fibonacci(mon, 1); } +//---------------------------- -void -spiral(Monitor *mon) { +//--------- spiral ----------- +void spiral(Monitor *mon) { fibonacci(mon, 0); } +//---------------------------- diff --git a/waybar/config b/waybar/config index 54b2352..d76db0e 100644 --- a/waybar/config +++ b/waybar/config @@ -4,7 +4,7 @@ "spacing": 4, "modules-left": ["custom/launcher", "cpu", "memory", "temperature", "disk", "custom/weather", "custom/updates", "custom/onscreenkeyboard", "hyprland/window"], "modules-center": ["hyprland/workspaces"], - "modules-right": ["privacy", "mpris", "cava", "pulseaudio/slider", "pulseaudio", "network", "backlight", "keyboard-state", "hyprland/language", "battery", "battery#bat2", "clock", "tray", "custom/power"], + "modules-right": ["privacy", "mpris", "cava", "pulseaudio", "network", "backlight", "keyboard-state", "hyprland/language", "battery", "battery#bat2", "clock", "tray", "custom/power"], "hyprland/workspaces": { "format": "{icon}", // "format-icons": {