Sway : Add player controls.

This commit is contained in:
Dmitry Voronin 2024-04-24 22:02:02 +03:00
parent d339b69ada
commit 5c7fe7a4fc
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
3 changed files with 10 additions and 3 deletions

View file

@ -16,13 +16,14 @@ in {
services.gnome.gnome-keyring.enable = lib.mkForce false; services.gnome.gnome-keyring.enable = lib.mkForce false;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
gnome.adwaita-icon-theme # GTK icons.
grim slurp # Screenshot. grim slurp # Screenshot.
mako # Notification system. mako # Notification system.
networkmanagerapplet # Internet configuration. networkmanagerapplet # Internet configuration.
pamixer pavucontrol pulseaudio # Audio. pamixer pavucontrol pulseaudio # Audio.
sway-contrib.inactive-windows-transparency playerctl # Multimedia controls.
sway-contrib.inactive-windows-transparency # Transparent unfocused windows.
wl-clipboard # Clipboard. wl-clipboard # Clipboard.
gnome.adwaita-icon-theme # GTK icons.
]; ];
programs.sway = { programs.sway = {

View file

@ -32,7 +32,7 @@
gimp gimp
godot_4 godot_4
jellyfin-media-player jellyfin-media-player
mpv mpv mpvScripts.mpris
obs-studio obs-studio
onlyoffice-bin onlyoffice-bin
scanmem scanmem

View file

@ -5,5 +5,11 @@ in {
bindsym XF86AudioRaiseVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ +${step}%' bindsym XF86AudioRaiseVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ +${step}%'
bindsym XF86AudioLowerVolume 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 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'
''; '';
} }