Autore Topic: Ma a me piace Debian!  (Letto 18879 volte)

tonywhite

  • Visitatore
Re:Ma a me piace Debian!
« Risposta #180 il: Dicembre 02, 2011, 10:56:25 am »
ho ancora da capire cos'è gnome shell... (lo so sono niubbo)
Gnome 3 non usa Compiz, ma Mutter.
Se usi Mutter hai questa interfaccia
http://www.tuxjournal.net/wp-content/uploads/2011/02/750px-GNOME_Shell.jpg

Se non usi Mutter e sei nella fallback mode hai un'interfaccia simile a Gnome 2
http://www.marcusmoeller.ch/wp-content/uploads/2011/03/GNOME3_Fallback.png

cire

  • Visitatore
Re:Ma a me piace Debian!
« Risposta #181 il: Dicembre 02, 2011, 11:09:31 am »
penso di avere quasi capito... grazie

tonywhite

  • Visitatore
Re:Ma a me piace Debian!
« Risposta #182 il: Dicembre 02, 2011, 11:26:28 am »
penso di avere quasi capito... grazie
Prego.
Comunque la cosa è più semplice di quanto pensi. La differenza è puramente grafica: prova ad attivare la fallback mode e non cambierà un tubo :ysy:

cire

  • Visitatore
Re:Ma a me piace Debian!
« Risposta #183 il: Dicembre 02, 2011, 11:32:03 am »
penso di avere quasi capito... grazie
Prego.
Comunque la cosa è più semplice di quanto pensi. La differenza è puramente grafica: prova ad attivare la fallback mode e non cambierà un tubo :ysy:
quando installerò arch ci penserò... devo solo trovare il tempo.


AirPort

  • Visitatore
Re:Ma a me piace Debian!
« Risposta #184 il: Dicembre 02, 2011, 01:58:00 pm »
ahaha i miei due unici alias sono y=yaourt e p = sudo pacman  :asd:

Codice: [Seleziona]
#!/bin/zsh

# Settings
# ========

# Colors variables
# ----------------
grey="%{$(echo -n '\e[1;30m')%}"
red="%{$(echo -n '\e[1;31m')%}"
green="%{$(echo -n '\e[1;32m')%}"
yellow="%{$(echo -n '\e[1;33m')%}"
blue="%{$(echo -n '\e[1;34m')%}"
magenta="%{$(echo -n '\e[1;35m')%}"
cyan="%{$(echo -n '\e[1;36m')%}"
white="%{$(echo -n '\e[1;37m')%}"
lightred="%{$(echo -n '\e[0;31m')%}"
lightgreen="%{$(echo -n '\e[0;32m')%}"
lightyellow="%{$(echo -n '\e[0;33m')%}"
lightblue="%{$(echo -n '\e[0;34m')%}"
lightmagenta="%{$(echo -n '\e[0;34m')%}"
lightcyan="%{$(echo -n '\e[0;35m')%}"
lightwhite="%{$(echo -n '\e[0;37m')%}"n/zsh

# Completion
# ----------
autoload -U compinit
compinit
zstyle ':completion:*' completer _complete _ignored _match _approximate
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' group-name ''
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' matcher-list '' 'm:{[:lower:]}={[:upper:]}' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'r:|[._-]=* r:|=*'
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path $HOME/.zsh/cache
zstyle ':completion:*:match:*' original only
zstyle ':completion:*:approximate:*' max-errors 1 numeric
zstyle ':completion:*:functions' ignored-patterns '_*'

# Autocorrect
# -----------
setopt correct

# Prompt
# ------
autoload -U promptinit
promptinit
PS1=$'%n@%m:%~%# '

# Keybinding
# ----------
bindkey -e
bindkey  "\eOH" beginning-of-line
bindkey  "\eOF" end-of-line
bindkey  "\e[2~" overwrite-mode
bindkey  "\e[3~" delete-char
bindkey  "^[[A" up-line-or-history
bindkey  "^[[B" down-line-or-history
bindkey  "\e\e[C" backward-char
bindkey  "\e\e[D" forward-char
bindkey  "\e[5~" beginning-of-history
bindkey  "\e[6~" end-of-history

# History
# -------
HISTFILE=~/.history
HISTSIZE=5000
SAVEHIST=5000
setopt hist_ignore_space

# Enviroment variables
# --------------------
export EDITOR="/usr/bin/vim"
export BROWSER="/usr/bin/google-chrome"
export TERMINAL="/usr/bin/sakura"


# Aliases
# =======

# Coloured output for grep and ls
# -------------------------------
alias ls='ls --color=auto'
alias grep='grep --color=auto'

# Right way to run some programs
# ------------------------------
alias irssi='screen irssi'
alias weechat='weechat-curses'

# Facilitations
# -------------
alias scrota='scrot -c -d 10 ~/Images/Screenshots/Screenshot\ %d-%m-%Y\ %H:%M:%S.png'
alias scrotnao='scrot -c ~/Images/Screenshots/\ %d-%m-%Y\ %H:%M:%S.png'

# VI-style commands
# -----------------
alias :q='exit'


# Functions
# =========

# Compress
# --------
compress () { # compress archive.tar folder
if [ -d $2 ] ; then
case $1 in
*.tar.bz2)   tar vcjf $1 $2;;
*.tar.gz)    tar vczf $1 $2;;
*.bz2)       bunzip2 $1 $2;;
*.gz)        gzip $1 $2;;
*.tar)       tar vcf $1 $2;;
*.tbz2)      tar vcjf $1 $2;;
*.tgz)       tar vczf $1 $2;;
*.zip)       zip -r $1 $2;;
*.Z)         compress $1 $2;;
*.7z)        7z a -t7z $1 $2;;
*)           echo "Non riesco a comprimere $2.";;
       esac
   else
       echo "$2 non è un archivio valido."
   fi
}

# Extract
# -------
extract () { # extract archive.tar
if [ -f $1 ] ; then
case $1 in
*.ar.bz2) tar vxjf $1;;
*.ar.gz) tar vxzf $1;;
*.bz2) bunzip2 $1;;
*.rar) unrar x $1;;
*.gz) gunzip $1;;
*.tar) tar vxf $1;;
*.tbz2) tar vxjf $1;;
*.tgz) tar vxzf $1;;
*.zip) unzip $1;;
*.Z) uncompress $1;;
*.7z) 7z x $1;;
      *)           echo "Non riesco a estrarre $1.";;
       esac
   else
       echo "$1 non è un archivio valido."
   fi
}

# Aliases
# =======

# Coloured output for grep and ls
# -------------------------------
alias ls='ls --color=auto'
alias grep='grep --color=auto'

# Right way to run some programs
# ------------------------------
alias irssi='screen irssi'
alias weechat='weechat-curses'

# Facilitations
# -------------
alias scrota='scrot -c -d 10 ~/Images/Screenshots/Screenshot\ %d-%m-%Y\ %H:%M:%S.png'
alias scrotnao='scrot -c ~/Images/Screenshots/\ %d-%m-%Y\ %H:%M:%S.png'

# VI-style commands
# -----------------
alias :q='exit'


Ma scroto no? :lki:

tonywhite

  • Visitatore
Re:Ma a me piace Debian!
« Risposta #185 il: Dicembre 02, 2011, 02:15:08 pm »
ahaha i miei due unici alias sono y=yaourt e p = sudo pacman  :asd:

Codice: [Seleziona]
#!/bin/zsh

# Settings
# ========

