configured noctalia
This commit is contained in:
parent
0073ec63bb
commit
530c67601a
10 changed files with 312 additions and 112 deletions
|
|
@ -1,21 +1,19 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./common.nix ];
|
||||
gtk = {
|
||||
enable = true;
|
||||
colorScheme = "dark";
|
||||
};
|
||||
wayland.windowManager.niri.enable = true;
|
||||
xdg.configFile."niri/config.kdl".source = ./mods/niri.kdl;
|
||||
home = {
|
||||
username = "bogale";
|
||||
homeDirectory = "/home/bogale";
|
||||
packages = with pkgs; [ bibata-cursors brave-origin ];
|
||||
packages = with pkgs; [ bluez brave-origin libqalculate bibata-cursors ];
|
||||
};
|
||||
programs = {
|
||||
alacritty.enable = true;
|
||||
noctalia = {
|
||||
enable = true;
|
||||
systemd.enable = true;
|
||||
#launch_apps_as_systemd_services
|
||||
settings = ./mods/noctalia.toml;
|
||||
};
|
||||
};
|
||||
services.gammastep = {
|
||||
|
|
@ -31,78 +29,4 @@
|
|||
brightness-night = 0.6;
|
||||
};
|
||||
};
|
||||
wayland.windowManager.niri = {
|
||||
enable = true;
|
||||
settings = {
|
||||
gestures.hot-corners.off = {};
|
||||
binds."Mod+T".spawn = "alacritty";
|
||||
hotkey-overlay.skip-at-startup = {};
|
||||
screenshot-path = "~/Multimedia/Screenshots/%Y-%m-%d_%H-%M-%S.png";
|
||||
cursor = {
|
||||
xcursor-size = 24;
|
||||
xcursor-theme = "Bibata-Modern-Amber";
|
||||
};
|
||||
layout = {
|
||||
center-focused-column = "always";
|
||||
default-column-width.proportion = 0.8;
|
||||
};
|
||||
window-rule = {
|
||||
open-floating = false;
|
||||
clip-to-geometry = true;
|
||||
geometry-corner-radius = 24;
|
||||
};
|
||||
input = {
|
||||
touchpad = {
|
||||
dwt = {};
|
||||
tap = {};
|
||||
natural-scroll = {};
|
||||
};
|
||||
keyboard = {
|
||||
numlock = {};
|
||||
xkb = {
|
||||
layout = "us,ru";
|
||||
options = "grp:alt_shift_toggle";
|
||||
};
|
||||
};
|
||||
};
|
||||
binds = {
|
||||
"Print".screenshot = {};
|
||||
"Mod+Q".close-window = {};
|
||||
"Mod+F".maximize-column = {};
|
||||
"Mod+O".toggle-overview = {};
|
||||
"Mod+H".focus-column-left = {};
|
||||
"Mod+L".focus-column-right = {};
|
||||
"Alt+Print".screenshot-window = {};
|
||||
"Mod+Ctrl+K".focus-monitor-up = {};
|
||||
"Ctrl+Print".screenshot-screen = {};
|
||||
"Mod+Shift+H".move-column-left = {};
|
||||
"Mod+Ctrl+H".focus-monitor-left = {};
|
||||
"Mod+Ctrl+J".focus-monitor-down = {};
|
||||
"Mod+Shift+F".fullscreen-window = {};
|
||||
"Mod+Shift+L".move-column-right = {};
|
||||
"Mod+Ctrl+L".focus-monitor-right = {};
|
||||
"Mod+Shift+P".power-off-monitors = {};
|
||||
"Mod+K".focus-window-or-workspace-up = {};
|
||||
"Mod+J".focus-window-or-workspace-down = {};
|
||||
"Mod+Ctrl+Shift+K".move-column-to-monitor-up = {};
|
||||
"Mod+Ctrl+Shift+H".move-column-to-monitor-left = {};
|
||||
"Mod+Ctrl+Shift+J".move-column-to-monitor-down = {};
|
||||
"Mod+Ctrl+Shift+L".move-column-to-monitor-right = {};
|
||||
"Mod+Shift+K".move-window-up-or-to-workspace-up = {};
|
||||
"Mod+Shift+S".spawn-sh = "noctalia msg settings-open";
|
||||
"XF86AudioMute".spawn-sh = "noctalia msg volume-mute";
|
||||
"Mod+E".spawn-sh = "noctalia msg panel-toggle session";
|
||||
"Mod+D".spawn-sh = "noctalia msg panel-toggle launcher";
|
||||
"Mod+Shift+J".move-window-down-or-to-workspace-down = {};
|
||||
"Shift+XF86AudioMute".spawn-sh = "noctalia msg mic-mute";
|
||||
"XF86AudioRaiseVolume".spawn-sh = "noctalia msg volume-up";
|
||||
"XF86AudioLowerVolume".spawn-sh = "noctalia msg volume-down";
|
||||
"Mod+S".spawn-sh = "noctalia msg panel-toggle control-center";
|
||||
"XF86MonBrightnessUp".spawn-sh = "noctalia msg brightness-up";
|
||||
"XF86MonBrightnessDown".spawn-sh = "noctalia msg brightness-down";
|
||||
"Shift+XF86AudioRaiseVolume".spawn-sh = "noctalia msg mic-volume-up";
|
||||
"Shift+XF86AudioLowerVolume".spawn-sh = "noctalia msg mic-volume-down";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,10 +32,10 @@
|
|||
enable = true;
|
||||
defaultEditor = true;
|
||||
extraConfig = ''
|
||||
set number
|
||||
set expandtab
|
||||
set tabstop=4
|
||||
set shiftwidth=4
|
||||
set expandtab
|
||||
set number
|
||||
set relativenumber
|
||||
autocmd FileType nix set tabstop=2 shiftwidth=2
|
||||
'';
|
||||
|
|
|
|||
74
home/mods/niri.kdl
Normal file
74
home/mods/niri.kdl
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
include "./noctalia.kdl";
|
||||
gestures { hot-corners { off; }; };
|
||||
hotkey-overlay { skip-at-startup; };
|
||||
screenshot-path "~/Multimedia/Screenshots/%Y-%m-%d_%H-%M-%S.png";
|
||||
cursor {
|
||||
xcursor-size 24;
|
||||
xcursor-theme "Bibata-Modern-Amber";
|
||||
};
|
||||
layout {
|
||||
center-focused-column "always";
|
||||
default-column-width { proportion 0.8; };
|
||||
};
|
||||
window-rule {
|
||||
open-floating false;
|
||||
clip-to-geometry true;
|
||||
geometry-corner-radius 24;
|
||||
};
|
||||
input {
|
||||
touchpad {
|
||||
dwt;
|
||||
tap;
|
||||
natural-scroll;
|
||||
};
|
||||
keyboard {
|
||||
numlock;
|
||||
xkb {
|
||||
layout "us,ru";
|
||||
options "grp:alt_shift_toggle";
|
||||
};
|
||||
};
|
||||
};
|
||||
binds {
|
||||
Mod+T { spawn "alacritty"; };
|
||||
Mod+D { spawn-sh "noctalia msg panel-toggle launcher"; };
|
||||
Mod+E { spawn-sh "noctalia msg panel-toggle session"; };
|
||||
Mod+S { spawn-sh "noctalia msg panel-toggle control-center"; };
|
||||
Mod+Shift+S { spawn-sh "noctalia msg settings-open"; };
|
||||
|
||||
Mod+H { focus-column-left; };
|
||||
Mod+J { focus-window-or-workspace-down; };
|
||||
Mod+K { focus-window-or-workspace-up; };
|
||||
Mod+L { focus-column-right; };
|
||||
Mod+Shift+H { move-column-left; };
|
||||
Mod+Shift+J { move-window-down-or-to-workspace-down; };
|
||||
Mod+Shift+K { move-window-up-or-to-workspace-up; };
|
||||
Mod+Shift+L { move-column-right; };
|
||||
|
||||
Mod+Ctrl+H { focus-monitor-left; };
|
||||
Mod+Ctrl+J { focus-monitor-down; };
|
||||
Mod+Ctrl+K { focus-monitor-up; };
|
||||
Mod+Ctrl+L { focus-monitor-right; };
|
||||
Mod+Ctrl+Shift+H { move-column-to-monitor-left; };
|
||||
Mod+Ctrl+Shift+J { move-column-to-monitor-down; };
|
||||
Mod+Ctrl+Shift+K { move-column-to-monitor-up; };
|
||||
Mod+Ctrl+Shift+L { move-column-to-monitor-right; };
|
||||
|
||||
XF86MonBrightnessUp { spawn-sh "noctalia msg brightness-up"; };
|
||||
XF86MonBrightnessDown { spawn-sh "noctalia msg brightness-down"; };
|
||||
XF86AudioRaiseVolume { spawn-sh "noctalia msg volume-up"; };
|
||||
XF86AudioLowerVolume { spawn-sh "noctalia msg volume-down"; };
|
||||
XF86AudioMute { spawn-sh "noctalia msg volume-mute"; };
|
||||
Shift+XF86AudioRaiseVolume { spawn-sh "noctalia msg mic-volume-up"; };
|
||||
Shift+XF86AudioLowerVolume { spawn-sh "noctalia msg mic-volume-down"; };
|
||||
Shift+XF86AudioMute { spawn-sh "noctalia msg mic-mute"; };
|
||||
|
||||
Mod+O { toggle-overview; };
|
||||
Mod+Q { close-window; };
|
||||
Mod+F { maximize-column; };
|
||||
Mod+Shift+F { fullscreen-window; };
|
||||
Mod+Shift+P { power-off-monitors; };
|
||||
Print { screenshot; };
|
||||
Alt+Print { screenshot-window; };
|
||||
Ctrl+Print { screenshot-screen; };
|
||||
};
|
||||
190
home/mods/noctalia.toml
Normal file
190
home/mods/noctalia.toml
Normal file
|
|
@ -0,0 +1,190 @@
|
|||
[bar]
|
||||
order = [ "default" ]
|
||||
|
||||
[bar.default]
|
||||
center = [ "workspaces" ]
|
||||
end = [ "tray", "notifications", "battery", "keyboard_layout" ]
|
||||
margin_ends = 0
|
||||
start = [ "date", "clock", "sysmon" ]
|
||||
widget_spacing = 12
|
||||
|
||||
[bar.default.dead_zone.actions]
|
||||
right = "none"
|
||||
|
||||
[control_center]
|
||||
hidden_tabs = [ "media", "audio", "monitor", "notifications" ]
|
||||
|
||||
[[control_center.shortcuts]]
|
||||
type = "wifi"
|
||||
|
||||
[[control_center.shortcuts]]
|
||||
type = "bluetooth"
|
||||
|
||||
[[control_center.shortcuts]]
|
||||
type = "caffeine"
|
||||
|
||||
[[control_center.shortcuts]]
|
||||
type = "notification"
|
||||
|
||||
[[control_center.shortcuts]]
|
||||
type = "power_profile"
|
||||
|
||||
[desktop_widgets]
|
||||
enabled = false
|
||||
schema_version = 2
|
||||
widget_order = []
|
||||
|
||||
[desktop_widgets.grid]
|
||||
cell_size = 16
|
||||
major_interval = 4
|
||||
visible = true
|
||||
|
||||
[desktop_widgets.widget]
|
||||
|
||||
[idle]
|
||||
behavior_order = [ "screen-off", "lock", "lock-and-suspend" ]
|
||||
|
||||
[idle.behavior.lock]
|
||||
action = "lock"
|
||||
enabled = true
|
||||
timeout = 600.0
|
||||
|
||||
[idle.behavior.lock-and-suspend]
|
||||
action = "lock_and_suspend"
|
||||
enabled = true
|
||||
timeout = 900.0
|
||||
|
||||
[idle.behavior.screen-off]
|
||||
action = "screen_off"
|
||||
enabled = true
|
||||
timeout = 300.0
|
||||
|
||||
[location]
|
||||
address = "Chita"
|
||||
|
||||
[lockscreen]
|
||||
fingerprint = false
|
||||
|
||||
[lockscreen_widgets]
|
||||
enabled = false
|
||||
schema_version = 2
|
||||
widget_order = [ "lockscreen-login-box@eDP-1" ]
|
||||
|
||||
[lockscreen_widgets.grid]
|
||||
cell_size = 16
|
||||
major_interval = 4
|
||||
visible = true
|
||||
|
||||
[lockscreen_widgets.widget."lockscreen-login-box@eDP-1"]
|
||||
box_height = 196.0
|
||||
box_width = 810.0
|
||||
cx = 960.0
|
||||
cy = 898.0
|
||||
output = "eDP-1"
|
||||
placement_height = 1080.0
|
||||
placement_width = 1920.0
|
||||
rotation = 0.0
|
||||
type = "login_box"
|
||||
|
||||
[lockscreen_widgets.widget."lockscreen-login-box@eDP-1".settings]
|
||||
background_color = "surface_variant"
|
||||
background_opacity = 0.88
|
||||
background_radius = 12.0
|
||||
center_password_text = false
|
||||
input_opacity = 1.0
|
||||
input_radius = 6.0
|
||||
layout = "regular"
|
||||
show_caps_lock = true
|
||||
show_keyboard_layout = true
|
||||
show_login_button = true
|
||||
show_media = true
|
||||
show_session_buttons = true
|
||||
show_unlock_hint = true
|
||||
show_weather = true
|
||||
|
||||
[notification]
|
||||
history_retention_hours = 8
|
||||
layer = "overlay"
|
||||
|
||||
[osd.kinds]
|
||||
bluetooth = false
|
||||
caffeine = false
|
||||
dnd = false
|
||||
keyboard_backlight = false
|
||||
keyboard_layout = false
|
||||
media = false
|
||||
nightlight = false
|
||||
power_profile = false
|
||||
wifi = false
|
||||
|
||||
[shell]
|
||||
clipboard_enabled = false
|
||||
launch_apps_as_systemd_services = true
|
||||
screen_time_enabled = true
|
||||
|
||||
[shell.greeter_sync]
|
||||
auto_sync = true
|
||||
|
||||
[shell.screen_corners]
|
||||
enabled = true
|
||||
|
||||
[[shell.session.actions]]
|
||||
action = "lock"
|
||||
countdown_seconds = 0.0
|
||||
enabled = true
|
||||
shortcut = "1"
|
||||
variant = "default"
|
||||
|
||||
[[shell.session.actions]]
|
||||
action = "lock_and_suspend"
|
||||
countdown_seconds = 0.0
|
||||
enabled = true
|
||||
shortcut = "2"
|
||||
variant = "default"
|
||||
|
||||
[[shell.session.actions]]
|
||||
action = "command"
|
||||
command = "systemctl hibernate"
|
||||
countdown_seconds = 0.0
|
||||
enabled = true
|
||||
glyph = "hibernate"
|
||||
label = "Гибернация"
|
||||
shortcut = "3"
|
||||
variant = "default"
|
||||
|
||||
[[shell.session.actions]]
|
||||
action = "reboot"
|
||||
countdown_seconds = 0.0
|
||||
enabled = true
|
||||
shortcut = "4"
|
||||
variant = "default"
|
||||
|
||||
[[shell.session.actions]]
|
||||
action = "shutdown"
|
||||
countdown_seconds = 0.0
|
||||
enabled = true
|
||||
shortcut = "5"
|
||||
variant = "default"
|
||||
|
||||
[theme]
|
||||
builtin = "Tokyo-Night"
|
||||
|
||||
[theme.templates]
|
||||
builtin_ids = [ "alacritty", "gtk3", "gtk4", "kcolorscheme", "niri", "qt" ]
|
||||
enable_community_templates = false
|
||||
|
||||
[wallpaper]
|
||||
directory = "/home/bogale/Multimedia/Wallpapers"
|
||||
transition_on_startup = true
|
||||
|
||||
[wallpaper.default]
|
||||
path = "/home/bogale/Multimedia/Wallpapers/main.jpg"
|
||||
|
||||
[wallpaper.last]
|
||||
path = "/home/bogale/Multimedia/Wallpapers/main.jpg"
|
||||
|
||||
[wallpaper.monitors.eDP-1]
|
||||
path = "/home/bogale/Multimedia/Wallpapers/main.jpg"
|
||||
|
||||
[weather]
|
||||
refresh_minutes = 10
|
||||
|
|
@ -5,4 +5,9 @@
|
|||
username = "root";
|
||||
homeDirectory = "/root";
|
||||
};
|
||||
programs.bash.initExtra = ''
|
||||
session() {
|
||||
systemd-run -tGM $1@ --user --wait $SHELL
|
||||
}
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue