1
0
Fork 0

Move media controls out
continuous-integration/drone/push Build was killed Details

main
Ambrose Chua 2020-05-27 21:14:20 +08:00
parent 0668d34296
commit 0b95d01bde
Signed by: ambrose
GPG Key ID: BC367D33F140B5C2
3 changed files with 46 additions and 3 deletions

View File

@ -73,6 +73,7 @@ input * {
xkb_layout us
xkb_variant dvp
xkb_options "caps:escape"
scroll_factor 5
}
input type:touchpad {
@ -256,6 +257,19 @@ client.urgent #202020 #dc322f #fdf6e3 #cb4b1699 #cb4b1600
#
font pango:IBM Plex Sans bold 11
#
# Media controls:
#
bindsym --locked XF86AudioRaiseVolume exec "pactl set-sink-volume @DEFAULT_SINK@ +2%"
bindsym --locked XF86AudioLowerVolume exec "pactl set-sink-volume @DEFAULT_SINK@ -2%"
bindsym --locked XF86AudioMute exec "pactl set-sink-mute @DEFAULT_SINK@ toggle"
bindsym --locked XF86AudioMicMute exec "pactl set-source-mute @DEFAULT_SOURCE@ toggle"
bindsym --locked XF86MonBrightnessDown exec "brightnessctl set 5%-"
bindsym --locked XF86MonBrightnessUp exec "brightnessctl set +5%"
bindsym --locked XF86AudioPlay exec "playerctl play-pause"
bindsym --locked XF86AudioNext exec "playerctl next"
bindsym --locked XF86AudioPrev exec "playerctl previous"
bindsym --locked XF86AudioStop exec "playerctl stop"
#
# Gaps:
#
default_border pixel 2

32
.config/sway/home Normal file
View File

@ -0,0 +1,32 @@
#
# Workspaces
#
workspace 1 output "Unknown PL270 0000000000001"
workspace 2 output "Unknown PL270 0000000000001"
workspace 3 output "Unknown PL270 0000000000001"
workspace 4 output "Unknown PL270 0000000000001"
workspace 8 output "Apple Computer Inc Color LCD 0x00000000"
workspace 9 output "Apple Computer Inc Color LCD 0x00000000"
# Select back old workspace
workspace 1
#
# Wallpaper configuration
#
output "Unknown PL270 0000000000001" bg ~/.wallpaper/default.jpg fill
#
# Output configuration
#
default_orientation horizontal
output "Unknown PL270 0000000000001" position 0 0 transform 90
output "Apple Computer Inc Color LCD 0x00000000" position 2160 1800 transform 0 scale 1.5
#
# Switch configuration
#
set $laptop "Apple Computer Inc Color LCD 0x00000000"
bindswitch --reload --locked lid:on output $laptop disable
bindswitch --reload --locked lid:off output $laptop enable
# vim: ai ts=4 sw=4 et

View File

@ -46,9 +46,6 @@ bindsym Scroll_Lock mode "monitor"
#
# Media controls
#
bindsym XF86AudioRaiseVolume exec "pactl set-sink-volume 0 +2%"
bindsym XF86AudioLowerVolume exec "pactl set-sink-volume 0 -2%"
bindsym XF86AudioMute exec "pactl set-sink-mute 0 toggle"
bindsym $mod+p exec "dbus-send --bus=unix:path=/run/user/1000/bus --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"
# vim: ai ts=4 sw=4 et