# Colors variables
# ----------------
grey="%{$(echo -n '\e[1;30m')%}"
red="%{$(echo -n '\e[1;31m')%}"
green="%{$(echo -n '\e[1;32m')%}"
yellow="%{$(echo -n '\e[1;33m')%}"
blue="%{$(echo -n '\e[1;34m')%}"
magenta="%{$(echo -n '\e[1;35m')%}"
cyan="%{$(echo -n '\e[1;36m')%}"
white="%{$(echo -n '\e[1;37m')%}"
lightred="%{$(echo -n '\e[0;31m')%}"
lightgreen="%{$(echo -n '\e[0;32m')%}"
lightyellow="%{$(echo -n '\e[0;33m')%}"
lightblue="%{$(echo -n '\e[0;34m')%}"
lightmagenta="%{$(echo -n '\e[0;34m')%}"
lightcyan="%{$(echo -n '\e[0;35m')%}"
lightwhite="%{$(echo -n '\e[0;37m')%}"n/zsh

# Completion
# ----------
autoload -U compinit
compinit
zstyle ':completion:*' completer _complete _ignored _match _approximate
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' group-name ''
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' matcher-list '' 'm:{[:lower:]}={[:upper:]}' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'r:|[._-]=* r:|=*'
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path $HOME/.zsh/cache
zstyle ':completion:*:match:*' original only
zstyle ':completion:*:approximate:*' max-errors 1 numeric
zstyle ':completion:*:functions' ignored-patterns '_*'

# Autocorrect
# -----------
setopt correct

# Prompt
# ------
autoload -U promptinit
promptinit
PS1=$'%n@%m:%~%# '

# Keybinding
# ----------
bindkey -e
bindkey  "\eOH" beginning-of-line
bindkey  "\eOF" end-of-line
bindkey  "\e[2~" overwrite-mode
bindkey  "\e[3~" delete-char
bindkey  "^[[A" up-line-or-history
bindkey  "^[[B" down-line-or-history
bindkey  "\e\e[C" backward-char
bindkey  "\e\e[D" forward-char
bindkey  "\e[5~" beginning-of-history
bindkey  "\e[6~" end-of-history

# History
# -------
HISTFILE=~/.history
HISTSIZE=5000
SAVEHIST=5000
setopt hist_ignore_space

# Enviroment variables
# --------------------
export EDITOR="/usr/bin/vim"
export BROWSER="/usr/bin/google-chrome"
export TERMINAL="/usr/bin/sakura"


# Aliases
# =======

# Coloured output for grep and ls
# -------------------------------
alias ls='ls --color=auto'
alias grep='grep --color=auto'

# Right way to run some programs
# ------------------------------
alias irssi='screen irssi'
alias weechat='weechat-curses'

# Facilitations
# -------------
alias scrota='scrot -c -d 10 ~/Images/Screenshots/Screenshot\ %d-%m-%Y\ %H:%M:%S.png'
alias scrotnao='scrot -c ~/Images/Screenshots/\ %d-%m-%Y\ %H:%M:%S.png'

# VI-style commands
# -----------------
alias :q='exit'


# Functions
# =========

# Compress
# --------
compress () { # compress archive.tar folder
if [ -d $2 ] ; then
case $1 in
*.tar.bz2)   tar vcjf $1 $2;;
*.tar.gz)    tar vczf $1 $2;;
*.bz2)       bunzip2 $1 $2;;
*.gz)        gzip $1 $2;;
*.tar)       tar vcf $1 $2;;
*.tbz2)      tar vcjf $1 $2;;
*.tgz)       tar vczf $1 $2;;
*.zip)       zip -r $1 $2;;
*.Z)         compress $1 $2;;
*.7z)        7z a -t7z $1 $2;;
*)           echo "Non riesco a comprimere $2.";;
       esac
   else
       echo "$2 non è un archivio valido."
   fi
}

# Extract
# -------
extract () { # extract archive.tar
if [ -f $1 ] ; then
case $1 in
*.ar.bz2) tar vxjf $1;;
*.ar.gz) tar vxzf $1;;
*.bz2) bunzip2 $1;;
*.rar) unrar x $1;;
*.gz) gunzip $1;;
*.tar) tar vxf $1;;
*.tbz2) tar vxjf $1;;
*.tgz) tar vxzf $1;;
*.zip) unzip $1;;
*.Z) uncompress $1;;
*.7z) 7z x $1;;
      *)           echo "Non riesco a estrarre $1.";;
       esac
   else
       echo "$1 non è un archivio valido."
   fi
}

# Aliases
# =======

# Coloured output for grep and ls
# -------------------------------
alias ls='ls --color=auto'
alias grep='grep --color=auto'

# Right way to run some programs
# ------------------------------
alias irssi='screen irssi'
alias weechat='weechat-curses'

# Facilitations
# -------------
alias scrota='scrot -c -d 10 ~/Images/Screenshots/Screenshot\ %d-%m-%Y\ %H:%M:%S.png'
alias scrotnao='scrot -c ~/Images/Screenshots/\ %d-%m-%Y\ %H:%M:%S.png'

# VI-style commands
# -----------------
alias :q='exit'


Ma scroto no? :lki:
Air: non rompere le palle :lki:

SuNjACk

  • Visitatore
Re:Ma a me piace Debian!
« Risposta #186 il: Dicembre 02, 2011, 03:19:38 pm »
ahaha i miei due unici alias sono y=yaourt e p = sudo pacman  :asd:

Codice: [Seleziona]
#!/bin/zsh

# Settings
# ========

# Colors variables
# ----------------
grey="%{$(echo -n '\e[1;30m')%}"
red="%{$(echo -n '\e[1;31m')%}"
green="%{$(echo -n '\e[1;32m')%}"
yellow="%{$(echo -n '\e[1;33m')%}"
blue="%{$(echo -n '\e[1;34m')%}"
magenta="%{$(echo -n '\e[1;35m')%}"
cyan="%{$(echo -n '\e[1;36m')%}"
white="%{$(echo -n '\e[1;37m')%}"
lightred="%{$(echo -n '\e[0;31m')%}"
lightgreen="%{$(echo -n '\e[0;32m')%}"
lightyellow="%{$(echo -n '\e[0;33m')%}"
lightblue="%{$(echo -n '\e[0;34m')%}"
lightmagenta="%{$(echo -n '\e[0;34m')%}"
lightcyan="%{$(echo -n '\e[0;35m')%}"
lightwhite="%{$(echo -n '\e[0;37m')%}"n/zsh

# Completion
# ----------
autoload -U compinit
compinit
zstyle ':completion:*' completer _complete _ignored _match _approximate
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' group-name ''
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' matcher-list '' 'm:{[:lower:]}={[:upper:]}' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'r:|[._-]=* r:|=*'
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path $HOME/.zsh/cache
zstyle ':completion:*:match:*' original only
zstyle ':completion:*:approximate:*' max-errors 1 numeric
zstyle ':completion:*:functions' ignored-patterns '_*'

# Autocorrect
# -----------
setopt correct

# Prompt
# ------
autoload -U promptinit
promptinit
PS1=$'%n@%m:%~%# '

# Keybinding
# ----------
bindkey -e
bindkey  "\eOH" beginning-of-line
bindkey  "\eOF" end-of-line
bindkey  "\e[2~" overwrite-mode
bindkey  "\e[3~" delete-char
bindkey  "^[[A" up-line-or-history
bindkey  "^[[B" down-line-or-history
bindkey  "\e\e[C" backward-char
bindkey  "\e\e[D" forward-char
bindkey  "\e[5~" beginning-of-history
bindkey  "\e[6~" end-of-history

# History
# -------
HISTFILE=~/.history
HISTSIZE=5000
SAVEHIST=5000
setopt hist_ignore_space

# Enviroment variables
# --------------------
export EDITOR="/usr/bin/vim"
export BROWSER="/usr/bin/google-chrome"
export TERMINAL="/usr/bin/sakura"


# Aliases
# =======

# Coloured output for grep and ls
# -------------------------------
alias ls='ls --color=auto'
alias grep='grep --color=auto'

# Right way to run some programs
# ------------------------------
alias irssi='screen irssi'
alias weechat='weechat-curses'

# Facilitations
# -------------
alias scrota='scrot -c -d 10 ~/Images/Screenshots/Screenshot\ %d-%m-%Y\ %H:%M:%S.png'
alias scrotnao='scrot -c ~/Images/Screenshots/\ %d-%m-%Y\ %H:%M:%S.png'

