mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
xorg.conf clean up
This commit is contained in:
parent
0b75a56516
commit
82b2d4971e
5 changed files with 38 additions and 74 deletions
|
|
@ -1,29 +1,3 @@
|
||||||
Section "InputClass"
|
|
||||||
Identifier "libinput mouse configuration"
|
|
||||||
MatchDriver "libinput"
|
|
||||||
MatchIsPointer "on"
|
|
||||||
Option "AccelerationProfile" "0"
|
|
||||||
Option "AccelerationScheme" "flat"
|
|
||||||
Option "AccelSpeed" "3"
|
|
||||||
Option "LeftHanded" "off"
|
|
||||||
Option "MiddleEmulation" "on"
|
|
||||||
Option "NaturalScrolling" "off"
|
|
||||||
Option "ScrollMethod" "twofinger"
|
|
||||||
Option "HorizontalScrolling" "on"
|
|
||||||
Option "SendEventsMode" "enabled"
|
|
||||||
Option "Tapping" "on"
|
|
||||||
Option "TappingDragLock" "on"
|
|
||||||
Option "DisableWhileTyping" "off"
|
|
||||||
Option "Resolution" "3000"
|
|
||||||
EndSection
|
|
||||||
|
|
||||||
Section "ServerFlags"
|
|
||||||
Option "StandbyTime" "0"
|
|
||||||
Option "SuspendTime" "0"
|
|
||||||
Option "OffTime" "0"
|
|
||||||
Option "BlankTime" "0"
|
|
||||||
EndSection
|
|
||||||
|
|
||||||
Section "ServerLayout"
|
Section "ServerLayout"
|
||||||
Identifier "X.org Configured"
|
Identifier "X.org Configured"
|
||||||
Screen 0 "Screen0" 0 0
|
Screen 0 "Screen0" 0 0
|
||||||
|
|
@ -40,7 +14,6 @@ Section "Monitor"
|
||||||
Option "Primary" "true"
|
Option "Primary" "true"
|
||||||
Modeline "1920x1080_144" 332.75 1920 1952 2016 2080 1080 1084 1089 1111 +HSync +VSync
|
Modeline "1920x1080_144" 332.75 1920 1952 2016 2080 1080 1084 1089 1111 +HSync +VSync
|
||||||
Option "PreferredMode" "1920x1080_144"
|
Option "PreferredMode" "1920x1080_144"
|
||||||
Option "DPMS" "false"
|
|
||||||
EndSection
|
EndSection
|
||||||
|
|
||||||
Section "Device"
|
Section "Device"
|
||||||
|
|
|
||||||
|
|
@ -1,42 +1,13 @@
|
||||||
Section "ServerFlags"
|
|
||||||
Option "AllowMouseOpenFail" "on"
|
|
||||||
Option "DontZap" "on"
|
|
||||||
Option "StandbyTime" "0"
|
|
||||||
Option "SuspendTime" "0"
|
|
||||||
Option "OffTime" "0"
|
|
||||||
Option "BlankTime" "0"
|
|
||||||
EndSection
|
|
||||||
|
|
||||||
Section "Monitor"
|
|
||||||
Identifier "Monitor"
|
|
||||||
Option "DPMS" "false"
|
|
||||||
EndSection
|
|
||||||
|
|
||||||
Section "InputClass"
|
|
||||||
Identifier "libinput mouse configuration"
|
|
||||||
MatchDriver "libinput"
|
|
||||||
MatchIsPointer "on"
|
|
||||||
Option "AccelerationProfile" "0"
|
|
||||||
Option "AccelerationScheme" "flat"
|
|
||||||
Option "AccelSpeed" "3"
|
|
||||||
Option "LeftHanded" "off"
|
|
||||||
Option "MiddleEmulation" "on"
|
|
||||||
Option "NaturalScrolling" "off"
|
|
||||||
Option "ScrollMethod" "twofinger"
|
|
||||||
Option "HorizontalScrolling" "on"
|
|
||||||
Option "SendEventsMode" "enabled"
|
|
||||||
Option "Tapping" "on"
|
|
||||||
Option "TappingDragLock" "on"
|
|
||||||
Option "DisableWhileTyping" "off"
|
|
||||||
Option "Resolution" "3000"
|
|
||||||
EndSection
|
|
||||||
|
|
||||||
Section "ServerLayout"
|
Section "ServerLayout"
|
||||||
Identifier "layout"
|
Identifier "layout"
|
||||||
Screen 0 "nvidia"
|
Screen 0 "nvidia"
|
||||||
Inactive "amdgpu"
|
Inactive "amdgpu"
|
||||||
EndSection
|
EndSection
|
||||||
|
|
||||||
|
Section "Monitor"
|
||||||
|
Identifier "Monitor"
|
||||||
|
EndSection
|
||||||
|
|
||||||
Section "Device"
|
Section "Device"
|
||||||
Identifier "nvidia"
|
Identifier "nvidia"
|
||||||
Driver "nvidia"
|
Driver "nvidia"
|
||||||
|
|
@ -47,7 +18,6 @@ EndSection
|
||||||
Section "Screen"
|
Section "Screen"
|
||||||
Identifier "nvidia"
|
Identifier "nvidia"
|
||||||
Device "nvidia"
|
Device "nvidia"
|
||||||
Option "RandRRotation" "on"
|
|
||||||
Option "AllowEmptyInitialConfiguration"
|
Option "AllowEmptyInitialConfiguration"
|
||||||
EndSection
|
EndSection
|
||||||
|
|
||||||
|
|
|
||||||
16
hosts/gerg-desktop/shared.conf
Normal file
16
hosts/gerg-desktop/shared.conf
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
Section "ServerFlags"
|
||||||
|
Option "AllowMouseOpenFail" "on"
|
||||||
|
Option "DontZap" "on"
|
||||||
|
Option "StandbyTime" "0"
|
||||||
|
Option "SuspendTime" "0"
|
||||||
|
Option "OffTime" "0"
|
||||||
|
Option "BlankTime" "0"
|
||||||
|
EndSection
|
||||||
|
|
||||||
|
Section "InputClass"
|
||||||
|
Identifier "libinput pointer catchall"
|
||||||
|
MatchIsPointer "on"
|
||||||
|
MatchDevicePath "/dev/input/event*"
|
||||||
|
Driver "libinput"
|
||||||
|
Option "AccelProfile" "flat"
|
||||||
|
EndSection
|
||||||
|
|
@ -32,14 +32,14 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
config = lib.mkForce "";
|
|
||||||
|
|
||||||
displayManager.setupCommands = lib.mkBefore ''
|
displayManager.setupCommands = lib.mkBefore ''
|
||||||
if ! [ -e "/etc/Xorg/ONE_MONITOR" ] ; then
|
if ! [ -e "/etc/Xorg/ONE_MONITOR" ] ; then
|
||||||
${lib.getExe cfg_monitors}
|
${lib.getExe cfg_monitors}
|
||||||
fi
|
fi
|
||||||
${lib.getExe pkgs.xorg.xset} -dpms
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
config = lib.mkForce (builtins.readFile "${_dir}/shared.conf");
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,8 @@
|
||||||
config = lib.mkIf config.local.DE.dwm.enable {
|
config = lib.mkIf config.local.DE.dwm.enable {
|
||||||
systemd.user.services = {
|
systemd.user.services = {
|
||||||
sxhkd = {
|
sxhkd = {
|
||||||
path = [ pkgs.sxhkd ];
|
|
||||||
script = "sxhkd -c /etc/sxhkd/sxhkdrc";
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
ExecStart = "${lib.getExe pkgs.sxhkd} -c /etc/sxhkd/sxhkdrc";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
RestartSec = 2;
|
RestartSec = 2;
|
||||||
ExecReload = "pkill -usr1 -x $MAINPID";
|
ExecReload = "pkill -usr1 -x $MAINPID";
|
||||||
|
|
@ -21,9 +20,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
picom = {
|
picom = {
|
||||||
path = [ pkgs.picom ];
|
|
||||||
script = "picom";
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
ExecStart = "${lib.getExe pkgs.picom} --backend glx";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
RestartSec = 2;
|
RestartSec = 2;
|
||||||
ExecReload = "pkill -usr1 -x $MAINPID";
|
ExecReload = "pkill -usr1 -x $MAINPID";
|
||||||
|
|
@ -79,15 +77,22 @@
|
||||||
numlockx
|
numlockx
|
||||||
picom
|
picom
|
||||||
sxhkd
|
sxhkd
|
||||||
alock
|
xscreensaver
|
||||||
;
|
;
|
||||||
|
|
||||||
|
xsecurelock = pkgs.writeShellScriptBin "xsecurelock" ''
|
||||||
|
export XSECURELOCK_BLANK_TIMEOUT="30"
|
||||||
|
export XSECURELOCK_AUTH_TIMEOUT="30"
|
||||||
|
export XSECURELOCK_BLANK_DPMS_STATE="off"
|
||||||
|
export XSECURELOCK_BACKGROUND_COLOR="#000000"
|
||||||
|
export XSECURELOCK_AUTH_BACKGROUND_COLOR="#080808"
|
||||||
|
export XSECURELOCK_AUTH_FOREGROUND_COLOR="#bdbdbd"
|
||||||
|
export XSECURELOCK_FONT="Overpass"
|
||||||
|
export XSECURELOCK_SHOW_DATETIME="1"
|
||||||
|
${lib.getExe pkgs.xsecurelock}
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
etc = {
|
etc = {
|
||||||
"xdg/Xresources".text = ''
|
|
||||||
ALock*input.frame*input: #74b2ff
|
|
||||||
ALock*input.frame*check: #36c692
|
|
||||||
ALock*Input.frame*width: 2
|
|
||||||
'';
|
|
||||||
"sxhkd/sxhkdrc".text = ''
|
"sxhkd/sxhkdrc".text = ''
|
||||||
XF86AudioPlay
|
XF86AudioPlay
|
||||||
playerctl play-pause
|
playerctl play-pause
|
||||||
|
|
@ -116,7 +121,7 @@
|
||||||
super + ctrl + r
|
super + ctrl + r
|
||||||
pkill -usr1 -x sxhkd
|
pkill -usr1 -x sxhkd
|
||||||
super + ctrl + l
|
super + ctrl + l
|
||||||
sleep 1 && xset dpms force off && alock
|
xsecurelock
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue