completed thinkpad configuration

This commit is contained in:
Enrico Fasoli 2015-10-09 13:02:30 +02:00
parent 2e3e08eece
commit 10ab3aceeb
5 changed files with 71 additions and 13 deletions

View File

@ -5,18 +5,18 @@ setxkbmap it
# Dont show ugly X shaped cursor # Dont show ugly X shaped cursor
xsetroot -cursor_name left_ptr xsetroot -cursor_name left_ptr
udiskie & udiskie &
amixer set Master 0
# Start lemonbar # Start lemonbar
sh ~/.config/bspwm/lemonbar.sh & sh ~/.config/bspwm/lemonbar.sh &
# Set up desktops on monitors # Set up desktops on monitors
bspc monitor DVI-I-0 -d 1 2 3 4 5 bspc monitor -d 1 2 3 4 5 6
bspc monitor HDMI-0 -d 6 7 8 9
# Set up bspwm theme # Set up bspwm theme
bspc config border_width 2 bspc config border_width 2
bspc window_gap 24 bspc window_gap 24
bspc config -m DVI-I-0 top_padding 20 bspc config top_padding 20
bspc config focused_border_color '#858585' bspc config focused_border_color '#858585'
bspc config normal_border_color '#2e343D' bspc config normal_border_color '#2e343D'
bspc config split_ratio 0.52 bspc config split_ratio 0.52

View File

@ -9,6 +9,8 @@
# System # System
boot = { boot = {
kernelPackages = pkgs.linuxPackages_4_1;
initrd.luks.devices = [ { device = "/dev/sda3"; name = "crypted"; allowDiscards = true; } ];
loader = { loader = {
grub.enable = false; grub.enable = false;
gummiboot.enable = true; gummiboot.enable = true;
@ -25,6 +27,9 @@
"vm.dirty_writeback_centisecs" = 6000; # Aggregate disk IO "vm.dirty_writeback_centisecs" = 6000; # Aggregate disk IO
}; };
}; };
extraModprobeConfig = ''
options snd_hda_intel index=1,0
'';
}; };
# SSD # SSD
@ -33,8 +38,12 @@
time.timeZone = "Europe/Rome"; time.timeZone = "Europe/Rome";
hardware.opengl.driSupport32Bit = true;
virtualisation.virtualbox.host.enable = true; virtualisation.virtualbox.host.enable = true;
powerManagement.enable = true;
# Networking # Networking
networking.hostName = "warren"; networking.hostName = "warren";
@ -59,9 +68,9 @@
visualizerSupport = true; visualizerSupport = true;
clockSupport = true; clockSupport = true;
}; };
chromium = pkgs.chromium.override { #chromium = pkgs.chromium.override {
enablePepperFlash = true; # enablePepperFlash = true;
}; #};
}; };
}; };
@ -84,7 +93,7 @@
# Media # Media
beets mpd mpc_cli ncmpcpp popcorntime mpv beets mpd mpc_cli ncmpcpp popcorntime mpv
# Drivers, file systems and other compatibility-aimed packages # Drivers, file systems and other compatibility-aimed packages
ntfs3g exfat utillinuxCurses gptfdisk encfs xlibs.xbacklight ntfs3g utillinuxCurses gptfdisk encfs xlibs.xbacklight
acpi powertop acpi powertop
]; ];
@ -110,6 +119,12 @@
# Desktop Environment # Desktop Environment
xserver = { xserver = {
enable = true; enable = true;
#deviceSection = ''
# Identifier "Intel Graphics"
# Driver "intel"
# Option "AccelMethod" "sna"
# Option "TearFree" "true"
#'';
layout = "it"; layout = "it";
windowManager.bspwm.enable = true; windowManager.bspwm.enable = true;
desktopManager.xterm.enable = false; desktopManager.xterm.enable = false;
@ -122,6 +137,18 @@
displayManager.desktopManagerHandlesLidAndPower = false; displayManager.desktopManagerHandlesLidAndPower = false;
synaptics = { synaptics = {
enable = true; enable = true;
buttonsMap = [1 3 2];
tapButtons = false;
maxSpeed = "2.5";
accelFactor = "0.03";
palmDetect = true;
twoFingerScroll = true;
#additionalOptions = ''
# Option "LockedDrags" = "true"
# Option "AccelerationProfile" "-111"
# Option "VertScrollDelta" = "-111"
# Option "HorizScrollDelta" = "-111"
#'';
}; };
}; };
@ -164,6 +191,20 @@
user = "fazo"; user = "fazo";
dataDir = "/home/fazo/.config/syncthing"; dataDir = "/home/fazo/.config/syncthing";
}; };
logind.extraConfig = ''
HandlePowerKey=ignore
'';
upower.enable = true;
tlp = {
enable = true;
extraConfig = ''
CPU_SCALING_GOVERNOR_ON_AC=performance
CPU_SCALING_GOVERNOR_ON_BAT=powersave
'';
};
}; };
# Custom Services # Custom Services

