fix desktop graphics drivers and other things idk
This commit is contained in:
1
homes/desktop/bspwm/host.sh
Normal file
1
homes/desktop/bspwm/host.sh
Normal file
@ -0,0 +1 @@
|
||||
pgrep activate-linux >/dev/null || (sleep 2;activate-linux -c 1-1-1-0.7 -V 50 -H 50 -d)&
|
3
homes/desktop/bspwm/screenlayout.sh
Executable file
3
homes/desktop/bspwm/screenlayout.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
echo "AAAAAAAAAAAAAAAAAAAAAAAA"
|
||||
xrandr --output DP-0 --mode 1280x1024 --pos 5120x56 --rotate normal --output DP-1 --off --output DP-2 --off --output DP-3 --off --output HDMI-0 --primary --mode 1920x1080 --pos 1920x0 --rotate normal --output DP-1-1 --mode 1280x1024 --pos 3840x56 --rotate normal --output HDMI-1-1 --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1-2 --off --output HDMI-1-2 --off
|
8
homes/desktop/home.nix
Normal file
8
homes/desktop/home.nix
Normal file
@ -0,0 +1,8 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ./nitrogen.nix ];
|
||||
home.file = {
|
||||
".config/bspwm/screenlayout.sh".source = ./bspwm/screenlayout.sh;
|
||||
};
|
||||
}
|
28
homes/desktop/nitrogen.nix
Normal file
28
homes/desktop/nitrogen.nix
Normal file
@ -0,0 +1,28 @@
|
||||
{ config, lib, pkgs, homeDir, ... }:
|
||||
|
||||
let
|
||||
background = "${homeDir}/.config/nitrogen/wallpaper.png";
|
||||
in
|
||||
{
|
||||
home.file.".config/nitrogen/bg-saved.cfg".text = ''
|
||||
[xin_0]
|
||||
file=${background}
|
||||
mode=5
|
||||
bgcolor=#000000
|
||||
|
||||
[xin_1]
|
||||
file=${background}
|
||||
mode=5
|
||||
bgcolor=#000000
|
||||
|
||||
[xin_2]
|
||||
file=${background}
|
||||
mode=5
|
||||
bgcolor=#000000
|
||||
|
||||
[xin_3]
|
||||
file=${background}
|
||||
mode=5
|
||||
bgcolor=#000000
|
||||
'';
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ modules/game.nix ];
|
||||
|
||||
programs.alacritty.settings.font.size = 8;
|
||||
}
|
15
homes/laptop/bspwm/host.sh
Normal file
15
homes/laptop/bspwm/host.sh
Normal file
@ -0,0 +1,15 @@
|
||||
INTEGRATED="eDP-1"
|
||||
HDMI="HDMI-1"
|
||||
if xrandr | grep "$HDMI connected" && cat /proc/acpi/button/lid/LID/state | grep "closed"; then
|
||||
bash ~/.screenlayout/b.sh
|
||||
bspc monitor $HDMI -d 1 2 3 4 5
|
||||
bspc monitor $INTEGRATED -r
|
||||
elif xrandr | grep "$HDMI connected";then
|
||||
bash ~/.screenlayout/a.sh
|
||||
bspc monitor $INTEGRATED -d 1 2 3 4
|
||||
bspc monitor $HDMI -d A B
|
||||
else
|
||||
bspc monitor -d 1 2 3 4 5
|
||||
xrandr -r 60
|
||||
fi
|
||||
pgrep activate-linux >/dev/null || (sleep 2;activate-linux -c 1-1-1-0.7 -V 50 -H 70 -d)&
|
15
homes/laptop/home.nix
Normal file
15
homes/laptop/home.nix
Normal file
@ -0,0 +1,15 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../modules/game.nix
|
||||
./bspwm.nix
|
||||
];
|
||||
|
||||
programs.alacritty.settings.font.size = 8;
|
||||
|
||||
home.file = {
|
||||
".config/bspwm/host.sh".source = ./bspwm/host.sh;
|
||||
".config/bspwm/screenlayout.sh".source = ./bspwm/host.sh;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user