Compare commits

..

2 commits

Author SHA1 Message Date
6a27e22e9e Added mako config 2023-11-13 11:02:35 +01:00
1458fc970a Added hyprpicker binding 2023-11-13 11:01:53 +01:00
4 changed files with 59 additions and 35 deletions

View file

@ -16,6 +16,8 @@ bind = $mainMod, L, exec, swaylock-hyprland
# Screenshots
bind = $mainMod, F6, exec, grim -g "$(slurp)" - | wl-copy
# Color picker
bind = $mainMod, DOLLAR, exec, hyprpicker --autocopy
# ROG G15 Strix (2021) Specific binds
# bind = ,156, exec, rog-control-center # ASUS Armory crate key

View file

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

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

65
sync
View file

@ -4,40 +4,41 @@ 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:
folder = "/".join(p[0].split("/")[0:-1])
@ -45,13 +46,15 @@ def save():
os.mkdir(folder)
os.system(f"rsync -r {p[1]} {p[0]}")
def restore():
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()