Explorar el Código

youtube downloader, and prettier setup script

master
mort hace 9 años
padre
commit
18f9088594
Se han modificado 4 ficheros con 15 adiciones y 7 borrados
  1. 0
    0
      bin/touchpad-toggle
  2. BIN
      bin/youtube-dl
  3. 1
    1
      dotfiles/i3/config
  4. 14
    6
      setup.sh

bin/toggleTouchpad → bin/touchpad-toggle Ver fichero


BIN
bin/youtube-dl Ver fichero


+ 1
- 1
dotfiles/i3/config Ver fichero

bindsym $mod+comma exec xdotool click 1 bindsym $mod+comma exec xdotool click 1


# toggle touchpad # toggle touchpad
bindsym $mod+d exec toggleTouchpad
bindsym $mod+d exec touchpad-toggle


exec sh .startup.sh exec sh .startup.sh
exec xset r rate 200 60 exec xset r rate 200 60

+ 14
- 6
setup.sh Ver fichero

#!/bin/sh #!/bin/sh


commands_missing=0
check_exists() check_exists()
{ {
which "$1" 1> /dev/null which "$1" 1> /dev/null
if [ "$?" -ne 0 ]; then if [ "$?" -ne 0 ]; then
echo "Warning: Missing command: ${1}. Continue? (y/n)"
read response
if [ "$response" != "y" ]; then
echo "Aborting."
exit 1
fi
commands_missing=1
echo "Missing command: $1"
fi fi
} }


check_exists "zsh" check_exists "zsh"
check_exists "tmux" check_exists "tmux"
check_exists "vim" check_exists "vim"
check_exists "python"
check_exists "xdotool"
check_exists "i3" check_exists "i3"
check_exists "compton" check_exists "compton"
check_exists "amixer" check_exists "amixer"
check_exists "xbacklight" check_exists "xbacklight"
check_exists "feh" check_exists "feh"


if [ $commands_missing -ne 0 ]; then
echo "Some commands are missing. Continue? (y/n)"
read response
if [ "$response" != "y" ]; then
echo "Aborting."
exit 1
fi
fi

echo "Copying dotfiles..." echo "Copying dotfiles..."
cd dotfiles cd dotfiles
for f in *; do for f in *; do

Cargando…
Cancelar
Guardar