From 6a27e22e9eec7d5f43e120b3d955fb59b10bd0c7 Mon Sep 17 00:00:00 2001 From: GaspardCulis Date: Mon, 13 Nov 2023 11:02:35 +0100 Subject: [PATCH] Added mako config --- de/hypr/hyprland.conf.d/startup.conf | 2 +- misc/mako/config | 19 ++++++++ sync | 71 +++++++++++++++------------- 3 files changed, 57 insertions(+), 35 deletions(-) create mode 100644 misc/mako/config diff --git a/de/hypr/hyprland.conf.d/startup.conf b/de/hypr/hyprland.conf.d/startup.conf index 2410c4c..7c4c438 100644 --- a/de/hypr/hyprland.conf.d/startup.conf +++ b/de/hypr/hyprland.conf.d/startup.conf @@ -1,7 +1,7 @@ # Startup -exec-once = swaync exec-once = waybar +exec-once = mako exec-once = hyprpaper exec-once = artix-pipewire-launcher restart exec-once = /usr/lib/xdg-desktop-portal-hyprland diff --git a/misc/mako/config b/misc/mako/config new file mode 100644 index 0000000..bb6c111 --- /dev/null +++ b/misc/mako/config @@ -0,0 +1,19 @@ +default-timeout=5000 +text-color=#dff0f4 +border-color=#aadbf2 +background-color=#0e4158 +border-radius=4 +border-size=2 +font='FiraCode Nerd Font' 11 +anchor=top-left +outer-margin=0,30,0,0 + +[urgency=low] +border-color=#cccccc + +[urgency=normal] +border-color=#d08770 + +[urgency=high] +border-color=#bf616a +default-timeout=0 diff --git a/sync b/sync index 63b5730..2c7a113 100755 --- a/sync +++ b/sync @@ -4,54 +4,57 @@ import os import argparse parser = argparse.ArgumentParser( - prog='Dotfiles sync', - description='Saves and restores my dotfiles', + prog="Dotfiles sync", + description="Saves and restores my dotfiles", ) -parser.add_argument('action', choices=['save', 'restore']) +parser.add_argument("action", choices=["save", "restore"]) synced_files = [ - ('editor/helix/', '~/.config/helix/'), - ('de/i3/', '~/.config/i3/'), - ('de/hypr/', '~/.config/hypr/'), - ('shell/bash/.bashrc', '~/.bashrc'), - ('shell/bash/.bash_aliases', '~/.bash_aliases'), - ('shell/bash/.bash_env', '~/.bash_env'), - ('shell/bash/.bash_exec', '~/.bash_exec'), - ('shell/nu/.nu_aliases', '~/.nu_aliases'), - ('term/rio/', '~/.config/rio/'), - ('term/alacritty/', '~/.config/alacritty/'), - ('bar/waybar/', '~/.config/waybar/'), - ('bar/i3status-rust/', '~/.config/i3status-rust/'), - ('home/xinitrc', '~/.xinitrc'), - ('misc/picom/', '~/.config/picom/'), - ('misc/runst/', '~/.config/runst/'), - ('misc/x11-toggle-gpu/', '~/.local/share/x11-toggle-gpu/'), - - ('bin/swaylock-hyprland', '~/.local/bin/swaylock-hyprland'), - ('bin/Hyprland', '~/.local/bin/Hyprland'), - ('bin/jaaj', '~/.local/bin/jaaj'), - ('bin/xtoggle-touchpad', '~/.local/bin/xtoggle-touchpad'), - ('bin/wtoggle-touchpad', '~/.local/bin/wtoggle-touchpad'), - ('bin/togglescreen', '~/.local/bin/togglescreen'), - ('bin/mc-key-fix', '~/.local/bin/mc-key-fix'), - ('bin/x11-toggle-primary-gpu', '~/.local/bin/x11-toggle-primary-gpu'), + ("editor/helix/", "~/.config/helix/"), + ("de/i3/", "~/.config/i3/"), + ("de/hypr/", "~/.config/hypr/"), + ("shell/bash/.bashrc", "~/.bashrc"), + ("shell/bash/.bash_aliases", "~/.bash_aliases"), + ("shell/bash/.bash_env", "~/.bash_env"), + ("shell/bash/.bash_exec", "~/.bash_exec"), + ("shell/nu/.nu_aliases", "~/.nu_aliases"), + ("term/rio/", "~/.config/rio/"), + ("term/alacritty/", "~/.config/alacritty/"), + ("bar/waybar/", "~/.config/waybar/"), + ("bar/i3status-rust/", "~/.config/i3status-rust/"), + ("home/xinitrc", "~/.xinitrc"), + ("misc/picom/", "~/.config/picom/"), + ("misc/runst/", "~/.config/runst/"), + ("misc/mako/", "~/.config/mako/"), + ("misc/x11-toggle-gpu/", "~/.local/share/x11-toggle-gpu/"), + ("bin/swaylock-hyprland", "~/.local/bin/swaylock-hyprland"), + ("bin/Hyprland", "~/.local/bin/Hyprland"), + ("bin/jaaj", "~/.local/bin/jaaj"), + ("bin/xtoggle-touchpad", "~/.local/bin/xtoggle-touchpad"), + ("bin/wtoggle-touchpad", "~/.local/bin/wtoggle-touchpad"), + ("bin/togglescreen", "~/.local/bin/togglescreen"), + ("bin/mc-key-fix", "~/.local/bin/mc-key-fix"), + ("bin/x11-toggle-primary-gpu", "~/.local/bin/x11-toggle-primary-gpu"), ] + def save(): - for p in synced_files: + for p in synced_files: folder = "/".join(p[0].split("/")[0:-1]) if not os.path.exists(folder): os.mkdir(folder) os.system(f"rsync -r {p[1]} {p[0]}") - + + def restore(): - for p in synced_files: + for p in synced_files: os.system(f"rsync -r {p[0]} {p[1]}") -if __name__ == '__main__': + +if __name__ == "__main__": args = parser.parse_args() - if args.action == 'save': + if args.action == "save": save() - elif args.action == 'restore': + elif args.action == "restore": restore()