~npisanti/oltremateria

a7f9f7b7be5a5515e1df16ebf24ae30b1002ba81 — Nicola Pisanti a month ago 49aa745
switch to fish completed
M 01_system_base.sh => 01_system_base.sh +6 -2
@@ 1,4 1,4 @@
#!/bin/bash
#!/bin/sh

echo "installing hardware stuff"
sudo apt-get -y build-essential amd64-microcode firmware-b43-installer firmware-b43legacy-installer firmware-linux firmware-ralink firmware-iwlwifi firmware-realtek i965-va-driver intel-microcode cpufrequtils hdparm hddtemp acpi printer-driver-all hplip va-driver-all vdpau-va-driver


@@ 12,7 12,10 @@ echo "installing some kind of crunchbang system"
sudo apt-get -y install alsa-utils anacron apt-transport-https apt-xapian-index aptitude arandr arj bash-completion btrfs-tools chntpw clipit compton conky-all curl crda dmz-cursor-theme dosfstools efibootmgr eject enchant fbxkb feh file-roller ftp fuse galternatives gdebi ghostscript gpicview gksu gparted hardinfo hwdata libnotify-bin lightdm lm-sensors locales lsb-release lxappearance lzop mlocate modemmanager network-manager nitrogen ntfs-3g ntp obconf obmenu openbox openssh-client p7zip-full pciutils pcmciautils python-keybinder python-notify python-xdg rfkill rpl rsync rzip scrot smartmontools thunar thunar-archive-plugin thunar-media-tags-plugin thunar-volman tint2 transmission-gtk unace unalz unar unrar unzip update-inetd usb-modeswitch usbutils user-setup uuid-runtime xdg-user-dirs xdg-utils xfce4-notifyd xfce4-power-manager xfce4-screenshooter xinput xorg xsel xz-utils yad zip grc python3-pyqt5 xdiskusage redshift xbacklight ncftp nmap  strace hsetroot wmctrl thermald gvfs gvfs-backends gvfs-fuse sshfs joystick 

echo "installing terminal stuff"
sudo apt-get -y install terminator tmux cmatrix cowsay fortune nmon neofetch xdotool trash-cli figlet toilet toilet-fonts htop espeak tree
sudo apt-get -y install terminator fish tmux cmatrix cowsay fortune nmon neofetch xdotool trash-cli figlet toilet toilet-fonts htop espeak tree

sudo chsh -s /usr/bin/fish
set -u fish_greeting  # unexport greetings

echo "installing coding tools"
sudo apt-get -y install build-essential swig shellcheck make cloc clang-8 clang-format-8 clang-tools-8 clang-tidy-8 lldb-8 git git-email linux-tools perf-tools-unstable linux-perf valgrind frama-c-base doxygen doxygen-doc gdb geany geany-plugins


@@ 90,4 93,5 @@ git clone https://github.com/BunsenLabs/bunsen-exit.git
echo "linking bins"
rm -rf ~/bin
ln -s ~/grimorio/bin ~/bin

exit

M 02_restore_confs.sh => 02_restore_confs.sh +3 -1
@@ 1,4 1,4 @@
#!/bin/bash
#!/bin/sh

# restoring confs
echo "restoring confs"


@@ 14,6 14,8 @@ cp ~/grimorio/confs/bashrc ~/.bashrc
cp ~/grimorio/confs/xbindkeysrc ~/.xbindkeysrc 
cp ~/grimorio/confs/Xresources ~/.Xresources 

cp -ar ~/grimorio/confs/fish ~/.config

cp ~/grimorio/confs/gitconfig ~/.gitconfig 

mkdir -p ~/.config/geany 

M 03_personal.sh => 03_personal.sh +16 -10
@@ 1,13 1,19 @@
#!/bin/bash

while true; do
    read -p "have you already generated an ssh key for sourcehut? you need it for this script" yn
    case $yn in
        [Yy]* ) break;;
        [Nn]* ) echo "see you later!"; exit;;
        * ) echo "please answer yes or no.";;
    esac
done
#!/usr/bin/fish

echo 'have you already generated an ssh key for sourcehut? you need it for this script'
while true
    set yn (read -P "[y/n]: " ) 

	switch "$yn"
    case Y y yes
    	break
    case N n no
    	 echo "goodbye!" 
    	 exit
    case '*'
    	echo "Please answer yes or no."
    end
end

echo "git config"
git config --global user.name "Nicola Pisanti"

M 04_private.sh => 04_private.sh +1 -1
@@ 1,4 1,4 @@
#!/bin/bash
#!/bin/sh

# private repos
mkdir -p ~/bureau

M 05_fetch_samples.sh => 05_fetch_samples.sh +1 -1
@@ 1,4 1,4 @@
#!/bin/bash
#!/bin/sh

cd ~


M 06_extra_laptop.sh => 06_extra_laptop.sh +1 -1
@@ 1,4 1,4 @@
#!/bin/bash
#!/bin/sh

echo "installing laptop-mode-tools"


M backup.sh => backup.sh +2 -2
@@ 1,8 1,9 @@
#!/bin/bash
#!/bin/sh

rm -rf ~/grimorio/confs/*
cp -ar ~/.config/terminator ~/grimorio/confs/
cp -ar ~/.config/openbox/ ~/grimorio/confs/
cp -ar ~/.config/fish/ ~/grimorio/confs
cp ~/.config/tint2/tint2rc ~/grimorio/confs/tint2rc
cp ~/.Xresources confs/Xresources
cp ~/.conkyrc ~/grimorio/confs/conkyrc


@@ 21,7 22,6 @@ sed -i -r 's/(recent_projects=).*/\1/' ~/grimorio/confs/geany/geany.conf
sed -i -r 's/(current_page=).*/\1/' ~/grimorio/confs/geany/geany.conf 
sed -i '/current_page/q' ~/grimorio/confs/geany/geany.conf


cp ~/.config/redshift.conf ~/grimorio/confs/redshift.conf
cp ~/.config/bl-exit/bl-exitrc ~/grimorio/confs/
cp ~/.gtkrc-2.0 ~/grimorio/confs/gtkrc-2.0

A confs/fish/fish_variables => confs/fish/fish_variables +33 -0
@@ 0,0 1,33 @@
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR __fish_init_2_39_8:\x1d
SETUVAR __fish_init_2_3_0:\x1d
SETUVAR __fish_init_3_x:\x1d
SETUVAR fish_color_autosuggestion:202020
SETUVAR fish_color_cancel:normal
SETUVAR fish_color_command:ffffff
SETUVAR fish_color_comment:949494
SETUVAR fish_color_cwd:008000
SETUVAR fish_color_cwd_root:800000
SETUVAR fish_color_end:ff5f00
SETUVAR fish_color_error:ffffff
SETUVAR fish_color_escape:00a6b2
SETUVAR fish_color_history_current:normal
SETUVAR fish_color_host:normal
SETUVAR fish_color_match:normal
SETUVAR fish_color_normal:ffffff
SETUVAR fish_color_operator:00a6b2
SETUVAR fish_color_param:d0d0d0
SETUVAR fish_color_quote:a8a8a8
SETUVAR fish_color_redirection:a8a8a8
SETUVAR fish_color_search_match:ffff00
SETUVAR fish_color_selection:c0c0c0
SETUVAR fish_color_status:red
SETUVAR fish_color_user:00ff00
SETUVAR fish_color_valid_path:ffffff
SETUVAR fish_greeting:\x1d
SETUVAR fish_key_bindings:fish_default_key_bindings
SETUVAR fish_pager_color_completion:normal
SETUVAR fish_pager_color_description:B3A06D\x1eyellow
SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan

A confs/fish/functions/fish_prompt.fish => confs/fish/functions/fish_prompt.fish +21 -0
@@ 0,0 1,21 @@
function fish_prompt --description 'Write out the prompt'
	set -l last_status $status

    printf "%s|:::|%s " (set_color red --bold)  (set_color normal)

    set -l color_cwd
    set -l suffix
    switch "$USER"
        case root toor
            if set -q fish_color_cwd_root
                set color_cwd $fish_color_cwd_root
            else
                set color_cwd $fish_color_cwd
            end
            set suffix '#'
        case '*'
            set suffix '>'
    end

    echo -n -s (set_color $color_cwd) (prompt_pwd)  "$suffix "
end

M confs/geany/geany.conf => confs/geany/geany.conf +4 -4
@@ 120,7 120,7 @@ scribble_text=\n\n
scribble_pos=1
treeview_position=0
msgwindow_position=782
geometry=31;65;843;863;0;
geometry=0;0;1056;1050;0;
custom_date_format=
symbols_sort_mode=0
scroll_lines_around_cursor=2


@@ 151,8 151,8 @@ pref_search_always_wrap=false
pref_search_current_file_dir=true
find_all_expanded=false
replace_all_expanded=true
position_find_x=1099
position_find_y=290
position_find_x=348
position_find_y=356
position_replace_x=1064
position_replace_y=640
position_fif_x=-1


@@ 176,7 176,7 @@ replace_regexp=false
replace_case_sensitive=true
replace_escape_sequences=false
replace_match_whole_word=false
replace_match_word_start=false
replace_match_word_start=true
replace_search_backwards=false
replace_close_dialog=false
find_regexp_multiline=false

M confs/openbox/autostart => confs/openbox/autostart +2 -3
@@ 20,10 20,9 @@ xcalib -d :0 /usr/share/color/icc/UX303LA_8086_AE0D1361.icm

# --- starts up desktop 

nitrogen --restore &

xfce4-power-manager &
compton & 
xfce4-power-manager &
(sleep 1s; nitrogen --restore) & 
(sleep 1s; tint2) & 
(sleep 1s; conky ) &