Compare commits
2 commits
0952eab0de
...
761ea3b890
Author | SHA1 | Date | |
---|---|---|---|
Geoffrey Frogeye | 761ea3b890 | ||
Geoffrey Frogeye | f30dc1adc4 |
2
bashrc
2
bashrc
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 "$@"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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\""
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue