Vinegar changes, multi monitor in bspwm, color changes

This commit is contained in:
dakedres 2024-02-03 09:05:49 +00:00
parent 8bef0233ba
commit 3fad9cba18
9 changed files with 62 additions and 21 deletions

View File

@ -16,7 +16,7 @@ in {
<nixos-wsl/modules> <nixos-wsl/modules>
]; ];
home-manager.users."${username}" = { home-manager.users.${username} = {
imports = helpers.getModules "/home.nix" (import ./modules.nix) ++ [ imports = helpers.getModules "/home.nix" (import ./modules.nix) ++ [
../../common/home.nix ../../common/home.nix
./home.nix ./home.nix
@ -25,6 +25,10 @@ in {
config.custom.username = username; config.custom.username = username;
}; };
users.users.${username} = {
shell = pkgs.fish;
};
wsl = { wsl = {
enable = true; enable = true;
defaultUser = username; defaultUser = username;
@ -37,20 +41,27 @@ in {
}; };
services.xserver.enable = true; services.xserver.enable = true;
services.xserver.displayManager.sddm.enable = true; services.xserver.displayManager.startx.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
services.xrdp = {
enable = true;
defaultWindowManager = "/home/nixos/.xsession";
# defaultWindowManager = "startx";
# defaultWindowManager = "startplasma-x11";
openFirewall = true;
port = 3390;
extraConfDirCommands = ''
sed -i 's/max_bpp=32/#max_bpp=32\nmax_bpp=128/g' $out/xrdp.ini
'';
};
services.xrdp.enable = true;
services.xrdp.defaultWindowManager = "dbus-run-session bspwm";
# services.xrdp.defaultWindowManager = "Hyprland";
services.xrdp.openFirewall = true;
services.xrdp.port = 3390;
environment.systemPackages = [ environment.systemPackages = [
pkgs.vscodium pkgs.vscodium
pkgs.git pkgs.git
pkgs.wget pkgs.wget
pkgs.micro pkgs.micro
pkgs.neofetch
]; ];
fonts.packages = [ fonts.packages = [

View File

@ -4,15 +4,25 @@
imports = imports =
# helpers.getModules "/home.nix" (import ./modules.nix) ++ # helpers.getModules "/home.nix" (import ./modules.nix) ++
[ [
../../colors/monokai-dark ../../themes/kaolin-dark
./start-session/home.nix ./start-session/home.nix
]; ];
custom.wallpaper = ../../wallpapers/blip-blip-blip-blip.jpg; custom.wallpaper = ../../wallpapers/blopies.jpg;
xsession.windowManager.bspwm.extraConfig = '' xsession.windowManager.bspwm.extraConfig = ''
pgrep -x sxhkd > /dev/null || sxhkd & pgrep -x sxhkd > /dev/null || sxhkd &
''; '';
# Workaround for xkb not working properly in xrdp
#
# Hypothesis: Xorg starts before a client connects,
# so the client's keyboard is added far after
# initialization. By adding it to the xsession we set
# the xkb map after the client joins
xsession.initExtra = ''
setxkbmap -option caps:swapescape,altwin:swap_alt_win
'';
home = { home = {
sessionVariables = { sessionVariables = {
EDITOR = "codium"; EDITOR = "codium";
@ -21,8 +31,8 @@
TERM = "kitty"; TERM = "kitty";
FILEMANAGER = "kitty lf"; FILEMANAGER = "kitty lf";
# Tell Electron apps it's wayland # Vscodium garbaj
NIXOS_OZONE_WL = 1; DONT_PROMPT_WSL_INSTALL = 1;
}; };
sessionPath = [ sessionPath = [

View File

@ -56,7 +56,7 @@
# }; # };
extraConfigEarly = '' extraConfigEarly = ''
bspc monitor -d I II III IV V bsp-auto-monitors
''; '';
settings = { settings = {

View File

@ -0,0 +1,14 @@
#!/bin/sh
monitors=($(xrandr | grep " connected " | awk '{ print$1 }'))
monitorcount=${#monitors[*]}
names=(I II III IV V)
if [ $monitorcount -eq 1 ]; then
bspc monitor -d ${names[@]}
else
for((i=0; i<${monitorcount}; i++)); do
name=${names[$i]}
bspc monitor ${monitors[$i]} -d ${name}-0 ${name}-1
done
fi

View File

@ -96,9 +96,12 @@ super + {h,j,k,l,Left,Down,Up,Right}
super + {p,b,comma,period} super + {p,b,comma,period}
bspc node -f @{parent,brother,first,second} bspc node -f @{parent,brother,first,second}
# focus the next/previous window in the current desktop # # focus the next/previous window in the current desktop
super + {a,d} # super + {a,d}
bspc node -f {next,prev}.local.!hidden.window # bspc node -f {next,prev}.local.!hidden.window
# Rotate tree
super + {d,a}
bspc node @/ -C {forward,backward}
# focus the next/previous desktop in the current monitor # focus the next/previous desktop in the current monitor
super + bracket{left,right} super + bracket{left,right}

View File

@ -8,6 +8,11 @@
# options.custom.hyprland.enable = lib.mkEnable "hyprland"; # options.custom.hyprland.enable = lib.mkEnable "hyprland";
config = { config = {
# Tell electron apps it's wayland time
home.sessionVariables = {
"NIXOS_OZONE_WL = 1"
}
home.packages = [ home.packages = [
pkgs.swaybg pkgs.swaybg
]; ];

View File

@ -8,7 +8,7 @@
}; };
}; };
config = { config = lib.mkDefault {
programs.kitty.settings = with config.custom.colors; { programs.kitty.settings = with config.custom.colors; {
# Based on https://github.com/mk12/base16-kitty # Based on https://github.com/mk12/base16-kitty

1
result
View File

@ -1 +0,0 @@
/nix/store/hq65zx7jbxkbn8kqpfhn8gklv9xi6kpx-nixos-system-nixos-24.05.20240117.842d9d8

View File

@ -30,8 +30,7 @@
# The basic colors # The basic colors
foreground = base07; foreground = base07;
background = "#000000"; background = base00;
# background = base00;
selection_foreground = base00; selection_foreground = base00;
selection_background = base07; selection_background = base07;