Sway : Add player controls.
This commit is contained in:
parent
d339b69ada
commit
5c7fe7a4fc
|
@ -16,13 +16,14 @@ in {
|
|||
|
||||
services.gnome.gnome-keyring.enable = lib.mkForce false;
|
||||
environment.systemPackages = with pkgs; [
|
||||
gnome.adwaita-icon-theme # GTK icons.
|
||||
grim slurp # Screenshot.
|
||||
mako # Notification system.
|
||||
networkmanagerapplet # Internet configuration.
|
||||
pamixer pavucontrol pulseaudio # Audio.
|
||||
sway-contrib.inactive-windows-transparency
|
||||
playerctl # Multimedia controls.
|
||||
sway-contrib.inactive-windows-transparency # Transparent unfocused windows.
|
||||
wl-clipboard # Clipboard.
|
||||
gnome.adwaita-icon-theme # GTK icons.
|
||||
];
|
||||
|
||||
programs.sway = {
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
gimp
|
||||
godot_4
|
||||
jellyfin-media-player
|
||||
mpv
|
||||
mpv mpvScripts.mpris
|
||||
obs-studio
|
||||
onlyoffice-bin
|
||||
scanmem
|
||||
|
|
|
@ -5,5 +5,11 @@ in {
|
|||
bindsym XF86AudioRaiseVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ +${step}%'
|
||||
bindsym XF86AudioLowerVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ -${step}%'
|
||||
bindsym XF86AudioMute exec 'pactl set-sink-mute @DEFAULT_SINK@ toggle'
|
||||
|
||||
bindsym XF86AudioPlay exec 'playerctl play-pause'
|
||||
bindsym XF86AudioPause exec 'playerctl pause'
|
||||
bindsym XF86AudioStop exec 'playerctl stop'
|
||||
bindsym XF86AudioNext exec 'playerctl next'
|
||||
bindsym XF86AudioPrev exec 'playerctl previous'
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue