mirror of
https://github.com/artagaz/nix-config.git
synced 2026-06-23 02:05:45 +07:00
updated the waybar's looks
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
# your system. Help is available in the configuration.nix(5) man page, on
|
# your system. Help is available in the configuration.nix(5) man page, on
|
||||||
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
||||||
|
|
||||||
{ inputs, self, ... }:
|
{ self, ... }:
|
||||||
{
|
{
|
||||||
flake.nixosModules.laptop = { pkgs, ... }: {
|
flake.nixosModules.laptop = { pkgs, ... }: {
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
||||||
# and may be overwritten by future invocations. Please make changes
|
|
||||||
# to /etc/nixos/configuration.nix instead.
|
|
||||||
|
|
||||||
{
|
{
|
||||||
flake.nixosModules.laptopHardware = { config, lib, pkgs, modulesPath, ... }: {
|
flake.nixosModules.laptopHardware = { config, lib, pkgs, modulesPath, ... }: {
|
||||||
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
|
# and may be overwritten by future invocations. Please make changes
|
||||||
|
# to /etc/nixos/configuration.nix instead.
|
||||||
|
|
||||||
imports =
|
imports =
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
vim = {
|
vim = {
|
||||||
luaConfigPost = ''
|
luaConfigPost = /* lua */ ''
|
||||||
vim.opt.shiftwidth = 2
|
vim.opt.shiftwidth = 2
|
||||||
-- vim.opt.colorcolumn = "80"
|
-- vim.opt.colorcolumn = "80"
|
||||||
'';
|
'';
|
||||||
|
|||||||
+21
-21
@@ -17,10 +17,10 @@
|
|||||||
settings = {
|
settings = {
|
||||||
bar = {
|
bar = {
|
||||||
height = 24;
|
height = 24;
|
||||||
spacing = 4;
|
spacing = 0;
|
||||||
modules-left = [ "niri/workspaces" "niri/language" ];
|
modules-left = [ "niri/workspaces" "niri/language" ];
|
||||||
modules-center = [ "niri/window" ];
|
modules-center = [ "niri/window" ];
|
||||||
modules-right = [ "tray" "wireplumber" "network" "bluetooth" "power-profiles-daemon" "backlight" "battery" "battery#bat2" "clock" "custom/power" ];
|
modules-right = [ "tray" "wireplumber" "network" "bluetooth" "backlight" "clock" "battery" "battery#bat2" "custom/power" ];
|
||||||
"niri/workspaces" = {
|
"niri/workspaces" = {
|
||||||
"disable-scroll" = true;
|
"disable-scroll" = true;
|
||||||
"all-outputs" = true;
|
"all-outputs" = true;
|
||||||
@@ -32,10 +32,9 @@
|
|||||||
};
|
};
|
||||||
"clock" = {
|
"clock" = {
|
||||||
"tooltip-format" = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
|
"tooltip-format" = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
|
||||||
"format-alt" = "{:%Y-%m-%d}";
|
|
||||||
};
|
};
|
||||||
"backlight" = {
|
"backlight" = {
|
||||||
"format" = "{percent}% {icon}";
|
"format" = "{icon} {percent}%";
|
||||||
"format-icons" = ["" "" "" "" "" "" "" "" ""];
|
"format-icons" = ["" "" "" "" "" "" "" "" ""];
|
||||||
};
|
};
|
||||||
"battery" = {
|
"battery" = {
|
||||||
@@ -49,7 +48,6 @@
|
|||||||
"format-full" = "{icon} {capacity}%";
|
"format-full" = "{icon} {capacity}%";
|
||||||
"format-charging" = " {capacity}%";
|
"format-charging" = " {capacity}%";
|
||||||
"format-plugged" = " {capacity}%";
|
"format-plugged" = " {capacity}%";
|
||||||
"format-alt" = "{icon} {time}";
|
|
||||||
"format-icons" = ["" "" "" "" ""];
|
"format-icons" = ["" "" "" "" ""];
|
||||||
};
|
};
|
||||||
"battery#bat2" = {
|
"battery#bat2" = {
|
||||||
@@ -63,20 +61,8 @@
|
|||||||
"format-full" = "{icon} {capacity}%";
|
"format-full" = "{icon} {capacity}%";
|
||||||
"format-charging" = " {capacity}%";
|
"format-charging" = " {capacity}%";
|
||||||
"format-plugged" = " {capacity}%";
|
"format-plugged" = " {capacity}%";
|
||||||
"format-alt" = "{icon} {time}";
|
|
||||||
"format-icons" = ["" "" "" "" ""];
|
"format-icons" = ["" "" "" "" ""];
|
||||||
};
|
};
|
||||||
"power-profiles-daemon" = {
|
|
||||||
"format" = "{icon}";
|
|
||||||
"tooltip-format" = "Power profile: {profile}\nDriver: {driver}";
|
|
||||||
"tooltip" = true;
|
|
||||||
"format-icons" = {
|
|
||||||
"default" = "";
|
|
||||||
"performance" = "";
|
|
||||||
"balanced" = "";
|
|
||||||
"power-saver" = "";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"bluetooth" = {
|
"bluetooth" = {
|
||||||
"format" = "";
|
"format" = "";
|
||||||
"format-off" = "";
|
"format-off" = "";
|
||||||
@@ -126,6 +112,7 @@
|
|||||||
/* Use box-shadow instead of border so the text isn't offset */
|
/* Use box-shadow instead of border so the text isn't offset */
|
||||||
box-shadow: inset 0 -3px transparent;
|
box-shadow: inset 0 -3px transparent;
|
||||||
/* Avoid rounded borders under each button name */
|
/* Avoid rounded borders under each button name */
|
||||||
|
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 4;
|
border-radius: 4;
|
||||||
margin: 2 2;
|
margin: 2 2;
|
||||||
@@ -156,16 +143,16 @@
|
|||||||
#wireplumber,
|
#wireplumber,
|
||||||
#network,
|
#network,
|
||||||
#backlight,
|
#backlight,
|
||||||
#power-profiles-daemon,
|
|
||||||
#battery,
|
|
||||||
#clock,
|
#clock,
|
||||||
|
#battery,
|
||||||
#custom-power {
|
#custom-power {
|
||||||
margin: 2 0;
|
margin: 2 2;
|
||||||
padding: 0 10px;
|
padding: 0 10;
|
||||||
color: @cursor;
|
color: @cursor;
|
||||||
border-radius: 4;
|
border-radius: 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#battery,
|
||||||
#bluetooth,
|
#bluetooth,
|
||||||
#wireplumber,
|
#wireplumber,
|
||||||
#custom-power,
|
#custom-power,
|
||||||
@@ -174,6 +161,19 @@
|
|||||||
color: @background;
|
color: @background;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* top right bottom left */
|
||||||
|
#battery {
|
||||||
|
padding: 0 5 0 10;
|
||||||
|
border-radius: 4 0 0 4;
|
||||||
|
margin: 2 0 2 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery.bat2 {
|
||||||
|
padding: 0 10 0 5;
|
||||||
|
border-radius: 0 4 4 0;
|
||||||
|
margin: 2 2 2 0;
|
||||||
|
}
|
||||||
|
|
||||||
#custom-power {
|
#custom-power {
|
||||||
background-color: @color8;
|
background-color: @color8;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user