✨ Replaced waybar and swaync with Hyprpanel and dunst
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
./waybar
|
||||
./hypridle
|
||||
./hyprlock
|
||||
./hyprpanel
|
||||
./hyprshot.nix
|
||||
./settings.nix
|
||||
./swaync
|
||||
|
110
home-manager/hyprland/hyprpanel/default.nix
Normal file
110
home-manager/hyprland/hyprpanel/default.nix
Normal file
@ -0,0 +1,110 @@
|
||||
{ inputs, ... }:
|
||||
let
|
||||
common = import ../../../common.nix;
|
||||
theme = import ../../../theme.nix;
|
||||
in
|
||||
{
|
||||
imports = [ inputs.hyprpanel.homeManagerModules.hyprpanel ];
|
||||
|
||||
programs.hyprpanel = {
|
||||
enable = true;
|
||||
# Automatically restart HyprPanel with systemd.
|
||||
systemd.enable = true;
|
||||
# Add hyprpanel to the Hyprland config 'exec-once'.
|
||||
hyprland.enable = true;
|
||||
# Fix the overwrite issue with HyprPanel.
|
||||
overwrite.enable = true;
|
||||
|
||||
# Import a theme from './themes/*.json'.
|
||||
theme = "";
|
||||
|
||||
# Override the final config with an arbitrary set.
|
||||
# Useful for overriding colors in your selected theme.
|
||||
# Default: {}
|
||||
override = {
|
||||
theme.bar.menus.text = "#123ABC";
|
||||
};
|
||||
|
||||
# Configure bar layouts for monitors.
|
||||
layout = {
|
||||
"bar.layouts" = {
|
||||
"*" = {
|
||||
left = [
|
||||
"dashboard"
|
||||
"workspaces"
|
||||
"windowtitle"
|
||||
];
|
||||
middle = [ "media" ];
|
||||
right = [
|
||||
"kbinput"
|
||||
"volume"
|
||||
"network"
|
||||
"systray"
|
||||
"clock"
|
||||
"notifications"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Configure and theme almost all options from the GUI.
|
||||
# Options that require '{}' or '[]' are not yet implemented,
|
||||
# except for the layout above.
|
||||
# See 'https://hyprpanel.com/configuration/settings.html'.
|
||||
# Default: <same as gui>
|
||||
settings = {
|
||||
bar = {
|
||||
clock.format = "%a %b %d %H:%M";
|
||||
customModules.kbLayout.leftClick = "hyprctl switchxkblayout keychron-keychron-k8-pro next";
|
||||
launcher.autoDetectIcon = true;
|
||||
network.label = false;
|
||||
workspaces = {
|
||||
show_icons = false;
|
||||
show_numbered = true;
|
||||
};
|
||||
};
|
||||
|
||||
menus.clock = {
|
||||
time = {
|
||||
military = true;
|
||||
hideSeconds = true;
|
||||
};
|
||||
weather = {
|
||||
unit = "metric";
|
||||
location = "Bergen, Norway"; # TODO not working
|
||||
};
|
||||
};
|
||||
|
||||
menus.dashboard = {
|
||||
directories.enabled = false;
|
||||
shortcuts.left = {
|
||||
shortcut1 = {
|
||||
command = common.default.browser;
|
||||
icon = ""; # TODO replace with Zen icon
|
||||
tooltip = "Zen";
|
||||
};
|
||||
shortcut2 = {
|
||||
command = "spotify";
|
||||
icon = "";
|
||||
tooltip = "Spotify";
|
||||
};
|
||||
## shortcut3 === discord
|
||||
## shortcut4 === rofi -show drun
|
||||
};
|
||||
stats.enable_gpu = true;
|
||||
};
|
||||
|
||||
scalingPriority = "hyprland";
|
||||
|
||||
theme = {
|
||||
bar.transparent = true;
|
||||
font = {
|
||||
name = "${theme.nerdFont} NF";
|
||||
size = "16px";
|
||||
};
|
||||
};
|
||||
|
||||
wallpaper.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
@ -18,8 +18,7 @@ in
|
||||
"${app.terminal}"
|
||||
"hypridle"
|
||||
"systemctl --user start hyprpolkitagent"
|
||||
"swaync"
|
||||
"waybar"
|
||||
# "waybar"
|
||||
"waypaper --restore"
|
||||
];
|
||||
|
||||
|
@ -3,9 +3,8 @@ let
|
||||
theme = import ../../../theme.nix;
|
||||
in
|
||||
{
|
||||
# TODO inject font
|
||||
services.swaync = {
|
||||
enable = true;
|
||||
enable = false;
|
||||
style = lib.mkDefault ''
|
||||
* {
|
||||
all: unset;
|
||||
|
@ -1,5 +1,3 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
home.file.".config/waybar" = {
|
||||
source = ./config;
|
||||
|
Reference in New Issue
Block a user