some upd
This commit is contained in:
@@ -83,6 +83,7 @@
|
|||||||
natural_scroll = true;
|
natural_scroll = true;
|
||||||
follow_mouse = 1;
|
follow_mouse = 1;
|
||||||
numlock_by_default = true;
|
numlock_by_default = true;
|
||||||
|
scroll_method = "2fg";
|
||||||
|
|
||||||
touchpad = {
|
touchpad = {
|
||||||
disable_while_typing = true;
|
disable_while_typing = true;
|
||||||
|
|||||||
@@ -14,22 +14,11 @@ import uuid
|
|||||||
|
|
||||||
WALLPAPERS_DIR = str(
|
WALLPAPERS_DIR = str(
|
||||||
pathlib.Path(
|
pathlib.Path(
|
||||||
os.environ.get("WALLPAPERS_DIR")
|
os.environ.get("WALLPAPERS_DIR") or pathlib.Path("~/Pictures/Wallpapers")
|
||||||
or pathlib.Path.home() / "Pictures" / "Wallpapers"
|
|
||||||
).expanduser()
|
).expanduser()
|
||||||
)
|
)
|
||||||
SYMLINK_PATH = str(pathlib.Path("~/Pictures/wallpaper.png").expanduser())
|
SYMLINK_PATH = str(pathlib.Path("~/Pictures/wallpaper.png").expanduser())
|
||||||
|
|
||||||
# old_print = print
|
|
||||||
|
|
||||||
|
|
||||||
# def new_print(*args, **kwargs):
|
|
||||||
# old_print(*args, **kwargs)
|
|
||||||
# old_print("\r", end="")
|
|
||||||
|
|
||||||
|
|
||||||
# print = new_print
|
|
||||||
|
|
||||||
|
|
||||||
def check_setup() -> None:
|
def check_setup() -> None:
|
||||||
# Check required programs are available
|
# Check required programs are available
|
||||||
@@ -483,6 +472,46 @@ def switch_folders(folders: list[str], on: bool = False, off: bool = False) -> N
|
|||||||
print(f"Turned OFF folder: {folder_name}")
|
print(f"Turned OFF folder: {folder_name}")
|
||||||
|
|
||||||
|
|
||||||
|
def list_wallpapers(path: str | None = None, verbose: bool = False) -> None:
|
||||||
|
# WIP
|
||||||
|
return
|
||||||
|
wallpaper_path = pathlib.Path(WALLPAPERS_DIR)
|
||||||
|
if path:
|
||||||
|
wallpaper_path = wallpaper_path / path
|
||||||
|
|
||||||
|
if not wallpaper_path.is_dir():
|
||||||
|
print(f"Folder not found: {wallpaper_path}")
|
||||||
|
return
|
||||||
|
|
||||||
|
"""
|
||||||
|
def _collect_png_files(wallpapers_dir: pathlib.Path, files: list[pathlib.Path]):
|
||||||
|
# If directory contains a ".off" file → skip entire directory
|
||||||
|
# for item in wallpapers_dir.iterdir():
|
||||||
|
# print(f"Checking item: {item}")
|
||||||
|
if any(item.name == ".off" for item in wallpapers_dir.iterdir()):
|
||||||
|
print(f"Skipping folder (contains .off): {wallpapers_dir}")
|
||||||
|
return
|
||||||
|
|
||||||
|
for item in wallpapers_dir.iterdir():
|
||||||
|
if item.is_file():
|
||||||
|
if item.suffix.lower() == ".png":
|
||||||
|
# print(f"Found wallpaper file: {item}")
|
||||||
|
files.append(item)
|
||||||
|
|
||||||
|
elif item.is_dir():
|
||||||
|
_collect_png_files(item, files)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def _walk_in_dir(
|
||||||
|
wallpapers_dir: pathlib.Path, dirs: list[pathlib.Path], deepth: int = 0
|
||||||
|
):
|
||||||
|
for item in wallpapers_dir.iterdir():
|
||||||
|
if item.is_dir():
|
||||||
|
print(
|
||||||
|
f"{item.name}"
|
||||||
|
) # относительное имя + свойства (размер, кол-во изображений, включенность)
|
||||||
|
|
||||||
|
|
||||||
def parse_args() -> argparse.Namespace:
|
def parse_args() -> argparse.Namespace:
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
prog="Wallpaper Setter",
|
prog="Wallpaper Setter",
|
||||||
@@ -624,7 +653,7 @@ def main():
|
|||||||
path=args.file, random=args.random, interactive=args.interactive
|
path=args.file, random=args.random, interactive=args.interactive
|
||||||
)
|
)
|
||||||
case "list" | "l":
|
case "list" | "l":
|
||||||
pass
|
list_wallpapers(path=args.file, verbose=args.verbose)
|
||||||
case "switch" | "sw":
|
case "switch" | "sw":
|
||||||
switch_folders(args.folders, on=args.on, off=args.off)
|
switch_folders(args.folders, on=args.on, off=args.off)
|
||||||
case "info" | "i":
|
case "info" | "i":
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
syncthing
|
syncthing
|
||||||
todo
|
todo
|
||||||
pass
|
pass
|
||||||
|
gtypist
|
||||||
# yubikey-manager-qt
|
# yubikey-manager-qt
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
# networkmanagerapplet and nm-applet
|
# networkmanagerapplet and nm-applet
|
||||||
|
|
||||||
virtualisation.virtualbox.host.enable = true;
|
virtualisation.virtualbox.host.enable = true;
|
||||||
|
virtualisation.libvirtd.enable = true;
|
||||||
|
programs.virt-manager.enable = true;
|
||||||
users.extraGroups.vboxusers.members = [ "krosh" ];
|
users.extraGroups.vboxusers.members = [ "krosh" ];
|
||||||
|
|
||||||
services.udev.packages = [ pkgs.yubikey-personalization ];
|
services.udev.packages = [ pkgs.yubikey-personalization ];
|
||||||
@@ -61,6 +63,7 @@
|
|||||||
yubioath-flutter
|
yubioath-flutter
|
||||||
yubikey-manager
|
yubikey-manager
|
||||||
pam_u2f
|
pam_u2f
|
||||||
|
qbittorrent
|
||||||
];
|
];
|
||||||
|
|
||||||
# starting the following units: accounts-daemon.service, systemd-modules-load.service, systemd-tmpfiles-resetup.service, tlp.ser
|
# starting the following units: accounts-daemon.service, systemd-modules-load.service, systemd-tmpfiles-resetup.service, tlp.ser
|
||||||
|
|||||||
Reference in New Issue
Block a user