some changes
This commit is contained in:
2
apply.sh
2
apply.sh
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
sudo rsync -ah --delete --progress `pwd`/ /root/nixos/
|
sudo rsync -ah --delete --progress `pwd`/ /root/nixos/
|
||||||
sudo rm /etc/nixos/configuration.nix
|
sudo rm /etc/nixos/configuration.nix
|
||||||
|
@ -74,21 +74,24 @@ in
|
|||||||
manpages
|
manpages
|
||||||
ncdu
|
ncdu
|
||||||
neofetch
|
neofetch
|
||||||
|
nix-du
|
||||||
nmap
|
nmap
|
||||||
nodejs
|
nodejs
|
||||||
pciutils
|
pciutils
|
||||||
pstree
|
pstree
|
||||||
|
ranger
|
||||||
ruby
|
ruby
|
||||||
sshfs
|
sshfs
|
||||||
tealdeer
|
tealdeer
|
||||||
tree
|
tree
|
||||||
|
unixtools.xxd
|
||||||
unzip
|
unzip
|
||||||
usbutils
|
usbutils
|
||||||
wget
|
wget
|
||||||
youtube-dl
|
youtube-dl
|
||||||
zsh
|
zsh
|
||||||
unixtools.xxd
|
graphviz
|
||||||
ranger
|
nix-tree
|
||||||
];
|
];
|
||||||
|
|
||||||
documentation.enable = false;
|
documentation.enable = false;
|
||||||
|
@ -1,136 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.etc.bspwmrc = {
|
|
||||||
mode = "0645";
|
|
||||||
text = ''
|
|
||||||
#!/usr/bin/env bash
|
|
||||||
# spread desktops
|
|
||||||
desktops=10
|
|
||||||
count=$(xrandr -q | grep -c ' connected')
|
|
||||||
i=1
|
|
||||||
for m in $(xrandr -q | grep ' connected' | awk '{print $1}'); do
|
|
||||||
sequence=$(seq -s ' ' $(((1+(i-1)*desktops/count))) $((i*desktops/count)))
|
|
||||||
bspc monitor "$m" -d $(echo ''${sequence//10/0})
|
|
||||||
i=$((i+1))
|
|
||||||
done
|
|
||||||
# if [ -e "/etc/X11/Xresources" ]; then
|
|
||||||
# xrdb /etc/X11/Xresources
|
|
||||||
# fi
|
|
||||||
# if [ -e "$HOME/.Xresources" ]; then
|
|
||||||
# xrdb -merge "$HOME/.Xresources"
|
|
||||||
# fi
|
|
||||||
# # polybar
|
|
||||||
# for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
|
||||||
# MONITOR=$m ${pkgs.polybar}/bin/polybar --reload default -c /etc/polybar.conf &
|
|
||||||
# done
|
|
||||||
|
|
||||||
# pointer
|
|
||||||
xsetroot -cursor_name left_ptr
|
|
||||||
# turn off blanking
|
|
||||||
# xset -dpms
|
|
||||||
# xset s off
|
|
||||||
# xset s noblank
|
|
||||||
# node ~/.config/bspwm/window.js &
|
|
||||||
|
|
||||||
bspc config border_width 4
|
|
||||||
bspc config window_gap 5
|
|
||||||
bspc config top_padding 0
|
|
||||||
bspc config left_padding 0
|
|
||||||
bspc config right_padding 0
|
|
||||||
bspc config bottom_padding 0
|
|
||||||
bspc config split_ratio 0.50
|
|
||||||
bspc config borderless_monocle true
|
|
||||||
bspc config single_monocle true
|
|
||||||
bspc config gapless_monocle true
|
|
||||||
bspc config focus_follows_pointer true
|
|
||||||
bspc config pointer_follows_monitor true
|
|
||||||
bspc config pointer_follows_focus false
|
|
||||||
bspc config center_pseudo_tiled true
|
|
||||||
bspc config automatic_scheme alternate
|
|
||||||
bspc config remove_unplugged_monitors true
|
|
||||||
bspc config remove_disabled_monitors true
|
|
||||||
|
|
||||||
bspc rule -a Gnome-calculator state=floating
|
|
||||||
|
|
||||||
bspc config normal_border_color "#333333"
|
|
||||||
bspc config focused_border_color "#666666"
|
|
||||||
bspc config presel_feedback_color "#000000"
|
|
||||||
|
|
||||||
bspc wm --adopt-orphans
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.etc.sxhkdrc = {
|
|
||||||
text = ''
|
|
||||||
#show time
|
|
||||||
super + z
|
|
||||||
notify-send Time $(date '+%H:%M')
|
|
||||||
#show Battery
|
|
||||||
super + x
|
|
||||||
notify-send Battery $(cat /sys/class/power_supply/BAT0/capacity)%
|
|
||||||
alt + Tab
|
|
||||||
rofi -show window
|
|
||||||
#Mute
|
|
||||||
XF86AudioMute
|
|
||||||
pulseaudio-ctl mute
|
|
||||||
XF86AudioLowerVolume
|
|
||||||
pulseaudio-ctl down
|
|
||||||
XF86AudioRaiseVolume
|
|
||||||
pulseaudio-ctl up
|
|
||||||
#XF86MonBrightnessUp
|
|
||||||
# lux -a 20%
|
|
||||||
#XF86MonBrightnessDown
|
|
||||||
# lux -s 20%
|
|
||||||
super + Return
|
|
||||||
kitty
|
|
||||||
super + shift + Return
|
|
||||||
rofi -show drun
|
|
||||||
super + Escape
|
|
||||||
pkill -USR1 -x sxhkd
|
|
||||||
#cycle windows
|
|
||||||
super {_,shift + }Tab
|
|
||||||
bspc node -f {next,prev}
|
|
||||||
super + shift + c
|
|
||||||
bspc node -c
|
|
||||||
super + a
|
|
||||||
bspc node @/ --flip vertical
|
|
||||||
super + d
|
|
||||||
layer=normal; \
|
|
||||||
bspc query -N -n "focused.$\{layer\}" && layer=below; \
|
|
||||||
bspc node -l "$layer"
|
|
||||||
super + {s,f,k}
|
|
||||||
state={floating,fullscreen,pseudo_tiled}; \
|
|
||||||
bspc query -N -n "focused.$\{state\}" && state=tiled; \
|
|
||||||
bspc node -t "$state"
|
|
||||||
super + alt + {Left,Down,Up,Right}
|
|
||||||
bspc node -p {west,south,north,east}
|
|
||||||
super + ctrl + {Left,Right,Up,Down}
|
|
||||||
xdo move {-x -50,-x +50,-y -50,-y +50}
|
|
||||||
super + ctrl + alt + {Left,Right,Up,Down}
|
|
||||||
xdo resize {-w -50,-w +50,-h -50,-h +50}
|
|
||||||
super + {_,shift + }{Left,Down,Up,Right}
|
|
||||||
bspc node -{f,s} {west,south,north,east}
|
|
||||||
super + m
|
|
||||||
bspc node -s biggest
|
|
||||||
super + l
|
|
||||||
~/.bin/lock
|
|
||||||
#super + y
|
|
||||||
# bspc node -n last.!automatic
|
|
||||||
super + ctrl + space
|
|
||||||
bspc node -p cancel
|
|
||||||
super + apostrophe
|
|
||||||
bspc node -s last
|
|
||||||
super + ctrl + comma
|
|
||||||
bspc node @/ --rotate 90
|
|
||||||
super + shift + comma
|
|
||||||
bspc node @/ --circulate forward
|
|
||||||
#super + shift + x
|
|
||||||
# bspc wm -d > "$BSPWM_STATE" && bspc quit
|
|
||||||
super + {1-9,0}
|
|
||||||
bspc desktop -f '{I,II,III,IV,V,VI,VII,VIII,IX,X}' && notify-send `bspc query -D -d --names`
|
|
||||||
super + shift + {1-9,0}
|
|
||||||
bspc node -d '{I,II,III,IV,V,VI,VII,VIII,IX,X}'
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
@ -16,65 +16,48 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
ponymix
|
|
||||||
libsecret
|
|
||||||
baobab
|
|
||||||
barrier
|
barrier
|
||||||
blueberry
|
|
||||||
bspwm
|
bspwm
|
||||||
chromium
|
chromium
|
||||||
cura
|
cura
|
||||||
|
cypress
|
||||||
dunst
|
dunst
|
||||||
elementary-xfce-icon-theme
|
|
||||||
etcher
|
etcher
|
||||||
evince
|
evince
|
||||||
firefox
|
firefox
|
||||||
font-manager
|
font-manager
|
||||||
fslint
|
fslint
|
||||||
|
fswebcam
|
||||||
glxinfo
|
glxinfo
|
||||||
gnome.eog
|
|
||||||
gnome.gnome-calculator
|
|
||||||
gnome.seahorse
|
|
||||||
gnome.file-roller
|
|
||||||
gnome.gnome-boxes
|
|
||||||
gparted
|
gparted
|
||||||
insomnia
|
insomnia
|
||||||
jellyfin-media-player
|
jellyfin-media-player
|
||||||
jellyfin-mpv-shim
|
jellyfin-mpv-shim
|
||||||
juno-theme
|
|
||||||
kdenlive
|
kdenlive
|
||||||
keepassxc
|
keepassxc
|
||||||
libnotify
|
libnotify
|
||||||
libreoffice
|
libreoffice
|
||||||
|
libsecret
|
||||||
lightlocker
|
lightlocker
|
||||||
lutris
|
|
||||||
mangohud
|
mangohud
|
||||||
meld
|
meld
|
||||||
minecraft
|
|
||||||
mpv
|
mpv
|
||||||
|
networkmanager-openconnect
|
||||||
nextcloud-client
|
nextcloud-client
|
||||||
|
openconnect
|
||||||
pantheon.elementary-gtk-theme
|
pantheon.elementary-gtk-theme
|
||||||
pantheon.elementary-icon-theme
|
pantheon.elementary-icon-theme
|
||||||
vimix-gtk-themes
|
pinta
|
||||||
polybar
|
ponymix
|
||||||
prusa-slicer
|
prusa-slicer
|
||||||
pulseaudio-ctl
|
pulseaudio-ctl
|
||||||
pinta
|
|
||||||
solaar
|
|
||||||
sxhkd
|
|
||||||
teams
|
|
||||||
transmission-gtk
|
|
||||||
virtmanager
|
|
||||||
vulkan-tools
|
|
||||||
openconnect
|
|
||||||
networkmanager-openconnect
|
|
||||||
cypress
|
|
||||||
gnome.cheese
|
|
||||||
megapixels
|
|
||||||
obs-studio
|
|
||||||
fswebcam
|
|
||||||
python39Packages.python-miio
|
python39Packages.python-miio
|
||||||
python39Packages.pyyaml
|
python39Packages.pyyaml
|
||||||
|
solaar
|
||||||
|
sxhkd
|
||||||
|
virtmanager
|
||||||
|
vulkan-tools
|
||||||
|
winetricks
|
||||||
];
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
@ -173,7 +156,7 @@
|
|||||||
name = "Mojave-dark";
|
name = "Mojave-dark";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
defaultSession = "bspwm";
|
defaultSession = "xsession";
|
||||||
session = [{
|
session = [{
|
||||||
manage = "desktop";
|
manage = "desktop";
|
||||||
name = "bspwm";
|
name = "bspwm";
|
||||||
@ -182,6 +165,10 @@
|
|||||||
${pkgs.sxhkd}/bin/sxhkd -c /etc/sxhkdrc &
|
${pkgs.sxhkd}/bin/sxhkd -c /etc/sxhkdrc &
|
||||||
${pkgs.xfce.xfce4-session}/bin/xfce4-session
|
${pkgs.xfce.xfce4-session}/bin/xfce4-session
|
||||||
'';
|
'';
|
||||||
|
} {
|
||||||
|
manage = "desktop";
|
||||||
|
name = "xsession";
|
||||||
|
start = ''exec $HOME/.xsession'';
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -8,4 +8,6 @@
|
|||||||
};
|
};
|
||||||
spiceUSBRedirection.enable = true;
|
spiceUSBRedirection.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [ proot ];
|
||||||
}
|
}
|
||||||
|
@ -11,10 +11,26 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
spotify
|
|
||||||
signal-desktop
|
|
||||||
bitwarden
|
bitwarden
|
||||||
|
gnome.eog
|
||||||
|
gnome.file-roller
|
||||||
|
gnome.gnome-calculator
|
||||||
|
gnome.seahorse
|
||||||
|
gnome.cheese
|
||||||
|
homebank
|
||||||
|
rpi-imager
|
||||||
|
signal-desktop
|
||||||
|
spotify
|
||||||
|
steam
|
||||||
teams
|
teams
|
||||||
|
unrar
|
||||||
|
wine
|
||||||
|
baobab
|
||||||
|
steam-tui
|
||||||
|
blueberry
|
||||||
|
lutris
|
||||||
|
teams
|
||||||
|
arandr
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -26,6 +42,55 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
gtk = {
|
||||||
|
enable = true;
|
||||||
|
font = {
|
||||||
|
name = "Liberation Sans Regular";
|
||||||
|
size = 12;
|
||||||
|
};
|
||||||
|
gtk3 = {
|
||||||
|
bookmarks = [
|
||||||
|
"file:///home/alex/Downloads"
|
||||||
|
"file:///home/alex/Nextcloud"
|
||||||
|
"file:///mnt/second"
|
||||||
|
"smb://192.168.0.100/storage/"
|
||||||
|
"file:///home/alex/Workspace"
|
||||||
|
"file:///home/alex/3D%20Print"
|
||||||
|
"file:///home/alex/Sync"
|
||||||
|
];
|
||||||
|
extraConfig = {
|
||||||
|
gtk-application-prefer-dark-theme = 1;
|
||||||
|
};
|
||||||
|
extraCss = ''
|
||||||
|
decoration
|
||||||
|
{
|
||||||
|
border-radius: 0px 0px 0 0;
|
||||||
|
border-width: 0px;
|
||||||
|
/*box-shadow: 1px 12px 12px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.18);*/
|
||||||
|
box-shadow: none;
|
||||||
|
margin: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
decoration:backdrop
|
||||||
|
{
|
||||||
|
border-radius: 0px 0px 0 0;
|
||||||
|
border-width: 0px;
|
||||||
|
/*box-shadow: 1px 12px 12px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.18);*/
|
||||||
|
box-shadow: none;
|
||||||
|
margin: 0px;
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
iconTheme = {
|
||||||
|
package = pkgs.pantheon.elementary-icon-theme;
|
||||||
|
name = "elementary";
|
||||||
|
};
|
||||||
|
theme = {
|
||||||
|
package = pkgs.pantheon.elementary-gtk-theme;
|
||||||
|
name = "elementary";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
vscode = {
|
vscode = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -112,10 +177,16 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
zsh = {
|
# zsh = {
|
||||||
sessionVariables = {
|
# sessionVariables = {
|
||||||
SSH_AUTH_SOCK = "/run/user/1000/keyring/ssh";
|
# SSH_AUTH_SOCK = "/run/user/1000/keyring/ssh";
|
||||||
};
|
# };
|
||||||
|
# };
|
||||||
|
|
||||||
|
keychain = {
|
||||||
|
enable = true;
|
||||||
|
enableXsessionIntegration = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -206,8 +277,13 @@
|
|||||||
"super {_,shift + }Tab" = "bspc node -f {next,prev}";
|
"super {_,shift + }Tab" = "bspc node -f {next,prev}";
|
||||||
"super + shift + c" = "bspc node -c";
|
"super + shift + c" = "bspc node -c";
|
||||||
"super + a" = "bspc node @/ --flip vertical";
|
"super + a" = "bspc node @/ --flip vertical";
|
||||||
"super + d" = "layer=normal; bspc query -N -n 'focused.$\{layer\}' && layer=below; bspc node -l '$layer'";
|
"super + d" = ''layer=normal; \
|
||||||
"super + {s,f,k}" = "state={floating,fullscreen,pseudo_tiled}; bspc query -N -n 'focused.$\{state\}' && state=tiled; bspc node -t '$state'";
|
bspc query -N -n "focused.$\{layer\}" && layer=below; \
|
||||||
|
bspc node -l "$layer"'';
|
||||||
|
"super + {s,f,k}" =
|
||||||
|
''state={floating,fullscreen,pseudo_tiled}; \
|
||||||
|
bspc query -N -n "focused.$\{state\}" && state=tiled; \
|
||||||
|
bspc node -t "$state" '';
|
||||||
"super + alt + {Left,Down,Up,Right}" = "bspc node -p {west,south,north,east}";
|
"super + alt + {Left,Down,Up,Right}" = "bspc node -p {west,south,north,east}";
|
||||||
"super + ctrl + {Left,Right,Up,Down}" = "xdo move {-x -50,-x +50,-y -50,-y +50}";
|
"super + ctrl + {Left,Right,Up,Down}" = "xdo move {-x -50,-x +50,-y -50,-y +50}";
|
||||||
"super + ctrl + alt + {Left,Right,Up,Down}" = "xdo resize {-w -50,-w +50,-h -50,-h +50}";
|
"super + ctrl + alt + {Left,Right,Up,Down}" = "xdo resize {-w -50,-w +50,-h -50,-h +50}";
|
||||||
@ -223,6 +299,7 @@
|
|||||||
"XF86AudioMute" = "pulseaudio-ctl mute";
|
"XF86AudioMute" = "pulseaudio-ctl mute";
|
||||||
"XF86AudioLowerVolume" = "pulseaudio-ctl down";
|
"XF86AudioLowerVolume" = "pulseaudio-ctl down";
|
||||||
"XF86AudioRaiseVolume" = "pulseaudio-ctl up";
|
"XF86AudioRaiseVolume" = "pulseaudio-ctl up";
|
||||||
|
"Print" = "flameshot gui";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -232,9 +309,62 @@
|
|||||||
dawnTime = "06:30-07:00";
|
dawnTime = "06:30-07:00";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
screen-locker = {
|
||||||
|
enable = true;
|
||||||
|
enableDetectSleep = true;
|
||||||
|
inactiveInterval = 30;
|
||||||
|
lockCmd = "light-locker-command -l";
|
||||||
|
};
|
||||||
flameshot.enable = true;
|
flameshot.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
xresources.properties = {
|
||||||
|
"Xft.dpi" = 120;
|
||||||
|
};
|
||||||
|
|
||||||
|
xsession = {
|
||||||
|
enable = true;
|
||||||
|
pointerCursor = {
|
||||||
|
defaultCursor = "left_ptr";
|
||||||
|
name = "elementary";
|
||||||
|
package = pkgs.pantheon.elementary-icon-theme;
|
||||||
|
};
|
||||||
|
windowManager = {
|
||||||
|
bspwm = {
|
||||||
|
enable = true;
|
||||||
|
extraConfig = ''
|
||||||
|
bspc wm --adopt-orphans
|
||||||
|
|
||||||
|
bspc subscribe monitor_add monitor_remove| while read -r a event; do
|
||||||
|
node /home/alex/Sync/windows.js
|
||||||
|
done &
|
||||||
|
'';
|
||||||
|
settings = {
|
||||||
|
border_width = 4;
|
||||||
|
window_gap = 5;
|
||||||
|
top_padding = 0;
|
||||||
|
left_padding = 0;
|
||||||
|
right_padding = 0;
|
||||||
|
bottom_padding = 0;
|
||||||
|
split_ratio = 0.50;
|
||||||
|
borderless_monocle = true;
|
||||||
|
single_monocle = true;
|
||||||
|
gapless_monocle = true;
|
||||||
|
focus_follows_pointer = true;
|
||||||
|
pointer_follows_monitor = true;
|
||||||
|
pointer_follows_focus = false;
|
||||||
|
center_pseudo_tiled = true;
|
||||||
|
automatic_scheme = "alternate";
|
||||||
|
remove_unplugged_monitors = true;
|
||||||
|
remove_disabled_monitors = true;
|
||||||
|
normal_border_color = "#333333";
|
||||||
|
focused_border_color = "#666666";
|
||||||
|
presel_feedback_color = "#000000";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# manuals not needed
|
# manuals not needed
|
||||||
manual.html.enable = false;
|
manual.html.enable = false;
|
||||||
manual.json.enable = false;
|
manual.json.enable = false;
|
||||||
|
@ -56,7 +56,11 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
matchBlocks."mini" = {
|
matchBlocks."mini" = {
|
||||||
hostname = "192.168.0.87";
|
hostname = "192.168.0.101";
|
||||||
|
};
|
||||||
|
|
||||||
|
matchBlocks."pi" = {
|
||||||
|
hostname = "192.168.1.143";
|
||||||
};
|
};
|
||||||
|
|
||||||
matchBlocks."router" = {
|
matchBlocks."router" = {
|
||||||
@ -71,7 +75,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
matchBlocks."homeserver" = {
|
matchBlocks."homeserver" = {
|
||||||
hostname = "192.168.1.100";
|
hostname = "192.168.0.100";
|
||||||
localForwards = [ {
|
localForwards = [ {
|
||||||
bind.address = "127.0.0.1";
|
bind.address = "127.0.0.1";
|
||||||
bind.port = 8385;
|
bind.port = 8385;
|
||||||
|
Reference in New Issue
Block a user