This file contains 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
#! /usr/bin/env bash | |
case "$(setxkbmap -v | awk -F '+' '/symbols/ {print $2}')" in | |
us) | |
setxkbmap it | |
;; | |
it) | |
setxkbmap us | |
;; | |
*) |
This file contains 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
#! /usr/bin/env bash | |
file=$(readlink -f "$1") | |
dir=$(dirname "$file") | |
base="${file%.*}" | |
cd "$dir" || exit | |
case "$file" in | |
*\.tex) pandoc "$file" -f latex -s -o "$base".pdf ;; |
This file contains 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
#! /usr/bin/env bash | |
pidof dunst && killall dunst | |
dunst & | |
notify-send --expire-time=80000 --urgency=critical critical | |
notify-send --expire-time=80000 --urgency=normal normal | |
notify-send --expire-time=80000 --urgency=low low |
This file contains 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
#! /usr/bin/env bash | |
if [ -f $1 ] ; then | |
case $1 in | |
*.tar.bz2) tar xjf $1 ;; | |
*.tar.gz) tar xzf $1 ;; | |
*.tar.xz) tar -xf $1 ;; | |
*.bz2) bunzip2 $1 ;; | |
*.rar) unrar x $1 ;; | |
*.gz) gunzip $1 ;; |