# VI-style commands
# -----------------
alias :q='exit'


# Functions
# =========

# Compress
# --------
compress () { # compress archive.tar folder
if [ -d $2 ] ; then
case $1 in
*.tar.bz2)   tar vcjf $1 $2;;
*.tar.gz)    tar vczf $1 $2;;
*.bz2)       bunzip2 $1 $2;;
*.gz)        gzip $1 $2;;
*.tar)       tar vcf $1 $2;;
*.tbz2)      tar vcjf $1 $2;;
*.tgz)       tar vczf $1 $2;;
*.zip)       zip -r $1 $2;;
*.Z)         compress $1 $2;;
*.7z)        7z a -t7z $1 $2;;
*)           echo "Non riesco a comprimere $2.";;
       esac
   else
       echo "$2 non è un archivio valido."
   fi
}

# Extract
# -------
extract () { # extract archive.tar
if [ -f $1 ] ; then
case $1 in
*.ar.bz2) tar vxjf $1;;
*.ar.gz) tar vxzf $1;;
*.bz2) bunzip2 $1;;
*.rar) unrar x $1;;
*.gz) gunzip $1;;
*.tar) tar vxf $1;;
*.tbz2) tar vxjf $1;;
*.tgz) tar vxzf $1;;
*.zip) unzip $1;;
*.Z) uncompress $1;;
*.7z) 7z x $1;;
      *)           echo "Non riesco a estrarre $1.";;
       esac
   else
       echo "$1 non è un archivio valido."
   fi
}

# Aliases
# =======

# Coloured output for grep and ls
# -------------------------------
alias ls='ls --color=auto'
alias grep='grep --color=auto'

# Right way to run some programs
# ------------------------------
alias irssi='screen irssi'
alias weechat='weechat-curses'

# Facilitations
# -------------
alias scrota='scrot -c -d 10 ~/Images/Screenshots/Screenshot\ %d-%m-%Y\ %H:%M:%S.png'
alias scrotnao='scrot -c ~/Images/Screenshots/\ %d-%m-%Y\ %H:%M:%S.png'

# VI-style commands
# -----------------
alias :q='exit'


Codice: (~/.zshrc) [Seleziona]
   #######  ###### ##   ## 
   ####### ####### ##   ## 
      ###  ##       #   ## 
     ###    #####  #### ## 
    ###         ## ##   ## 
   ####### ####### ##   ## 
   ####### ######  ##   ## 
                                 
## If not running interactively, do nothing
[ -z "$PS1" ] && return

## --/// ZSH Configuration ///-- ##
# load zsh modules
autoload -U compinit promptinit zcalc zsh-mime-setup colors
compinit
promptinit
zsh-mime-setup
colors
# Options
setopt printexitvalue          # alert me if something's failed
setopt PUSHD_MINUS
setopt HUP
setopt NO_BEEP
setopt NO_CASE_GLOB
setopt IGNORE_EOF
setopt  autopushd pushdminus autoresume histignoredups \
pushdsilent notify correct pushdtohome \
cdablevars autolist correctall autocd

unsetopt ALL_EXPORT

## Zshdir ##
zshdir="$HOME/.zsh"

# Add a dir to PATH
if [[ ! "$PATH" =~ "/home/sunny/.bin" ]]; then
export PATH=/home/sunny/.bin:$PATH
fi

# Completions
zstyle ':completion:*' completer _complete _ignored _match _approximate
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' group-name ''
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' matcher-list '' 'm:{[:lower:]}={[:upper:]}' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'r:|[._-]=* r:|=*'
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path $HOME/.zsh/cache
zstyle ':completion:*:match:*' original only
zstyle ':completion:*:approximate:*' max-errors 1 numeric
zstyle ':completion:*:functions' ignored-patterns '_*'
## Keys
bindkey -v
bindkey '\e[A' history-search-backward # search in history like vim command mode
bindkey '\e[B'  history-search-forward # search in history like vim command mode
bindkey '\e[C'  forward-char
bindkey '\e[D'  backward-char
bindkey "^?" backward-delete-char
bindkey '^[[7~' beginning-of-line
bindkey '^[[8~' end-of-line
bindkey "^r" history-incremental-search-backward
bindkey "^f" history-incremental-search-forward
bindkey ' ' magic-space    # also do history expansion on space
bindkey '^I' complete-word # complete on tab, leave expansion to _expand
bindkey '^[.' insert-last-word

export EDITOR="/usr/bin/vim" \
   BROWSER="/usr/bin/luakit" \
   PAGER="/bin/less" \
   MANPAGER="/bin/less" \
   LC="it_IT.UTF-8" \
   LC_ALL="it_IT.UTF-8"

# --// Custom Prompt //--
export PS1=$'%F{black}┌[%F{blue}%B %n %b%f@ %F{red}%T%F{black} ] %F{yellow}%B %~ %b%f
%F{black}└%F{green}%B %% %b%F{black}¬%f '
export PS2=$'%{\e[1;33m%} %_>%{\e[0m%} '

# color support
eval "`dircolors -b`"
#alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}

# --// Aliases //--
alias ls='ls++'
alias l='ls -A'
alias reload='source ~/.zshrc'
alias biggest='du -xm --max-depth=1 | sort -nr | head -10'
alias rm='rm -rv'
alias rem='rm -vi'
alias copy='nocorrect cp -f'
alias cp='nocorrect acp -gR'
alias mv='nocorrect amv -g'
alias reboot='sudo reboot'
alias halt='sudo halt'
alias ':q'='exit'
alias connect='sudo wvdial &!'
alias god='sudo -s'
alias wifi='wicd-curses'
alias minecraft='java -Xmx2048M -Xms1024M -cp ~/.minecraft/minecraft.jar net.minecraft.LauncherFrame'
alias my-ip="dig +short myip.opendns.com @resolver1.opendns.com"

# --// Mimetypes //--

. ${zshdir}/mimetypes.zsh

# --// Package managers //--
alias pm='pacman-color'
alias pk='packer'
alias y='yaourt'

# --// Pipes //--
alias -g G='| grep'
alias -g S='| sort'
alias -g L='| less'
alias -g T='| tail'
alias -g H='| head'
alias -g DN='/dev/null'
alias -g NULL='&> /dev/null'
alias -g Xs='| xsel -b'
alias -g K='killall'

# --// Aliases for directories //--
alias -g data='/media/Data/'
alias -g SJ='/media/SJ/'
alias -g music='/media/SJ/Music'
alias -g images='/media/SJ/Images'
alias -g walls='/media/SJ/Images/wallpapers'
alias -g downs='/media/Data/Downloads'
alias -g torrents='/media/Data/Torrents'
alias -g tv-series='/media/Data/TV\ Series/'

# --// Update Clock //--
update-clock () {
sudo rdate -s time.ien.it
sudo hwclock -w
}

# --// Wireless quick settings //--
wlan () {
if [ -n "$1" ]; then
case $1 in
down|off) test "`pgrep wicd`" && sudo /etc/rc.d/wicd stop
sudo ifconfig wlan0 down ;;
up|on)  test ! "`pgrep wicd`" && sudo /etc/rc.d/wicd start
sudo ifconfig wlan0 up   ;;
*) echo "Wrong argument: $1"
echo "usage: $0  up|down"
return 1 ;;
esac
else
echo "No arguments"
echo "usage: $0 up|down"
return 1
fi
}

# --// Config Awesome //--
awconfig () {
    awconfdir="$HOME/.config/awesome"
    if [ $1 ] ; then
        case $1 in
            rc|main) $EDITOR $awconfdir/rc.lua       ;;
            wg|widgets) $EDITOR $awconfdir/widgets.lua  ;;
            th|theme)   $EDITOR $awconfdir/theme.lua    ;;
            vol|volume) $EDITOR $awconfdir/volume.lua   ;;
            mm|menu)    $EDITOR $awconfdir/mainmenu.lua ;;
            *)  if [ -f $awconfdir/${1}.lua ]; then
