Skip to content

Commit

Permalink
[chore]: update
Browse files Browse the repository at this point in the history
  • Loading branch information
rxyhn committed Jan 3, 2024
1 parent da7df86 commit 9e1a310
Show file tree
Hide file tree
Showing 6 changed files with 184 additions and 70 deletions.
100 changes: 100 additions & 0 deletions config
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"layer": "top",
"position": "left",
"mode": "dock",
"exclusive": true,
"passthrough": false,
"fixed-center": true,
"gtk-layer-shell": true,
"spacing": 0,
"margin-top": 0,
"margin-right": 0,
"margin-bottom": 0,
"margin-left": 0,
"modules-left": [
"custom/search"
],
"modules-center": [
"hyprland/workspaces"
],
"modules-right": [
"network",
"pulseaudio",
"battery",
"clock"
],
"custom/search": {
"format": "",
"tooltip": false,
"on-click": "sh -c 'run-as-service $(wofi -S drun)'"
},
"hyprland/workspaces": {
"active-only": false,
"all-outputs": true,
"disable-scroll": true,
"on-click": "activate",
"format": "{icon}",
"format-icons": {
"active": "",
"default": "",
"empty": "",
"persistent": "",
"special": "",
"urgent": ""
},
"persistent-workspaces": {
"*": 5
}
},
"network": {
"format": "{icon}",
"format-ethernet": "",
"format-disconnected": "",
"format-icons": {
"default": [
"",
"",
"",
"",
""
]
}
},
"pulseaudio": {
"scroll-step": 5,
"tooltip": true,
"tooltip-format": "{volume}%",
"format": "{icon}",
"format-muted": "",
"format-icons": {
"default": [
"",
"",
""
]
}
},
"battery": {
"states": {
"warning": 30,
"critical": 15
},
"format": "{icon}",
"format-charging": "",
"format-plugged": "",
"tooltip-format": "{timeTo}",
"format-icons": [
"",
"",
"",
"",
"",
"",
"",
""
]
},
"clock": {
"format": "{:%H\n%M}"
}
}
2 changes: 1 addition & 1 deletion home/modules/programs/vscode.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
cursorSmoothCaretAnimation = "on";
cursorWidth = 2;
find.addExtraSpaceOnTop = false;
fontFamily = "'monospace', monospace, 'Material Symbols Outlined'";
fontFamily = "'monospace', monospace, 'Material Design Icons'";
fontLigatures = true;
fontSize = 16;
formatOnPaste = true;
Expand Down
2 changes: 1 addition & 1 deletion home/modules/windowManager/hyprland/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

./config
./programs/swaylock.nix
./programs/waybar.nix
# ./programs/waybar.nix
./programs/wofi.nix

