From d46751ff59a80f9ba7de40d47ac81dec35908f1d Mon Sep 17 00:00:00 2001 From: phil <93428721+phil170@users.noreply.github.com> Date: Fri, 14 Oct 2022 18:55:46 +0200 Subject: [PATCH 1/4] Update README.md corrected two typos --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f4676c2..d1e9e9f 100644 --- a/README.md +++ b/README.md @@ -37,9 +37,9 @@ SDDM is the default display manager - Keyboard layout in: `~/.config/sway/config.d/input` - Screen settings in: `~/.config/sway/config.d/output` -- Keybings Cheatsheet: press keyboard icon in waybar +- Keybindings Cheatsheet: press keyboard icon in waybar -- If your experiencing issus with your cursor - edit file `~/.profile` and comment out `export WLR_NO_HARDWARE_CURSORS=1` +- If your experiencing issues with your cursor - edit file `~/.profile` and comment out `export WLR_NO_HARDWARE_CURSORS=1` ## Get involved at our forum: https://forum.endeavouros.com/t/sway-edition-general-conversation From 7d1269fa61062967a26e6ee9bfa1a414589abd8b Mon Sep 17 00:00:00 2001 From: Robert-Jan de Dreu <160743+rjd22@users.noreply.github.com> Date: Thu, 20 Oct 2022 09:13:28 +0200 Subject: [PATCH 2/4] Fix #29: Use pactl directly to control audio volume and mute --- .config/sway/config.d/default | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.config/sway/config.d/default b/.config/sway/config.d/default index 367df5e..7318c71 100644 --- a/.config/sway/config.d/default +++ b/.config/sway/config.d/default @@ -7,6 +7,14 @@ set $down j set $up k set $right l +# audio control +set $sink_volume pactl get-sink-volume @DEFAULT_SINK@ | grep '^Volume:' | cut -d / -f 2 | tr -d ' ' | sed 's/%//' +set $source_volume pactl get-source-volume @DEFAULT_SOURCE@ | grep '^Volume:' | cut -d / -f 2 | tr -d ' ' | sed 's/%//' +set $volume_down $(pactl set-sink-volume @DEFAULT_SINK@ -5% && $sink_volume) +set $volume_up $(pactl set-sink-volume @DEFAULT_SINK@ +5% && $sink_volume) +set $volume_mute $(pactl set-sink-mute @DEFAULT_SINK@ toggle && pactl get-sink-mute @DEFAULT_SINK@ | sed -En "/no/ s/.*/$($sink_volume)/p; /yes/ s/.*/0/p") +set $mic_mute $(pactl set-source-mute @DEFAULT_SOURCE@ toggle && pactl get-source-mute @DEFAULT_SOURCE@ | sed -En "/no/ s/.*/$($source_volume)/p; /yes/ s/.*/0/p") + # Your preferred terminal emulators set $term-float xfce4-terminal @@ -182,9 +190,15 @@ bindsym $mod+r mode "resize" # # Volume # - bindsym --locked XF86AudioRaiseVolume exec pamixer -ui 2 - bindsym --locked XF86AudioLowerVolume exec pamixer -ud 2 - bindsym --locked XF86AudioMute exec pamixer -t + # Control volume trough pamixer + # bindsym --locked XF86AudioRaiseVolume exec pamixer -ui 2 + # bindsym --locked XF86AudioLowerVolume exec pamixer -ud 2 + # bindsym --locked XF86AudioMute exec pamixer -t + + # Control volume directly trough pactl + bindsym --locked XF86AudioRaiseVolume exec $volume_up + bindsym --locked XF86AudioLowerVolume exec $volume_down + bindsym --locked XF86AudioMute exec $volume_mute # # Player # From 12514804e93779ffb8f153c798b343b4e6f99268 Mon Sep 17 00:00:00 2001 From: OdiousImp2604 <74424076+OdiousImp2604@users.noreply.github.com> Date: Wed, 2 Nov 2022 20:27:15 +0000 Subject: [PATCH 3/4] Update packages-repository.txt --- packages-repository.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages-repository.txt b/packages-repository.txt index 2dfa3b3..e11536e 100644 --- a/packages-repository.txt +++ b/packages-repository.txt @@ -27,7 +27,7 @@ wayland-protocols xorg-xwayland egl-wayland gtk-layer-shell -ttf-nerd-fonts-symbols +ttf-nerd-fonts-symbols-2048-em xdg-desktop-portal-wlr brightnessctl pamixer From f654f4c10d08792171c89aefa65852e43394672f Mon Sep 17 00:00:00 2001 From: OdiousImp2604 <74424076+OdiousImp2604@users.noreply.github.com> Date: Wed, 2 Nov 2022 20:31:49 +0000 Subject: [PATCH 4/4] Fixed firefox floating issue --- .config/sway/config.d/application_defaults | 1 - 1 file changed, 1 deletion(-) diff --git a/.config/sway/config.d/application_defaults b/.config/sway/config.d/application_defaults index d40d911..31a4b16 100644 --- a/.config/sway/config.d/application_defaults +++ b/.config/sway/config.d/application_defaults @@ -37,7 +37,6 @@ for_window [window_type="dialog"] floating enable for_window [window_type="menu"] floating enable for_window [window_role="About"] floating enable for_window [title="File Operation Progress"] floating enable, border pixel 1, sticky enable, resize set width 40 ppt height 30 ppt -for_window [app_id="firefox" title="Library"] floating enable, border pixel 1, sticky enable, resize set width 40 ppt height 30 ppt for_window [app_id="floating_shell_portrait"] floating enable, border pixel 1, sticky enable, resize set width 30 ppt height 40 ppt for_window [title="Picture in picture"] floating enable, sticky enable for_window [title="nmtui"] floating enable, resize set width 50 ppt height 70 ppt