commit 51183654e84b12d38cf72d8581f950269d6b47c1 parent b91a830fe91c2819cb0ca9b91dcfdcb02b2a2ead Author: ryukamish <[email protected]> Date: Sat, 6 Jun 2026 01:44:49 +0530 fix: directory and symlink path change Diffstat:
| R | usr/local/bin/bemenu-wall -> .local/bin/bemenu-wall | | | 0 | |
| A | .local/bin/screenshot | | | 25 | +++++++++++++++++++++++++ |
| R | usr/local/bin/sway-launch -> .local/bin/sway-launch | | | 0 | |
| R | usr/local/bin/sway-power -> .local/bin/sway-power | | | 0 | |
| R | usr/local/bin/volume-control -> .local/bin/volume-control | | | 0 | |
| D | usr/local/bin/sway-lid | | | 5 | ----- |
6 files changed, 25 insertions(+), 5 deletions(-)
diff --git a/usr/local/bin/bemenu-wall b/.local/bin/bemenu-wall diff --git a/.local/bin/screenshot b/.local/bin/screenshot @@ -0,0 +1,25 @@ +#!/bin/sh + +filename='screenshot_%Y-%m-%d-%H%M%S.png' + +case "$1" in + "region") + slurp | grim -t png -g - $HOME/pictures/Screenshots/$(date +$filename) + ;; + "window") + swaymsg -t get_tree \ + | jq -r '.. | select(.pid? and .visible?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' \ + | slurp \ + | grim -t png -g - $HOME/pictures/Screenshots/$(date +$filename) + ;; + "screen-internal") + grim -o eDP-1 -t png $HOME/pictures/Screenshots/$(date +$filename) + ;; + "screen-external") + grim -o HDMI-A-1 -t png $HOME/pictures/Screenshots/$(date +$filename) + ;; + *) + grim -t png $HOME/pictures/Screenshots/$(date +$filename) + ;; +esac + diff --git a/usr/local/bin/sway-launch b/.local/bin/sway-launch diff --git a/usr/local/bin/sway-power b/.local/bin/sway-power diff --git a/usr/local/bin/volume-control b/.local/bin/volume-control diff --git a/usr/local/bin/sway-lid b/usr/local/bin/sway-lid @@ -1,5 +0,0 @@ -#!/bin/sh -# lid.sh -if swaymsg -t get_outputs | grep -q '"HDMI-A-1"'; then - swaymsg output eDP-1 disable -fi