danshari!

This commit is contained in:
2026-03-12 03:49:47 +01:00
parent ec92891e4d
commit 55090c6415
62 changed files with 19 additions and 11 deletions
+18 -11
View File
@@ -36,16 +36,16 @@ GUI_BASE_PKGS = [
] ]
# for Hyprland setup # for Hyprland setup
HYPRLAND_PKGS = [ # HYPRLAND_PKGS = [
*GUI_BASE_PKGS, # *GUI_BASE_PKGS,
"eww", # widgets # "eww", # widgets
"hypr", # hypr family # "hypr", # hypr family
"hyprland", # wm config # "hyprland", # wm config
"mako", # notifications # "mako", # notifications
"rofi", # application launcher # "rofi", # application launcher
"waybar", # status bar # "waybar", # status bar
"wlogout", # logout menu # "wlogout", # logout menu
] # ]
# for Niri setup # for Niri setup
NIRI_PKGS = [ NIRI_PKGS = [
@@ -61,7 +61,7 @@ PKGS = {
"base": BASE_PKGS, "base": BASE_PKGS,
"tui": TUI_PKGS, "tui": TUI_PKGS,
"gui": GUI_BASE_PKGS, "gui": GUI_BASE_PKGS,
"hyprland": HYPRLAND_PKGS, # "hyprland": HYPRLAND_PKGS,
"niri": NIRI_PKGS, "niri": NIRI_PKGS,
} }
@@ -122,6 +122,13 @@ def main():
except subprocess.CalledProcessError as e: except subprocess.CalledProcessError as e:
_log("ERROR", f"Failed to switch session: {e}") _log("ERROR", f"Failed to switch session: {e}")
else:
try:
switch("default") # "default" as defined by me :)
_log("INFO", "Switched session to default.")
except subprocess.CalledProcessError as e:
_log("ERROR", f"Failed to switch session: {e}")
if __name__ == "__main__": if __name__ == "__main__":
main() main()
@@ -69,6 +69,7 @@ Singleton {
} }
function _scheduleCycle(secondsFromNow) { function _scheduleCycle(secondsFromNow) {
if (!enabled) return;
const seconds = Math.max(1, Math.floor(secondsFromNow)); const seconds = Math.max(1, Math.floor(secondsFromNow));
timeUntilNextCycle = seconds; timeUntilNextCycle = seconds;
nextCycleDeadlineMs = Date.now() + (seconds * 1000); nextCycleDeadlineMs = Date.now() + (seconds * 1000);

Before

Width:  |  Height:  |  Size: 919 KiB

After

Width:  |  Height:  |  Size: 919 KiB

Before

Width:  |  Height:  |  Size: 148 KiB

After

Width:  |  Height:  |  Size: 148 KiB

Before

Width:  |  Height:  |  Size: 182 KiB

After

Width:  |  Height:  |  Size: 182 KiB