update tlp and bar
This commit is contained in:
36
home/system/dunst/default.nix
Normal file
36
home/system/dunst/default.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
accent = "#${config.lib.stylix.colors.base0D}";
|
||||
accent-alt = "#${config.lib.stylix.colors.base03}";
|
||||
background = "#${config.lib.stylix.colors.base00}";
|
||||
background-alt = "#${config.lib.stylix.colors.base01}";
|
||||
foreground = "#${config.lib.stylix.colors.base05}";
|
||||
font = "${config.stylix.fonts.sansSerif.name}";
|
||||
font-size = "${toString config.stylix.fonts.sizes.desktop}";
|
||||
|
||||
inherit (config.var.theme) rounding border-size gaps-in gaps-out;
|
||||
in {
|
||||
|
||||
services.dunst = {
|
||||
enable = true;
|
||||
settings = {
|
||||
global = {
|
||||
height = 300;
|
||||
offset = "15x15";
|
||||
origin = "top-right";
|
||||
follow = "keyboard";
|
||||
shrink = "no";
|
||||
transparency = 0;
|
||||
separator_height = 2;
|
||||
padding = gaps-in;
|
||||
horizontal_padding = gaps-in;
|
||||
corner_radius = rounding;
|
||||
gap_size = gaps-out;
|
||||
frame_width = border-size;
|
||||
markup = "full";
|
||||
word_wrap = "yes";
|
||||
ellipsize = "middle";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,11 +1,9 @@
|
||||
{ pkgs, ... }: {
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
bind = [
|
||||
"$mod,RETURN, exec, ${pkgs.kitty}/bin/kitty" # Kitty
|
||||
"$mod,RETURN, exec, ${pkgs.kitty}/bin/kitty" # Terminal
|
||||
"$mod,E, exec, ${pkgs.xfce.thunar}/bin/thunar" # Thunar
|
||||
# "$mod,B, exec, ${pkgs.qutebrowser}/bin/qutebrowser" # Qutebrowser
|
||||
"$mod,U, exec, ${pkgs.firefox}/bin/firefox" # Firefox
|
||||
# "$shiftMod,B, exec, ${pkgs.bitwarden}/bin/bitwarden" # Bitwarden
|
||||
"$shiftMod,Q, exec, ${pkgs.hyprlock}/bin/hyprlock" # Lock
|
||||
"$mod,X, exec, powermenu" # Powermenu
|
||||
"$mod,SPACE, exec, menu" # Launcher
|
||||
@@ -32,14 +30,16 @@
|
||||
"$mod,l, movefocus, r" # Move focus Right
|
||||
"$mod,k, movefocus, u" # Move focus Up
|
||||
"$mod,j, movefocus, d" # Move focus Down
|
||||
"$shiftMod,j, swapnext" # Swap with next client
|
||||
"$shiftMod,k, swapnext, prev" # Swap with previous client
|
||||
"$ctrlMod,k, focusmonitor, -1" # Focus previous monitor
|
||||
"$ctrlMod,j, focusmonitor, 1" # Focus next monitor
|
||||
"$ctrlMod,h, layoutmsg, addmaster" # Add to master
|
||||
"$ctrlMod,l, layoutmsg, removemaster" # Remove from master
|
||||
|
||||
"$mod,PRINT, exec, screenshot window" # Screenshot window
|
||||
",PRINT, exec, screenshot monitor" # Screenshot monitor
|
||||
"$shiftMod,PRINT, exec, screenshot region" # Screenshot region
|
||||
"$mod,PRINT, exec, screenshot window swappy" # Screenshot window
|
||||
",PRINT, exec, screenshot monitor swappy" # Screenshot monitor
|
||||
"$shiftMod,PRINT, exec, screenshot region swappy" # Screenshot region
|
||||
"ALT,PRINT, exec, screenshot region swappy" # Screenshot region then edit
|
||||
|
||||
# "$shiftMod,S, exec, ${pkgs.qutebrowser}/bin/qutebrowser :open $(wofi --show dmenu -L 1 -p ' Search on internet')" # Search on internet with wofi
|
||||
@@ -47,7 +47,6 @@
|
||||
"$shiftMod,E, exec, ${pkgs.wofi-emoji}/bin/wofi-emoji" # Emoji picker with wofi
|
||||
"$mod,F2, exec, night-shift" # Toggle night shift
|
||||
"$mod,F3, exec, night-shift" # Toggle night shift
|
||||
"$mod,B, exec, hyprpanel-toggle" # Toggle hyprpanel
|
||||
] ++ (builtins.concatLists (builtins.genList (i:
|
||||
let ws = i + 1;
|
||||
in [
|
||||
|
||||
@@ -34,6 +34,8 @@ in {
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
systemd.enable = true;
|
||||
systemd.variables = [ "--all" ];
|
||||
package =
|
||||
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||||
portalPackage =
|
||||
@@ -45,6 +47,7 @@ in {
|
||||
"$ctrlMod" = "SUPER_CTRL";
|
||||
|
||||
exec-once = [ "dbus-update-activation-environment --systemd --all" ];
|
||||
ecosystem = { no_update_news = true; };
|
||||
|
||||
plugin = { overview = { autoDrag = false; }; };
|
||||
|
||||
@@ -102,7 +105,10 @@ in {
|
||||
};
|
||||
|
||||
decoration = {
|
||||
blur = { enabled = if blur then "true" else "false"; };
|
||||
blur = {
|
||||
enabled = if blur then "true" else "false";
|
||||
size = 18;
|
||||
};
|
||||
shadow = {
|
||||
enabled = true;
|
||||
range = 20;
|
||||
@@ -116,7 +122,7 @@ in {
|
||||
master = {
|
||||
new_status = true;
|
||||
allow_small_split = true;
|
||||
mfact = 0.5;
|
||||
mfact = 0.6;
|
||||
};
|
||||
|
||||
gestures = { workspace_swipe = true; };
|
||||
@@ -130,8 +136,34 @@ in {
|
||||
new_window_takes_over_fullscreen = 2;
|
||||
};
|
||||
|
||||
windowrulev2 =
|
||||
[ "float, tag:modal" "pin, tag:modal" "center, tag:modal" ];
|
||||
windowrulev2 = [
|
||||
"float, tag:modal"
|
||||
"pin, tag:modal"
|
||||
"center, tag:modal"
|
||||
"float, title:^(Media viewer)$"
|
||||
|
||||
# Bitwarden extension
|
||||
"float, title:^(.*Bitwarden Password Manager.*)$"
|
||||
|
||||
# make Firefox/Zen PiP window floating and sticky
|
||||
"float, title:^(Picture-in-Picture)$"
|
||||
"pin, title:^(Picture-in-Picture)$"
|
||||
|
||||
# idle inhibit while watching videos
|
||||
"idleinhibit focus, class:^(mpv|.+exe|celluloid)$"
|
||||
"idleinhibit focus, class:^(zen)$, title:^(.*YouTube.*)$"
|
||||
"idleinhibit fullscreen, class:^(zen)$"
|
||||
|
||||
"dimaround, class:^(gcr-prompter)$"
|
||||
"dimaround, class:^(xdg-desktop-portal-gtk)$"
|
||||
"dimaround, class:^(polkit-gnome-authentication-agent-1)$"
|
||||
"dimaround, class:^(zen)$, title:^(File Upload)$"
|
||||
|
||||
# fix xwayland apps
|
||||
"rounding 0, xwayland:1"
|
||||
"center, class:^(.*jetbrains.*)$, title:^(Confirm Exit|Open Project|win424|win201|splash)$"
|
||||
"size 640 400, class:^(.*jetbrains.*)$, title:^(splash)$"
|
||||
];
|
||||
|
||||
layerrule = [ "noanim, launcher" "noanim, ^ags-.*" ];
|
||||
|
||||
@@ -151,6 +183,6 @@ in {
|
||||
};
|
||||
};
|
||||
};
|
||||
systemd.user.targets.hyprland-session.Unit.Wants =
|
||||
[ "xdg-desktop-autostart.target" ];
|
||||
# systemd.user.targets.hyprland-session.Unit.Wants =
|
||||
# [ "xdg-desktop-autostart.target" ];
|
||||
}
|
||||
|
||||
@@ -3,32 +3,36 @@
|
||||
windowrulev2 = [
|
||||
"workspace 2, class:^(emacs)$"
|
||||
"workspace 3, class:^(kitty)$"
|
||||
"workspace 3, class:^(com.mitchellh.ghostty)$"
|
||||
"workspace 9, class:^(org.qutebrowser.qutebrowser)$"
|
||||
"workspace 9, title:^(Chromium)$"
|
||||
"fullscreen, class:^(wlogout)$"
|
||||
"float, class:^(Zotero)$"
|
||||
"size 810 200, class:^(Zotero)$,title:^(Quick Format Citation)*$"
|
||||
"float, class:^(firefox)$,title:^(Certificate for )*$"
|
||||
"float, class:^(firefox)$,title:^(.*Firefox — Sharing Indicator.*)$"
|
||||
"float, class:^(firefox)$,title:^(.*Presensi Mahasiswa.*)$"
|
||||
"float, class:(firefox),title:^(Extension)(.*)$"
|
||||
"float, class:^(firefox)$,title:^(Extension)(.*)$"
|
||||
"float, class:^(pcmanfm)$,title:^(Confirm File Replacing)$"
|
||||
"float, class:^(nemo)$,title:^(Confirm File Replacing)$"
|
||||
"float, title:^(Confirm File Replacing)$"
|
||||
"float, class:thunar,title:^(Rename.*)$"
|
||||
"float, class:^(org.inkscape.Inkscape)$"
|
||||
"float, class:^(nm-connection-editor)$"
|
||||
"float, class:^(.*blueman-manager.*)$"
|
||||
"size 530 300, class:^(.*blueman-manager.*)$"
|
||||
"move 100%-w-20 40, class:^(.*blueman-manager.*)$"
|
||||
"tag +portal, class:^(.*desktop-portal.*)$"
|
||||
"noborder, tag:portal"
|
||||
"noblur, class:portal"
|
||||
"noshadow, class:portal"
|
||||
"float, class:portal"
|
||||
"pin, class:portal"
|
||||
"noblur, tag:portal"
|
||||
"noshadow, tag:portal"
|
||||
"float, tag:portal"
|
||||
"pin, tag:portal"
|
||||
"pin, class:^(gcr-prompter)$"
|
||||
"float, title:^(Volume Control)$"
|
||||
"pin, title:^(Volume Control)$"
|
||||
"size 560 340, title:^(Volume Control)$"
|
||||
"move 100%-w-30 30, title:^(Volume Control)$"
|
||||
"move 100%-w-40 40, title:^(Volume Control)$"
|
||||
"float, class:^(spotube)$"
|
||||
"size 660 700, class:^(spotube)$"
|
||||
"move 100%-w-20 40, class:^(spotube)$"
|
||||
@@ -37,6 +41,7 @@
|
||||
"float, class:^(thunderbird)$,title:^(Edit Event:)$"
|
||||
"float, class:^(thunderbird)$,title:^(An error has occurred)$"
|
||||
"float, class:^(thunar)$,title:^(File Operation Progress)$"
|
||||
"float, class:^(firefox)$,title:^(.*Bitwarden Password Manager.*)$"
|
||||
"float, class:^(org.kde.polkit-kde-authentication-agent-1)$"
|
||||
"size 60% 55%, class:^(nwg-look)$"
|
||||
"center, class:^(nwg-look)$"
|
||||
@@ -44,6 +49,9 @@
|
||||
"float, class:^(virt-manager)$,title:^(Virtual Machine Manager)$"
|
||||
"size 440 220, class:^(virt-manager)$,title:^(Virtual Machine Manager)$"
|
||||
"center, class:^(virt-manager)$,title:^(Virtual Machine Manager)$"
|
||||
"stayfocused, class:(pinentry-)(.*)" # fix pinentry losing focus
|
||||
"rounding 10, class:kitty"
|
||||
# "float, class:.*xdg-desktop-portal.*"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,88 +2,98 @@
|
||||
{ config, ... }:
|
||||
let
|
||||
foreground = "rgba(216, 222, 233, 0.70)";
|
||||
imageStr = "screenshow"; # toString config.stylix.image;
|
||||
font = config.stylix.fonts.serif.name;
|
||||
imageStr = toString config.stylix.image;
|
||||
font = config.stylix.fonts.sansSerif.name;
|
||||
in {
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
grace = 5;
|
||||
grace = 3;
|
||||
no_fade_in = false;
|
||||
disable_loading_bar = false;
|
||||
};
|
||||
|
||||
# # BACKGROUND
|
||||
# background = {
|
||||
# monitor = "";
|
||||
# path = imageStr;
|
||||
# blur_passes = 0;
|
||||
# contrast = 0.8916;
|
||||
# brightness = 0.7172;
|
||||
# vibrancy = 0.1696;
|
||||
# vibrancy_darkness = 0.0;
|
||||
# };
|
||||
#
|
||||
# label = [
|
||||
# {
|
||||
# # Day-Month-Date
|
||||
# monitor = "";
|
||||
# text = ''cmd[update:1000] echo -e "$(date +"%A, %B %d")"'';
|
||||
# color = foreground;
|
||||
# font_size = 28;
|
||||
# font_family = font + " Bold";
|
||||
# position = "0, 490";
|
||||
# halign = "center";
|
||||
# valign = "center";
|
||||
# }
|
||||
# # Time
|
||||
# {
|
||||
# monitor = "";
|
||||
# text = ''cmd[update:1000] echo "<span>$(date +"%I:%M")</span>"'';
|
||||
# color = foreground;
|
||||
# font_size = 160;
|
||||
# font_family = "steelfish outline regular";
|
||||
# position = "0, 370";
|
||||
# halign = "center";
|
||||
# valign = "center";
|
||||
# }
|
||||
# # USER
|
||||
# {
|
||||
# monitor = "";
|
||||
# text = " $USER";
|
||||
# color = foreground;
|
||||
# outline_thickness = 2;
|
||||
# dots_size = 0.2; # Scale of input-field height, 0.2 - 0.8
|
||||
# dots_spacing = 0.2; # Scale of dots' absolute size, 0.0 - 1.0
|
||||
# dots_center = true;
|
||||
# font_size = 18;
|
||||
# font_family = font + " Bold";
|
||||
# position = "0, -180";
|
||||
# halign = "center";
|
||||
# valign = "center";
|
||||
# }
|
||||
# ];
|
||||
#
|
||||
# # INPUT FIELD
|
||||
# input-field = [{
|
||||
# monitor = "";
|
||||
# size = "300, 60";
|
||||
# outline_thickness = 2;
|
||||
# dots_size = 0.2; # Scale of input-field height, 0.2 - 0.8
|
||||
# dots_spacing = 0.2; # Scale of dots' absolute size, 0.0 - 1.0
|
||||
# dots_center = true;
|
||||
# outer_color = "rgba(255, 255, 255, 0)";
|
||||
# inner_color = "rgba(255, 255, 255, 0.1)";
|
||||
# font_color = foreground;
|
||||
# fade_on_empty = false;
|
||||
# font_family = font + " Bold";
|
||||
# placeholder_text = "<i>🔒 Enter Password</i>";
|
||||
# hide_input = false;
|
||||
# position = "0, -250";
|
||||
# halign = "center";
|
||||
# valign = "center";
|
||||
# }];
|
||||
background = {
|
||||
path = "screenshot";
|
||||
blur_passes = 3;
|
||||
blur_size = 6;
|
||||
noise = 1.17e-2;
|
||||
contrast = 1.3; # Vibrant!!!
|
||||
brightness = 0.8;
|
||||
vibrancy = 0.21;
|
||||
vibrancy_darkness = 0.0;
|
||||
};
|
||||
|
||||
label = [
|
||||
# Hour
|
||||
{
|
||||
text = ''cmd[update:1000] echo "<b><big> $(date +"%H") </big></b>"'';
|
||||
color = "#${config.lib.stylix.colors.base06}";
|
||||
font_size = 112;
|
||||
font_family = font;
|
||||
shadow_passes = 2;
|
||||
shadow_boost = 0.4;
|
||||
shadow_size = 4;
|
||||
position = "0, 220";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
}
|
||||
{
|
||||
monitor = "";
|
||||
text = ''cmd[update:1000] echo "<b><big> $(date +"%M") </big></b>"'';
|
||||
color = "#${config.lib.stylix.colors.base06}";
|
||||
font_size = 112;
|
||||
font_family = font;
|
||||
shadow_passes = 2;
|
||||
shadow_boost = 0.4;
|
||||
shadow_size = 4;
|
||||
position = "0, 80";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
}
|
||||
{
|
||||
monitor = "";
|
||||
text =
|
||||
''cmd[update:18000000] echo "<b><big> "$(date +'%A')" </big></b>"'';
|
||||
color = "#${config.lib.stylix.colors.base07}";
|
||||
font_size = 22;
|
||||
font_family = font;
|
||||
position = "0, -10";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
}
|
||||
{
|
||||
monitor = "";
|
||||
text = ''cmd[update:18000000] echo "<b> "$(date +'%d %b')" </b>"'';
|
||||
color = "#${config.lib.stylix.colors.base07}";
|
||||
font_size = 18;
|
||||
font_family = font;
|
||||
position = "0, -40";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
}
|
||||
];
|
||||
|
||||
input-field = [{
|
||||
monitor = "";
|
||||
size = "250, 50";
|
||||
outline_thickness = 3;
|
||||
dots_size = 0.26; # Scale of input-field height, 0.2 - 0.8
|
||||
dots_spacing = 0.64; # Scale of dots' absolute size, 0.0 - 1.0
|
||||
dots_center = true;
|
||||
dots_rouding = -1;
|
||||
rounding = 22;
|
||||
outer_color = "#${config.lib.stylix.colors.base00}";
|
||||
inner_color = "#${config.lib.stylix.colors.base00}";
|
||||
font_color = "#${config.lib.stylix.colors.base06}";
|
||||
fade_on_empty = true;
|
||||
placeholder_text =
|
||||
"<i>Password...</i>"; # Text rendered in the input box when it's empty.
|
||||
position = "0, 120";
|
||||
halign = "center";
|
||||
valign = "bottom";
|
||||
}];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ let
|
||||
background = "#${config.lib.stylix.colors.base00}";
|
||||
background-alt = "#${config.lib.stylix.colors.base01}";
|
||||
foreground = "#${config.lib.stylix.colors.base05}";
|
||||
font = "${config.stylix.fonts.serif.name}";
|
||||
font = "${config.stylix.fonts.sansSerif.name}";
|
||||
fontSize = "${toString config.stylix.fonts.sizes.desktop}px";
|
||||
|
||||
inherit (config.var.theme) rounding border-size gaps-in gaps-out;
|
||||
@@ -22,81 +22,36 @@ in {
|
||||
overlay.enable = true;
|
||||
hyprland.enable = true;
|
||||
overwrite.enable = true;
|
||||
layout = {
|
||||
"bar.layouts" = {
|
||||
"0" = {
|
||||
left = [ "dashboard" "hypridle" "workspaces" "windowtitle" ];
|
||||
middle = [ "media" ];
|
||||
right = [
|
||||
"systray"
|
||||
"volume"
|
||||
"hyprsunset"
|
||||
"battery"
|
||||
"network"
|
||||
"cpu"
|
||||
"clock"
|
||||
"notifications"
|
||||
];
|
||||
};
|
||||
"*" = {
|
||||
left = [ "dashboard" "workspaces" "windowtitle" ];
|
||||
middle = [ "clock" ];
|
||||
right = [ "volume" "notifications" ];
|
||||
settings = {
|
||||
layout = {
|
||||
bar.layouts = {
|
||||
"0" = {
|
||||
left = [ "dashboard" "hypridle" "workspaces" "windowtitle" ];
|
||||
middle = [ "media" ];
|
||||
right = [
|
||||
"volume"
|
||||
"hyprsunset"
|
||||
"battery"
|
||||
"network"
|
||||
"bluetooth"
|
||||
"cpu"
|
||||
"clock"
|
||||
"systray"
|
||||
"notifications"
|
||||
];
|
||||
};
|
||||
"*" = {
|
||||
left = [ "dashboard" "workspaces" "windowtitle" ];
|
||||
middle = [ "clock" ];
|
||||
right = [ "volume" "notifications" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
override = {
|
||||
bar.battery.hideLabelWhenFull = true;
|
||||
bar.bluetooth.label = false;
|
||||
bar.clock.format = "%a, %d %b %H:%M";
|
||||
bar.customModules.hypridle.label = false;
|
||||
bar.customModules.hyprsunset.label = false;
|
||||
bar.customModules.hyprsunset.temperature = "4500k";
|
||||
bar.launcher.icon = "";
|
||||
bar.media.show_active_only = true;
|
||||
bar.network.label = false;
|
||||
bar.network.truncation_size = 12;
|
||||
bar.volume.label = false;
|
||||
bar.windowtitle.label = true;
|
||||
bar.workspaces.applicationIconEmptyWorkspace = "";
|
||||
bar.workspaces.hideUnoccupied = false;
|
||||
bar.workspaces.monitorSpecific = false;
|
||||
bar.workspaces.numbered_active_indicator = "underline";
|
||||
bar.workspaces.showApplicationIcons = false;
|
||||
bar.workspaces.showIcons = false;
|
||||
bar.workspaces.workspaces = 5;
|
||||
bar.workspaces.show_numbered = true;
|
||||
menus.clock.time.hideSeconds = true;
|
||||
menus.clock.time.military = true;
|
||||
menus.clock.weather.key = weatherapikey;
|
||||
menus.clock.weather.location = location;
|
||||
menus.clock.weather.unit = "metric";
|
||||
menus.dashboard.powermenu.avatar.image =
|
||||
"/home/${username}/.profile_picture.png";
|
||||
menus.dashboard.powermenu.confirmation = false;
|
||||
menus.dashboard.shortcuts.left.shortcut1.command = "firefox";
|
||||
menus.dashboard.shortcuts.left.shortcut1.icon = "";
|
||||
menus.dashboard.shortcuts.left.shortcut1.tooltip = "Firefox";
|
||||
menus.dashboard.shortcuts.left.shortcut2.command = "caffeine";
|
||||
menus.dashboard.shortcuts.left.shortcut2.icon = "";
|
||||
menus.dashboard.shortcuts.left.shortcut2.tooltip = "Caffeine";
|
||||
menus.dashboard.shortcuts.left.shortcut3.command = "night-shift";
|
||||
menus.dashboard.shortcuts.left.shortcut3.icon = "";
|
||||
menus.dashboard.shortcuts.left.shortcut3.tooltip = "Night-shift";
|
||||
menus.dashboard.shortcuts.left.shortcut4.command = "menu";
|
||||
menus.dashboard.shortcuts.left.shortcut4.icon = "";
|
||||
menus.dashboard.shortcuts.left.shortcut4.tooltip = "Search Apps";
|
||||
menus.dashboard.shortcuts.right.shortcut1.command = "hyprpicker -a";
|
||||
menus.dashboard.shortcuts.right.shortcut1.icon = "";
|
||||
menus.dashboard.shortcuts.right.shortcut1.tooltip = "Color Picker";
|
||||
menus.dashboard.shortcuts.right.shortcut3.command =
|
||||
"screenshot region swappy";
|
||||
menus.dashboard.shortcuts.right.shortcut3.icon = "";
|
||||
menus.dashboard.shortcuts.right.shortcut3.tooltip = "Screenshot";
|
||||
menus.dashboard.stats.enabled = false;
|
||||
theme.bar.background =
|
||||
"${background + (if transparentButtons then "00" else "")}";
|
||||
"${background + (if transparent then "00" else "")}";
|
||||
theme.bar.border_radius = "${toString rounding}px";
|
||||
theme.bar.buttons.background =
|
||||
"${(if transparent then background else background-alt)
|
||||
@@ -117,10 +72,9 @@ in {
|
||||
theme.bar.buttons.workspaces.available = accent-alt;
|
||||
theme.bar.buttons.workspaces.hover = accent-alt;
|
||||
theme.bar.buttons.workspaces.occupied = accent;
|
||||
theme.bar.buttons.y_margins =
|
||||
if floating && transparent then "0" else "8";
|
||||
theme.bar.buttons.y_margins = if transparentButtons then "0" else "8";
|
||||
theme.bar.dropdownGap = "3em";
|
||||
theme.bar.floating = if floating then "true" else "false";
|
||||
theme.bar.floating = floating;
|
||||
theme.bar.location = position;
|
||||
theme.bar.margin_bottom =
|
||||
"${if position == "top" then "0" else toString (gaps-in * 2)}px";
|
||||
@@ -176,6 +130,56 @@ in {
|
||||
theme.osd.muted_zero = true;
|
||||
theme.osd.orientation = "vertical";
|
||||
theme.osd.radius = "${toString rounding}px";
|
||||
|
||||
bar.workspaces.reverse_scroll = true;
|
||||
bar.battery.hideLabelWhenFull = true;
|
||||
bar.bluetooth.label = false;
|
||||
bar.clock.format = "%a, %d %b %H:%M";
|
||||
bar.customModules.hypridle.label = false;
|
||||
bar.customModules.hyprsunset.label = false;
|
||||
bar.customModules.hyprsunset.temperature = "4500k";
|
||||
bar.launcher.icon = "";
|
||||
bar.media.show_active_only = true;
|
||||
bar.network.label = false;
|
||||
bar.network.truncation_size = 12;
|
||||
bar.volume.label = false;
|
||||
bar.windowtitle.label = true;
|
||||
# bar.workspaces.applicationIconEmptyWorkspace = "";
|
||||
# bar.workspaces.hideUnoccupied = false;
|
||||
bar.workspaces.monitorSpecific = false;
|
||||
# bar.workspaces.numbered_active_indicator = "underline";
|
||||
# bar.workspaces.showApplicationIcons = false;
|
||||
bar.workspaces.show_icons = false;
|
||||
bar.workspaces.workspaces = 5;
|
||||
bar.workspaces.show_numbered = true;
|
||||
menus.clock.time.hideSeconds = true;
|
||||
menus.clock.time.military = true;
|
||||
menus.clock.weather.key = weatherapikey;
|
||||
menus.clock.weather.location = location;
|
||||
menus.clock.weather.unit = "metric";
|
||||
menus.dashboard.powermenu.avatar.image =
|
||||
"/home/${username}/.profile_picture.png";
|
||||
menus.dashboard.powermenu.confirmation = false;
|
||||
menus.dashboard.shortcuts.left.shortcut1.command = "firefox";
|
||||
menus.dashboard.shortcuts.left.shortcut1.icon = "";
|
||||
menus.dashboard.shortcuts.left.shortcut1.tooltip = "Firefox";
|
||||
menus.dashboard.shortcuts.left.shortcut2.command = "caffeine";
|
||||
menus.dashboard.shortcuts.left.shortcut2.icon = "";
|
||||
menus.dashboard.shortcuts.left.shortcut2.tooltip = "Caffeine";
|
||||
menus.dashboard.shortcuts.left.shortcut3.command = "night-shift";
|
||||
menus.dashboard.shortcuts.left.shortcut3.icon = "";
|
||||
menus.dashboard.shortcuts.left.shortcut3.tooltip = "Night-shift";
|
||||
menus.dashboard.shortcuts.left.shortcut4.command = "menu";
|
||||
menus.dashboard.shortcuts.left.shortcut4.icon = "";
|
||||
menus.dashboard.shortcuts.left.shortcut4.tooltip = "Search Apps";
|
||||
menus.dashboard.shortcuts.right.shortcut1.command = "hyprpicker -a";
|
||||
menus.dashboard.shortcuts.right.shortcut1.icon = "";
|
||||
menus.dashboard.shortcuts.right.shortcut1.tooltip = "Color Picker";
|
||||
menus.dashboard.shortcuts.right.shortcut3.command =
|
||||
"screenshot region swappy";
|
||||
menus.dashboard.shortcuts.right.shortcut3.icon = "";
|
||||
menus.dashboard.shortcuts.right.shortcut3.tooltip = "Screenshot";
|
||||
menus.dashboard.stats.enabled = false;
|
||||
wallpaper.enable = false;
|
||||
};
|
||||
};
|
||||
|
||||
216
home/system/waybar/default.nix
Normal file
216
home/system/waybar/default.nix
Normal file
@@ -0,0 +1,216 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
inherit (config.var.theme.bar) position;
|
||||
inherit (config.var.theme) rounding border-size gaps-in gaps-out;
|
||||
in {
|
||||
home.packages = with pkgs; [ playerctl ];
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
systemd = {
|
||||
enable = true;
|
||||
target = "hyprland-session";
|
||||
};
|
||||
settings = [{
|
||||
layer = "top";
|
||||
position = position;
|
||||
modules-left = [
|
||||
"idle_inhibitor"
|
||||
"power-profile-daemon"
|
||||
"backlight"
|
||||
"pulseaudio"
|
||||
"hyprland/workspaces"
|
||||
"hyprland/window"
|
||||
];
|
||||
modules-center = [ "mpris" ];
|
||||
modules-right = [
|
||||
"battery#1"
|
||||
"battery#2"
|
||||
"cpu"
|
||||
"memory"
|
||||
"temperature"
|
||||
"clock"
|
||||
"privacy"
|
||||
"tray"
|
||||
];
|
||||
clock = {
|
||||
"format" = "{:%d %B %H:%M} ";
|
||||
"format-alt" = "{:%A, %d %B %Y (%R)} ";
|
||||
"tooltip-format" = "<tt><small>{calendar}</small></tt>";
|
||||
"calendar" = {
|
||||
"mode" = "year";
|
||||
"mode-mon-col" = 3;
|
||||
"weeks-pos" = "right";
|
||||
"on-scroll" = 1;
|
||||
"format" = {
|
||||
"months" = "<span color='#ffead3'><b>{}</b></span>";
|
||||
"days" = "<span color='#ecc6d9'><b>{}</b></span>";
|
||||
"weeks" = "<span color='#99ffdd'><b>W{}</b></span>";
|
||||
"weekdays" = "<span color='#ffcc66'><b>{}</b></span>";
|
||||
"today" = "<span color='#ff6699'><b><u>{}</u></b></span>";
|
||||
};
|
||||
};
|
||||
actions = {
|
||||
"on-click-right" = "mode";
|
||||
"on-scroll-up" = "shift_up";
|
||||
"on-scroll-down" = "shift_down";
|
||||
};
|
||||
};
|
||||
tray = { spacing = gaps-in; };
|
||||
cpu = { format = " {usage}"; };
|
||||
memory = { format = " {}"; };
|
||||
idle_inhibitor = {
|
||||
format = "{icon}";
|
||||
format-icons = {
|
||||
activated = "";
|
||||
deactivated = "";
|
||||
};
|
||||
};
|
||||
network = {
|
||||
format = "{ifname}";
|
||||
format-wifi = "{essid} ({signalStrength}%) ";
|
||||
format-ethernet = "{ipaddr}/{cidr} ";
|
||||
format-disconnected = "";
|
||||
tooltip-format = "{ifname} via {gwaddr} ";
|
||||
tooltip-format-wifi = "{essid} ({signalStrength}%) ";
|
||||
tooltip-format-ethernet = "{ifname} ";
|
||||
tooltip-format-disconnected = "Disconnected";
|
||||
max-length = 50;
|
||||
};
|
||||
temperature = { format = "{temperatureC} "; };
|
||||
backlight = {
|
||||
device = "intel_backlight";
|
||||
format = "{icon}";
|
||||
format-icons = [ "" "" "" "" "" "" "" "" "" ];
|
||||
};
|
||||
"battery#1" = {
|
||||
bat = "BAT0";
|
||||
interval = 90;
|
||||
states = {
|
||||
warning = 30;
|
||||
critical = 15;
|
||||
};
|
||||
format = "{capacity}";
|
||||
max-length = 2;
|
||||
};
|
||||
"battery#2" = {
|
||||
bat = "BAT1";
|
||||
interval = 90;
|
||||
states = {
|
||||
warning = 30;
|
||||
critical = 15;
|
||||
};
|
||||
format = "{capacity} {icon}";
|
||||
format-icons = [ "" "" "" "" "" ];
|
||||
max-length = 25;
|
||||
};
|
||||
"hyprland/window" = {
|
||||
format = "{}";
|
||||
rewrite = {
|
||||
"(.*) — Mozilla Firefox" = " $1";
|
||||
"(.*) - kitty" = " [$1]";
|
||||
};
|
||||
separate-outputs = true;
|
||||
};
|
||||
"hyprland/workspaces" = {
|
||||
format = "{name}";
|
||||
format-icons = {
|
||||
"2" = "";
|
||||
"3" = "";
|
||||
"9" = "";
|
||||
"active" = "";
|
||||
"default" = "";
|
||||
};
|
||||
# "persistent-workspaces" = {
|
||||
# "eDP-1" = [ 1 2 3 4 5 ];
|
||||
# "DP-3" = [ 6 7 8 9 0 ];
|
||||
# };
|
||||
};
|
||||
mpris = {
|
||||
"format" = "{player_icon} {dynamic}";
|
||||
"format-paused" = "{status_icon} <i>{dynamic}</i>";
|
||||
"player-icons" = {
|
||||
"default" = "";
|
||||
"mpv" = "";
|
||||
};
|
||||
"dynamic-len" = 30;
|
||||
"status-icons" = { "paused" = ""; };
|
||||
"ignored-players" = [ "firefox" ];
|
||||
};
|
||||
privacy = {
|
||||
"icon-spacing" = 4;
|
||||
"icon-size" = 18;
|
||||
"transition-duration" = 250;
|
||||
"modules" = [
|
||||
{
|
||||
"type" = "screenshare";
|
||||
"tooltip" = true;
|
||||
"tooltip-icon-size" = 24;
|
||||
}
|
||||
{
|
||||
"type" = "audio-out";
|
||||
"tooltip" = true;
|
||||
"tooltip-icon-size" = 24;
|
||||
}
|
||||
{
|
||||
"type" = "audio-in";
|
||||
"tooltip" = true;
|
||||
"tooltip-icon-size" = 24;
|
||||
}
|
||||
];
|
||||
};
|
||||
pulseaudio = {
|
||||
"format" = "{volume}%{icon}";
|
||||
"format-bluetooth" = "{volume}%{icon}";
|
||||
"format-muted" = "";
|
||||
"format-icons" = {
|
||||
"headphone" = "";
|
||||
"phone" = "";
|
||||
"portable" = "";
|
||||
"car" = "";
|
||||
"default" = [ "" "" ];
|
||||
};
|
||||
"scroll-step" = 1;
|
||||
"on-click" = "pavucontrol";
|
||||
"ignored-sinks" = [ "Easy Effects Sink" ];
|
||||
};
|
||||
"pulseaudio/slider" = {
|
||||
"min" = 0;
|
||||
"max" = 100;
|
||||
"orientation" = "horizontal";
|
||||
};
|
||||
}];
|
||||
|
||||
style = ''
|
||||
* { border: none; border-radius: 0; }
|
||||
label.module { padding: 0 ${toString gaps-out}px; }
|
||||
#workspaces button {
|
||||
padding-top: ${toString border-size}px;
|
||||
border-bottom: ${toString border-size}px solid transparent;
|
||||
}
|
||||
#workspaces button.focused,
|
||||
#workspaces button.active {
|
||||
border-bottom: ${toString border-size}px solid @base09;
|
||||
}
|
||||
label#battery.1 { padding-right: 0; }
|
||||
label#battery.2 { padding-left: ${toString gaps-in}px; }
|
||||
#privacy, #tray { padding: 0 ${toString gaps-in}px; }
|
||||
#pulseaudio-slider slider {
|
||||
min-height: 0px;
|
||||
min-width: 0px;
|
||||
opacity: 0;
|
||||
background-image: none;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
#pulseaudio-slider trough {
|
||||
min-height: 5px;
|
||||
min-width: 80px;
|
||||
border-radius: ${toString rounding}px;
|
||||
}
|
||||
#pulseaudio-slider highlight {
|
||||
min-width: 10px;
|
||||
border-radius: ${toString rounding}px;
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
@@ -5,7 +5,7 @@ let
|
||||
background = "#${config.lib.stylix.colors.base00}";
|
||||
background-alt = "#${config.lib.stylix.colors.base01}";
|
||||
foreground = "#${config.lib.stylix.colors.base05}";
|
||||
font = config.stylix.fonts.serif.name;
|
||||
font = config.stylix.fonts.sansSerif.name;
|
||||
rounding = config.var.theme.rounding;
|
||||
font-size = config.stylix.fonts.sizes.popups;
|
||||
in {
|
||||
|
||||
Reference in New Issue
Block a user