configures waybar
This commit is contained in:
parent
e0b15d993b
commit
324357540d
8 changed files with 80 additions and 16 deletions
|
|
@ -10,10 +10,6 @@
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
ironbar = {
|
|
||||||
url = "github:JakeStanger/ironbar";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
nix-darwin.url = "github:LnL7/nix-darwin/master";
|
nix-darwin.url = "github:LnL7/nix-darwin/master";
|
||||||
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
|
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
ip-whitelist.url = "github:Oak-Digital/nixos-ip-whitelist-firewall";
|
ip-whitelist.url = "github:Oak-Digital/nixos-ip-whitelist-firewall";
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,6 @@
|
||||||
krita
|
krita
|
||||||
gpustat
|
gpustat
|
||||||
librewolf
|
librewolf
|
||||||
pamixer
|
|
||||||
];
|
];
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
|
@ -57,7 +56,6 @@
|
||||||
../modules/wm/cliphist
|
../modules/wm/cliphist
|
||||||
../modules/wm/awww
|
../modules/wm/awww
|
||||||
../modules/wm/fuzzel
|
../modules/wm/fuzzel
|
||||||
../modules/wm/ironbar
|
|
||||||
../modules/wm/waybar
|
../modules/wm/waybar
|
||||||
../modules/wm/niri
|
../modules/wm/niri
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,6 @@
|
||||||
dennis = {
|
dennis = {
|
||||||
imports = [
|
imports = [
|
||||||
inputs.zen-browser.homeModules.beta
|
inputs.zen-browser.homeModules.beta
|
||||||
inputs.ironbar.homeManagerModules.default
|
|
||||||
../../home/linux.nix
|
../../home/linux.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -179,8 +179,6 @@ layout {
|
||||||
// STARTUP
|
// STARTUP
|
||||||
spawn-at-startup "swaync"
|
spawn-at-startup "swaync"
|
||||||
spawn-at-startup "swww-daemon"
|
spawn-at-startup "swww-daemon"
|
||||||
spawn-at-startup "ironbar"
|
|
||||||
spawn-at-startup "blueman-applet"
|
|
||||||
spawn-at-startup "tailscale systray"
|
spawn-at-startup "tailscale systray"
|
||||||
spawn-sh-at-startup "~/.config/awww/bin/random-bg.sh ~/Pictures/Wallpapers/safe/dark"
|
spawn-sh-at-startup "~/.config/awww/bin/random-bg.sh ~/Pictures/Wallpapers/safe/dark"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,10 @@
|
||||||
"niri/workspaces"
|
"niri/workspaces"
|
||||||
],
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"wireplumber",
|
"wireplumber#source",
|
||||||
"tray"
|
"wireplumber#sink",
|
||||||
|
"tray",
|
||||||
|
"custom/power"
|
||||||
],
|
],
|
||||||
// Module Configuration
|
// Module Configuration
|
||||||
"niri/workspaces": {
|
"niri/workspaces": {
|
||||||
|
|
@ -66,9 +68,25 @@
|
||||||
"format": "{percentage_used}%",
|
"format": "{percentage_used}%",
|
||||||
"max-length": 2
|
"max-length": 2
|
||||||
},
|
},
|
||||||
"wireplumber": {
|
"wireplumber#source": {
|
||||||
"on-click": "pamixer -t",
|
"node-type": "Audio/Source",
|
||||||
|
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle",
|
||||||
"on-click-right": "pwvucontrol",
|
"on-click-right": "pwvucontrol",
|
||||||
|
"scroll-step": 5.0,
|
||||||
|
"tooltip-format": "{node_name} ({source_volume}%)",
|
||||||
|
"format": "{icon}",
|
||||||
|
"format-muted": "",
|
||||||
|
"format-icons": {
|
||||||
|
"default": [
|
||||||
|
""
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"wireplumber#sink": {
|
||||||
|
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
|
||||||
|
"on-click-right": "pwvucontrol",
|
||||||
|
"scroll-step": 5.0,
|
||||||
|
"tooltip-format": "{node_name} ({volume}%)",
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
"format-muted": "",
|
"format-muted": "",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
|
|
@ -82,5 +100,16 @@
|
||||||
"tray": {
|
"tray": {
|
||||||
"icon-size": 14,
|
"icon-size": 14,
|
||||||
"spacing": 18
|
"spacing": 18
|
||||||
|
},
|
||||||
|
"custom/power": {
|
||||||
|
"format": "",
|
||||||
|
"tooltip": false,
|
||||||
|
"menu": "on-click",
|
||||||
|
"menu-file": "~/.config/waybar/power_menu.xml",
|
||||||
|
"menu-actions": {
|
||||||
|
"lock": "hyprlock",
|
||||||
|
"reboot": "reboot",
|
||||||
|
"shutdown": "shutdown"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
20
modules/wm/waybar/config/power_menu.xml
Normal file
20
modules/wm/waybar/config/power_menu.xml
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<interface>
|
||||||
|
<object class="GtkMenu" id="menu">
|
||||||
|
<child>
|
||||||
|
<object class="GtkMenuItem" id="lock">
|
||||||
|
<property name="label">Suspend</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkMenuItem" id="reboot">
|
||||||
|
<property name="label">Hibernate</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkMenuItem" id="shutdown">
|
||||||
|
<property name="label">Shutdown</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</interface>
|
||||||
|
|
@ -6,14 +6,26 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
tooltip,
|
tooltip,
|
||||||
#tray menu {
|
menu {
|
||||||
background: rgba(15, 11, 12, 0.9);
|
background: rgba(15, 11, 12, 0.9);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
border: 2px solid #572454;
|
border: 2px solid #572454;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
menuitem {
|
||||||
|
color: #ffffff;
|
||||||
|
margin-left: 4px;
|
||||||
|
margin-right: 4px;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
menuitem:hover {
|
||||||
|
color: #331531;
|
||||||
|
background-color: #c57faf;
|
||||||
|
}
|
||||||
|
|
||||||
window#waybar {
|
window#waybar {
|
||||||
background-color: rgba(15, 11, 12, 0.999);
|
background-color: rgba(15, 11, 12, 0.95);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
@ -50,11 +62,23 @@ window#waybar {
|
||||||
|
|
||||||
#wireplumber {
|
#wireplumber {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
margin-top: 4px;
|
||||||
|
margin-bottom: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tray {
|
#tray {
|
||||||
margin: 4px;
|
margin: 4px;
|
||||||
|
margin-top: 0;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#custom-power {
|
||||||
|
background-color: #331531;
|
||||||
|
font-size: 16px;
|
||||||
|
border-bottom-left-radius: 8px;
|
||||||
|
border-bottom-right-radius: 8px;
|
||||||
|
padding-top: 6px;
|
||||||
|
padding-bottom: 6px;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemd = {
|
systemd = {
|
||||||
enable = false;
|
enable = true;
|
||||||
target = "graphical-session.target";
|
target = "graphical-session.target";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue