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()