1 Commits

Author SHA1 Message Date
id101010
1fed155d4a Configs for my home desktop computer 2017-01-28 14:21:02 +01:00
16 changed files with 136 additions and 177 deletions

View File

@@ -1,20 +1,9 @@
#######################################
# _____ ____ #
# |_ _||___ \ #
# | | __) |__ __ _ __ ___ #
# | | |__ < \ \ /\ / /| '_ ` _ \ #
# _| |_ ___) | \ V V / | | | | | | #
# |_____||____/ \_/\_/ |_| |_| |_| #
# #
#######################################
############################################# #############################################
# General configurations # # General configurations #
############################################# #############################################
# font # font
set $font "pango:Droid Sans Mono 10" set $font "pango:RobotoMono 12"
#set $font "pagno:Droid Sans Mono for Powerline 10"
font $font font $font
# floating modifier # floating modifier
@@ -23,15 +12,16 @@ font $font
set $mod mod4 set $mod mod4
floating_modifier $mod floating_modifier $mod
# remove window decorations #gaps
new_window pixel gaps inner 13
gaps outer 5
###border
new_window pixel 3
# focus follows mouse # focus follows mouse
focus_follows_mouse yes focus_follows_mouse yes
##border
new_window pixel 3
############################################# #############################################
# Script Section # # Script Section #
@@ -41,44 +31,35 @@ new_window pixel 3
# "xev" and "showkeys" can be usefull to determine the keycodes. # "xev" and "showkeys" can be usefull to determine the keycodes.
# #
# sound softkeys management # Sound softkeys management
#bindsym XF86AudioRaiseVolume exec ~/.i3/util/volnotid.sh up bindsym Print exec ~/.i3/util/volnotid.sh down
#bindsym XF86AudioLowerVolume exec ~/.i3/util/volnotid.sh down bindsym Scroll_Lock exec ~/.i3/util/volnotid.sh up
#bindsym XF86AudioMute exec ~/.i3/util/volnotid.sh mute bindsym Pause exec ~/.i3/util/volnotid.sh mute
bindsym XF86AudioRaiseVolume exec amixer -q sset Master 10%- unmute && killall -SIGUSR1 i3status
bindsym XF86AudioLowerVolume exec amixer -q sset Master 10%+ unmute && killall -SIGUSR1 i3status
bindsym XF86AudioMute exec amixer -q sset Master toggle && killall -SIGUSR1 i3status
# display brightness management # Display brightness management
bindsym XF86MonBrightnessUp exec "xbacklight +10" bindsym XF86MonBrightnessUp exec "xbacklight +10"
bindsym XF86MonBrightnessDown exec "xbacklight -10" bindsym XF86MonBrightnessDown exec "xbacklight -10"
# webcam # Lenovo Key wifi-menu
bindym XF86WebCam exec /bin/cheese
# lenovo Key wifi-menu
bindsym XF86Launch1 exec urxvt -e sh -c "sudo wifi-menu wlp3s0" bindsym XF86Launch1 exec urxvt -e sh -c "sudo wifi-menu wlp3s0"
# jauth two factor authenticator # jauth two factor authenticator
bindsym $mod+F1 exec /opt/JAuth/authenticator.sh google bindsym $mod+F1 exec ~/.i3/util/authenticator.sh google
bindsym $mod+F2 exec /opt/JAuth/authenticator.sh facebook bindsym $mod+F2 exec ~/.i3/util/authenticator.sh facebook
bindsym $mod+F3 exec /opt/JAuth/authenticator.sh dropbox bindsym $mod+F3 exec ~/.i3/util/authenticator.sh dropbox
# start dmenu-launcher # start dmenu-launcher
bindsym $mod+d exec ~/.i3/util/i3dmenu-wrapper.sh bindsym $mod+d exec ~/.i3/util/i3dmenu-wrapper.sh
# lock i3 with i3lock # lock i3 with i3lock
#bindsym $mod+Shift+x exec i3lock -c 000000 bindsym $mod+Shift+x exec ~/.i3/util/i3blur.py && systemctl suspend
bindsym $mod+Shift+x exec ~/.i3/util/i3blur.py
############################################# #############################################
# Keymaps # # Keymaps #
############################################# #############################################
# start terminal # start terminal
#bindsym $mod+Return exec --no-startup-id gnome-terminal bindsym $mod+Return exec --no-startup-id i3-sensible-terminal
#bindsym $mod+Return exec --no-startup-id urxvt
bindsym $mod+Return exec --no-startup-id urxvtc
# kill focused window # kill focused window
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
@@ -191,8 +172,8 @@ mode "resize" {
} }
############################################# #############################################
# Colors # ## Colors #
############################################# ##############################################
# Darkbrown colorscheme # Darkbrown colorscheme
set $DARKBROWN #402e2e set $DARKBROWN #402e2e
@@ -201,8 +182,7 @@ set $DARKGREY #1f1f1f
set $DARKRED #9b0e0e set $DARKRED #9b0e0e
# Solarized colorscheme # Solarized colorscheme
#set $BACKGROUND #002b36 set $BACKGROUND #20444d
set $BACKGROUND #1c5b98
set $FOREGROUND #93a1a1 set $FOREGROUND #93a1a1
set $LIGHTGREY #dc322f set $LIGHTGREY #dc322f
set $GREEN #b0cc54 set $GREEN #b0cc54
@@ -223,11 +203,13 @@ client.background #ffffff
# Solarized colorscheme # Solarized colorscheme
# name #border #background #text #indicator #child_border # name #border #background #text #indicator #child_border
client.focused $FOREGROUND $MAGENTA $GREEN $GREEN $MAGENTA client.focused $MAGENTA $BACKGROUND $GREEN $GREEN $MAGENTA
client.unfocused $BACKGROUND $BACKGROUND $GREEN $GREEN $BACKGROUND client.unfocused $BACKGROUND $BACKGROUND $GREEN $GREEN $BACKGROUND
client.focused_inactive $BACKGROUND $BACKGROUND $GREEN $GREEN $BACKGROUND client.focused_inactive $BACKGROUND $BACKGROUND $GREEN $GREEN $BACKGROUND
client.urgent $BACKGROUND $BACKGROUND $BACKGROUND $GREEN $BACKGROUND client.urgent $BACKGROUND $BACKGROUND $BACKGROUND $GREEN $BACKGROUND
############################################# #############################################
# i3-bar # # i3-bar #
############################################# #############################################
@@ -237,22 +219,9 @@ bar {
font $font font $font
i3bar_command /usr/bin/i3bar i3bar_command /usr/bin/i3bar
status_command i3status -c ~/.i3/i3status.conf status_command i3status -c ~/.i3/i3status.conf
separator_symbol "" separator_symbol "  "
# Darkbrown colorscheme # Solarized colorscheme
# colors {
# statusline $LIGHTBROWN
# background $DARKGREY
# separator $DARKRED
#
# # name #border #bg #text
# focused_workspace $LIGHTBROWN $DARKBROWN $LIGHTBROWN
# active_workspace $DARKBROWN $DARKBROWN $LIGHTBROWN
# inactive_workspace $DARKBROWN $DARKBROWN $LIGHTBROWN
# urgent_workspace $DARKBROWN $DARKBROWN $LIGHTBROWN
# }
# Solarized colorscheme
colors { colors {
statusline $GREEN statusline $GREEN
background $BACKGROUND background $BACKGROUND
@@ -275,51 +244,51 @@ for_window [class="Thunar"] floating enable
for_window [class="Nautilus"] floating enable for_window [class="Nautilus"] floating enable
for_window [class="GParted"] floating enable for_window [class="GParted"] floating enable
for_window [class="Gedit"] floating enable for_window [class="Gedit"] floating enable
#for_window [class="Evince"] floating enable for_window [class="Evince"] floating enable
for_window [class="Telegram"] floating enable for_window [class="Telegram"] floating enable
for_window [class="teamspeak3"] floating enable for_window [class="teamspeak3"] floating enable
for_window [class="rhythmbox"] floating enable for_window [class="rhythmbox"] floating enable
for_window [class="LibreOffice"] floating enable for_window [class="LibreOffice"] floating enable
for_window [class="JAuth"] floating enable for_window [class="JAuth"] floating enable
for_window [class="plecs"] floating enable
# 0px Border # 0px Border
#for_window [class="chrome"] border none for_window [class="chrome"] border none
for_window [class="Firefox"] border none for_window [class="Firefox"] border none
# 1px Border # 1px Border
#for_window [class="URxvt" ] border 1pixel for_window [class="URxvt" ] border 1pixel
############################################# #############################################
# auto start with i3 # # auto start with i3 #
############################################# #############################################
# terminal daemon
exec --no-startup-id urxvtd --quiet --opendisplay --fork
# pidgin chat cliente
exec --no-startup-id pidgin
# less eye pain # less eye pain
exec --no-startup-id redshift-gtk exec --no-startup-id redshift-gtk
exec --no-startup-id compton -cCGbD 10 exec --no-startup-id compton --config ~/.compton.conf
# no beep! # fucking no beep!
exec --no-startup-id xset b off exec --no-startup-id xset b off
# set dpi for my monitor # set dpi for my monitor
#exec --no-startup-id xrandr --dpi 81 exec --no-startup-id xrandr --dpi 81
# set mouse accel # set mouse accel
#exec --no-startup-id xset m 1/4 1 exec --no-startup-id xset m 1/4 1
exec --no-startup-id xset m 1 1
# volnoti volume changer
exec --no-startup-id volnoti
# numlock on by default # numlock on by default
#exec --no-startup-id numlockx on exec --no-startup-id numlockx on
# nm-applet (yehhh vpn ...)
exec --no-startup-id nm-applet
# wallpapers # wallpapers
#exec --no-startup-id ~/.i3/util/wallpapers.sh exec --no-startup-id nitrogen --restore
exec --no-startup-id feh --bg-scale ~/.wallpapers/puzzle1.png
# archlinux update notifier
exec --no-startup-id aarchup
# dropbox daemon
exec dropbox start
# telegram
exec /bin/telegram-desktop

View File

@@ -1,18 +1,9 @@
########################################
# _ ____ _ _ #
# (_)___ \ | | | | #
# _ __) |___| |_ __ _| |_ _ _ ___ #
# | ||__ </ __| __/ _` | __| | | / __| #
# | |___) \__ \ || (_| | |_| |_| \__ \ #
# |_|____/|___/\__\__,_|\__|\__,_|___/ #
# #
########################################
#
# i3status configuration file. # i3status configuration file.
# see "man i3status" for documentation. # see "man i3status" for documentation.
#
# It is important that this file is edited as UTF-8. # It is important that this file is edited as UTF-8.
# The following line should contain a sharp s: ß # The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first! # If the above line is not correctly displayed, fix your editor first!
general { general {
@@ -20,36 +11,28 @@ general {
interval = 1 interval = 1
} }
order += "ipv6" #order += "ipv6"
order += "battery 0"
order += "disk /home" order += "disk /home"
order += "disk /" order += "disk /"
order += "wireless wlp1s0" order += "disk /media/Data1"
order += "ethernet enp0s31f6" order += "disk /media/Data2"
order += "run_watch VPN"
order += "ethernet eth0"
order += "cpu_temperature 0" order += "cpu_temperature 0"
order += "volume master" order += "volume master"
order += "tztime local" order += "tztime local"
wireless wlp1s0 { ethernet eth0 {
format_up = "📡 (%quality @ %essid, %bitrate) %ip"
format_down = "📡 down"
}
ethernet enp0s31f6 {
format_up = "🔌 %ip (%speed)" format_up = "🔌 %ip (%speed)"
format_down = "🔌 down" format_down = "🔌 down"
} }
battery 0 { run_watch DHCP {
format = "%status %percentage (%remaining @ %consumption)" pidfile = "/var/run/dhclient*.pid"
format_down = "No battery" }
last_full_capacity = false # true: relative capaciy, false: true capacity left
status_chr = "⚇ CHR" run_watch VPN {
status_bat = "⚡ BAT" pidfile = "/var/run/vpn/pid"
status_full = "☻ FULL"
path = "/sys/class/power_supply/BAT%d/uevent"
threshold_type = time
low_threshold = 10
} }
tztime local { tztime local {
@@ -58,23 +41,29 @@ tztime local {
cpu_temperature 0 { cpu_temperature 0 {
format = "🌡 %degrees °C" format = "🌡 %degrees °C"
max_threshold = 70 max_threshold = 65
path = "/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input" path = "/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input"
}
disk "/home" {
format = "/home %free"
prefix_type = "binary"
} }
disk "/" { disk "/" {
format = "root %free" format = "root: %free"
prefix_type = "binary" }
disk "/home" {
format = "home: %free"
}
disk "/media/Data1" {
format = "data1: %free"
}
disk "/media/Data2" {
format = "data2: %free"
} }
volume master { volume master {
format = "♪ %volume" format = "♪ %volume"
format_muted = "♪ muted"
device = "default" device = "default"
mixer = "Master" mixer = "Master"
mixer_idx = 0
} }

View File

@@ -18,9 +18,9 @@
# yaourt -S jauth-git # yaourt -S jauth-git
# #
SECRET_GOOGLE="asdf" SECRET_GOOGLE="There"
SECRET_FACEBOOK="asdf" SECRET_FACEBOOK="IsJust"
SECRET_DROPBOX="asdf" SECRET_DROPBOX="NoWayImUploadingThisToGit"
ARG="${1}" ARG="${1}"

View File

@@ -27,10 +27,21 @@ sz = w.get_size()
print "[DEBUG]: The size of the window is %d x %d" % sz print "[DEBUG]: The size of the window is %d x %d" % sz
# Get a drawable with the size of the desktop # Get a drawable with the size of the desktop
scr = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8, sz[0], sz[1]) scr = gtk.gdk.Pixbuf( gtk.gdk.COLORSPACE_RGB,
False,
8,
sz[0],
sz[1])
# Fill it with the screenshot # Fill it with the screenshot
scr = scr.get_from_drawable(w, w.get_colormap(), 0, 0, 0, 0, sz[0], sz[1]) scr = scr.get_from_drawable(w,
w.get_colormap(),
0,
0,
0,
0,
sz[0],
sz[1])
# Save the screenshot as png # Save the screenshot as png
if(scr != None): if(scr != None):
@@ -41,7 +52,7 @@ else:
# Load the screenshot as image and blur it # Load the screenshot as image and blur it
iml = Image.open("/tmp/i3screen.png") iml = Image.open("/tmp/i3screen.png")
iml = iml.filter(ImageFilter.GaussianBlur(8)) iml = iml.filter(ImageFilter.BLUR)
# Save the blured screenshot and call i3lock # Save the blured screenshot and call i3lock
if(iml != None): if(iml != None):

View File

@@ -17,6 +17,7 @@
# yaourt -S volnoti # yaourt -S volnoti
# #
VOLUME=$(amixer get Master | grep Mono: | sed 's|[^[]*\[\([0-9]*\).*|\1|') VOLUME=$(amixer get Master | grep Mono: | sed 's|[^[]*\[\([0-9]*\).*|\1|')
VALUE=3dB VALUE=3dB
MUTE=0 MUTE=0

View File

@@ -36,9 +36,7 @@ BAKFILES=".i3
.zshrc .zshrc
.tmux.conf .tmux.conf
.vimrc .vimrc
.Xdefaults .Xdefaults"
.ncmpcpp/config
.mpd/mpd.conf"
BAKFOLD="$HOME/.dotfilebackup" BAKFOLD="$HOME/.dotfilebackup"
@@ -61,9 +59,8 @@ if [ "$1" == "clean" ]; then
fi fi
# Clone the repository if it doesn't exist # Clone the repository if it doesn't exist
if [ ! -e $DOTFILES ]; then if [ ! -e "$HOME/.dotfiles/" ]; then
git clone https://github.com/id101010/LinuxDotFiles.git $DOTFILES git clone https://github.com/id101010/LinuxDotFiles.git $DOTFILES
rm -rf $DOTFILES/.git
fi fi
# ------------------------------------------------ Setup I3wm # ------------------------------------------------ Setup I3wm
@@ -83,9 +80,3 @@ ln -sfv $DOTFILES/urxvt/Xdefaults $HOME/.Xdefaults
# ------------------------------------------------ Setup wallpapers # ------------------------------------------------ Setup wallpapers
ln -sfv $DOTFILES/wallpapers/ $HOME/.wallpapers ln -sfv $DOTFILES/wallpapers/ $HOME/.wallpapers
# ------------------------------------------------ Setup mpd
ln -sfv $DOTFILES/mpd/ $HOME/.mpd
# ------------------------------------------------ Setup ncmpcpp
ln -sfv $DOTFILES/ncmpcpp/ $HOME/.ncmpcpp

View File

@@ -8,9 +8,15 @@
# # # #
################################ ################################
Xcursor.theme: adwaita
Xcursor.size: 16
# Real transparency -> needs composite manager # Real transparency -> needs composite manager
URxvt.depth: 32 URxvt.depth: 32
URxvt.background: rgba:0000/0000/0200/1fff URxvt.background: rgba:0000/0000/0200/afff
# Fake transparency
#URxvt.transparent: true
#URxvt.shading: 30 #URxvt.shading: 30
URxvt.tintColor: White URxvt.tintColor: White
@@ -18,9 +24,12 @@ URxvt.saveLines: 9000000
URxvt.foreground: Grey URxvt.foreground: Grey
# Fonts For Powerlinefonts: https://github.com/powerline/fonts (Arch linux -> AUR) # Fonts For Powerlinefonts: https://github.com/powerline/fonts (Arch linux -> AUR)
URxvt.font: xft:Ubuntu mono:medium:size=12,xft:Ubuntu Mono derivative Powerline:pixelsize=12 #URxvt.font: xft:Droid Sans Mono:pixelsize=18:antialias=true:hinting=true
xterm.faceName: xft:Ubuntu mono:medium:size=12,xft:Ubuntu Mono derivative Powerline:pixelsize=12 #URxvt.boldFont: xft:Droid Sans Mono:bold:pixelsize=18:antialias=true:hinting=true
#URxvt.font: xft:DejaVu Sans Mono:medium:size=12,xft:DejaVu Sans Mono for Powerline:pixelsize=12 #URxvt.tabbed.font: xft:Droid Sans Mono:pixelsize=18:antialias=true:hinting=true
URxvt.font: xft:Roboto Mono for Powerline:pixelsize=15:antialias=true:hinting=false
URxvt.boldFont: xft:RobotoMono for Powerline :bold:pixelsize=14:antialias=true:hinting=true
URxvt.tabbed.font: xft:RobotoMono for Powerline :pixelsize=14:antialias=true:hinting=true
# Misc configurations # Misc configurations
URxvt.colorUL: #4682B4 URxvt.colorUL: #4682B4

View File

@@ -34,29 +34,21 @@ endif
" Start Vundle stuff " " Start Vundle stuff "
call vundle#begin() call vundle#begin()
Plugin 'VundleVim/Vundle.vim' Plugin 'VundleVim/Vundle.vim'
" A pretty statusline, bufferline integration " " A pretty statusline, bufferline integration "
Plugin 'itchyny/lightline.vim' Plugin 'itchyny/lightline.vim'
Plugin 'bling/vim-bufferline' Plugin 'bling/vim-bufferline'
" <Tab> everything! " " <Tab> everything! "
"Plugin 'ervandew/supertab' Plugin 'ervandew/supertab'
" Glorious colorscheme " " Glorious colorscheme "
Plugin 'nanotech/jellybeans.vim' Plugin 'nanotech/jellybeans.vim'
" Super easy commenting, toggle comments etc " " Super easy commenting, toggle comments etc "
Plugin 'scrooloose/nerdcommenter' Plugin 'scrooloose/nerdcommenter'
" Autoclose (, " etc " " Autoclose (, " etc "
"Plugin 'Townk/vim-autoclose' Plugin 'Townk/vim-autoclose'
" Git wrapper inside Vim " " Git wrapper inside Vim "
Plugin 'tpope/vim-fugitive' Plugin 'tpope/vim-fugitive'
" Handle surround chars like "
"Handle surround chars like " Plugin 'tpope/vim-surround'
"Plugin 'tpope/vim-surround'
" Vim signs (:h signs) for modified lines based off VCS (e.g. Git) " " Vim signs (:h signs) for modified lines based off VCS (e.g. Git) "
Plugin 'mhinz/vim-signify' Plugin 'mhinz/vim-signify'
" Finish Vundle stuff " " Finish Vundle stuff "
@@ -73,15 +65,16 @@ filetype plugin indent on
""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""
" Lightline (statusline) configuration " " Lightline (statusline) configuration "
""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""
"let g:lightline = {
" \ 'colorscheme': 'default', let g:lightline = {
" \ 'component': { \ 'colorscheme': 'default',
" \ 'readonly': '%{&readonly?"":""}', \ 'component': {
" \ }, \ 'readonly': '%{&readonly?"":""}',
" \ 'separator': { 'left': '', 'right': '' }, \ },
" \ 'subseparator': { 'left': '', 'right': '' } \ 'separator': { 'left': '', 'right': '' },
" \ } \ 'subseparator': { 'left': '', 'right': '' }
" \ }
""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""
" Misc configurations " " Misc configurations "
""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 KiB

BIN
wallpapers/solarized5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
wallpapers/solarized6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
wallpapers/solarized7.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@@ -22,8 +22,6 @@ setopt hist_ignore_space
# Promptstyle # Promptstyle
prompt walters prompt walters
#PROMPT='%F{red}%n%f@%F{blue}%m%f %F{yellow}%1~%f %# '
#RPROMPT='[%F{yellow}%?%f]'
# Autocomplete stuff # Autocomplete stuff
zstyle ':completion:*' menu select zstyle ':completion:*' menu select
@@ -88,7 +86,7 @@ if [[ -f $DIRSTACKFILE ]] && [[ $#dirstack -eq 0 ]]; then
fi fi
chpwd() { chpwd() {
print -l $PWD ${(u)dirstack} > $DIRSTACKFILE print -l $PWD ${(u)dirstack} >$DIRSTACKFILE
} }
DIRSTACKSIZE=20 DIRSTACKSIZE=20
@@ -120,8 +118,6 @@ setopt autopushd pushdsilent pushdtohome
setopt pushdignoredups setopt pushdignoredups
setopt pushdminus setopt pushdminus
setopt nohashdirs setopt nohashdirs
#source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
rehash rehash
source ~/Coding/0_C/Microcontroller/zephyr-project/zephyr-env.sh
source <(oc completion zsh)
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting