replace top bar with eww bar
This commit is contained in:
parent
fcb7c0cd68
commit
ac3df09b6b
8 changed files with 172 additions and 194 deletions
|
@ -32,98 +32,12 @@
|
|||
target = "sway-session.target";
|
||||
};
|
||||
settings = {
|
||||
infobar = {
|
||||
layer = "top";
|
||||
position = "top";
|
||||
modules-left = ["memory" "cpu" "network" "group/bats"];
|
||||
modules-center = ["sway/window"];
|
||||
modules-right = ["clock"];
|
||||
"group/bats" = {
|
||||
orientation = "inherit";
|
||||
modules = ["battery#bat0" "battery#bat1" "upower#headphones"];
|
||||
};
|
||||
"battery#bat0" = {
|
||||
adapter = "AC";
|
||||
bat = "BAT0";
|
||||
interval = 2;
|
||||
format = "{icon} {capacity}% {time}";
|
||||
format-charging = " {icon} {capacity}% {time}";
|
||||
format-time = "{h}:{m}";
|
||||
format-icons = [
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
];
|
||||
tooltip = true;
|
||||
tooltip-format = "BAT0: {cycles} cycles";
|
||||
};
|
||||
"battery#bat1" = {
|
||||
adapter = "AC";
|
||||
bat = "BAT1";
|
||||
interval = 2;
|
||||
format = " {icon} {capacity}% {time}";
|
||||
format-time = "{H}:{M}";
|
||||
format-icons = [
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
];
|
||||
tooltip = true;
|
||||
tooltip-format = "BAT1: {cycles} cycles";
|
||||
};
|
||||
"upower#headphones" = {
|
||||
native-path = "/org/bluez/hci0/dev_4C_87_5D_29_B3_76";
|
||||
format = " {percentage} {time}";
|
||||
hide-if-empty = true;
|
||||
show-icon = false;
|
||||
};
|
||||
};
|
||||
interactiveBar = {
|
||||
layer = "top";
|
||||
position = "bottom";
|
||||
modules-left = ["sway/workspaces" "sway/mode"];
|
||||
modules-center = ["tray"];
|
||||
modules-right = ["wlr/taskbar"];
|
||||
};
|
||||
# mainBar = {
|
||||
# layer = "top";
|
||||
# position = "top";
|
||||
# height = 30;
|
||||
# output = [
|
||||
# "eDP-1"
|
||||
# "HDMI-A-1"
|
||||
# ];
|
||||
# modules-left = ["sway/workspaces" "sway/mode" "wlr/taskbar"];
|
||||
# modules-center = ["sway/window" "custom/hello-from-waybar"];
|
||||
# modules-right = ["mpd" "custom/mymodule#with-css-id" "temperature"];
|
||||
|
||||
# "sway/workspaces" = {
|
||||
# disable-scroll = true;
|
||||
# all-outputs = true;
|
||||
# };
|
||||
# "custom/hello-from-waybar" = {
|
||||
# format = "hello {}";
|
||||
# max-length = 40;
|
||||
# interval = "once";
|
||||
# exec = pkgs.writeShellScript "hello-from-waybar" ''
|
||||
# echo "from within waybar"
|
||||
# '';
|
||||
# };
|
||||
# };
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -163,6 +77,18 @@
|
|||
xkb_variant = "altgr-intl";
|
||||
};
|
||||
};
|
||||
startup = [
|
||||
{
|
||||
command = "eww open topBar";
|
||||
}
|
||||
{
|
||||
command = "pkill nm-applet; sleep 1 && nm-applet";
|
||||
always = true;
|
||||
}
|
||||
{
|
||||
command = "sleep 1 && mullvad-gui";
|
||||
}
|
||||
];
|
||||
bars = [];
|
||||
menu = "wofi -d";
|
||||
modifier = "Mod4";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue