removed waybar
This commit is contained in:
parent
0a7800cd15
commit
63390ed0a8
|
@ -4,8 +4,6 @@
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
kernelParams =
|
kernelParams =
|
||||||
[
|
[
|
||||||
|
|
|
@ -56,11 +56,10 @@ in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.hyprland.homeManagerModules.default
|
inputs.hyprland.homeManagerModules.default
|
||||||
../waybar
|
../eww
|
||||||
../foot
|
../foot
|
||||||
../wob
|
../wob
|
||||||
../mako
|
../mako
|
||||||
../eww
|
|
||||||
];
|
];
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
|
@ -146,7 +145,6 @@ in
|
||||||
|
|
||||||
exec = ${pkgs.xorg.xrandr}/bin/xrandr --output ${rightMonitor.display} --primary
|
exec = ${pkgs.xorg.xrandr}/bin/xrandr --output ${rightMonitor.display} --primary
|
||||||
exec = ${wob-voldaemon}/bin/wob-volumeindicator.sh;
|
exec = ${wob-voldaemon}/bin/wob-volumeindicator.sh;
|
||||||
# exec = pkill waybar; ${pkgs.waybar}/bin/waybar
|
|
||||||
exec = ${pkgs.eww-git}/bin/eww kill; ${pkgs.eww-git}/bin/eww open-many bar0 bar1
|
exec = ${pkgs.eww-git}/bin/eww kill; ${pkgs.eww-git}/bin/eww open-many bar0 bar1
|
||||||
exec = pkill swww; sleep 2 && ${pkgs.swww}/bin/swww init && ${pkgs.swww}/bin/swww img $(cat ~/.cache/swww/wallpaper.txt)
|
exec = pkill swww; sleep 2 && ${pkgs.swww}/bin/swww init && ${pkgs.swww}/bin/swww img $(cat ~/.cache/swww/wallpaper.txt)
|
||||||
|
|
||||||
|
@ -209,7 +207,6 @@ in
|
||||||
|
|
||||||
bind = ${modKey} SHIFT, C, exec, hyprctl reload
|
bind = ${modKey} SHIFT, C, exec, hyprctl reload
|
||||||
|
|
||||||
layerrule = blur, waybar
|
|
||||||
layerrule = blur, notifications
|
layerrule = blur, notifications
|
||||||
layerrule = blur, gtk-layer-shell
|
layerrule = blur, gtk-layer-shell
|
||||||
|
|
||||||
|
|
|
@ -1,103 +0,0 @@
|
||||||
{ pkgs, lib, ... }:
|
|
||||||
let
|
|
||||||
wobsock = "/tmp/wob-vol.fifo";
|
|
||||||
|
|
||||||
ds-battery = pkgs.writeShellScriptBin "ds-battery.sh" ''
|
|
||||||
ds_capacity_file="/sys/class/power_supply/ps-controller-battery-e8:47:3a:46:72:1b/capacity"
|
|
||||||
ds_status_file="/sys/class/power_supply/ps-controller-battery-e8:47:3a:46:72:1b/status"
|
|
||||||
|
|
||||||
while true; do
|
|
||||||
if [[ -f $ds_capacity_file ]]; then
|
|
||||||
charge=$(<"$ds_capacity_file")
|
|
||||||
if [[ $(<"$ds_status_file") == "Charging" ]]; then
|
|
||||||
echo "{\"class\":\"charging\",\"text\":\" Charging: $charge%\",\"tooltip\":\"Charging:\n$charge%\"}"
|
|
||||||
else
|
|
||||||
echo "{\"class\":\"discharging\",\"text\":\" $charge%\",\"tooltip\":\"Battery:\\n$charge%\"}"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "{\"class\":\"not_connected\",\"text\":\"\"}"
|
|
||||||
fi
|
|
||||||
sleep 10
|
|
||||||
done
|
|
||||||
'';
|
|
||||||
in
|
|
||||||
{
|
|
||||||
programs.waybar = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.waybar;
|
|
||||||
|
|
||||||
settings = [{
|
|
||||||
layer = "top";
|
|
||||||
position = "top";
|
|
||||||
height = 32;
|
|
||||||
|
|
||||||
modules-left = [ "wlr/workspaces" "custom/blank" "hyprland/window" ];
|
|
||||||
modules-center = [ "wireplumber" "custom/blank" "mpd" ];
|
|
||||||
modules-right = [
|
|
||||||
"custom/ds-battery"
|
|
||||||
"tray"
|
|
||||||
"clock"
|
|
||||||
"custom/blank"
|
|
||||||
];
|
|
||||||
|
|
||||||
"wlr/workspaces" = {
|
|
||||||
on-click = "activate";
|
|
||||||
on-scroll-up = "hyprctl dispatch workspace e+1";
|
|
||||||
on-scroll-down = "hyprctl dispatch workspace e-1";
|
|
||||||
persistent_workspaces = {
|
|
||||||
"1" = [ "DP-1" ];
|
|
||||||
"2" = [ "DP-1" ];
|
|
||||||
"3" = [ "DP-1" ];
|
|
||||||
"4" = [ "HDMI-A-1" ];
|
|
||||||
"5" = [ "HDMI-A-1" ];
|
|
||||||
"6" = [ "HDMI-A-1" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
"hyprland/window" = {
|
|
||||||
separate-outputs = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
"clock" = {
|
|
||||||
format = "{:%a %d. %B %H:%M}";
|
|
||||||
};
|
|
||||||
|
|
||||||
"wireplumber" = {
|
|
||||||
scroll-step = 5;
|
|
||||||
format = "{icon} {volume}%";
|
|
||||||
format-icons = [ "" "" "" "" ];
|
|
||||||
ignored-sinks = [ "Easy Effects Sink" ];
|
|
||||||
on-scroll-up = "${pkgs.pamixer}/bin/pamixer -i 10 --get-volume > ${wobsock}";
|
|
||||||
on-scroll-down = "${pkgs.pamixer}/bin/pamixer -d 10 --get-volume > ${wobsock}";
|
|
||||||
};
|
|
||||||
|
|
||||||
"tray" = {
|
|
||||||
icon-size = 16;
|
|
||||||
spacing = 10;
|
|
||||||
};
|
|
||||||
|
|
||||||
"mpd" = {
|
|
||||||
format =
|
|
||||||
"{stateIcon} {artist} - {title} {elapsedTime:%M:%S}/{totalTime:%M:%S}";
|
|
||||||
format-stopped = " stopped";
|
|
||||||
state-icons = {
|
|
||||||
playing = "";
|
|
||||||
paused = "";
|
|
||||||
};
|
|
||||||
on-click = "${pkgs.foot}/bin/foot -e ${pkgs.ncmpcpp}/bin/ncmpcpp";
|
|
||||||
};
|
|
||||||
|
|
||||||
"custom/ds-battery" = {
|
|
||||||
return-type = "json";
|
|
||||||
exec = "${ds-battery}/bin/ds-battery.sh";
|
|
||||||
escape = "true";
|
|
||||||
};
|
|
||||||
|
|
||||||
"custom/blank" = { format = " "; };
|
|
||||||
|
|
||||||
}];
|
|
||||||
|
|
||||||
style = builtins.readFile ./style.css;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,93 +0,0 @@
|
||||||
@define-color bg rgba(40,40,40,0.8);
|
|
||||||
@define-color fg rgb(235,219,178);
|
|
||||||
@define-color box-bg rgb(80,73,69);
|
|
||||||
|
|
||||||
@define-color wsfg rgb(235,219,178);
|
|
||||||
@define-color wsbg rgb(60,56,54);
|
|
||||||
@define-color activewsbg rgb(102,92,84);
|
|
||||||
|
|
||||||
* {
|
|
||||||
font-family: "JetBrainsMono Nerd Font";
|
|
||||||
font-size: 12;
|
|
||||||
}
|
|
||||||
|
|
||||||
window#waybar {
|
|
||||||
background: transparent;
|
|
||||||
color: @fg;
|
|
||||||
}
|
|
||||||
|
|
||||||
window#waybar > box {
|
|
||||||
background-color: @bg;
|
|
||||||
}
|
|
||||||
|
|
||||||
#wireplumber,
|
|
||||||
#mpd,
|
|
||||||
#custom-waybar-mpris,
|
|
||||||
#custom-ds-battery,
|
|
||||||
#window,
|
|
||||||
#keyboard-state,
|
|
||||||
#tray,
|
|
||||||
#clock,
|
|
||||||
#custom-swaync {
|
|
||||||
background: @box-bg;
|
|
||||||
padding: 0px 10px 0px 10px;
|
|
||||||
margin: 5px 10px 5px 0px;
|
|
||||||
border-radius: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#window {
|
|
||||||
margin: 5px 10px 5px 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#wireplumber {
|
|
||||||
margin: 5px 0px 5px 0px;
|
|
||||||
border-radius: 10px 0px 0px 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#mpd {
|
|
||||||
border-radius: 0px 10px 10px 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray {
|
|
||||||
margin: 5px 10px 5px 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#clock {
|
|
||||||
margin: 5px 5px 5px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces {
|
|
||||||
margin: 5px 0px 5px 0px;
|
|
||||||
padding-left: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button {
|
|
||||||
color: @fg;
|
|
||||||
background: @wsbg;
|
|
||||||
padding: 0px 5px;
|
|
||||||
border-radius: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button:last-child {
|
|
||||||
border-radius: 0px 10px 10px 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button:first-child {
|
|
||||||
border-radius: 10px 0px 0px 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button:only-child {
|
|
||||||
border-radius: 10px 10px 10px 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.active {
|
|
||||||
color: @wsfg;
|
|
||||||
background: @activewsbg;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.persistent {
|
|
||||||
color: @wsfg;
|
|
||||||
background: @wsbg;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
|
@ -43,7 +43,6 @@
|
||||||
nerdfonts
|
nerdfonts
|
||||||
noto-fonts-cjk-sans
|
noto-fonts-cjk-sans
|
||||||
noto-fonts-cjk-serif
|
noto-fonts-cjk-serif
|
||||||
obs-studio
|
|
||||||
openmw
|
openmw
|
||||||
pamixer
|
pamixer
|
||||||
pavucontrol
|
pavucontrol
|
||||||
|
@ -154,6 +153,11 @@
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
};
|
};
|
||||||
nix-index-database.comma.enable = true;
|
nix-index-database.comma.enable = true;
|
||||||
|
|
||||||
|
obs-studio = {
|
||||||
|
enable = true;
|
||||||
|
plugins = [ pkgs.obs-studio-plugins.obs-vkcapture ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.gnome-keyring.enable = true;
|
services.gnome-keyring.enable = true;
|
||||||
|
|
Reference in New Issue