From 297ae7e2f8059435c78149b50617b8327a1666ab Mon Sep 17 00:00:00 2001 From: Nathan Steel Date: Mon, 9 Nov 2020 13:46:33 +0000 Subject: [PATCH] Amends to install and dmenu display --- dmenu/dmenu_change_display | 20 ++++++++++++-- install.sh | 53 +++++++++++++++++++------------------- 2 files changed, 44 insertions(+), 29 deletions(-) diff --git a/dmenu/dmenu_change_display b/dmenu/dmenu_change_display index af2fe04..1a64036 100755 --- a/dmenu/dmenu_change_display +++ b/dmenu/dmenu_change_display @@ -1,10 +1,26 @@ #!/bin/bash -display=$(printf "external\\nboth\\ninternal" | dmenu -i -p "Display as: ") +display=$(printf "external\\nextend\\ninternal\\nduplicate" | dmenu -i -p "Display: ") + +internal() { + xrandr --output LVDS \ + --primary \ + --auto +} case $display in "external") echo "extersn";; - "both") echo "bdsfkdsfja";; + "extend") echo "bdsfkdsfja";; "internal") echo "ajflkjalkf";; esac +case "$1" in + "external") + external;; + "internal") + internal;; + "extend") + extend;; + "duplicate") + duplicate;; + diff --git a/install.sh b/install.sh index 8bd62ce..fe19aa9 100755 --- a/install.sh +++ b/install.sh @@ -2,20 +2,27 @@ # ideally a minimal install # Install X and sudo so other things can work -apt install sudo xorg build-essential -y +apt install sudo xorg build-essential -y # Update baybee apt update && upgrade -y +# Add the user to sudo? +useradd -g nathan sudo + # Terminal shit apt install git zsh tmux vim neofetch wget -y # Image viewer, music player, rss feed, etc -apt install cmus newsboat youtube-dl mpv -y +apt install cmus newsboat youtube-dl mpv scrot -y # Image viewer, PDF Reader (GUI) apt install feh zathura -y +# Hewwo +echo 'deb http://deb.xanmod.org releases main' | sudo tee /etc/apt/sources.list.d/xanmod-kernel.list && wget -qO - https://dl.xanmod.org/gpg.key | sudo apt-key add - +apt update && apt install linux-xanmod -y + # Network Tools #apt install net-tools wicd -y @@ -38,39 +45,21 @@ apt install transmission-daemon transmission-cli transmission-remote-cli -y # Setup the user for transmission-daemon -# Setup the bin directory for custom scripts -mkdir ~/.local/bin -# Vi mode terminal and local bin -echo "set -o vi\nexport PATH=~/.local/bin:\$PATH" >> .zshrc -# Add to path for this session -export PATH=~/.local/bin:$PATH - -# lf file manager -# Download a pre-built binary -curl -L https://github.com/gokcehan/lf/releases/latest/download/lf-linux-amd64.tar.gz | tar xzC ~/.local/bin - - -# GUI - # brave-browser # https://brave-browser.readthedocs.io/en/latest/installing-brave.html#linux # Can be built from source, but takes a long while apt install apt-transport-https - curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add - - echo "deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main" | sudo tee /etc/apt/sources.list.d/brave-browser-release.list - apt update - apt install brave-browser -y - -# Window Manager - # Suckless pre-requisites apt install libx11-dev libxft-dev libxinerama-dev -y +# User +su nathan + # dwm Window manager mkdir ~/git cd ~/git @@ -85,8 +74,18 @@ make clean install # gruvbox, hotkeys # actualfullscreen, bottomstack, centeredwindowname, fullgaps, swallow -# Oh my zsh -#sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)" +# Setup the bin directory for custom scripts +mkdir ~/.local/bin +# Vi mode terminal and local bin +echo "set -o vi\nexport PATH=~/.local/bin:\$PATH" >> .zshrc +echo "export PATH=~/.local/bin/*:\$PATH" >> .zshrc +# Add to path for this session +export PATH=~/.local/bin:$PATH +export PATH=~/.local/bin/*:$PATH + +# lf file manager +# Download a pre-built binary +curl -L https://github.com/gokcehan/lf/releases/latest/download/lf-linux-amd64.tar.gz | tar xzC ~/.local/bin + # Change default shell to zsh -#chsh -s /bin/zsh -#echo "export PATH=~/.local/bin:\$PATH" >> .zshrc +chsh -s /bin/zsh