From 5e9e9f8599c21765bf858e0af5841aefbb20d729 Mon Sep 17 00:00:00 2001 From: stabosa87 Date: Sat, 20 Jun 2026 08:38:19 -0500 Subject: [PATCH] clipboard history + no aur --- config/nushell/env.nu | 6 +++--- config/sway/main/moves.py | 2 +- config/sway/main/swayconfig.py | 5 ++++- justfile | 15 +++++++++++---- 4 files changed, 19 insertions(+), 9 deletions(-) diff --git a/config/nushell/env.nu b/config/nushell/env.nu index 349bee3..22ee4a7 100644 --- a/config/nushell/env.nu +++ b/config/nushell/env.nu @@ -28,6 +28,6 @@ let flatpak_xdg = [ $env.XDG_DATA_DIRS = ($base_xdg | append $flatpak_xdg | str join ":") -$env.PYENV_ROOT = ($env.HOME | path join ".pyenv") -$env.PATH = ($env.PATH | split row (char env_sep) | prepend $'($env.PYENV_ROOT)/bin' | prepend $'($env.PYENV_ROOT)/shims') -alias sway = dbus-run-session sway +$env.PATH = ( $env.PATH | split row (char env_sep) | prepend "/opt/bin") + +alias sway = dbus-run-session sway \ No newline at end of file diff --git a/config/sway/main/moves.py b/config/sway/main/moves.py index 1b97edc..b164c48 100644 --- a/config/sway/main/moves.py +++ b/config/sway/main/moves.py @@ -130,7 +130,7 @@ def take_screenshot(output_path): try: time.sleep(0.2) - freeze = subprocess.Popen(["wayfreeze"]) + freeze = subprocess.Popen(["/opt/bin/wayfreeze"]) time.sleep(0.1) try: diff --git a/config/sway/main/swayconfig.py b/config/sway/main/swayconfig.py index 7dfafda..d7bb322 100755 --- a/config/sway/main/swayconfig.py +++ b/config/sway/main/swayconfig.py @@ -30,7 +30,7 @@ def apply_ui_and_environment(sway): sway.cmd("exec_always gsettings set org.gnome.desktop.interface cursor-size '24'") sway.cmd("exec_always gsettings set org.gnome.desktop.interface font-name 'Noto Sans Mono 10'") sway.cmd("exec_always gsettings set org.gnome.desktop.interface.desktop-app-info-default-handler 'librewolf.desktop'") - + run_sh("wl-paste --watch cliphist store") run_sh("/usr/lib/xdg-desktop-portal -r") sway.cmd("setenv GTK_USE_PORTAL 0") sway.cmd("setenv XDG_CURRENT_DESKTOP sway") @@ -115,6 +115,9 @@ def bind_keys(sway): @assign_key(f"{mod}+r") def open_menu(): return "exec wofi --show drun --width 400 --height 500 --layer overlay --location 1" + @assign_key(f"{mod}+o") + def open_menu(): return "exec cliphist list | wofi -S dmenu --width 400 --height 500 --layer overlay --location 3 | cliphist decode | wl-copy" + @assign_key("Ctrl+Shift+Alt+Mod4+L") def open_linkedin(): return "exec flatpak run io.github.ungoogled_software.ungoogled_chromium https://www.linkedin.com" diff --git a/justfile b/justfile index 7de1553..8b867d5 100644 --- a/justfile +++ b/justfile @@ -1,14 +1,13 @@ default: just --list -init-arch: install-aur install-arch stow +init-arch: install-arch stow build-wayfreeze install-arch: @echo "installing pkgs" sudo pacman -S --needed --noconfirm - < packages-arch - @echo "Done. Moving onto aur..." - yay -S --noconfirm wayfreeze +# optional now. Stinkers in the aur scare me! install-aur: sudo pacman -S --noconfirm debugedit fakeroot go make gcc git clone https://aur.archlinux.org/yay.git /tmp/yay @@ -36,4 +35,12 @@ setup-displays: mv mute ~/.config/ restow: - stow -R -t ~/.config config \ No newline at end of file + stow -R -t ~/.config config + +# builds + +build-wayfreeze: + rm -rf /tmp/wayfreeze + git clone https://github.com/Jappie3/wayfreeze.git /tmp/wayfreeze + cd /tmp/wayfreeze && cargo build --release + sudo mv /tmp/wayfreeze/target/release/wayfreeze /opt/bin/wayfreeze \ No newline at end of file