mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-05 23:09:27 -05:00
feat: uwsm app -> app2unit
Also xdg-open -> app2unit
This commit is contained in:
+3
-3
@@ -11,12 +11,12 @@ set -l action (notify-send -i 'image-x-generic-symbolic' -h "STRING:image-path:$
|
||||
'Screenshot taken' "Screenshot stored in $tmp_file and copied to clipboard")
|
||||
switch $action
|
||||
case 'open'
|
||||
uwsm app -- swappy -f $tmp_file & disown
|
||||
app2unit -- swappy -f $tmp_file & disown
|
||||
case 'save'
|
||||
set -l save_file (uwsm app -- zenity --file-selection --save --title='Save As')
|
||||
set -l save_file (app2unit -- zenity --file-selection --save --title='Save As')
|
||||
test -z $save_file && exit 0
|
||||
if test -f $save_file
|
||||
uwsm app -- yad --image='abrt' --title='Warning!' --text-align='center' --buttons-layout='center' --borders=20 \
|
||||
app2unit -- yad --image='abrt' --title='Warning!' --text-align='center' --buttons-layout='center' --borders=20 \
|
||||
--text='<span size="x-large">Are you sure you want to overwrite this file?</span>' || exit 0
|
||||
end
|
||||
cp $tmp_file $save_file
|
||||
|
||||
Reference in New Issue
Block a user