diff options
| author | Mosder <xmosder12@gmail.com> | 2025-11-02 20:14:11 +0100 |
|---|---|---|
| committer | Mosder <xmosder12@gmail.com> | 2025-11-02 20:14:11 +0100 |
| commit | c6ff7b4d2c91fbc086e573e01f76da3dc3ef3ed3 (patch) | |
| tree | 0594eb4ed8894b9a42e559c25a7c13760ae18430 /laptop/.config/hypr/scripts | |
| parent | 5ac0ba36a26abd999dd3e6ce0c0caa7e739717b2 (diff) | |
✨ feat(hypr): integrate swayosd, add scripts and update keybindings
Diffstat (limited to 'laptop/.config/hypr/scripts')
| -rwxr-xr-x | laptop/.config/hypr/scripts/capture-window.sh | 10 | ||||
| -rwxr-xr-x | laptop/.config/hypr/scripts/current-brightness.sh | 4 |
2 files changed, 14 insertions, 0 deletions
diff --git a/laptop/.config/hypr/scripts/capture-window.sh b/laptop/.config/hypr/scripts/capture-window.sh new file mode 100755 index 0000000..2299cb0 --- /dev/null +++ b/laptop/.config/hypr/scripts/capture-window.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# get size and offset of active window +size=$(hyprctl activewindow | grep size: | awk -F" " '{print $2}') +size=${size/,/x} +offset=$(hyprctl activewindow | grep at: | awk -F" " '{print $2}') +offset=${offset/,/+} + +# open gui with selected region +flameshot gui --region $size+$offset diff --git a/laptop/.config/hypr/scripts/current-brightness.sh b/laptop/.config/hypr/scripts/current-brightness.sh new file mode 100755 index 0000000..4856e59 --- /dev/null +++ b/laptop/.config/hypr/scripts/current-brightness.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +s=$(brightnessctl | grep % | awk -F" " '{print $4}') +echo ${s:1:-2} |
