Gnome : Add system controls.
This commit is contained in:
parent
1f343651d8
commit
7bca03fe48
|
@ -16,8 +16,8 @@ in {
|
||||||
rekey_normal("<Leader>q", "<cmd>BufferLineCyclePrev<cr>")
|
rekey_normal("<Leader>q", "<cmd>BufferLineCyclePrev<cr>")
|
||||||
|
|
||||||
-- Splits.
|
-- Splits.
|
||||||
rekey_normal("<Leader>-", "<cmd>vsplit<cr>")
|
rekey_normal("<Leader>\\", "<cmd>vsplit<cr>")
|
||||||
rekey_normal("<Leader>\\", "<cmd>split<cr>")
|
rekey_normal("<Leader>-", "<cmd>split<cr>")
|
||||||
rekey_normal("<Leader>=", "<C-w>=") -- Equalize split sizes.
|
rekey_normal("<Leader>=", "<C-w>=") -- Equalize split sizes.
|
||||||
rekey_normal("<Leader>c", "<C-w>q") -- Close split.
|
rekey_normal("<Leader>c", "<C-w>q") -- Close split.
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ ... }: let
|
{ setting, ... }: let
|
||||||
mod = "<Super>";
|
mod = "<Super>";
|
||||||
in {
|
in {
|
||||||
"org/gnome/desktop/wm/keybindings" = {
|
"org/gnome/desktop/wm/keybindings" = {
|
||||||
|
@ -62,6 +62,11 @@ in {
|
||||||
"org/gnome/settings-daemon/plugins/media-keys" = {
|
"org/gnome/settings-daemon/plugins/media-keys" = {
|
||||||
custom-keybindings = [
|
custom-keybindings = [
|
||||||
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/"
|
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/"
|
||||||
|
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/"
|
||||||
|
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/"
|
||||||
|
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom3/"
|
||||||
|
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom4/"
|
||||||
|
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom5/"
|
||||||
];
|
];
|
||||||
magnifier = [ "" ];
|
magnifier = [ "" ];
|
||||||
magnifier-zoom-in = [ "" ];
|
magnifier-zoom-in = [ "" ];
|
||||||
|
@ -76,6 +81,36 @@ in {
|
||||||
name = "gnome-terminal";
|
name = "gnome-terminal";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1" = {
|
||||||
|
binding = "${setting.sysctrl}z";
|
||||||
|
command = "systemctl suspend -i";
|
||||||
|
name = "System Sleep";
|
||||||
|
};
|
||||||
|
|
||||||
|
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2" = {
|
||||||
|
binding = "${setting.sysctrl}x";
|
||||||
|
command = "systemctl poweroff -i";
|
||||||
|
name = "System Poweroff";
|
||||||
|
};
|
||||||
|
|
||||||
|
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom3" = {
|
||||||
|
binding = "${setting.sysctrl}c";
|
||||||
|
command = "systemctl reboot -i";
|
||||||
|
name = "System Reboot";
|
||||||
|
};
|
||||||
|
|
||||||
|
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom4" = {
|
||||||
|
binding = "${setting.sysctrl}p";
|
||||||
|
command = "powersave toggle";
|
||||||
|
name = "Toggle Powersave";
|
||||||
|
};
|
||||||
|
|
||||||
|
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom5" = {
|
||||||
|
binding = "${setting.sysctrl}l";
|
||||||
|
command = "powerlimit toggle";
|
||||||
|
name = "Toggle Powerlimit";
|
||||||
|
};
|
||||||
|
|
||||||
"org/gnome/shell/keybindings" = {
|
"org/gnome/shell/keybindings" = {
|
||||||
focus-active-notification = [ "" ];
|
focus-active-notification = [ "" ];
|
||||||
open-application-menu = [ "" ];
|
open-application-menu = [ "" ];
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
browser.bin = "firefox-esr";
|
browser.bin = "firefox-esr";
|
||||||
terminal.bin = "foot";
|
terminal.bin = "foot";
|
||||||
dpiAware = false;
|
dpiAware = false;
|
||||||
sysctrl = "print";
|
sysctrl = "Print";
|
||||||
|
|
||||||
keyboard = {
|
keyboard = {
|
||||||
layouts = "us,ru";
|
layouts = "us,ru";
|
||||||
|
|
Loading…
Reference in a new issue