View File

@ -9,7 +9,7 @@ fi
mkdir -p $ZDOTDIR mkdir -p $ZDOTDIR
git clone --recursive https://maxwell.ydns.eu:44333/fazo96/prezto.git "${ZDOTDIR:-$HOME}/.zprezto" git -c http.sslVerify=false clone --recursive https://maxwell.ydns.eu:44333/fazo96/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
setopt EXTENDED_GLOB setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do

View File

@ -9,7 +9,7 @@ GREEN2="#6d6137"
BROWN="#776049" BROWN="#776049"
buildClock() { buildClock() {
echo -n "%{F$WHITE2}$(date "+%A, %e %B, %k:%M:%S")" echo -n "%{F$WHITE2}$(date "+%A, %e %B, %k:%M")"
} }
getVolume() { getVolume() {
@ -84,13 +84,17 @@ getMEM(){
echo -n "%{F$BLUE}$USEDMEM MB" echo -n "%{F$BLUE}$USEDMEM MB"
} }
getBAT(){
BAT=$(acpi -b | head -n1 | cut -d ' ' -f4 | cut -d '%' -f1)
echo -n "%{F$GREY}$BAT $(echo $BAT 0 100 | spark | cut -b 1-3)"
}
buildBar () { buildBar () {
while true while true
do do
echo " $(getMPD) %{c}$(buildClock) %{r} $(getLOAD) $(separator) $(getMEM) $(separator) $(getDISK) $(separator) $(getNET) $(separator) $(getVolume) " echo " $(getMPD) %{c}$(buildClock) %{r} $(getLOAD) $(separator) $(getMEM) $(separator) $(getDISK) $(separator) $(getNET) $(separator) $(getVolume) $(separator) $(getBAT) "
sleep 5 sleep 5
done done
} }
buildBar | lemonbar -p -g "1920x20" -B "$BLACK" -F "$GREY" -f -gohu-gohufont-medium-r-normal--14-100-100-100-c-80-iso10646-1 buildBar | lemonbar -p -g "1920x20" -B "$BLACK" -F "$GREY" -f -gohu-gohufont-medium-r-normal--14-100-100-100-c-80-iso10646-1

15
sxhkdrc
View File

@ -89,6 +89,18 @@ super + space
# pkill -USR1 -x sxhkd # pkill -USR1 -x sxhkd
# media # media
XF86MonBrightnessUp
xbacklight -inc 10
XF86MonBrightnessDown
xbacklight -dec 10
XF86KbdBrightnessUp
kbdlight up 10
XF86KbdBrightnessDown
kbdlight down 10
XF86AudioNext
mpc next
XF86AudioPrev
mpc prev
XF86AudioRaiseVolume XF86AudioRaiseVolume
amixer set Master 3+ unmute amixer set Master 3+ unmute
XF86AudioLowerVolume XF86AudioLowerVolume
@ -107,7 +119,8 @@ XF86Mail
# lock # lock
XF86Sleep XF86Sleep
i3lock -u -c 1d1f21 -i ~/Pictures/background.png XF86LaunchB
i3lock -u -c 1d1f21 -i ~/Pictures/background.*
# screenshots # screenshots
Print Print