Documentation++ & fixed small mistake

This commit is contained in:
id101010
2016-10-17 14:26:09 +02:00
parent 79e576a45e
commit 29a8fc3597
8 changed files with 107 additions and 26 deletions

View File

@@ -53,9 +53,9 @@ bindym XF86WebCam exec /bin/cheese
bindsym XF86Launch1 exec urxvt -e sh -c "sudo wifi-menu wlp3s0" bindsym XF86Launch1 exec urxvt -e sh -c "sudo wifi-menu wlp3s0"
# jauth two factor authenticator # jauth two factor authenticator
bindsym $mod+F1 exec /opt/JAuth/Authenticator.sh google bindsym $mod+F1 exec ~/.i3/util/Authenticator.sh google
bindsym $mod+F2 exec /opt/JAuth/Authenticator.sh facebook bindsym $mod+F2 exec ~/.i3/util/Authenticator.sh facebook
bindsym $mod+F3 exec /opt/JAuth/Authenticator.sh dropbox bindsym $mod+F3 exec ~/.i3/util/Authenticator.sh dropbox
# start dmenu-launcher # start dmenu-launcher
bindsym $mod+d exec ~/.i3/util/i3dmenu-wrapper.sh bindsym $mod+d exec ~/.i3/util/i3dmenu-wrapper.sh

View File

@@ -1,9 +1,18 @@
########################################
# _ ____ _ _ #
# (_)___ \ | | | | #
# _ __) |___| |_ __ _| |_ _ _ ___ #
# | ||__ </ __| __/ _` | __| | | / __| #
# | |___) \__ \ || (_| | |_| |_| \__ \ #
# |_|____/|___/\__\__,_|\__|\__,_|___/ #
# #
########################################
#
# i3status configuration file. # i3status configuration file.
# see "man i3status" for documentation. # see "man i3status" for documentation.
#
# It is important that this file is edited as UTF-8. # It is important that this file is edited as UTF-8.
# The following line should contain a sharp s: # The following line should contain a sharp s: ß
# ß
# If the above line is not correctly displayed, fix your editor first! # If the above line is not correctly displayed, fix your editor first!
general { general {
@@ -16,7 +25,6 @@ order += "disk /home"
order += "disk /" order += "disk /"
order += "run_watch VPN" order += "run_watch VPN"
order += "wireless wlp3s0" order += "wireless wlp3s0"
#order += "ethernet enp0s25"
order += "cpu_temperature 0" order += "cpu_temperature 0"
order += "volume master" order += "volume master"
order += "tztime local" order += "tztime local"

View File

@@ -1,19 +0,0 @@
#!/bin/bash
SECRET_GOOGLE="asdf"
SECRET_FACEBOOK="asdf"
SECRET_DROPBOX="asdf"
ARG="${1}"
case ${ARG} in
"google")
jauth -secret=${SECRET_GOOGLE}
;;
"facebook")
jauth -secret=${SECRET_FACEBOOK}
;;
"dropbox")
jauth -secret=${SECRET_DROPBOX}
;;
esac

37
i3wm/util/authenticator.sh Executable file
View File

@@ -0,0 +1,37 @@
#!/bin/bash
###############################
# _ _ _ #
# (_) | | | | #
# _ __ _ _ _| |_| |__ #
# | |/ _` | | | | __| '_ \ #
# | | (_| | |_| | |_| | | | #
# | |\__,_|\__,_|\__|_| |_| #
# _/ | #
# |__/ #
# #
###############################
# This script needs jauth-git to work
# jauth can be installed from the arch aur
#
# yaourt -S jauth-git
#
SECRET_GOOGLE="asdf"
SECRET_FACEBOOK="asdf"
SECRET_DROPBOX="asdf"
ARG="${1}"
case ${ARG} in
"google")
jauth -secret=${SECRET_GOOGLE}
;;
"facebook")
jauth -secret=${SECRET_FACEBOOK}
;;
"dropbox")
jauth -secret=${SECRET_DROPBOX}
;;
esac

View File

@@ -1,4 +1,20 @@
#!/usr/bin/python2 #!/usr/bin/python2
###############################
# _ ____ _ _ #
# (_)___ \| | | | #
# _ __) | |__ | |_ _ _ __ #
# | ||__ <| '_ \| | | | | '__|#
# | |___) | |_) | | |_| | | #
# |_|____/|_.__/|_|\__,_|_| #
# #
###############################
"""
A simple python script that takes a
screenshot, blurs it and invokes i3lock.
"""
import gtk.gdk import gtk.gdk
import os, sys import os, sys
from PIL import ImageFilter from PIL import ImageFilter

View File

@@ -1,5 +1,15 @@
#!/bin/bash #!/bin/bash
########################################################
# _ __ _______ #
# | | \ \ / / __ \ #
# __| |_ __ ___ ___ _ __ _ \ \ /\ / /| |__) | #
# / _` | '_ ` _ \ / _ \ '_ \| | | \ \/ \/ / | _ / #
# | (_| | | | | | | __/ | | | |_| |\ /\ / | | \ \ #
# \__,_|_| |_| |_|\___|_| |_|\__,_| \/ \/ |_| \_\ #
# #
########################################################
BACKGROUND="#402e2e" BACKGROUND="#402e2e"
FOREGOURND="#978965" FOREGOURND="#978965"
SELECTED_BACKGROUND="#808080" SELECTED_BACKGROUND="#808080"

View File

@@ -1,5 +1,23 @@
#!/bin/bash #!/bin/bash
##########################################
# _ _ _ _ #
# | | | | (_) | | #
# __ _____ | |_ __ ___ | |_ _ __| | #
# \ \ / / _ \| | '_ \ / _ \| __| |/ _` | #
# \ V / (_) | | | | | (_) | |_| | (_| | #
# \_/ \___/|_|_| |_|\___/ \__|_|\__,_| #
# #
##########################################
#
# This script uses volnoti, which can be installed from git or
# from the arch aur.
#
# yaourt -S volnoti
#
VOLUME=$(amixer get Master | grep Mono: | sed 's|[^[]*\[\([0-9]*\).*|\1|') VOLUME=$(amixer get Master | grep Mono: | sed 's|[^[]*\[\([0-9]*\).*|\1|')
VALUE=3dB VALUE=3dB
MUTE=0 MUTE=0

View File

@@ -1,5 +1,16 @@
#!/bin/sh #!/bin/sh
#######################################################
# _ _ #
# | | | #
# __ ____ _| | |_ __ __ _ _ __ ___ _ __ ___ #
# \ \ /\ / / _` | | | '_ \ / _` | '_ \ / _ \ '__/ __| #
# \ V V / (_| | | | |_) | (_| | |_) | __/ | \__ \ #
# \_/\_/ \__,_|_|_| .__/ \__,_| .__/ \___|_| |___/ #
# | | | | #
# |_| |_| #
#######################################################
PICTURES="$HOME/.wallpapers/" PICTURES="$HOME/.wallpapers/"
SHOWTIME="10m" SHOWTIME="10m"