Skip to content

Instantly share code, notes, and snippets.

View teoulas's full-sized avatar
😺

Theodoros Orfanidis teoulas

😺
View GitHub Profile
@teoulas
teoulas / gnome-screenshot2swappy.go
Created February 24, 2023 09:11
gnome-screenshot2swappy.go
//usr/bin/go run $0 $@; exit $?
package main
import (
"io/ioutil"
"math/rand"
"os"
"os/exec"
"strings"
@teoulas
teoulas / gnome-screenshot2swappy
Created May 13, 2022 13:59
gnome-screenshot2swappy
#!/usr/bin/env bash
tmpfile=$(mktemp -u --suffix=.png)
gnome-screenshot -a -f $tmpfile
swappy -f $tmpfile
last=$(ls -t ~/Pictures/Swappy_* | head -n1)
[[ ! -z "$last" ]] && nautilus -s $last
rm $tmpfile
@teoulas
teoulas / settings.ini
Created June 13, 2018 12:16
.config/gtk-3.0/
[Settings]
gtk-application-prefer-dark-theme = true
gtk-theme-name = Adwaita
gtk-fallback-icon-theme = gnome
gtk-icon-theme-name = Adwaita
gtk-font-name = Segoe UI 12
@teoulas
teoulas / docker-compose-aliases.zsh
Created June 13, 2018 12:13
~/.oh-my-zsh/custom/
alias dcru="docker-compose run --user \"$(id -u):$(id -g)\""
alias dcrssh="docker-compose run -v $SSH_AUTH_SOCK:/ssh-agent -e SSH_AUTH_SOCK=/ssh-agent"
alias dclf="docker-compose logs -f --tail=50"