aboutsummaryrefslogtreecommitdiff
path: root/dotfiles
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-04-03 00:15:24 +0300
committerYaroslav <contact@yaroslavps.com>2020-04-03 00:15:24 +0300
commit74456ddfdb8be3d556c16e589c9aeb42eea54d37 (patch)
tree698cb41f8e1569a62815b76fbd1d8dd2fbc33fd6 /dotfiles
parentf5596952871a0e01bc888dca4dab6d67cf265ecf (diff)
downloadswayrice-74456ddfdb8be3d556c16e589c9aeb42eea54d37.tar.gz
swayrice-74456ddfdb8be3d556c16e589c9aeb42eea54d37.zip
sway keybind to seek music in mpd
Diffstat (limited to 'dotfiles')
-rw-r--r--dotfiles/.config/sway/config10
-rw-r--r--dotfiles/.config/zsh/shortcuts2
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