From 74456ddfdb8be3d556c16e589c9aeb42eea54d37 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Fri, 3 Apr 2020 00:15:24 +0300 Subject: sway keybind to seek music in mpd --- dotfiles/.config/sway/config | 10 +++++++--- dotfiles/.config/zsh/shortcuts | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/dotfiles/.config/sway/config b/dotfiles/.config/sway/config index 48aa97e..924bc27 100644 --- a/dotfiles/.config/sway/config +++ b/dotfiles/.config/sway/config @@ -116,11 +116,13 @@ input 2:10:TPPS/2_IBM_TrackPoint pointer_accel 1 # Outputs output "*" background ~/.config/wall1.png fill # Laptop display -output "eDP-1" scale 1.6 pos 0 0 scale_filter smart +output "eDP-1" scale 1.6 pos 0 0 scale_filter linear # Keymaps -input * xkb_layout "us,es,ru" -input * xkb_options "lv3:ralt_switch,grp:alt_shift_toggle,misc:typo,caps:escape,grp_led:scroll" +input type:keyboard { + xkb_layout "us,es,ru" + xkb_options "lv3:ralt_switch,grp:alt_shift_toggle,misc:typo,caps:escape,grp_led:scroll" +} # Set inner/outer gaps gaps inner 15 @@ -171,9 +173,11 @@ bindsym --to-code { XF86AudioLowerVolume exec --no-startup-id lmc down 5 XF86AudioMute exec --no-startup-id lmc mute + $mod+Shift+F5 exec mpc seek -10 $mod+F5 exec lmc prev $mod+F6 exec lmc toggle $mod+F7 exec lmc next + $mod+Shift+F7 exec mpc seek +10 # Start Applications $mod+Shift+w exec --no-startup-id $browser diff --git a/dotfiles/.config/zsh/shortcuts b/dotfiles/.config/zsh/shortcuts index cf21f0a..30b2a1e 100644 --- a/dotfiles/.config/zsh/shortcuts +++ b/dotfiles/.config/zsh/shortcuts @@ -8,7 +8,7 @@ alias ls="ls -hN --color=auto --group-directories-first" alias tmux="tmux -f $HOME/.config/tmux/tmux.conf" alias units="units -H ''" weath() { curl wttr.in/$1 ;} # Check the weather (give city or leave blank). -corona() { curl https://corona-stats.online/$1 ;} # It's corona time +corona() { curl -s https://corona-stats.online/$1 ;} # It's corona time wintitle() { printf "\033]2;%s\a" "$1";} # Generic shortcuts -- cgit v1.2.3