From 5a1ea835d3d8863aff5dda6ac9522a3a08831ece Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Thu, 12 Mar 2020 13:57:59 -0300 Subject: [PATCH] Update sway configs. * Change touchpad input configuration to "*", so it acts on all inputs. * Add shortcut for launching MPV with clipboard as the argument (useful for viewing youtube videos with hardware acceleration). * Add rule to push Zathura to the P workspace. * Add background image to swaylock. * Enable cache in wofi. --- wm/.config/sway/config | 6 ++++-- wm/.config/swaylock/config | 1 + wm/.config/wofi/config | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/wm/.config/sway/config b/wm/.config/sway/config index c90ce50..343cc37 100644 --- a/wm/.config/sway/config +++ b/wm/.config/sway/config @@ -46,8 +46,7 @@ input * { } bindsym $mod+Space exec keyboard_layout_switcher # Touchpad -set $touchpad "1739:31251:SYNA2393:00_06CB:7A13_Touchpad" -input $touchpad { +input * { tap enabled natural_scroll disabled } @@ -79,6 +78,8 @@ bindsym $mod+Return exec $term bindsym $mod+t exec $term -e start-tmux # Start a terminal with music tmux bindsym $mod+Mod1+m exec $term -e start-tmux-music +# Start MPV with clipboard as arg +bindsym $mod+Mod1+p exec bash -c "mpv `wl-paste`" # Launch editor bindsym $mod+Shift+w exec $editor # Start Dolphin file browser @@ -256,6 +257,7 @@ assign [app_id="Kicad"] $wsn assign [title="CubeMX"] $wsn # PDF assign [app_id="okular"] $wsp +assign [app_id="zathura"] $wsp ## Application specific settings for_window [app_id="krunner"] floating enable diff --git a/wm/.config/swaylock/config b/wm/.config/swaylock/config index b0166bb..a9a9bab 100644 --- a/wm/.config/swaylock/config +++ b/wm/.config/swaylock/config @@ -2,4 +2,5 @@ daemonize color=000000 +image=~/Pictures/wallpaper.png diff --git a/wm/.config/wofi/config b/wm/.config/wofi/config index f8c9a15..b6d31d1 100644 --- a/wm/.config/wofi/config +++ b/wm/.config/wofi/config @@ -4,3 +4,5 @@ prompt=Hello! normal_window=false allow_images=true +cache=~/.cache/wofi +