Skip to content

Commit f21aee4

Browse files
authored
use pqiv click-through
you need to patch this PR phillipberndt/pqiv#131
1 parent 1e404d8 commit f21aee4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bin/corner

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# This will set the file image in the corner as a badge. Inspired by the gnome addon
44
# qiv takes somewhat less RAM. It repositions on click event.
@@ -29,10 +29,11 @@ y_position=`echo "$screen_height - $image_height*$zoom" | bc | awk '{printf("%d\
2929
# Kill if it exists
3030
if pgrep pqiv > /dev/null 2>&1; then pkill pqiv; fi
3131
# Start pqiv
32-
pqiv -c -i "$file" -P $x_position,$y_position -z $zoom > /dev/null 2>&1 &
32+
pqiv -cif --click-through --keep-above "$file" -P $x_position,$y_position -z $zoom & #> /dev/null 2>&1 &
33+
# pqiv -cif "$file" -P $x_position,$y_position -z $zoom > /dev/null 2>&1 &
3334
# Other positions (change in pqiv -P): 0,0 top left, x,0 top right, 0,y bottom left
3435
sleep 1s
3536
# Make the badge show on all desktops
3637
wmctrl -i -r "$(wmctrl -l | grep "pqiv" | tail -1 | cut -f1 -d" ")" -t -2 &
3738
# Make the badge be over everything
38-
wmctrl -i -r "$(wmctrl -l | grep "pqiv" | tail -1 | cut -f1 -d" ")" -b add,above,skip_taskbar &
39+
wmctrl -i -r "$(wmctrl -l | grep "pqiv" | tail -1 | cut -f1 -d" ")" -b add,above,skip_taskbar,skip_pager &

0 commit comments

Comments
 (0)