PrintScreen support in Slax
parent
371657ce94
commit
dc5adcf05b
|
|
@ -8,9 +8,10 @@ VERSION=1.3.5
|
||||||
# first install stock version
|
# first install stock version
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install --no-install-recommends --yes $NAME feh compton volumeicon-alsa murrine-themes leafpad qalculate-gtk
|
apt-get install --no-install-recommends --yes $NAME feh compton volumeicon-alsa murrine-themes leafpad qalculate-gtk scrot xdg-user-dirs
|
||||||
. ../../cleanup
|
. ../../cleanup
|
||||||
|
|
||||||
|
xdg-user-dirs-update
|
||||||
(cd rootcopy && cp --parents -afr * /)
|
(cd rootcopy && cp --parents -afr * /)
|
||||||
chown -R guest.users /home/guest
|
chown -R guest.users /home/guest
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -135,3 +135,5 @@ Control Mod4 F9 :TakeToWorkspace 9
|
||||||
Control Mod4 F10 :TakeToWorkspace 10
|
Control Mod4 F10 :TakeToWorkspace 10
|
||||||
Control Mod4 F11 :TakeToWorkspace 11
|
Control Mod4 F11 :TakeToWorkspace 11
|
||||||
Control Mod4 F12 :TakeToWorkspace 12
|
Control Mod4 F12 :TakeToWorkspace 12
|
||||||
|
|
||||||
|
Print :Exec fbprintscreen
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
PICTURES=$(xdg-user-dir PICTURES)
|
||||||
|
if [ "$PICTURES" = "" ]; then
|
||||||
|
PICTURES=~/Pictures
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p $PICTURES
|
||||||
|
cd $PICTURES
|
||||||
|
|
||||||
|
# make screenshot
|
||||||
|
SCREENSHOT=$(scrot -e 'echo $f')
|
||||||
|
|
||||||
|
if [ "$SCREENSHOT" = "" ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# open screenshot in 2/3 window
|
||||||
|
read W H X <<< $(xrandr 2>/dev/null | fgrep '*' | tr -s " " | tr "x" " ")
|
||||||
|
W=$(($W*2/3))
|
||||||
|
H=$(($H*2/3))
|
||||||
|
exec feh --geometry $W"x"$H $SCREENSHOT
|
||||||
Loading…
Reference in New Issue