$EDITOR $awconfdir/${1}.lua
else
echo "Invalid option"
fi ;;
        esac
    else
        $EDITOR $awconfdir/rc.lua
    fi
    unset awconfdir
}

# --// General Config //--
config () {
    case $1 in
rc) sudo $EDITOR /etc/rc.conf ;;
        mpd)        $EDITOR ~/.mpdconf ;;
        vim)        $EDITOR ~/.vimrc ;;
        zsh)        $EDITOR ~/.zshrc ;;
grub) sudo $EDITOR /boot/grub/menu.lst ;;
xorg) sudo $EDITOR /etc/X11/xorg.conf ;;
        fstab)      sudo $EDITOR /etc/fstab ;;
        tint2)      $EDITOR ~/.config/tint2/tint2rc ;;
        xdefs)      $EDITOR ~/.Xdefaults ;;
        xinit)      $EDITOR ~/.xinitrc ;;
pacman) sudo $EDITOR /etc/pacman.conf ;;
        ncmpcpp)    $EDITOR ~/.ncmpcpp/config ;;
        inittab)    sudo $EDITOR /etc/inittab ;;
mplayer) $EDITOR ~/.mplayer/config ;;
        *)          if [ -f "$1" ]; then
if [ -w "$1" ]; then
$EDITOR "$1"
else
sudo $EDITOR "$1"
fi
else
echo "Invalid Option"
fi ;;
    esac
}

# --// Conky Config //--
conkycfg () {
conkydir="$HOME/.config/conky"
default="$conkydir/rc.conky"
if [ "$1" ]; then
if [ -f "$conkydir/$1" ]; then
$EDITOR $conkydir/$1
elif [ -f "${conkydir}/${1}.lua" ]; then
$EDITOR ${conkydir}/${1}.lua
else
echo "Invalid File"
exit 1
fi
else
$EDITOR $default
fi
}

