Compare commits
No commits in common. "6a27e22e9eec7d5f43e120b3d955fb59b10bd0c7" and "4f86f23515fa794b7309d9936216fe92d7903c0a" have entirely different histories.
6a27e22e9e
...
4f86f23515
4 changed files with 35 additions and 59 deletions
|
@ -16,8 +16,6 @@ bind = $mainMod, L, exec, swaylock-hyprland
|
||||||
|
|
||||||
# Screenshots
|
# Screenshots
|
||||||
bind = $mainMod, F6, exec, grim -g "$(slurp)" - | wl-copy
|
bind = $mainMod, F6, exec, grim -g "$(slurp)" - | wl-copy
|
||||||
# Color picker
|
|
||||||
bind = $mainMod, DOLLAR, exec, hyprpicker --autocopy
|
|
||||||
|
|
||||||
# ROG G15 Strix (2021) Specific binds
|
# ROG G15 Strix (2021) Specific binds
|
||||||
# bind = ,156, exec, rog-control-center # ASUS Armory crate key
|
# bind = ,156, exec, rog-control-center # ASUS Armory crate key
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
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
|
|
69
sync
69
sync
|
@ -4,57 +4,54 @@ 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/mako/", "~/.config/mako/"),
|
('misc/x11-toggle-gpu/', '~/.local/share/x11-toggle-gpu/'),
|
||||||
("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()
|
||||||
|
|
Loading…
Reference in a new issue