Add playerctl and mpris module to waybar
Fix hyprland binds for audio and brightness
This commit is contained in:
parent
1560373dbe
commit
bf63458b2e
|
@ -33,7 +33,12 @@ in {
|
||||||
pipewire
|
pipewire
|
||||||
wireplumber
|
wireplumber
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
|
grim
|
||||||
|
slurp
|
||||||
swayimg
|
swayimg
|
||||||
|
playerctl
|
||||||
|
pamixer
|
||||||
|
playerctl
|
||||||
brightnessctl
|
brightnessctl
|
||||||
];
|
];
|
||||||
programs = {
|
programs = {
|
||||||
|
|
|
@ -84,12 +84,20 @@ bind = SUPER SHIFT, Q, killactive,
|
||||||
bind = SUPER, M, fullscreen, 1
|
bind = SUPER, M, fullscreen, 1
|
||||||
bind = SUPER SHIFT, M, fullscreen, 0
|
bind = SUPER SHIFT, M, fullscreen, 0
|
||||||
|
|
||||||
|
# Misc useful binds
|
||||||
bind=,Print,exec,grim -g "$(slurp)"
|
bind=,Print,exec,grim -g "$(slurp)"
|
||||||
|
# Sound
|
||||||
bind=,XF86AudioMute,exec,pamixer -t
|
bind=,XF86AudioMute,exec,pamixer -t
|
||||||
binde=,XF86AudioRaiseVolume,exec,pamixer -i 5
|
binde=,XF86AudioRaiseVolume,exec,pamixer -i 5
|
||||||
binde=,XF86AudioLowerVolume,exec,pamixer -d 5
|
binde=,XF86AudioLowerVolume,exec,pamixer -d 5
|
||||||
|
# Brightness
|
||||||
binde=,XF86MonBrightnessUp,exec,brightnessctl s +5%
|
binde=,XF86MonBrightnessUp,exec,brightnessctl s +5%
|
||||||
binde=,XF86MonBrightnessDown,exec,brightnessctl s -5%
|
binde=,XF86MonBrightnessDown,exec,brightnessctl s 5%-
|
||||||
|
# Playback
|
||||||
|
binde=,XF86AudioPlay,exec,playerctl play-pause
|
||||||
|
binde=,XF86AudioStop,exec,playerctl play-pause
|
||||||
|
binde=,XF86AudioPrev,exec,playerctl previous
|
||||||
|
binde=,XF86AudioNext,exec,playerctl next
|
||||||
|
|
||||||
bind = SUPER, H, movefocus, l
|
bind = SUPER, H, movefocus, l
|
||||||
bind = SUPER, L, movefocus, r
|
bind = SUPER, L, movefocus, r
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{pkgs, ...}: {
|
{ pkgs, ... }: {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
(nerdfonts.override {fonts = ["FiraCode"];})
|
(nerdfonts.override { fonts = [ "FiraCode" ]; })
|
||||||
networkmanagerapplet
|
networkmanagerapplet
|
||||||
bluez
|
bluez
|
||||||
];
|
];
|
||||||
|
@ -10,8 +10,8 @@
|
||||||
settings.main = {
|
settings.main = {
|
||||||
layer = "top";
|
layer = "top";
|
||||||
position = "top";
|
position = "top";
|
||||||
"modules-left" = ["wlr/workspaces"];
|
"modules-left" = [ "wlr/workspaces" ];
|
||||||
"modules-center" = [];
|
"modules-center" = [ "mpris" ];
|
||||||
"modules-right" = [
|
"modules-right" = [
|
||||||
"pulseaudio"
|
"pulseaudio"
|
||||||
"bluetooth"
|
"bluetooth"
|
||||||
|
@ -22,6 +22,7 @@
|
||||||
"clock"
|
"clock"
|
||||||
];
|
];
|
||||||
"wlr/workspaces" = import ./modules/wlr_workspaces.nix;
|
"wlr/workspaces" = import ./modules/wlr_workspaces.nix;
|
||||||
|
mpris = import ./modules/mpris.nix;
|
||||||
cpu = import ./modules/cpu.nix;
|
cpu = import ./modules/cpu.nix;
|
||||||
memory = import ./modules/memory.nix;
|
memory = import ./modules/memory.nix;
|
||||||
temperature = import ./modules/temperature.nix;
|
temperature = import ./modules/temperature.nix;
|
||||||
|
|
18
home/hyprland/waybar/modules/mpris.nix
Normal file
18
home/hyprland/waybar/modules/mpris.nix
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
"format" = "{player_icon} {dynamic} {status_icon}";
|
||||||
|
"format-paused" = "{player_icon} <i>{title}</i> {status_icon}";
|
||||||
|
"format-stopped" = "{player_icon} {status_icon}";
|
||||||
|
"interval" = 1;
|
||||||
|
"player-icons" = {
|
||||||
|
"default" = "";
|
||||||
|
"mpv" = "";
|
||||||
|
"spotify" = "";
|
||||||
|
"ncspot" = "";
|
||||||
|
};
|
||||||
|
"status-icons" = {
|
||||||
|
"playing" = "";
|
||||||
|
"paused" = "";
|
||||||
|
"stopped" = "";
|
||||||
|
};
|
||||||
|
"ignored-players" = [ "firefox" ];
|
||||||
|
}
|
|
@ -66,7 +66,7 @@ in {
|
||||||
monitor=desc:Dell Inc. DELL U2417H 5K9YD872FY1L,${monitors.Dell}
|
monitor=desc:Dell Inc. DELL U2417H 5K9YD872FY1L,${monitors.Dell}
|
||||||
monitor=desc:Acer Technologies ED270R TJMEE0043W01,${monitors.Acer}
|
monitor=desc:Acer Technologies ED270R TJMEE0043W01,${monitors.Acer}
|
||||||
|
|
||||||
bindl=,switch:Lid Switch,exec,pkill -9 kanshi
|
bindl=,switch:Lid Switch,exec,pkill -HUP kanshi
|
||||||
bindl=,switch:Lid Switch,exec,pkill -9 hyprpaper && hyprctl dispatch exec hyprpaper
|
bindl=,switch:Lid Switch,exec,pkill -9 hyprpaper && hyprctl dispatch exec hyprpaper
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,9 +3,6 @@
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
xdg-utils
|
xdg-utils
|
||||||
gsettings-desktop-schemas
|
gsettings-desktop-schemas
|
||||||
pavucontrol
|
|
||||||
grim
|
|
||||||
slurp
|
|
||||||
];
|
];
|
||||||
security.pam.services.swaylock = { };
|
security.pam.services.swaylock = { };
|
||||||
services = {
|
services = {
|
||||||
|
|
Loading…
Reference in a new issue