Skip to content

Instantly share code, notes, and snippets.

View T4cC0re's full-sized avatar

Hendrik Meyer T4cC0re

View GitHub Profile
@T4cC0re
T4cC0re / wakelock.service
Last active January 17, 2021 19:32
Lock screen after suspend with i3lock and systemd
# /etc/systemd/system/wakelock.service
[Unit]
Description=Lock the screen before suspend
Before=systemd-suspend.service
[Service]
User=t4cc0re
Type=forking
Environment=DISPLAY=:0
ExecStart=/usr/bin/i3lock -ef --image=/opt/wallpapers/lockscreen.png --color=000000
@T4cC0re
T4cC0re / yubitouch.sh
Last active May 1, 2016 23:44 — forked from a-dma/yubitouch.sh
Bash script for setting or clearing touch requirements for cryptographic operations in the OpenPGP application on a YubiKey 4.
#!/bin/bash
# Bash script for setting or clearing touch requirements for
# cryptographic operations the OpenPGP application on a YubiKey 4.
#
# Author: Alessio Di Mauro <alessio@yubico.com>
GCA=$(which gpg-connect-agent)
DO=0
UIF=0
@T4cC0re
T4cC0re / smartcard.sh
Last active May 1, 2016 20:08 — forked from michiwend/smartcard.sh
Gemalto smartcard with GnuPG under Arch Linux
#!/usr/bin/bash
# more info:
# https://wiki.archlinux.org/index.php/GnuPG#Smartcards
SHELL_CONF=~/.bashrc
sudo pacman -S --noconfirm pcsclite libusb-compat
sudo systemctl enable pcscd.service