feat: set Gnome to use 120 Hz
This commit is contained in:
parent
9dafec8502
commit
a9f9b50ffe
|
@ -4,7 +4,7 @@
|
|||
# Graphics drivers
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
services.xserver.screenSection = ''
|
||||
Option "metamodes" "1920x1080_144 +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
|
||||
Option "metamodes" "1920x1080_120 +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
|
||||
'';
|
||||
|
||||
hardware.opengl = {
|
||||
|
|
|
@ -1,11 +1,18 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
left = "h";
|
||||
down = "j";
|
||||
up = "k";
|
||||
right = "l";
|
||||
in
|
||||
{
|
||||
dconf.settings = {
|
||||
"org/gnome/shell" = {
|
||||
enabled-extensions = [
|
||||
"user-theme@gnome-shell-extensions.gcampax.github.com"
|
||||
"pop-shell@system76.com"
|
||||
"native-window-placement@gnome-shell-extensions.gcampax.github.com" # works better with pop-shell
|
||||
"dash-to-panel@jderose9.github.com"
|
||||
"appindicatorsupport@rgcjonas.gmail.com"
|
||||
];
|
||||
|
@ -30,5 +37,41 @@
|
|||
"org/gnome/desktop/sound" = {
|
||||
theme-name = "Pop";
|
||||
};
|
||||
|
||||
# key bindings for pop-shell
|
||||
"org/gnome/mutter/wayland/keybindings" = {
|
||||
restore-shortcuts = [];
|
||||
};
|
||||
"org/gnome/shell/keybindings" = {
|
||||
open-application-menu = [];
|
||||
toggle-message-tray = ["<Super>v"];
|
||||
};
|
||||
"org/gnome/desktop/wm/keybindings" = {
|
||||
close = ["<Super>q"];
|
||||
minimize = ["<Super>comma"];
|
||||
toggle-maximized = ["<Super>m"];
|
||||
|
||||
switch-to-workspace-left = [];
|
||||
switch-to-workspace-right = [];
|
||||
|
||||
move-to-monitor-left = ["<Shift><Super>Left" "<Shift><Super>${left}"];
|
||||
move-to-workspace-down = ["<Shift><Super>Down" "<Shift><Super>${down}"];
|
||||
move-to-workspace-up = ["<Shift><Super>Up" "<Shift><Super>${up}"];
|
||||
move-to-monitor-right = ["<Shift><Super>Right" "<Shift><Super>${right}"];
|
||||
|
||||
switch-to-workspace-down = ["<Primary><Super>Down" "<Primary><Super>${down}"];
|
||||
switch-to-workspace-up = ["<Primary><Super>Down" "<Primary><Super>${up}"];
|
||||
};
|
||||
"org/gnome/mutter/keybindings" = {
|
||||
toggle-tiled-left = [];
|
||||
toggle-tiled-right = [];
|
||||
};
|
||||
"org/gnome/settings-daemon/plugins/media-keys" = {
|
||||
screensaver = ["<Super>Escape"];
|
||||
home = ["<Super>f"];
|
||||
email = ["<Super>e"];
|
||||
www = ["<Super>b"];
|
||||
rotate-video-lock-static = [];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
6
home/desktop/monitors.nix
Normal file
6
home/desktop/monitors.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
xdg.configFile."monitors.xml".source = ./monitors.xml;
|
||||
}
|
||||
|
23
home/desktop/monitors.xml
Normal file
23
home/desktop/monitors.xml
Normal file
|
@ -0,0 +1,23 @@
|
|||
<monitors version="2">
|
||||
<configuration>
|
||||
<logicalmonitor>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<scale>1</scale>
|
||||
<primary>yes</primary>
|
||||
<monitor>
|
||||
<monitorspec>
|
||||
<connector>DP-4</connector>
|
||||
<vendor>NVD</vendor>
|
||||
<product>G-SYNC 241910</product>
|
||||
<serial>#ASNICAsHCG3d</serial>
|
||||
</monitorspec>
|
||||
<mode>
|
||||
<width>1920</width>
|
||||
<height>1080</height>
|
||||
<rate>119.982177734375</rate>
|
||||
</mode>
|
||||
</monitor>
|
||||
</logicalmonitor>
|
||||
</configuration>
|
||||
</monitors>
|
|
@ -6,6 +6,7 @@ with pkgs;
|
|||
./shell
|
||||
./editors
|
||||
./desktop
|
||||
./desktop/monitors.nix
|
||||
./git.nix
|
||||
./keybase.nix
|
||||
./signal.nix
|
||||
|
|
Loading…
Reference in a new issue