./services/cliphist.nix
Expand Down
73 changes: 36 additions & 37 deletions home/modules/windowManager/hyprland/programs/waybar.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ in {
"custom/power"
];
"custom/search" = {
format = "";
format = " ";
tooltip = false;
on-click = "sh -c 'run-as-service $(wofi -S drun)'";
};
Expand All @@ -45,60 +45,59 @@ in {
on-click = "activate";
format = "{icon}";
format-icons = {
active = "";
default = "";
empty = "";
active = "";
default = "";
empty = "";
};
persistent-workspaces = {
"*" = 5;
};
};
network = {
format-wifi = "󰖩 {essid}";
format-ethernet = "󰈀 {ipaddr}/{cidr}";
format-alt = "󱛇";
format-disconnected = "󰖪";
tooltip-format = ''
󰅃 {bandwidthUpBytes} 󰅀 {bandwidthDownBytes}
{ipaddr}/{ifname} via {gwaddr} ({signalStrength}%)'';
};
battery = {
states = {
warning = 30;
critical = 15;
};
format = "{icon}";
format-charging = "";
format-plugged = "";
tooltip-format = "{timeTo}";
format = "{icon} {capacity}%";
tooltip-format = "{timeTo}, {capacity}%";
format-charging = "󰂄 {capacity}%";
format-plugged = "󰚥 {capacity}%";
format-alt = "{time} {icon}";
format-icons = [
""
""
""
""
""
"󰂎"
"󰁺"
"󰁻"
"󰁼"
"󰁽"
"󰁾"
"󰁿"
"󰂀"
"󰂁"
"󰂂"
"󰁹"
];
};
clock = {
format = "{:%H:%M}";
tooltip = false;
format = "󱑎 {:%H:%M}";
};
"clock#date" = {
format = "󰃶 {:%a %d %b}";
tooltip-format = ''
<big>{:%Y %B}</big>
<tt><small>{calendar}</small></tt>'';
calendar = {
mode = "year";
mode-mon-col = 3;
weeks-pos = "right";
on-scroll = 1;
on-click-right = "mode";
format = {
months = "<span color='#f5c2e7'><b>{}</b></span>";
days = "<span color='#cdd6f4'><b>{}</b></span>";
weeks = "<span color='#cba6f7'><b>T{:%U}</b></span>";
weekdays = "<span color='#eba0ac'><b>{}</b></span>";
today = "<span color='#a6e3a1'><b><u>{}</u></b></span>";
};
actions = {
on-click-right = "mode";
on-click-forward = "tz_up";
on-click-backward = "tz_down";
on-scroll-up = "shift_up";
on-scroll-down = "shift_down";
};
};
};
"custom/power" = {
format = "";
format = "󰐥";
tooltip = false;
};
};
Expand All @@ -107,7 +106,7 @@ in {
style = ''
* {
all: initial;
font-family:'Dosis','Material Symbols Outlined';
font-family: Material Design Icons, monospace;
}
#custom-search {
Expand Down
3 changes: 2 additions & 1 deletion modules/desktop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
}: {
fonts = {
packages = with pkgs; [
material-symbols
material-icons
material-design-icons
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
Expand Down
74 changes: 44 additions & 30 deletions w.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

* {
all: initial;
font-family: "Dosis", "tabler-icons";
font-family: "Dosis", "Material Symbols Outlined";
font-size: 13pt;
border-radius: 0;
}
Expand All @@ -19,55 +19,69 @@ window#waybar.hidden {
opacity: 0;
}

#custom-search {
/* #custom-search {
background-image: url("/nix/store/488hqs4jj4i981k6pfbbmxd62nigkpxa-Logo-14mbpw8jv1w2c5wvfvj8clmjw0fi956bq5xf9s2q3my14far0as8.svg");
background-position: center;
background-repeat: no-repeat;
background-size: 75%;
min-width: 32px;
min-height: 32px;
margin: 0 10px;
}
} */

#workspaces {
background-color: alpha(@Background, 0.2);
border-radius: 8px;
padding: 5px;
margin: 5px;
}
/* #custom-search {
background: url("/nix/store/488hqs4jj4i981k6pfbbmxd62nigkpxa-Logo-14mbpw8jv1w2c5wvfvj8clmjw0fi956bq5xf9s2q3my14far0as8.svg")
no-repeat center / 65%;
padding: 0 13px;
} */

#workspaces button {
/* #custom-search {
background-image: url("/nix/store/488hqs4jj4i981k6pfbbmxd62nigkpxa-Logo-14mbpw8jv1w2c5wvfvj8clmjw0fi956bq5xf9s2q3my14far0as8.svg");
background-size: 65%;
background-position: center;
padding: 0 13px;
background-repeat: no-repeat;
} */

/* #workspaces {
padding: 10px;
margin: 0 10px;
}
#workspaces button label {
color: alpha(@Foreground, 0.8);
font-size: 15pt;
#workspaces button {
background: alpha(@Foreground, 0.8);
margin: 5px 0;
padding: 2px;
border-radius: 50px;
}
#workspaces button.empty label {
color: alpha(@Foreground, 0.4);
#workspaces button.empty {
background: alpha(@Foreground, 0.4);
}
#workspaces button.active label {
color: @Accent;
text-shadow:
0 0 5px @Accent,
0 0 10px @Accent,
0 0 15px @Accent,
0 0 20px @Accent,
0 0 30px @Accent,
0 0 40px @Accent,
0 0 50px @Accent,
#workspaces button.active {
background: @Accent;
min-height: 48px;
box-shadow: 0 0 5px @Accent, 0 0 10px @Accent, 0 0 15px @Accent,
0 0 20px @Accent, 0 0 30px @Accent, 0 0 40px @Accent, 0 0 50px @Accent,
0 0 60px @Accent;
}
} */

#network,
#pulseaudio,
#battery {
color: alpha(@Foreground, 0.8);
font-size: 15pt;
background: alpha(@Background, 0.2);
font-size: 17pt;
margin: 0 5px;
padding: 5px;
}

#network {
padding-top: 5px;
border-radius: 8px 8px 0 0;
}

#custom-power {
color: alpha(@Error, 0.8);
font-size: 15pt;
#battery {
border-radius: 0 0 8px 8px;
}

0 comments on commit 9e1a310

Please sign in to comment.