Added mako config

This commit is contained in:
GaspardCulis 2023-11-13 11:02:35 +01:00
parent 1458fc970a
commit 6a27e22e9e
3 changed files with 57 additions and 35 deletions

View file

@ -1,7 +1,7 @@
# Startup # Startup
exec-once = swaync
exec-once = waybar exec-once = waybar
exec-once = mako
exec-once = hyprpaper exec-once = hyprpaper
exec-once = artix-pipewire-launcher restart exec-once = artix-pipewire-launcher restart
exec-once = /usr/lib/xdg-desktop-portal-hyprland exec-once = /usr/lib/xdg-desktop-portal-hyprland

19
misc/mako/config Normal file
View file

@ -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

71
sync
View file

@ -4,54 +4,57 @@ import os
import argparse import argparse
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
prog='Dotfiles sync', prog="Dotfiles sync",
description='Saves and restores my dotfiles', description="Saves and restores my dotfiles",
) )
parser.add_argument('action', choices=['save', 'restore']) parser.add_argument("action", choices=["save", "restore"])
synced_files = [ synced_files = [
('editor/helix/', '~/.config/helix/'), ("editor/helix/", "~/.config/helix/"),
('de/i3/', '~/.config/i3/'), ("de/i3/", "~/.config/i3/"),
('de/hypr/', '~/.config/hypr/'), ("de/hypr/", "~/.config/hypr/"),
('shell/bash/.bashrc', '~/.bashrc'), ("shell/bash/.bashrc", "~/.bashrc"),
('shell/bash/.bash_aliases', '~/.bash_aliases'), ("shell/bash/.bash_aliases", "~/.bash_aliases"),
('shell/bash/.bash_env', '~/.bash_env'), ("shell/bash/.bash_env", "~/.bash_env"),
('shell/bash/.bash_exec', '~/.bash_exec'), ("shell/bash/.bash_exec", "~/.bash_exec"),
('shell/nu/.nu_aliases', '~/.nu_aliases'), ("shell/nu/.nu_aliases", "~/.nu_aliases"),
('term/rio/', '~/.config/rio/'), ("term/rio/", "~/.config/rio/"),
('term/alacritty/', '~/.config/alacritty/'), ("term/alacritty/", "~/.config/alacritty/"),
('bar/waybar/', '~/.config/waybar/'), ("bar/waybar/", "~/.config/waybar/"),
('bar/i3status-rust/', '~/.config/i3status-rust/'), ("bar/i3status-rust/", "~/.config/i3status-rust/"),
('home/xinitrc', '~/.xinitrc'), ("home/xinitrc", "~/.xinitrc"),
('misc/picom/', '~/.config/picom/'), ("misc/picom/", "~/.config/picom/"),
('misc/runst/', '~/.config/runst/'), ("misc/runst/", "~/.config/runst/"),
('misc/x11-toggle-gpu/', '~/.local/share/x11-toggle-gpu/'), ("misc/mako/", "~/.config/mako/"),
("misc/x11-toggle-gpu/", "~/.local/share/x11-toggle-gpu/"),
('bin/swaylock-hyprland', '~/.local/bin/swaylock-hyprland'), ("bin/swaylock-hyprland", "~/.local/bin/swaylock-hyprland"),
('bin/Hyprland', '~/.local/bin/Hyprland'), ("bin/Hyprland", "~/.local/bin/Hyprland"),
('bin/jaaj', '~/.local/bin/jaaj'), ("bin/jaaj", "~/.local/bin/jaaj"),
('bin/xtoggle-touchpad', '~/.local/bin/xtoggle-touchpad'), ("bin/xtoggle-touchpad", "~/.local/bin/xtoggle-touchpad"),
('bin/wtoggle-touchpad', '~/.local/bin/wtoggle-touchpad'), ("bin/wtoggle-touchpad", "~/.local/bin/wtoggle-touchpad"),
('bin/togglescreen', '~/.local/bin/togglescreen'), ("bin/togglescreen", "~/.local/bin/togglescreen"),
('bin/mc-key-fix', '~/.local/bin/mc-key-fix'), ("bin/mc-key-fix", "~/.local/bin/mc-key-fix"),
('bin/x11-toggle-primary-gpu', '~/.local/bin/x11-toggle-primary-gpu'), ("bin/x11-toggle-primary-gpu", "~/.local/bin/x11-toggle-primary-gpu"),
] ]
def save(): def save():
for p in synced_files: for p in synced_files:
folder = "/".join(p[0].split("/")[0:-1]) folder = "/".join(p[0].split("/")[0:-1])
if not os.path.exists(folder): if not os.path.exists(folder):
os.mkdir(folder) os.mkdir(folder)
os.system(f"rsync -r {p[1]} {p[0]}") os.system(f"rsync -r {p[1]} {p[0]}")
def restore(): def restore():
for p in synced_files: for p in synced_files:
os.system(f"rsync -r {p[0]} {p[1]}") os.system(f"rsync -r {p[0]} {p[1]}")
if __name__ == '__main__':
if __name__ == "__main__":
args = parser.parse_args() args = parser.parse_args()
if args.action == 'save': if args.action == "save":
save() save()
elif args.action == 'restore': elif args.action == "restore":
restore() restore()