This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Type=Application | |
Exec=/usr/local/bin/mk-screenshot.sh | |
Name=mkscreenshot | |
Icon=/usr/share/icons/cab_view.png | |
Comment[de_DE.UTF-8]=Mache einen Screenshot | |
GenericName[de_DE.UTF-8]=MkScreenshot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DATE=`date "+%Y%m%d%H%M"` | |
screenshot=~/Bilder/"Screenshot-$DATE.png" | |
gnome-screenshot -f "$screenshot" | |
gimp "$screenshot" & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# echo "USB device removed `date` $@" >>/tmp/xscreenlock.log | |
#user=ju | |
user=`who | grep ':0' | awk '{print $1}'| head -1` | |
if [ ! -z "$user" ] ; then | |
DISPLAY=:0 sudo -n -H -u "$user" /usr/bin/xscreensaver-command -lock >> /tmp/xscreenlock.log 2>>/tmp/xscreenlock.log | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# echo "USB device inserted `date` $@" >>/tmp/xscreenlock.log | |
#user=ju | |
user=`who | grep ':0' | awk '{print $1}'| head -1` | |
if [ ! -z "$user" ] ; then | |
# echo "$user is logged in :0" | |
# give it some time to settle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# handcrafted file to trigger events on | |
# removal/insertion of Yubico U2F-Tokens | |
# place in /etc/udev/rules.d | |
# Key inserted | |
ACTION=="add", SUBSYSTEM=="hid", ENV{HID_NAME}=="Yubico Security Key by Yubico", RUN+="/usr/local/bin/device_inserted.sh" | |
# Key removed | |
ACTION=="remove", SUBSYSTEM=="hid", ENV{HID_NAME}=="Yubico Security Key by Yubico", RUN+="/usr/local/bin/device_removed.sh" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# create a user database suitable for pam_userdb | |
# usage: | |
# mk-pinlist.sh [user] [db file] | |
USR=${1:-`who | grep ':0' | head -1 | awk '{print $1}'`} | |
shift | |
DB=${1:-'/etc/pinlist.db'} | |
HASH=`mkpasswd -s -m sha-512` |