summaryrefslogtreecommitdiff
path: root/.local/bin/freezshot
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-11-26 17:24:36 +0530
committersinanmohd <sinan@firemail.cc>2023-11-26 17:24:36 +0530
commit04b49efb5dfff4888bac3f7144fbedb8ea6db090 (patch)
treec790eeacfdd18fb36dc0bd0178b8a4e6f6ce8e68 /.local/bin/freezshot
parentb8ab8ca13df82189d4710cb5a36946077d408fe3 (diff)
freezshot: wlr-randr -> swaymsg
Diffstat (limited to '.local/bin/freezshot')
-rwxr-xr-x.local/bin/freezshot4
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/freezshot b/.local/bin/freezshot
index 81b5bd2..ecc26ac 100755
--- a/.local/bin/freezshot
+++ b/.local/bin/freezshot
@@ -30,7 +30,7 @@ dep_check()
wl_res()
{
- wlr-randr | while read -r line; do
+ swaymsg -pt get_outputs | while read -r line; do
case "$line" in
*"current)")
echo "${line% px*}"
@@ -43,7 +43,7 @@ wl_res()
# MAIN #
########
-dep_check grim slurp imv wlr-randr
+dep_check grim slurp imv
[ -d "$out" ] || mkdir -p "$out"
GRIM_DEFAULT_DIR="$tmp" grim