Compare commits

..

2 commits

Author SHA1 Message Date
Geoffrey Frogeye 761ea3b890 I wonder if I have been too far with this... 2017-02-12 16:46:30 +01:00
Geoffrey Frogeye f30dc1adc4 Moar colors 2017-02-12 15:31:40 +01:00
6 changed files with 54 additions and 32 deletions

2
bashrc
View file

@ -47,7 +47,7 @@ alias la="ls -la $LS_OPTIONS"
alias al=sl
alias x='startx; logout'
alias s='sudo -s -E'
alias po='proxy off'
alias po='eval $(proxy off)'
alias nw="sudo systemctl restart NetworkManager"
alias mc="machines"
# Superseding commands with better ones if they are present

View file

@ -133,27 +133,27 @@ bindsym $mod+a focus parent
bindsym $mod+q focus child
# Workspace names
set $WS1 1 Édition
set $WS2 2 Éxecution
set $WS3 3 Organisation
set $WS4 4 Référence
set $WS5 5 Divers 1
set $WS6 6 Divers 2
set $WS7 7 Contact
set $WS8 8 Social
set $WS9 9 Veille
set $WS1 1 Édition
set $WS2 2 Éxecution
set $WS3 3 Organisation
set $WS4 4 Référence
set $WS5 5 Divers 1
set $WS6 6 Divers 2
set $WS7 7 Contact
set $WS8 8 Social
set $WS9 9 Veille
set $WS10 10 Musique
# Workspace output
workspace "$WS1" output LVDS1
workspace "$WS2" output VGA1
workspace "$WS3" output LVDS1
workspace "$WS4" output VGA1
workspace "$WS5" output LVDS1
workspace "$WS6" output VGA1
workspace "$WS7" output LVDS1
workspace "$WS8" output VGA1
workspace "$WS9" output LVDS1
workspace "$WS1" output LVDS1
workspace "$WS2" output VGA1
workspace "$WS3" output LVDS1
workspace "$WS4" output VGA1
workspace "$WS5" output LVDS1
workspace "$WS6" output VGA1
workspace "$WS7" output LVDS1
workspace "$WS8" output VGA1
workspace "$WS9" output LVDS1
workspace "$WS10" output VGA1
# switch to workspace

View file

@ -1,2 +1,2 @@
#!/bin/sh
dmenu -fn 'DejaVu Sans Mono-10' -nb '#222222' -nf '#888888' -sb '#4E9C00' -sf '#FFFFFF' -l 8 -f -i -h 19 "$@"
dmenu -fn 'DejaVu Sans Mono-10' -nb '#48483e' -nf '#f1ebeb' -sb '#8fc029' -sf '#272822' -l 8 -f -i -h 19 "$@"

View file

@ -1,9 +1,9 @@
#!/bin/bash
if [ "$1" == 'root' ]; then
a=" (root)"
b="sudo -E "
b="-t 'sudo -s'"
fi
machine=$(cat ~/.ssh/config | grep '^Host ' | cut -d ' ' -f 2 | grep -v '*' | sort | $HOME/.config/i3/dmenu_cmd -p "SSH$a to ")
if [ ! -z $machine ]; then
xterm -e "ssh $machine -t '${b}bash --login'"
xterm -e "ssh $machine $b"
fi

View file

@ -245,6 +245,13 @@ function _debloc-installDeps { # package
# PUBLIC FUNCTIONS
function proxy_set_help {
echo "Usage: $0 env"
echo
echo "Examples:"
echo ' eval "$(debloc env)"'
return 0
}
function debloc_env {
echo "export PATH=\"$DEBLOC_ROOT/usr/bin:$DEBLOC_ROOT/usr/games/:$DEBLOC_ROOT/usr/lib/git-core:\$PATH\""
echo "export LIBRARY_PATH=\"$DEBLOC_LD:\$LIBRARY_PATH\""

View file

@ -7,6 +7,9 @@ function proxy_set_help {
echo
echo "Arguments:"
echo " ADDRESS Address of the proxy"
echo
echo "Examples:"
echo ' eval "$(proxy set http://proxy.mycompany.com:3128/)"'
return 0
}
@ -15,14 +18,20 @@ function proxy_set {
proxy_set_help
return 1
fi
export http_proxy=$1
export https_proxy=$1
export ftp_proxy=$1
export rsync_proxy=$1
echo "Proxy set"
echo "export http_proxy='$1'"
echo "export https_proxy='$1'"
echo "export ftp_proxy='$1'"
echo "export rsync_proxy='$1'"
exit 0
}
function proxy_setup_help {
echo "Usage: $0 setup"
echo
echo "Examples:"
echo " proxy_set # Then eval the output"
return 0
}
function proxy_setup {
export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com"
@ -49,12 +58,18 @@ function proxy_setup {
return 0
}
function proxy_off_help {
echo "Usage: $0 off"
echo
echo "Examples:"
echo ' eval $(proxy off)'
return 0
}
function proxy_off {
unset http_proxy
unset https_proxy
unset ftp_proxy
unset rsync_proxy
echo -e "Proxy removed"
echo 'unset http_proxy'
echo 'unset https_proxy'
echo 'unset ftp_proxy'
echo 'unset rsync_proxy'
return 0
}