screenshot, terminal arrows, symlinks, wallpaper and block update

This commit is contained in:
Rick van Lieshout 2018-04-08 16:31:05 +02:00
parent f30abd74aa
commit fdd249babe
10 changed files with 79 additions and 34 deletions

View File

@ -1,3 +1,24 @@
# dotfiles # dotfiles
my dotfiles This repository holds my Linux config files.
## Mandatory unixporn screenshot
[![dotfiles](dotfiles.png)](https://raw.githubusercontent.com/Mastermindzh/dotfiles/master/dotfiles.png)
## Tools
| Purpose | Tool |
|-------------|--------------------------------------|
| WM | i3 (i3-gaps) |
| App launcher| rofi |
| Shell | Bash |
| OS | Arch Linux (or Antergos if I'm lazy) |
| Terminal | xfce4-terminal |
| Editor | nano |
| Code editor | vscode / jetbrains stuff |
| Browser | Chromium |
| File manager| If I have to use one ... Nautilus |
| Music | Google Play Music Desktop Player |
| | |

View File

@ -2,16 +2,20 @@
# ~/.bashrc # ~/.bashrc
# #
function _update_ps1() {
PS1=$(powerline-shell $?)
}
source ~/.alias source ~/.alias
# If not running interactively, don't do anything # If not running interactively, don't do anything
[[ $- != *i* ]] && return [[ $- != *i* ]] && return
alias ls='ls --color=auto'
eval $(thefuck --alias) eval $(thefuck --alias)
#... :P fancy stuffs #... :P fancy stuffs
screenfetch -t -A "UBUNTU" screenfetch -t -A "UBUNTU"
PS1='[\u@\h \W]\$ ' PS1='[\u@\h \W]\$ '
if [[ $TERM != linux && ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi

View File

@ -1,4 +1,7 @@
notify-osd-customizable notify-osd-customizable
notifyconf notifyconf
enpass-bin enpass-bin
insync insync
visual-studio-code-insiders
gpmdp
ttf-font-awesome-4

View File

@ -23,3 +23,6 @@ eog
yaourt yaourt
thefuck thefuck
screenfetch screenfetch
python
python-pip
gdm

1
dependencies/pip.txt vendored Normal file
View File

@ -0,0 +1 @@
powerline-shell

BIN
dotfiles.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

BIN
fonts/font-awesome.ttf Normal file

Binary file not shown.

View File

@ -35,15 +35,6 @@ separator_block_width=13
interval=1 interval=1
color=#e29e0b color=#e29e0b
# CPU usage
#
# The script may be called with -w and -c switches to specify thresholds,
# see the script for details.
[cpu_usage]
label=
interval=10
separator=true
# Temperature # Temperature
# #
# Support multiple chips, though lm-sensors. # Support multiple chips, though lm-sensors.
@ -54,6 +45,11 @@ command=bash ~/.config/i3/scripts/blocks/temp.sh
label= label=
interval=1 interval=1
[load_average]
label=
interval=10
separator=true
# Memory usage # Memory usage
# #
# The type defaults to "mem" if the instance is not specified. # The type defaults to "mem" if the instance is not specified.
@ -72,31 +68,38 @@ instance=/
interval=5 interval=5
separator=true separator=true
# Updates
[updates]
label=
command=pacman -Qu | wc -l
interval=60
separator=true
# Network interface monitoring # Network interface monitoring
# #
# If the instance is not specified, use the interface used for default route. # If the instance is not specified, use the interface used for default route.
# The address can be forced to IPv4 or IPv6 with -4 or -6 switches. # The address can be forced to IPv4 or IPv6 with -4 or -6 switches.
[iface] [iface]
#instance=wlan0 #instance=wlan0
label=
color=#0fad3c color=#0fad3c
interval=10 interval=10
separator=true separator=true
[wifi] # ping
#instance=wlp3s0 [ping]
interval=10 label=
command=ping -c 2 8.8.8.8 | tail -1| awk '{print $4}' | cut -d '/' -f 2 | cut -f1 -d"."
interval=60
separator=true separator=true
#[load_average]
#interval=10
# Volume indicator # Volume indicator
# #
# The first parameter sets the step (and units to display) # The first parameter sets the step (and units to display)
# The second parameter overrides the mixer selection # The second parameter overrides the mixer selection
# See the script for details. # See the script for details.
[volume] [volume]
label= label=
instance=Master instance=Master
interval=1 interval=1
command=/usr/lib/i3blocks/volume 5 pulse command=/usr/lib/i3blocks/volume 5 pulse
@ -114,6 +117,7 @@ separator=true
# Date Time # Date Time
[time] [time]
label=
command=date '+%Y-%m-%d %H:%M:%S' command=date '+%Y-%m-%d %H:%M:%S'
interval=1 interval=1
separator=true separator=true

View File

@ -15,39 +15,42 @@ function yes_or_no {
done done
} }
# moves all fonts into the fonts directory (overwriting existing files) # moves all fonts into the fonts directories (overwriting existing files)
function install_fonts { function install_fonts {
mkdir -p ~/.fonts mkdir -p ~/.fonts
yes | cp -rf ./fonts/*.ttf ~/.fonts mkdir -p ~/.local/share/fonts
yes | cp -rf ./fonts/* ~/.fonts
yes | cp -rf ./fonts/* ~/.local/share/fonts
} }
# install basic rice files # Link basic rice files
function install_rice { function install_rice {
mkdir -p ~/.config/i3
mkdir -p ~/Pictures/Wallpapers mkdir -p ~/Pictures/Wallpapers
cp wallpapers/wallpaper.jpeg ~/Pictures/Wallpapers/wallpaper.jpg ln -sf "$PWD"/wallpapers/wallpaper.jpeg ~/Pictures/Wallpapers/wallpaper.jpg
yes | cp -rf i3/* ~/.config/i3 ln -sf "$PWD"/i3/ ~/.config/i3
} }
# install other configs # install other configs
function install_config { function install_config {
rm ~/.notify-osd rm ~/.notify-osd
cp -f notify-osd/notify-osd ~/.notify-osd ln -sf "$PWD"/notify-osd/notify-osd ~/.notify-osd
cp -f ./bash/.alias.sh ~/.alias ln -sf "$PWD"/bash/.bashrc ~/.bashrc
cp -f ./bash/.bashrc ~/ ln -sf "$PWD"/bash/.alias.sh ~/.alias
cp -f ./nano/.nanorc ~/ ln -sf "$PWD"/nano/.nanorc ~/.nanorc
cp -rf ./config ~/.config mkdir -p ~/.config/gtk-3.0
ln -sf "$PWD"/config/gtk-3.0/settings.ini ~/.config/gtk-3.0/.config
} }
# Installs the file templates in the ~/Templates directory. # Symlinks the file templates in the ~/Templates directory.
function install_file_templates { function install_file_templates {
cp -rf ./templates/* ~/Templates ln -sf "$PWD"/templates ~/Templates
} }
# Installs the dependencies on Arch Linux # Installs the dependencies on Arch Linux
function install_dependencies { function install_dependencies {
sudo pacman --force -S $(cat dependencies/pacman.txt | sed ':a;N;$!ba;s/\n/ /g') sudo pacman --force -S $(cat dependencies/pacman.txt | sed ':a;N;$!ba;s/\n/ /g')
yaourt --force -S --noconfirm $(cat dependencies/aur.txt | sed ':a;N;$!ba;s/\n/ /g') yaourt --force -S --noconfirm $(cat dependencies/aur.txt | sed ':a;N;$!ba;s/\n/ /g')
sudo pip install $(cat dependencies/pip.txt | sed ':a;N;$!ba;s/\n/ /g')
} }
# list the dependencies file # list the dependencies file
@ -57,6 +60,7 @@ function list_dependencies {
echo "" echo ""
cat dependencies/pacman.txt cat dependencies/pacman.txt
cat dependencies/aur.txt cat dependencies/aur.txt
cat dependencies/pip.txt
echo "" echo ""
echo "==========================" echo "=========================="
echo "" echo ""
@ -92,3 +96,8 @@ yes_or_no "Do you want to install the file templates? (~/Templates)" && install_
# Ask the user whether it wants to continue # Ask the user whether it wants to continue
yes_or_no "Are you sure you want to install my i3 rice?" && install_rice yes_or_no "Are you sure you want to install my i3 rice?" && install_rice
# ask to enable gdm
yes_or_no "Do you want to enable GDM?" && sudo systemctl enable gdm.service
echo "Enjoy using my ricing! Do not forget to select \"i3\" in GDM :)"

BIN
wallpapers/wallpaper.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 KiB