fmt
This commit is contained in:
parent
3554ffe466
commit
fe6b13fbf8
2 changed files with 98 additions and 94 deletions
|
@ -1,12 +1,4 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
xdg.desktopEntries."rofi".name = "Rofi";
|
|
||||||
xdg.desktopEntries."rofi".exec = "rofi -show";
|
|
||||||
xdg.desktopEntries."rofi".noDisplay = true;
|
|
||||||
|
|
||||||
xdg.desktopEntries."rofi-theme-selector".name = "Rofi Theme Selector";
|
|
||||||
xdg.desktopEntries."rofi-theme-selector".exec = "rofi-theme-selector";
|
|
||||||
xdg.desktopEntries."rofi-theme-selector".noDisplay = true;
|
|
||||||
|
|
||||||
programs.rofi = {
|
programs.rofi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
cycle = false;
|
cycle = false;
|
||||||
|
@ -17,4 +9,17 @@
|
||||||
};
|
};
|
||||||
theme = ./theme.rasi;
|
theme = ./theme.rasi;
|
||||||
};
|
};
|
||||||
|
xdg.desktopEntries = {
|
||||||
|
"rofi" = {
|
||||||
|
name = "Rofi";
|
||||||
|
exec = "rofi -show";
|
||||||
|
noDisplay = true;
|
||||||
|
};
|
||||||
|
"rofi-theme-selector" = {
|
||||||
|
name = "Rofi Theme Selector";
|
||||||
|
exec = "rofi-theme-selector";
|
||||||
|
noDisplay = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,93 +1,92 @@
|
||||||
{ config
|
{ config, pkgs, ... }: {
|
||||||
, pkgs
|
|
||||||
, ...
|
|
||||||
}: {
|
|
||||||
programs.waybar.enable = true;
|
|
||||||
programs.waybar.systemd.enable = true;
|
|
||||||
programs.waybar.style = ./style.css;
|
|
||||||
xdg.configFile."waybar/colors.css".source = ./colors.css;
|
xdg.configFile."waybar/colors.css".source = ./colors.css;
|
||||||
programs.waybar.settings = {
|
programs.waybar = {
|
||||||
mainBar = {
|
enable = true;
|
||||||
layer = "top";
|
systemd.enable = true;
|
||||||
position = "top";
|
style = ./style.css;
|
||||||
height = 28;
|
settings = {
|
||||||
modules-left = [ "sway/workspaces" "wlr/workspaces" "sway/window" "hyprland/window" "sway/mode" "hyprland/submap" ];
|
mainBar = {
|
||||||
modules-center = [ ];
|
layer = "top";
|
||||||
modules-right = [ "tray" "idle_inhibitor" "network" "bluetooth" "pulseaudio" "backlight" "battery" "clock" ];
|
position = "top";
|
||||||
"sway/mode" = {
|
height = 28;
|
||||||
"format" = "{}";
|
modules-left = [ "sway/workspaces" "wlr/workspaces" "sway/window" "hyprland/window" "sway/mode" "hyprland/submap" ];
|
||||||
};
|
modules-center = [ ];
|
||||||
"sway/window" = {
|
modules-right = [ "tray" "idle_inhibitor" "network" "bluetooth" "pulseaudio" "backlight" "battery" "clock" ];
|
||||||
"tooltip" = false;
|
"sway/mode" = {
|
||||||
};
|
"format" = "{}";
|
||||||
"idle_inhibitor" = {
|
|
||||||
"format" = "{icon}";
|
|
||||||
"format-icons" = {
|
|
||||||
"activated" = "";
|
|
||||||
"deactivated" = "";
|
|
||||||
};
|
};
|
||||||
"tooltip" = false;
|
"sway/window" = {
|
||||||
};
|
"tooltip" = false;
|
||||||
"clock" = {
|
|
||||||
"tooltip" = false;
|
|
||||||
"interval" = 1;
|
|
||||||
"format" = "{:%I:%M}";
|
|
||||||
"format-alt" = "{:%d %B %Y, %A}";
|
|
||||||
};
|
|
||||||
"backlight" = {
|
|
||||||
"format" = "{icon}";
|
|
||||||
"format-icons" = [ "" "" "" "" ];
|
|
||||||
};
|
|
||||||
"battery" = {
|
|
||||||
"states" = {
|
|
||||||
"good" = 90;
|
|
||||||
"warning" = 20;
|
|
||||||
"critical" = 10;
|
|
||||||
};
|
};
|
||||||
"format" = "{icon}";
|
"idle_inhibitor" = {
|
||||||
"format-alt" = "{icon} {capacity}% ({time})";
|
"format" = "{icon}";
|
||||||
"format-charging" = " {capacity}%";
|
"format-icons" = {
|
||||||
"format-plugged" = "ﮣ {capacity}%";
|
"activated" = "";
|
||||||
"format-icons" = [ "" "" "" "" "" "" "" "" "" "" "" ];
|
"deactivated" = "";
|
||||||
"tooltip" = false;
|
};
|
||||||
};
|
"tooltip" = false;
|
||||||
"network" = {
|
};
|
||||||
"format-wifi" = "直";
|
"clock" = {
|
||||||
"format-ethernet" = "";
|
"tooltip" = false;
|
||||||
"format-linked" = "";
|
"interval" = 1;
|
||||||
"format-disconnected" = "睊";
|
"format" = "{:%I:%M}";
|
||||||
"format-alt" = "{ifname}: {ipaddr}/{cidr}";
|
"format-alt" = "{:%d %B %Y, %A}";
|
||||||
"tooltip" = false;
|
};
|
||||||
};
|
"backlight" = {
|
||||||
"pulseaudio" = {
|
"format" = "{icon}";
|
||||||
"tooltip" = false;
|
"format-icons" = [ "" "" "" "" ];
|
||||||
"format" = "{icon} {format_source}";
|
};
|
||||||
"format-muted" = "ﱝ {format_source}";
|
"battery" = {
|
||||||
"format-bluetooth" = " {icon} {format_source}";
|
"states" = {
|
||||||
"format-bluetooth-muted" = " ﱝ {format_source}";
|
"good" = 90;
|
||||||
"format-source" = "";
|
"warning" = 20;
|
||||||
"format-source-muted" = "";
|
"critical" = 10;
|
||||||
"format-icons" = {
|
};
|
||||||
"headphones" = "";
|
"format" = "{icon}";
|
||||||
"handsfree" = "";
|
"format-alt" = "{icon} {capacity}% ({time})";
|
||||||
"headset" = "";
|
"format-charging" = " {capacity}%";
|
||||||
"phone" = "";
|
"format-plugged" = "ﮣ {capacity}%";
|
||||||
"portable" = "";
|
"format-icons" = [ "" "" "" "" "" "" "" "" "" "" "" ];
|
||||||
"car" = "";
|
"tooltip" = false;
|
||||||
"default" = [ "奄" "奔" "墳" ];
|
};
|
||||||
|
"network" = {
|
||||||
|
"format-wifi" = "直";
|
||||||
|
"format-ethernet" = "";
|
||||||
|
"format-linked" = "";
|
||||||
|
"format-disconnected" = "睊";
|
||||||
|
"format-alt" = "{ifname}: {ipaddr}/{cidr}";
|
||||||
|
"tooltip" = false;
|
||||||
|
};
|
||||||
|
"pulseaudio" = {
|
||||||
|
"tooltip" = false;
|
||||||
|
"format" = "{icon} {format_source}";
|
||||||
|
"format-muted" = "ﱝ {format_source}";
|
||||||
|
"format-bluetooth" = " {icon} {format_source}";
|
||||||
|
"format-bluetooth-muted" = " ﱝ {format_source}";
|
||||||
|
"format-source" = "";
|
||||||
|
"format-source-muted" = "";
|
||||||
|
"format-icons" = {
|
||||||
|
"headphones" = "";
|
||||||
|
"handsfree" = "";
|
||||||
|
"headset" = "";
|
||||||
|
"phone" = "";
|
||||||
|
"portable" = "";
|
||||||
|
"car" = "";
|
||||||
|
"default" = [ "奄" "奔" "墳" ];
|
||||||
|
};
|
||||||
|
"on-click" = "${pkgs.pavucontrol}/bin/pavucontrol";
|
||||||
|
};
|
||||||
|
"bluetooth" = {
|
||||||
|
"format" = "";
|
||||||
|
"format-connected" = "";
|
||||||
|
"format-disabled" = "";
|
||||||
|
"format-off" = "";
|
||||||
|
"format-connected-battery" = " {device_battery_percentage}%";
|
||||||
|
"on-click" = "${pkgs.blueman}/bin/blueman-manager";
|
||||||
|
};
|
||||||
|
"tray" = {
|
||||||
|
"spacing" = 4;
|
||||||
};
|
};
|
||||||
"on-click" = "${pkgs.pavucontrol}/bin/pavucontrol";
|
|
||||||
};
|
|
||||||
"bluetooth" = {
|
|
||||||
"format" = "";
|
|
||||||
"format-connected" = "";
|
|
||||||
"format-disabled" = "";
|
|
||||||
"format-off" = "";
|
|
||||||
"format-connected-battery" = " {device_battery_percentage}%";
|
|
||||||
"on-click" = "${pkgs.blueman}/bin/blueman-manager";
|
|
||||||
};
|
|
||||||
"tray" = {
|
|
||||||
"spacing" = 4;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue