fix xkb issues, change espanso formatting, noctalia support
This commit is contained in:
parent
a100acda87
commit
4e3922c4a4
6 changed files with 257 additions and 48 deletions
78
home/modules/programs/noctalia.nix
Normal file
78
home/modules/programs/noctalia.nix
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
{ pkgs, inputs, ... }:
|
||||
{
|
||||
programs.noctalia-shell = {
|
||||
enable = true;
|
||||
systemd.enable = true;
|
||||
settings = {
|
||||
# configure noctalia here
|
||||
dock.enabled = false;
|
||||
osd.enabled = false;
|
||||
location.
|
||||
location = {
|
||||
weatherEnabled = false;
|
||||
monthBeforeDay = true;
|
||||
};
|
||||
general = {
|
||||
avatarImage = "/home/alisceon/Pictures/system/prof.png";
|
||||
radiusRatio = 0.2;
|
||||
};
|
||||
notifications = {
|
||||
density = "compact";
|
||||
location = "top";
|
||||
};
|
||||
appLauncher = {
|
||||
density = "compact";
|
||||
};
|
||||
bar = {
|
||||
density = "compact";
|
||||
position = "top";
|
||||
showCapsule = false;
|
||||
widgets = {
|
||||
left = [
|
||||
{
|
||||
id = "ControlCenter";
|
||||
useDistroLogo = true;
|
||||
}
|
||||
{
|
||||
hideUnoccupied = false;
|
||||
id = "Workspace";
|
||||
labelMode = "index";
|
||||
pillSize = 1;
|
||||
|
||||
}
|
||||
];
|
||||
center = [
|
||||
{
|
||||
id = "ActiveWindow";
|
||||
maxWidth = 512;
|
||||
showIcon = false;
|
||||
}
|
||||
];
|
||||
right = [
|
||||
{
|
||||
id = "Tray";
|
||||
}
|
||||
{
|
||||
id = "NotificationHistory";
|
||||
showUnreadBadge = true;
|
||||
unreadBadgeColor = "primary";
|
||||
}
|
||||
{
|
||||
id = "Battery";
|
||||
alwaysShowPercentage = true;
|
||||
warningThreshold = 30;
|
||||
}
|
||||
{
|
||||
id = "Clock";
|
||||
formatHorizontal = "HH:mm";
|
||||
formatVertical = "HH mm";
|
||||
useMonospacedFont = true;
|
||||
usePrimaryColor = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
@ -14,14 +14,12 @@ in
|
|||
imports = [
|
||||
./gtk.nix
|
||||
./xdg.nix
|
||||
./shells/noctalia.nix
|
||||
../../programs/foot.nix
|
||||
../../programs/rofi.nix
|
||||
../../programs/qutebrowser.nix
|
||||
../../programs/swaylock.nix
|
||||
../../programs/waybar.nix
|
||||
../../services/espanso.nix
|
||||
../../services/gnome-keyring.nix
|
||||
../../services/mako.nix
|
||||
../../services/swayidle.nix
|
||||
];
|
||||
|
||||
|
|
@ -32,7 +30,6 @@ in
|
|||
modifier = key_mod;
|
||||
startup = [
|
||||
{ command = "systemctl --user start libinput-gestures"; }
|
||||
{ command = "${uwsm} swaybg -m fill -i /home/alisceon/Pictures/system/bg.png"; }
|
||||
];
|
||||
bars = [ ];
|
||||
input = {
|
||||
|
|
@ -122,30 +119,16 @@ in
|
|||
"${key_mod}+${key_mod_misc}+Shift+Tab" = "workspace prev";
|
||||
|
||||
"Mod4+space" = "exec ${notify} -t 2000 \"$(${pkgs.xonsh}/bin/xonsh ${repoRoot}/util/toggle_xkb.xsh)\"";
|
||||
"${key_mod}+Shift+r" = "reload";
|
||||
"${key_mod}+Ctrl+r" = "restart";
|
||||
"${key_mod}+Backspace" = "exec ${nag} -m 'TuneD profiles:' -Z 'Performance' 'tuned-adm profile accelerator-performance' -Z 'Balanced' 'tuned-adm profile balanced' -Z 'Power Save' 'tuned-adm profile powersave'";
|
||||
"${key_mod}+Shift+q" = "kill";
|
||||
"Alt+F4" = "kill";
|
||||
|
||||
"${key_mod}+L" = "exec ${lock}";
|
||||
"${key_mod}+Escape" = "exec ${nag} -m 'Shutdown options:' -Z 'Power Off' 'systemctl poweroff' -Z 'Reboot' 'systemctl reboot' -Z 'Logout' 'swaymsg exit'";
|
||||
|
||||
"${key_mod}+Return" = "exec ${uwsm} ${term}";
|
||||
"${key_mod}+d" = "exec ${uwsm} ${dmenu} -show drun";
|
||||
"${key_mod}+s" = "exec ${uwsm} ${espanso} search";
|
||||
"${key_mod}+Shift+e" = "exec ${uwsm} ${espanso} toggle";
|
||||
|
||||
"${key_mod}+Shift+s" = "exec grimshot savecopy area";
|
||||
"${key_mod}+Ctrl+s" = "exec grimshot savecopy output";
|
||||
|
||||
"XF86AudioRaiseVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ +3%";
|
||||
"XF86AudioLowerVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ -3%";
|
||||
"XF86AudioMute" = "exec pactl set-sink-mute @DEFAULT_SINK@ toggle";
|
||||
"XF86AudioPlay" = "exec playerctl play-pause";
|
||||
"${key_mod}+XF86AudioPlay" = "exec ${notify} -t 2000 \"$(${pkgs.xonsh}/bin/xonsh ${repoRoot}/util/swap_sound_device.xsh)\"";
|
||||
"XF86MonBrightnessUp" = "exec ${pkgs.light}/bin/light -A 9";
|
||||
"XF86MonBrightnessDown" = "exec ${pkgs.light}/bin/light -U 3";
|
||||
};
|
||||
window = {
|
||||
titlebar = false;
|
||||
|
|
|
|||
27
home/modules/wm/sway/shells/default.nix
Normal file
27
home/modules/wm/sway/shells/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ ... }:
|
||||
{
|
||||
commands = import ../../../../lib/commands.nix { inherit pkgs; };
|
||||
inherit (commands) uwsm lock term notify nag dmenu espanso;
|
||||
imports = [
|
||||
../../../programs/rofi.nix
|
||||
../../../programs/waybar.nix
|
||||
../../../services/mako.nix
|
||||
];
|
||||
wayland.windowManager.sway.config = {
|
||||
startup = [
|
||||
{ command = "${uwsm} swaybg -m fill -i /home/alisceon/Pictures/system/bg.png"; }
|
||||
];
|
||||
};
|
||||
keybindings = {
|
||||
"${key_mod}+L" = "exec ${lock}";
|
||||
"${key_mod}+Escape" = "exec ${nag} -m 'Shutdown options:' -Z 'Power Off' 'systemctl poweroff' -Z 'Reboot' 'systemctl reboot' -Z 'Logout' 'swaymsg exit'";
|
||||
"${key_mod}+Backspace" = "exec ${nag} -m 'TuneD profiles:' -Z 'Performance' 'tuned-adm profile accelerator-performance' -Z 'Balanced' 'tuned-adm profile balanced' -Z 'Power Save' 'tuned-adm profile powersave'"
|
||||
"${key_mod}+d" = "exec ${uwsm} ${dmenu} -show drun";
|
||||
"XF86AudioRaiseVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ +3%";
|
||||
"XF86AudioLowerVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ -3%";
|
||||
"XF86AudioMute" = "exec pactl set-sink-mute @DEFAULT_SINK@ toggle";
|
||||
"XF86MonBrightnessUp" = "exec ${pkgs.light}/bin/light -A 9";
|
||||
"XF86MonBrightnessDown" = "exec ${pkgs.light}/bin/light -U 3";
|
||||
"XF86AudioPlay" = "exec playerctl play-pause";
|
||||
};
|
||||
}
|
||||
18
home/modules/wm/sway/shells/noctalia.nix
Normal file
18
home/modules/wm/sway/shells/noctalia.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ ... }:
|
||||
let
|
||||
ipc = "noctalia-shell ipc call";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
../../../programs/noctalia.nix
|
||||
];
|
||||
wayland.windowManager.sway.config.keybindings = {
|
||||
"Mod4+d" = "exec ${ipc} launcher togggle";
|
||||
"XF86AudioRaiseVolume" = "exec ${ipc} volume increase";
|
||||
"XF86AudioLowerVolume" = "exec ${ipc} volume decrease";
|
||||
"XF86AudioMute" = "exec ${ipc} volume muteOutput";
|
||||
"XF86MonBrightnessUp" = "exec ${ipc} brightness increase";
|
||||
"XF86MonBrightnessDown" = "exec ${ipc} brightness decrease";
|
||||
"XF86AudioPlay" = "exec ${ipc} media playPause";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue