Compare commits
13 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
bda8e86613 | ||
|
29f69be89b | ||
|
29ab476fbe | ||
|
04e9bd588d | ||
|
3b972f638d | ||
|
fb9dacde66 | ||
|
eb0750e1b5 | ||
|
161cbe19f4 | ||
|
16d43ed542 | ||
|
1d1f878bcc | ||
|
589db2d35d | ||
|
fa92e4a0f8 | ||
|
7135e33d24 |
10
.Xresources
10
.Xresources
@ -49,8 +49,12 @@ URxvt*scrollstyle: rxvt
|
||||
URxvt*internalBorder: 18
|
||||
|
||||
! font
|
||||
*font: -gohu-gohufont-medium-r-normal--14-100-100-100-c-80-iso10646-1
|
||||
URxvt*LetterSpace: -1
|
||||
xft.dpi: 144
|
||||
xft.hinting: 1
|
||||
xft.antialias: 1
|
||||
xft.hintstyle: hintfull
|
||||
xft.rgba: rgb
|
||||
*font: xft:DejaVu Sans Mono:pixelsize=24
|
||||
|
||||
! cursor
|
||||
URxvt*cursorBlink: true
|
||||
@ -76,7 +80,7 @@ URxvt*scrollTtyKeypress: true
|
||||
|
||||
!! SCRIPTS
|
||||
|
||||
URxvt.perl-lib: /usr/lib/urxvt/perl/
|
||||
URxvt.perl-lib: /run/current-system/sw/lib/urxvt/perl/
|
||||
URxvt.perl-ext-common: default,matcher,clipboard,url-select,keyboard-select
|
||||
|
||||
! clipboard
|
||||
|
17
bspwmrc
17
bspwmrc
@ -4,19 +4,24 @@
|
||||
setxkbmap it
|
||||
# Dont show ugly X shaped cursor
|
||||
xsetroot -cursor_name left_ptr
|
||||
# Set DPI
|
||||
xrandr --dpi 196
|
||||
# Mute audio by default
|
||||
amixer set Master 0 mute
|
||||
|
||||
udiskie &
|
||||
|
||||
# Start lemonbar
|
||||
sh ~/.config/bspwm/lemonbar.sh &
|
||||
|
||||
# Set up desktops on monitors
|
||||
bspc monitor DVI-I-0 -d 1 2 3 4 5
|
||||
bspc monitor HDMI-0 -d 6 7 8 9
|
||||
# Set up desktops
|
||||
bspc monitor -d 1 2 3 4 5 6 7
|
||||
bspc monitor -d 1 2 3 4 5 6 7
|
||||
|
||||
# Set up bspwm theme
|
||||
bspc config border_width 2
|
||||
bspc window_gap 24
|
||||
bspc config -m DVI-I-0 top_padding 36
|
||||
bspc window_gap 48
|
||||
bspc config top_padding 46
|
||||
bspc config focused_border_color '#858585'
|
||||
bspc config normal_border_color '#2e343D'
|
||||
bspc config split_ratio 0.52
|
||||
@ -25,4 +30,4 @@ bspc config gapless monocle true
|
||||
bspc config focus_follows_pointer true
|
||||
|
||||
# Show desktop background
|
||||
feh --no--fehbg --bg-center ~/Pictures/background.png
|
||||
feh --no-fehbg --bg-center ~/Pictures/background.*
|
||||
|
@ -8,31 +8,51 @@
|
||||
|
||||
# System
|
||||
|
||||
boot.loader.grub.enable = true;
|
||||
boot.loader.grub.version = 2;
|
||||
boot.loader.grub.device = "/dev/sdd";
|
||||
boot = {
|
||||
loader = {
|
||||
grub.enable = false;
|
||||
gummiboot.enable = true;
|
||||
generationsDir = {
|
||||
enable = false;
|
||||
copyKernels = false;
|
||||
};
|
||||
};
|
||||
kernel = {
|
||||
sysctl = {
|
||||
"kernel.nmi_watchdog" = 0; # Disable watchdog
|
||||
"vm.swappiness" = 0; # Avoid swapping as much as possible
|
||||
"vm.laptop_mode" = 5; # Use laptop mode (Knob at 5)
|
||||
"vm.dirty_writeback_centisecs" = 6000; # Aggregate disk IO
|
||||
};
|
||||
};
|
||||
extraModprobeConfig = ''
|
||||
options libata.force=noncq
|
||||
options resume=/dev/sda5
|
||||
options snd_hda_intel index=0 model=intel-mac-auto id=PCH
|
||||
options snd_hda_intel index=1 model=intel-mac-auto id=HDMI
|
||||
options snd-hda-intel model=mbp101
|
||||
options hid_apple fnmode=2
|
||||
'';
|
||||
};
|
||||
|
||||
hardware.opengl.driSupport32Bit = true;
|
||||
|
||||
virtualisation.virtualbox.host.enable = true;
|
||||
|
||||
# SSD
|
||||
boot.tmpOnTmpfs = true; # save some writes
|
||||
fileSystems."/".options = "discard,noatime";
|
||||
fileSystems."/boot".options = "discard,noatime,defaults";
|
||||
|
||||
# Mount Data disk
|
||||
fileSystems."/mnt/Dati" = {
|
||||
device = "/dev/sdd3";
|
||||
options = "nofail,relatime,defaults";
|
||||
powerManagement = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
time.timeZone = "Europe/Rome";
|
||||
|
||||
virtualisation.virtualbox.host.enable = true;
|
||||
|
||||
# Networking
|
||||
|
||||
networking.hostName = "ape";
|
||||
networking.hostId = "6bc261fc";
|
||||
networking.firewall.enable = false;
|
||||
networking.hostName = "warren";
|
||||
networking.hostId = "476783f8";
|
||||
networking.wireless.enable = true;
|
||||
networking.connman.enable = true;
|
||||
|
||||
@ -65,9 +85,9 @@
|
||||
# Libs and Tools
|
||||
xsel urxvt_perls xclip python34Packages.udiskie encfs
|
||||
# Desktop Environment helpers
|
||||
dmenu bar i3lock sxhkd
|
||||
dmenu bar-xft i3lock sxhkd
|
||||
# Games
|
||||
minecraft steam dwarf_fortress
|
||||
minecraft dwarf_fortress
|
||||
# Applications
|
||||
neovim ranger weechat bc w3m gnupg zathura go14Packages.ipfs.bin
|
||||
tmux htop rxvt_unicode pandoc mosh ncdu cv pv tree screenfetch
|
||||
@ -78,14 +98,14 @@
|
||||
beets mpd mpc_cli ncmpcpp popcorntime mpv
|
||||
# Drivers, file systems and other compatibility-aimed packages
|
||||
ntfs3g exfat utillinuxCurses gptfdisk encfs
|
||||
# Other stuff
|
||||
xlibs.xbacklight acpi powertop
|
||||
];
|
||||
|
||||
fonts = {
|
||||
enableFontDir = true;
|
||||
enableGhostscriptFonts = true;
|
||||
fonts = with pkgs; [
|
||||
gohufont
|
||||
gohufont inconsolata dejavu_fonts
|
||||
];
|
||||
};
|
||||
|
||||
@ -103,12 +123,41 @@
|
||||
# Desktop Environment
|
||||
xserver = {
|
||||
enable = true;
|
||||
videoDrivers = [ "nvidia" ];
|
||||
layout = "it";
|
||||
windowManager.bspwm.enable = true;
|
||||
desktopManager.xterm.enable = false;
|
||||
desktopManager.default = "none";
|
||||
displayManager.desktopManagerHandlesLidAndPower = false;
|
||||
windowManager.default = "bspwm";
|
||||
synaptics = {
|
||||
enable = true;
|
||||
buttonsMap = [1 3 2];
|
||||
tapButtons = false;
|
||||
maxSpeed = "3";
|
||||
minSpeed = "0.5";
|
||||
accelFactor = "0.06";
|
||||
palmDetect = true;
|
||||
twoFingerScroll = true;
|
||||
additionalOptions = ''
|
||||
Option "LockedDrags" "true"
|
||||
Option "AccelerationProfile" "-111"
|
||||
Option "VertScrollDelta" "-111"
|
||||
Option "HorizScrollDelta" "-111"
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
logind.extraConfig = ''
|
||||
HandlePowerKey="ignore"
|
||||
'';
|
||||
upower.enable = true;
|
||||
|
||||
tlp = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
CPU_SCALING_GOVERNOR_ON_AC=performance
|
||||
CPU_SCALING_GOVERNOR_ON_BAT=powersave
|
||||
'';
|
||||
};
|
||||
|
||||
mpd = {
|
||||
@ -138,18 +187,12 @@
|
||||
longitude = "45.47";
|
||||
};
|
||||
|
||||
transmission = {
|
||||
enable = true;
|
||||
settings = {
|
||||
download-dir = "/mnt/Dati/Download/";
|
||||
};
|
||||
};
|
||||
|
||||
syncthing = {
|
||||
enable = true;
|
||||
user = "fazo";
|
||||
dataDir = "/home/fazo/.config/syncthing";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
# Custom Services
|
||||
@ -170,10 +213,11 @@
|
||||
enable = true;
|
||||
shellInit = "export ZDOTDIR=~/.config/zsh";
|
||||
};
|
||||
programs.kbdlight.enable = true;
|
||||
|
||||
users.extraUsers.fazo = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "transmission" "vboxusers" ];
|
||||
extraGroups = [ "wheel" "vboxusers" ];
|
||||
uid = 1000;
|
||||
shell = "/run/current-system/sw/bin/zsh";
|
||||
openssh.authorizedKeys.keys = [ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIqHaL0uH1ko/jLI3JeetD4bITUF34IE9HTEvF2Go8JYbhk3YSsG0/EoNu8dhA35S45Y7TXUk/K0axcqmFUePVwY271b7L+9I7/ehUg1wHOaNLCf/ueAyRfo5ZUHuH1YnTg9TinwVi0dynjVMaaVDR1YWVgzuw0KTEDW5em5m+jRbDvFrrq72D2GD/fYqkc2Z/cmnRijMi26PCF1xTq4g6BlIUYloCN+ZlDRvkSWiqCcFD3a/QOZXsUBVg80K4QrHVwj4+Bu2M1KDLhmW+8fzMkbwzKumUFt9SwcQh5Tq/MQfzSWOO2wtn1sys0BDKGazJwn9gMFNkcFbRsD5Uqcgh fazo@mac.lan" ];
|
||||
|
17
lemonbar.sh
17
lemonbar.sh
@ -9,7 +9,7 @@ GREEN2="#6d6137"
|
||||
BROWN="#776049"
|
||||
|
||||
buildClock() {
|
||||
echo -n "%{F$WHITE2}$(date "+%A, %e %B, %k:%M:%S")"
|
||||
echo -n "%{F$WHITE2}$(date "+%A, %e %B, %k:%M")"
|
||||
}
|
||||
|
||||
getVolume() {
|
||||
@ -84,13 +84,22 @@ getMEM(){
|
||||
echo -n "%{F$BLUE}$USEDMEM MB"
|
||||
}
|
||||
|
||||
getBAT(){
|
||||
BAT=$(acpi -b | cut -d ' ' -f4)
|
||||
if [ $BAT != "100" ]; then
|
||||
BAT=$(echo "$BAT" | cut -d '%' -f1)
|
||||
fi
|
||||
echo -n "%{F$GREY}$BAT $(echo $BAT 0 100 | spark | cut -b 1-3)"
|
||||
}
|
||||
|
||||
buildBar () {
|
||||
while true
|
||||
do
|
||||
echo " $(getMPD) %{c}$(buildClock) %{r} $(getLOAD) $(separator) $(getMEM) $(separator) $(getDISK) $(separator) $(getNET) $(separator) $(getVolume) "
|
||||
sleep 1
|
||||
echo " $(getMPD) %{c}$(buildClock) %{r} $(getLOAD) $(separator) $(getMEM) $(separator) $(getDISK) $(separator) $(getNET) $(separator) $(getVolume) $(separator) $(getBAT) "
|
||||
sleep 5
|
||||
done
|
||||
}
|
||||
|
||||
buildBar | lemonbar -p -g "1872x20+24+8" -B "$BLACK" -F "$GREY" -f -gohu-gohufont-medium-r-normal--14-100-100-100-c-80-iso10646-1
|
||||
SCREENX=$(echo "$(xrandr --current | grep \* | cut -b 4-7) - 48" | bc)
|
||||
|
||||
buildBar | lemonbar -p -g "$SCREENX+24+8" -B "$BLACK" -F "$GREY" -f "xft:DejaVu Sans Mono:pixelsize=24"
|
||||
|
17
sxhkdrc
17
sxhkdrc
@ -82,13 +82,25 @@ super + Return
|
||||
urxvt
|
||||
|
||||
super + space
|
||||
dmenu_run -fn "-gohu-gohufont-medium-r-normal--14-100-100-100-c-80-iso10646-1"
|
||||
dmenu_run -fn "xft:DejaVu Sans Mono:pixelsize=24"
|
||||
|
||||
# make sxhkd reload its configuration files:
|
||||
#super + Escape
|
||||
# pkill -USR1 -x sxhkd
|
||||
|
||||
# media
|
||||
XF86MonBrightnessUp
|
||||
xbacklight -inc 10
|
||||
XF86MonBrightnessDown
|
||||
xbacklight -dec 10
|
||||
XF86KbdBrightnessUp
|
||||
kbdlight up 10
|
||||
XF86KbdBrightnessDown
|
||||
kbdlight down 10
|
||||
XF86AudioNext
|
||||
mpc next
|
||||
XF86AudioPrev
|
||||
mpc prev
|
||||
XF86AudioRaiseVolume
|
||||
amixer set Master 3+ unmute
|
||||
XF86AudioLowerVolume
|
||||
@ -107,7 +119,8 @@ XF86Mail
|
||||
# lock
|
||||
|
||||
XF86Sleep
|
||||
i3lock -u -c 1d1f21 -i ~/Pictures/background.png
|
||||
XF86LaunchB
|
||||
i3lock -u -c 1d1f21 -i ~/Pictures/background.*
|
||||
|
||||
# screenshots
|
||||
Print
|
||||
|
Loading…
Reference in New Issue
Block a user