# --// Cleanup //--
cleanup () {
    /bin/rm -rfv ~/.thumbnails/*
    /bin/rm -rfv ~/.opera/cache/*
    /bin/rm -rfv ~/.opera/icons/*
    /bin/rm -rfv ~/.adobe/
    /bin/rm -rfv ~/.macromedia/
    /bin/rm -rfv ~/.local/share/Trash/*
    /bin/rm -rfv /media/Data/.Trash*
    /bin/rm -rfv /media/SJ/.Trash*
    /bin/rm -rfv ~/downloads/*torrent
    /bin/rm -rfv ~/w3m
/bin/rm -rfv ~/.sxiv/*
}

# -- Change font on the fly (on urxvt)
change-font() {
if [[ "$TERM" =~ "rxvt" ]]; then
printf "\e]710;${1}\007"
fi
}

# -- Ping loop
ping-loop () {
local url="$1"
local i=0
while true; do
i=$(( $i+1 ))
echo -e "\n\e[31m ==| Tentativo #$i |==\e[0m"
ping -c5 "$url"
sleep 1s
done
}

# -- Search files in $PATH
searchbin() {
for p in $(sed 's/:/ /g' <<< $PATH); do
find $p -iname "*$1*" | uniq | sort
done
}

# --// History //--
HISTFILE="$HOME/.zsh/history"
HISTSIZE=1000
SAVEHIST=1000
setopt EXTENDED_HISTORY # puts timestamps in the history
setopt HIST_VERIFY # when using ! cmds, confirm first
setopt HIST_IGNORE_DUPS # ignore same commands run twice+
setopt APPEND_HISTORY # don't overwrite history
setopt SHARE_HISTORY # _all_ zsh sessions share the same history files
setopt INC_APPEND_HISTORY # write after each command

# --// Presentazione //--
color-blocks () {
echo
local width=$(( ($COLUMNS / 16) -1 ))
local chars
local pre=$(( ( $COLUMNS - ($width+1)*16)/2 ))
for ((i=0; i<$width; i++)); chars+="░"
for ((i=0; i<$pre; i++)); echo -n " "
for ((i=0; i<=7; i++)); echo -en "\e[3${i}m${chars} \e[1;3${i}m${chars}\e[m "; echo; echo
unset i
}

sleep 0.1s && color-blocks


Codice: (~/.zsh/mimetypes.zsh) [Seleziona]
### Text files
local -a VIM
VIM=(
asm
bash
c cfg coffee conf cpp cs css csv conkyrc
diff
enc eps etx ex example
git gitignore go
h hs
info ini
java jhtm js jsm jsm json jsp
lisp log
map markdown md mf mfasl mi mkd mtx
nfo
pacnew patch pc pfa php pid PKGBUILD pm pod
rb rdf ru
sfv signature sty sug
t tcl tdy tex textile tfm tfnt theme txt
urlview
vim viminfo
xml
yml
zsh
)
alias -s $^VIM=vim

### Images
local -a IMAGES
IMAGES=( jpg jpeg png gif svg )
alias -s $^IMAGES=viewnior

### Archives
local -a ARCHIVES
ARCHIVES=( tar bz2 gz zip rar )
#packlist() { als "$1" | $PAGER }
als() { atool "$1" | $PAGER }
alias -s $^ARCHIVES=packlist

:lki: :lki: :lki:

AirPort

  • Visitatore
Re:Ma a me piace Debian!
« Risposta #187 il: Dicembre 02, 2011, 03:20:18 pm »
Tu non fai testo :lki:

SuNjACk

  • Visitatore
Re:Ma a me piace Debian!
« Risposta #188 il: Dicembre 02, 2011, 03:32:44 pm »

Buntolo

  • Visitatore
Re:Ma a me piace Debian!
« Risposta #189 il: Dicembre 02, 2011, 06:03:45 pm »
Solo io non uso nulla del genere?  :asd:

MadnessMike

  • Visitatore
Re:Ma a me piace Debian!
« Risposta #190 il: Dicembre 02, 2011, 07:14:53 pm »
Solo io non uso nulla del genere?  :asd:
:falsofalso:

tonywhite

  • Visitatore
Re:Ma a me piace Debian!
« Risposta #191 il: Dicembre 03, 2011, 01:35:25 am »

tonywhite

  • Visitatore
Re:Ma a me piace Debian!
« Risposta #192 il: Dicembre 04, 2011, 10:49:34 pm »
https://extensions.gnome.org/extension/19/user-themes/

Citazione
This extension is incompatible with your version of GNOME.

Rimarrò con Adwaita a vita? :omg:
Non mi piacciono le rime! :omg:

tonywhite

  • Visitatore
Re:Ma a me piace Debian!
« Risposta #193 il: Gennaio 21, 2012, 03:17:31 pm »
Per chi diceva che i PPA hanno problemi a differenza dei repo di Arch...
Il numero di errori che ho avuto installando dai repository di Arch è di gran lunga superiore del numero di errori che ho avuto da quando ho iniziato ad usare Linux.
A = Errori dei repository Arch da Novembre ad oggi;
D = Errori di tutti i sistemi debian-based accumulati da quando ho iniziato ad usare Linux.

A > D

La matematica non è un opinione.
Ora mi scoccia formattare.

Darko82

  • Visitatore
Re:Ma a me piace Debian!
« Risposta #194 il: Gennaio 21, 2012, 03:22:04 pm »
Per chi diceva che i PPA hanno problemi a differenza dei repo di Arch...
Il numero di errori che ho avuto installando dai repository di Arch è di gran lunga superiore del numero di errori che ho avuto da quando ho iniziato ad usare Linux.
A = Errori dei repository Arch da Novembre ad oggi;
D = Errori di tutti i sistemi debian-based accumulati da quando ho iniziato ad usare Linux.

A > D

La matematica non è un opinione.
Ora mi scoccia formattare.

Da quand'è che non aggiorni?
Perché se è da tanto (una settimana o più) allora è normale