mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
Add further configuration
while sway seems to work pretty well the following parts are not very welcoming: * waybar (multiple modules do not behave as documented) * nm-applet * systemd-integration due to "normal" call via greetd
This commit is contained in:
parent
46a7a14628
commit
51480e20b6
@ -19,6 +19,8 @@
|
|||||||
# enable X11 with lightdm and i3
|
# enable X11 with lightdm and i3
|
||||||
graphical = {
|
graphical = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
sway.enable = true;
|
||||||
|
i3.enable = false;
|
||||||
# set dpi if used in mobile applications
|
# set dpi if used in mobile applications
|
||||||
# dpi = 180;
|
# dpi = 180;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -57,6 +57,10 @@ with lib; {
|
|||||||
printing.enable = true;
|
printing.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.nm-applet = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
|
|||||||
@ -11,6 +11,7 @@
|
|||||||
./zsh.nix
|
./zsh.nix
|
||||||
|
|
||||||
./sway.nix
|
./sway.nix
|
||||||
|
./waybar.nix
|
||||||
];
|
];
|
||||||
services = {
|
services = {
|
||||||
gnome-keyring = {
|
gnome-keyring = {
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
"${modifier}+Shift+q" = "kill";
|
"${modifier}+Shift+q" = "kill";
|
||||||
"${modifier}+d" = "exec ${pkgs.rofi}/bin/rofi -show drun";
|
"${modifier}+d" = "exec ${pkgs.rofi}/bin/rofi -show drun";
|
||||||
"${modifier}+Tab" = "exec ${pkgs.rofi}/bin/rofi -show window";
|
"${modifier}+Tab" = "exec ${pkgs.rofi}/bin/rofi -show window";
|
||||||
"${modifier}+BackSpace" = "mode $mode_system";
|
"${modifier}+BackSpace" = ''mode "$mode_system"'';
|
||||||
};
|
};
|
||||||
keycodebindings =
|
keycodebindings =
|
||||||
let
|
let
|
||||||
@ -37,8 +37,11 @@
|
|||||||
window = {
|
window = {
|
||||||
titlebar = true;
|
titlebar = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
bars = [];
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
set $mode_system System (l) lock, (CTRL+e) logout, (CTRL+r) reboot, (CTRL+s) shutdown
|
||||||
mode "$mode_system" {
|
mode "$mode_system" {
|
||||||
bindsym l exec --no-startup-id $i3lockwall, mode "default"
|
bindsym l exec --no-startup-id $i3lockwall, mode "default"
|
||||||
bindsym Ctrl+e exec --no-startup-id swaymsg exit, mode "default"
|
bindsym Ctrl+e exec --no-startup-id swaymsg exit, mode "default"
|
||||||
|
|||||||
@ -2,11 +2,50 @@
|
|||||||
{
|
{
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
systemd.enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
mainBar = {
|
mainBar = {
|
||||||
modules-left = [ "sway/workspaces" "sway/mode" ];
|
modules-left = [ "sway/workspaces" "sway/mode" ];
|
||||||
modules-center = [ "sway/window" ];
|
modules-center = [ "sway/window" ];
|
||||||
modules-right = [ "sway/tray" ];
|
modules-right = [ "idle_inhibitor" "sway/language" "battery" "network#wg" "network" "clock" "tray" ];
|
||||||
|
|
||||||
|
idle_inhibitor = {
|
||||||
|
format = "{icon}";
|
||||||
|
format-icons = {
|
||||||
|
activated = "";
|
||||||
|
deactivated = "";
|
||||||
|
};
|
||||||
|
battery = {
|
||||||
|
states = {
|
||||||
|
good = 95;
|
||||||
|
warning = 30;
|
||||||
|
critical = 15;
|
||||||
|
};
|
||||||
|
format = "{capacity}% {icon}";
|
||||||
|
format-charging = "{capacity}% ";
|
||||||
|
format-plugged = "{capacity}% ";
|
||||||
|
format-alt = "{time} {icon}";
|
||||||
|
format-icons = [ "" "" "" "" "" ];
|
||||||
|
};
|
||||||
|
network = {
|
||||||
|
format-wifi = "{essid} ({signalStrength}%) ";
|
||||||
|
format-ethernet = "{ipaddr}/{cidr} ";
|
||||||
|
tooltip-format = "{ifname} via {gwaddr} ";
|
||||||
|
format-linked = "{ifname} (No IP) ";
|
||||||
|
format-disconnected = "Disconnected ⚠";
|
||||||
|
format-alt = "{ifname}: {ipaddr}/{cidr}";
|
||||||
|
};
|
||||||
|
|
||||||
|
"network#wg" = {
|
||||||
|
interface = "wg-stelnet";
|
||||||
|
format-wifi = "{essid} ({signalStrength}%) ";
|
||||||
|
format-ethernet = "{ipaddr}/{cidr} ";
|
||||||
|
tooltip-format = "{ifname} via {gwaddr} ";
|
||||||
|
format-linked = "{ifname} (No IP) ";
|
||||||
|
format-disconnected = "Disconnected ⚠";
|
||||||
|
format-alt = "{ifname}: {ipaddr}/{cidr}";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user