big update
This commit is contained in:
parent
cf4ae712c8
commit
16d3e93063
1
bspwmrc
1
bspwmrc
@ -1,6 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
setxkbmap it
|
setxkbmap it
|
||||||
|
xsetroot -cursor_name left_ptr
|
||||||
|
|
||||||
bspc config border_width 2
|
bspc config border_width 2
|
||||||
bspc window_gap 24
|
bspc window_gap 24
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# System
|
||||||
|
|
||||||
boot.loader.grub.enable = true;
|
boot.loader.grub.enable = true;
|
||||||
boot.loader.grub.version = 2;
|
boot.loader.grub.version = 2;
|
||||||
boot.loader.grub.device = "/dev/sdd";
|
boot.loader.grub.device = "/dev/sdd";
|
||||||
@ -19,9 +21,26 @@
|
|||||||
defaultLocale = "en_US.UTF-8";
|
defaultLocale = "en_US.UTF-8";
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
# Packages
|
||||||
|
|
||||||
|
nixpkgs.config = {
|
||||||
|
allowUnfree = true;
|
||||||
|
rxvt_unicode = {
|
||||||
|
perlSupport = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
tmux vim sxhkd w3m rxvt_unicode chromium htop atom git zsh dmenu gnupg ranger syncthing
|
# Development
|
||||||
|
atom git
|
||||||
|
# Desktop and appliations
|
||||||
|
sxhkd tmux htop ranger w3m rxvt_unicode chromium dmenu gnupg
|
||||||
|
# Media
|
||||||
|
mpv cmus
|
||||||
|
# Services
|
||||||
|
syncthing
|
||||||
|
# Other stuff
|
||||||
|
screenfetch
|
||||||
];
|
];
|
||||||
|
|
||||||
fonts = {
|
fonts = {
|
||||||
@ -32,6 +51,8 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Services
|
||||||
|
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
permitRootLogin = "no";
|
permitRootLogin = "no";
|
||||||
@ -45,12 +66,19 @@
|
|||||||
windowManager.bspwm.enable = true;
|
windowManager.bspwm.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# User environment
|
||||||
|
|
||||||
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
shellInit = "export ZDOTDIR=~/.config/zsh";
|
||||||
|
};
|
||||||
|
|
||||||
users.extraUsers.fazo = {
|
users.extraUsers.fazo = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" ];
|
extraGroups = [ "wheel" ];
|
||||||
uid = 1000;
|
uid = 1000;
|
||||||
shell = "/run/current-system/sw/bin/zsh";
|
shell = "/run/current-system/sw/bin/zsh";
|
||||||
openssh.authorizedKeys.keys = [ ];
|
openssh.authorizedKeys.keys = [ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIqHaL0uH1ko/jLI3JeetD4bITUF34IE9HTEvF2Go8JYbhk3YSsG0/EoNu8dhA35S45Y7TXUk/K0axcqmFUePVwY271b7L+9I7/ehUg1wHOaNLCf/ueAyRfo5ZUHuH1YnTg9TinwVi0dynjVMaaVDR1YWVgzuw0KTEDW5em5m+jRbDvFrrq72D2GD/fYqkc2Z/cmnRijMi26PCF1xTq4g6BlIUYloCN+ZlDRvkSWiqCcFD3a/QOZXsUBVg80K4QrHVwj4+Bu2M1KDLhmW+8fzMkbwzKumUFt9SwcQh5Tq/MQfzSWOO2wtn1sys0BDKGazJwn9gMFNkcFbRsD5Uqcgh fazo@mac.lan" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
2
install
2
install
@ -28,4 +28,4 @@ cp .vimrc ~/
|
|||||||
# Git
|
# Git
|
||||||
cp .gitconfig ~/
|
cp .gitconfig ~/
|
||||||
|
|
||||||
echo "This script does not install prezto"
|
echo "Run install-prezto with ZSH to install prezto"
|
||||||
|
14
install-prezto
Executable file
14
install-prezto
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
|
echo "Installing prezto"
|
||||||
|
|
||||||
|
mkdir -p $ZDOTDIR
|
||||||
|
|
||||||
|
git clone --recursive https://github.com/fazo96/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
|
||||||
|
|
||||||
|
setopt EXTENDED_GLOB
|
||||||
|
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
|
||||||
|
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "Done"
|
14
sxhkdrc
14
sxhkdrc
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
super + alt + Escape
|
super + alt + Escape
|
||||||
for id in $(bspc query -W); do bspc window $id -c; done; \
|
for id in $(bspc query -W); do bspc window $id -c; done; \
|
||||||
bspc quit
|
bspc quit && shutdown
|
||||||
|
|
||||||
super + w
|
super + w
|
||||||
bspc window -c
|
bspc window -c
|
||||||
@ -85,8 +85,8 @@ super + space
|
|||||||
dmenu_run -fn "-gohu-gohufont-medium-r-normal--14-100-100-100-c-80-iso10646-1"
|
dmenu_run -fn "-gohu-gohufont-medium-r-normal--14-100-100-100-c-80-iso10646-1"
|
||||||
|
|
||||||
# make sxhkd reload its configuration files:
|
# make sxhkd reload its configuration files:
|
||||||
super + Escape
|
#super + Escape
|
||||||
pkill -USR1 -x sxhkd
|
# pkill -USR1 -x sxhkd
|
||||||
|
|
||||||
#
|
#
|
||||||
# my stuff
|
# my stuff
|
||||||
@ -108,8 +108,6 @@ alt + F12
|
|||||||
|
|
||||||
# screenshots
|
# screenshots
|
||||||
Print
|
Print
|
||||||
scrot /tmp/screenshot.png -e 'copyq copy image/png - < $f && rm $f'
|
scrot "~/Pictures/screenshots/%d-%m-%Y %H:%M:%S.png"
|
||||||
alt + Print
|
# scrot /tmp/screenshot.png -e 'copyq copy image/png - < $f && rm $f'
|
||||||
scrot -s /tmp/screenshot.png -e 'copyq copy image/png - < $f && rm $f'
|
# scrot -s /tmp/screenshot.png -e 'copyq copy image/png - < $f && rm $f'
|
||||||
alt + shift + Print
|
|
||||||
scrot "$HOME/pictures/screenshots/%d-%m-%Y %H:%M:%S.png"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user