romulus
This commit is contained in:
parent
af2735c0b2
commit
272e867aa6
5 changed files with 156 additions and 128 deletions
87
home/gnome/default.nix
Normal file
87
home/gnome/default.nix
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.pointerCursor = {
|
||||
name = "Adwaita";
|
||||
package = pkgs.gnome.adwaita-icon-theme;
|
||||
size = 32;
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
gnomeExtensions.run-or-raise
|
||||
];
|
||||
|
||||
dconf.settings = {
|
||||
"org/gnome-shell" = {
|
||||
enabled-extensions = [
|
||||
"run-or-raise@edvard.cz"
|
||||
];
|
||||
};
|
||||
"org/gnome/desktop/peripherals/touchpad" = {
|
||||
speed = 0.5;
|
||||
};
|
||||
"org/gnome/mutter" = {
|
||||
dynamic-workspaces = true;
|
||||
};
|
||||
"org/gnome/desktop/session" = {
|
||||
idle-delay = 600;
|
||||
};
|
||||
"org/gnome/settings-daemon/plugins/media-keys" = {
|
||||
screenreader = [];
|
||||
magnifier = [];
|
||||
magnifier-zoom-in = [];
|
||||
magnifier-zoom-out = [];
|
||||
help = [];
|
||||
};
|
||||
"org/gnome/shell/keybindings" = {
|
||||
toggle-quick-settings = ["<Super>comma"];
|
||||
};
|
||||
"org/gnome/desktop/wm/keybindings" = {
|
||||
move-to-monitor-down = [];
|
||||
move-to-monitor-left = [];
|
||||
move-to-monitor-right = [];
|
||||
move-to-monitor-up = [];
|
||||
move-to-workspace-last = [];
|
||||
switch-applications = ["<Super>Tab"];
|
||||
switch-applications-backward = ["<Shift><Super>Tab"];
|
||||
cycle-panels = [];
|
||||
cycle-panels-backward = [];
|
||||
cycle-group = [];
|
||||
cycle-group-backward = [];
|
||||
cycle-windows = [];
|
||||
cycle-windows-backward = [];
|
||||
focus-active-notification = [];
|
||||
switch-panels = [];
|
||||
switch-panels-backward = [];
|
||||
switch-to-workspace-last = [];
|
||||
switch-group = ["<Alt>Tab"];
|
||||
switch-group-backward = ["<Shift><Alt>Tab"];
|
||||
minimize = ["<Super>space"];
|
||||
maximize = ["<Super>k"];
|
||||
unmaximize = ["<Super>j"];
|
||||
toggle-tiled-left = ["<Super>h"];
|
||||
toggle-tiled-right = ["<Super>l"];
|
||||
close = ["<Super>w"];
|
||||
screensaver = ["<Super>BackSpace"];
|
||||
switch-input-source = ["<Alt><Super>space"];
|
||||
switch-input-source-backward = ["<Shift><Alt><Super>space"];
|
||||
move-to-workspace-1 = ["<Shift><Super>1"];
|
||||
move-to-workspace-2 = ["<Shift><Super>2"];
|
||||
move-to-workspace-3 = ["<Shift><Super>3"];
|
||||
move-to-workspace-4 = ["<Shift><Super>4"];
|
||||
move-to-workspace-left = ["<Shift><Super>Left"];
|
||||
move-to-workspace-right = ["<Shift><Super>Right"];
|
||||
switch-to-workspace-1 = ["<Super>1"];
|
||||
switch-to-workspace-2 = ["<Super>2"];
|
||||
switch-to-workspace-3 = ["<Super>3"];
|
||||
switch-to-workspace-4 = ["<Super>4"];
|
||||
switch-to-workspace-left = ["<Super>Left"];
|
||||
switch-to-workspace-right = ["<Super>Right"];
|
||||
switch-to-application-1 = [];
|
||||
switch-to-application-2 = [];
|
||||
switch-to-application-3 = [];
|
||||
switch-to-application-4 = [];
|
||||
};
|
||||
};
|
||||
xdg.configFile."run-or-raise/shortcuts.conf".source = ./run-or-raise.conf;
|
||||
}
|
||||
42
home/gnome/run-or-raise.conf
Normal file
42
home/gnome/run-or-raise.conf
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
# Here you list all the shortcuts.
|
||||
#
|
||||
# The shortcuts may be defined in two ways:
|
||||
#
|
||||
# 1. Run-or-raise form: shortcut,launch-command,[wm_class],[title]
|
||||
# * wm_class and title are optional and case sensitive
|
||||
# * if none is set, lowercased launch-command is compared with lowercased windows wm_classes and titles
|
||||
#
|
||||
# 2. Run only form: shortcut,calculate
|
||||
#
|
||||
# =================
|
||||
# Run or raise form
|
||||
# =================
|
||||
#
|
||||
# This line cycles any open gnome-terminal (matched by wm_class = Gnome-terminal on Ubuntu 17.10) OR if not found, launches new one.
|
||||
# If you're using Arch, you may want to match by wm_class = gnome-terminal-server , just check yourself by Alt+F2/lg/Windows
|
||||
<Super>t,gnome-terminal,gnome-terminal-server,
|
||||
<Super>n,nautilus,,
|
||||
<Super>f,firefox,,
|
||||
<Super>return,foot,,
|
||||
<Super>x,keepassxc,,,
|
||||
<Super>q,qutebrowser,,
|
||||
|
||||
# You may use regular expression in title or wm_class.
|
||||
# Just put the regular expression between slashes.
|
||||
# E.g. to jump to pidgin conversation window you may use this line
|
||||
# (that means any windows of wm_class Pidgin, not containing the title Buddy List)"
|
||||
# <Super>KP_1,pidgin,Pidgin,/^((?!Buddy List).)*$/
|
||||
|
||||
# Have the mail always at numpad-click.
|
||||
# <Super>KP_2,chromium-browser --app=https://mail.google.com/mail/u/0/#inbox
|
||||
|
||||
# =============
|
||||
# Run only form
|
||||
# =============
|
||||
#
|
||||
# This line will launch notify-send command.
|
||||
# <Super>h,notify-send Hello world
|
||||
|
||||
# Blank lines are allowed. Line starting with "#" means a comment.
|
||||
# Now delete these shortcuts and put here yours.
|
||||
# How to know wm_class? Alt+f2, lg, "windows" tab (at least on Ubuntu 17.10)
|
||||
Loading…
Add table
Add a link
Reference in a new issue