add scap script to take screenshots with scrot
This commit is contained in:
parent
96fc6b1753
commit
a34468cb62
4 changed files with 15 additions and 3 deletions
1
_sync.sh
1
_sync.sh
|
|
@ -29,6 +29,7 @@ files=(
|
|||
"/usr/local/etc/smb4.conf:smb4.conf"
|
||||
"/etc/sysctl.conf:sysctl.conf"
|
||||
"/usr/local/bin/w_status:w_status"
|
||||
"/usr/local/bin/scap:scap"
|
||||
"$HOME/docker.sh:docker.sh"
|
||||
"/usr/local/etc/X11/xinit/xinitrc.d/10-i3wm-kde-dark:X11/10-i3wm-kde-dark"
|
||||
)
|
||||
|
|
|
|||
2
fstab
2
fstab
|
|
@ -19,7 +19,7 @@ linsysfs /compat/debian/sys linsysfs rw,late
|
|||
/home/mykola /compat/debian/home/mykola nullfs rw,late 0 0
|
||||
|
||||
# exports
|
||||
#/home/mykola /export/mykola nullfs rw,late 0 0
|
||||
#/home/mykola /export/mykola nullfs rw,late 0 0
|
||||
|
||||
# network
|
||||
192.168.100.4:/ /nfs nfs nfsv4,ro 0 0
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ exec --no-startup-id "feh --bg-fill --geometry 1366x768+0+0 $wallpaper"
|
|||
# start a terminal
|
||||
bindsym $mod+Return exec konsole
|
||||
|
||||
# take screenshot with KDE's spectacle
|
||||
bindsym Print exec spectacle
|
||||
# call our own script for screenshotting
|
||||
bindsym Print exec scap
|
||||
|
||||
# i3lock
|
||||
bindsym $win+l exec "i3lock --image $wallpaper --show-failed-attempts --show-keyboard-layout"
|
||||
|
|
|
|||
11
scap
Executable file
11
scap
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
scap_dir="$HOME/Pictures"
|
||||
scap_delay="0.1"
|
||||
scap_compression=3
|
||||
|
||||
# sleep 100ms so i3 dmenu won't get in screenshot
|
||||
sleep $scap_delay
|
||||
|
||||
# take screenshot
|
||||
scrot --format png --compression $scap_compression --file "$scap_dir/"$(date '+%d%m%y_%H%M%S.png')
|
||||
Loading…
Add table
Reference in a new issue