From 9944110bd6b395fc0c32f58057f199730c9cd7e4 Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Tue, 3 Mar 2026 11:15:02 -0800 Subject: [PATCH] New backup 2026-03-03 11:15:02 --- de/home/.config/sway/config.d/autostart | 2 +- de/home/.config/sway/config.d/keys.d/launch | 6 +++--- de/home/.config/sway/scripts/screenshot.sh | 10 ++++++++++ 3 files changed, 14 insertions(+), 4 deletions(-) create mode 100755 de/home/.config/sway/scripts/screenshot.sh diff --git a/de/home/.config/sway/config.d/autostart b/de/home/.config/sway/config.d/autostart index a29a584..9e81416 100644 --- a/de/home/.config/sway/config.d/autostart +++ b/de/home/.config/sway/config.d/autostart @@ -18,7 +18,7 @@ exec { 'diskspace-check' 'uptime-check' poweralertd - wl-paste --watch clipvault store + wl-paste --watch cliphist store } # Run on reload diff --git a/de/home/.config/sway/config.d/keys.d/launch b/de/home/.config/sway/config.d/keys.d/launch index 4823dec..4e22eaa 100644 --- a/de/home/.config/sway/config.d/keys.d/launch +++ b/de/home/.config/sway/config.d/keys.d/launch @@ -18,10 +18,10 @@ bindsym { #power menu $mod+Shift+e exec sdu power | wofi --show dmenu | awk '{print tolower($2)}' | xargs -I "{}" -- sdu power "{}" #screenshot - $mod+Shift+s exec sp-screenshot + $mod+Shift+s exec "$HOME/.config/sway/scripts/screenshot.sh" #clipboard - $mod+v exec sp-clipboard - $mod+Shift+v exec copyq show + $mod+v exec cliphist list | wofi --show dmenu | cliphist decode | wl-copy + $mod+Shift+v exec cliphist list | wofi --show dmenu | cliphist delete #desktop widgets ## $mod+w exec eww open --toggle --screen "$(swaymsg -t get_outputs | jq -r '.[]|select(.focused==true).model')" home $mod+w exec '$HOME/.config/sway/scripts/eww-toggle.sh homewidgets_reveal' diff --git a/de/home/.config/sway/scripts/screenshot.sh b/de/home/.config/sway/scripts/screenshot.sh new file mode 100755 index 0000000..42cb2b2 --- /dev/null +++ b/de/home/.config/sway/scripts/screenshot.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +op=$(echo -e "Output\nWindow\nRegion" | wofi -i --dmenu --width 250 --height 260 -k /dev/null | awk '{print tolower($1)}') + +sc_dir="${HOME}/Pictures/Screen Capture/" + +sleep 0.25 +mkdir -p "${sc_dir}" +sway-screenshot -m $op --output-folder "${HOME}/Pictures/Screen Capture/" +#"'${sc_dir}'"