Selaa lähdekoodia

youtube downloader, and prettier setup script

master
mort 9 vuotta sitten
vanhempi
commit
18f9088594
4 muutettua tiedostoa jossa 15 lisäystä ja 7 poistoa
  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 Näytä tiedosto


BIN
bin/youtube-dl Näytä tiedosto


+ 1
- 1
dotfiles/i3/config Näytä tiedosto

@@ -217,7 +217,7 @@ bindsym $mod+k exec xdotool mousemove_relative -- 50 0
bindsym $mod+comma exec xdotool click 1

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

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

+ 14
- 6
setup.sh Näytä tiedosto

@@ -1,27 +1,35 @@
#!/bin/sh

commands_missing=0
check_exists()
{
which "$1" 1> /dev/null
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
}

check_exists "zsh"
check_exists "tmux"
check_exists "vim"
check_exists "python"
check_exists "xdotool"
check_exists "i3"
check_exists "compton"
check_exists "amixer"
check_exists "xbacklight"
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..."
cd dotfiles
for f in *; do

Loading…
Peruuta
Tallenna