From bd1b1cf6d37aa7884ce76b5bd215d72ff711f151 Mon Sep 17 00:00:00 2001 From: Lizzy Hunt Date: Sun, 30 Apr 2023 13:36:01 -0600 Subject: [PATCH] Add swaylock-corrupter, waybar-mpris --- .config/sway/config | 3 +++ .config/waybar/config | 13 ++++++++++--- scripts/install.sh | 4 +++- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index f03e490..a6892c8 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -9,6 +9,7 @@ set $up k set $right l # Your preferred terminal emulator set $term alacritty +set $lock swaylock-corrupter set $browser firefox # Your preferred application launcher # Note: pass the final command to swaymsg so that the resulting window can be opened @@ -59,6 +60,8 @@ exec swayidle -w \ # # Basics: # + # Start a terminal + bindsym $mod+Shift+n exec swaylock-corrupter # Start a terminal bindsym $mod+Return exec $term diff --git a/.config/waybar/config b/.config/waybar/config index b02297f..143ccf9 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -54,8 +54,15 @@ "format-charging": " {capacity}%", "format-plugged": " {capacity}%", "format-alt": "{time} {icon}", - // "format-good": "", // An empty format will hide the module - // "format-full": "", "format-icons": ["", "", "", "", ""] - } + }, + "custom/waybar-mpris": { + "return-type": "json", + "exec": "waybar-mpris --position --autofocus --play ▶ --pause ", + "on-click": "waybar-mpris --send toggle", + "on-click-right": "waybar-mpris --send player-next", + "escape": true, + "max-length": 45, + "scroll-step": 1 + }, } diff --git a/scripts/install.sh b/scripts/install.sh index 68c3195..2b4f30d 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -32,7 +32,8 @@ cd ~ pikaur -S xremap-x11-bin spotify-tui-bin \ betterdiscord-installer-bin discord obs-studio \ nerd-fonts-cozette-ttf ttf-font-awesome ttf-cozette \ - waybar swaybg emacs-gcc-wayland-devel-bin swaylock-corrupter + waybar swaybg emacs-gcc-wayland-devel-bin swaylock-corrupter \ + waybar-mpris-git # Copy cursors sudo cp -r ~/.icons/"$CURSOR_THEME" /usr/share/icons @@ -78,3 +79,4 @@ echo " . Put spotify password in `pass insert spotify` for spotifyd" echo " . Login to firefox" echo " . Put ssh key into GitHub, change remote origin in ~" echo " . Add waybar config in .config/waybar/local.d" +echo " . If streaming, install v4l2loopback-dkms, obs-studio-tytan652"