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
|
URxvt*internalBorder: 18
|
||||||
|
|
||||||
! font
|
! font
|
||||||
*font: -gohu-gohufont-medium-r-normal--14-100-100-100-c-80-iso10646-1
|
xft.dpi: 144
|
||||||
URxvt*LetterSpace: -1
|
xft.hinting: 1
|
||||||
|
xft.antialias: 1
|
||||||
|
xft.hintstyle: hintfull
|
||||||
|
xft.rgba: rgb
|
||||||
|
*font: xft:DejaVu Sans Mono:pixelsize=24
|
||||||
|
|
||||||
! cursor
|
! cursor
|
||||||
URxvt*cursorBlink: true
|
URxvt*cursorBlink: true
|
||||||
@ -76,7 +80,7 @@ URxvt*scrollTtyKeypress: true
|
|||||||
|
|
||||||
!! SCRIPTS
|
!! 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
|
URxvt.perl-ext-common: default,matcher,clipboard,url-select,keyboard-select
|
||||||
|
|
||||||
! clipboard
|
! clipboard
|
||||||
|
17
bspwmrc
17
bspwmrc
@ -4,19 +4,24 @@
|
|||||||
setxkbmap it
|
setxkbmap it
|
||||||
# Dont show ugly X shaped cursor
|
# Dont show ugly X shaped cursor
|
||||||
xsetroot -cursor_name left_ptr
|
xsetroot -cursor_name left_ptr
|
||||||
|
# Set DPI
|
||||||
|
xrandr --dpi 196
|
||||||
|
# Mute audio by default
|
||||||
|
amixer set Master 0 mute
|
||||||
|
|
||||||
udiskie &
|
udiskie &
|
||||||
|
|
||||||
# Start lemonbar
|
# Start lemonbar
|
||||||
sh ~/.config/bspwm/lemonbar.sh &
|
sh ~/.config/bspwm/lemonbar.sh &
|
||||||
|
|
||||||
# Set up desktops on monitors
|
# Set up desktops
|
||||||
bspc monitor DVI-I-0 -d 1 2 3 4 5
|
bspc monitor -d 1 2 3 4 5 6 7
|
||||||
bspc monitor HDMI-0 -d 6 7 8 9
|
bspc monitor -d 1 2 3 4 5 6 7
|
||||||
|
|
||||||
# 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 48
|
||||||
bspc config -m DVI-I-0 top_padding 36
|
bspc config top_padding 46
|
||||||
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
|
||||||
@ -25,4 +30,4 @@ bspc config gapless monocle true
|
|||||||
bspc config focus_follows_pointer true
|
bspc config focus_follows_pointer true
|
||||||
|
|
||||||
# Show desktop background
|
# Show desktop background
|
||||||
feh --no--fehbg --bg-center ~/Pictures/background.png
|
feh --no-fehbg --bg-center ~/Pictures/background.*
|
||||||
|
@ -8,31 +8,51 @@
|
|||||||
|
|
||||||
# System
|
# System
|
||||||
|
|
||||||
boot.loader.grub.enable = true;
|
boot = {
|
||||||
boot.loader.grub.version = 2;
|
loader = {
|
||||||
boot.loader.grub.device = "/dev/sdd";
|
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;
|
hardware.opengl.driSupport32Bit = true;
|
||||||
|
|
||||||
|
virtualisation.virtualbox.host.enable = true;
|
||||||
|
|
||||||
# SSD
|
# SSD
|
||||||
boot.tmpOnTmpfs = true; # save some writes
|
boot.tmpOnTmpfs = true; # save some writes
|
||||||
fileSystems."/".options = "discard,noatime";
|
fileSystems."/".options = "discard,noatime";
|
||||||
|
fileSystems."/boot".options = "discard,noatime,defaults";
|
||||||
|
|
||||||
# Mount Data disk
|
powerManagement = {
|
||||||
fileSystems."/mnt/Dati" = {
|
enable = true;
|
||||||
device = "/dev/sdd3";
|
|
||||||
options = "nofail,relatime,defaults";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
time.timeZone = "Europe/Rome";
|
time.timeZone = "Europe/Rome";
|
||||||
|
|
||||||
virtualisation.virtualbox.host.enable = true;
|
|
||||||
|
|
||||||
# Networking
|
# Networking
|
||||||
|
networking.hostName = "warren";
|
||||||
networking.hostName = "ape";
|
networking.hostId = "476783f8";
|
||||||
networking.hostId = "6bc261fc";
|
|
||||||
networking.firewall.enable = false;
|
|
||||||
networking.wireless.enable = true;
|
networking.wireless.enable = true;
|
||||||
networking.connman.enable = true;
|
networking.connman.enable = true;
|
||||||
|
|
||||||
@ -65,9 +85,9 @@
|
|||||||
# Libs and Tools
|
# Libs and Tools
|
||||||
xsel urxvt_perls xclip python34Packages.udiskie encfs
|
xsel urxvt_perls xclip python34Packages.udiskie encfs
|
||||||
# Desktop Environment helpers
|
# Desktop Environment helpers
|
||||||
dmenu bar i3lock sxhkd
|
dmenu bar-xft i3lock sxhkd
|
||||||
# Games
|
# Games
|
||||||
minecraft steam dwarf_fortress
|
minecraft dwarf_fortress
|
||||||
# Applications
|
# Applications
|
||||||
neovim ranger weechat bc w3m gnupg zathura go14Packages.ipfs.bin
|
neovim ranger weechat bc w3m gnupg zathura go14Packages.ipfs.bin
|
||||||
tmux htop rxvt_unicode pandoc mosh ncdu cv pv tree screenfetch
|
tmux htop rxvt_unicode pandoc mosh ncdu cv pv tree screenfetch
|
||||||
@ -78,14 +98,14 @@
|
|||||||
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
|
ntfs3g exfat utillinuxCurses gptfdisk encfs
|
||||||
# Other stuff
|
xlibs.xbacklight acpi powertop
|
||||||
];
|
];
|
||||||
|
|
||||||
fonts = {
|
fonts = {
|
||||||
enableFontDir = true;
|
enableFontDir = true;
|
||||||
enableGhostscriptFonts = true;
|
enableGhostscriptFonts = true;
|
||||||
fonts = with pkgs; [
|
fonts = with pkgs; [
|
||||||
gohufont
|
gohufont inconsolata dejavu_fonts
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -103,12 +123,41 @@
|
|||||||
# Desktop Environment
|
# Desktop Environment
|
||||||
xserver = {
|
xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
videoDrivers = [ "nvidia" ];
|
|
||||||
layout = "it";
|
layout = "it";
|
||||||
windowManager.bspwm.enable = true;
|
windowManager.bspwm.enable = true;
|
||||||
desktopManager.xterm.enable = false;
|
desktopManager.xterm.enable = false;
|
||||||
desktopManager.default = "none";
|
desktopManager.default = "none";
|
||||||
|
displayManager.desktopManagerHandlesLidAndPower = false;
|
||||||
windowManager.default = "bspwm";
|
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 = {
|
mpd = {
|
||||||
@ -138,18 +187,12 @@
|
|||||||
longitude = "45.47";
|
longitude = "45.47";
|
||||||
};
|
};
|
||||||
|
|
||||||
transmission = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
download-dir = "/mnt/Dati/Download/";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
syncthing = {
|
syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
user = "fazo";
|
user = "fazo";
|
||||||
dataDir = "/home/fazo/.config/syncthing";
|
dataDir = "/home/fazo/.config/syncthing";
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Custom Services
|
# Custom Services
|
||||||
@ -170,10 +213,11 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
shellInit = "export ZDOTDIR=~/.config/zsh";
|
shellInit = "export ZDOTDIR=~/.config/zsh";
|
||||||
};
|
};
|
||||||
|
programs.kbdlight.enable = true;
|
||||||
|
|
||||||
users.extraUsers.fazo = {
|
users.extraUsers.fazo = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" "transmission" "vboxusers" ];
|
extraGroups = [ "wheel" "vboxusers" ];
|
||||||
uid = 1000;
|
uid = 1000;
|
||||||
shell = "/run/current-system/sw/bin/zsh";
|
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" ];
|
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"
|
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,22 @@ getMEM(){
|
|||||||
echo -n "%{F$BLUE}$USEDMEM MB"
|
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 () {
|
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 1
|
sleep 5
|
||||||
done
|
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
|
urxvt
|
||||||
|
|
||||||
super + space
|
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:
|
# make sxhkd reload its configuration files:
|
||||||
#super + Escape
|
#super + Escape
|
||||||
# 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
|
||||||
|
Loading…
Reference in New Issue
Block a user