From 24451d955c678e3aebdae648fecd1380482636a3 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 14 Mar 2024 21:23:14 +0000 Subject: [PATCH] Replace flameshot with spectacle It works under wayland, and has a few other nice features --- files/bin/flameshot-upload | 17 ----------------- tasks/autostart.yml | 1 - tasks/i3.yml | 1 - tasks/kde.yml | 1 + 4 files changed, 1 insertion(+), 19 deletions(-) delete mode 100755 files/bin/flameshot-upload diff --git a/files/bin/flameshot-upload b/files/bin/flameshot-upload deleted file mode 100755 index f6f5fe3..0000000 --- a/files/bin/flameshot-upload +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -filename=$(date '+%s').png -save_path=$HOME/Upload/img/$filename -temp_file=$(mktemp) - -flameshot gui -r > "$temp_file" - -if grep -Fq "screenshot aborted" "$temp_file"; then - rm "$temp_file" - exit 1 -fi - -mv "$temp_file" "$save_path" -echo "Saved to $save_path." - -echo "https://img.theorangeone.net/$filename" | xclip -i -selection c diff --git a/tasks/autostart.yml b/tasks/autostart.yml index d64ae46..09e9990 100644 --- a/tasks/autostart.yml +++ b/tasks/autostart.yml @@ -26,7 +26,6 @@ force: true loop: - libinput-gestures - - org.flameshot.Flameshot - name: Autostart solaar get_url: diff --git a/tasks/i3.yml b/tasks/i3.yml index b2d9f4b..9c49cf0 100644 --- a/tasks/i3.yml +++ b/tasks/i3.yml @@ -5,7 +5,6 @@ become_user: aur_builder loop: - arandr - - flameshot - rofi - rofi-calc - rofimoji diff --git a/tasks/kde.yml b/tasks/kde.yml index 16d8d94..d7920a0 100644 --- a/tasks/kde.yml +++ b/tasks/kde.yml @@ -10,6 +10,7 @@ - kdeconnect - okular - print-manager + - spectacle - name: Install krunner plugins kewlfft.aur.aur: