From f2604a3e7b57ad7b7472388d2f8a61dc1419129e Mon Sep 17 00:00:00 2001 From: beanigen Date: Fri, 6 Jun 2025 12:26:31 +0800 Subject: [PATCH] change up sway binds a lil --- base/callisto/configuration.nix | 2 +- home/default.nix | 6 +++++- home/sway.nix | 11 +++++++++-- home/waybar/config | 3 ++- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/base/callisto/configuration.nix b/base/callisto/configuration.nix index 2f8c8de..18da599 100644 --- a/base/callisto/configuration.nix +++ b/base/callisto/configuration.nix @@ -252,7 +252,7 @@ users.users.maya = { isNormalUser = true; description = "Maya"; - extraGroups = [ "networkmanager" "wheel" "libvirtd" "input" "uinput" ]; + extraGroups = [ "networkmanager" "wheel" "libvirtd" "input" "uinput" "dialout" ]; packages = with pkgs; [ # thunderbird git diff --git a/home/default.nix b/home/default.nix index 63810fc..0d53ea7 100644 --- a/home/default.nix +++ b/home/default.nix @@ -47,7 +47,11 @@ } audio_output { type "alsa" - name "alsa" + name "ALSA Direct" + mixer_type "hardware" + mixer_control "PCM" + auto_resample "no" + device "hw:0,0" } ''; }; diff --git a/home/sway.nix b/home/sway.nix index 545fcb5..3e1c531 100644 --- a/home/sway.nix +++ b/home/sway.nix @@ -21,6 +21,10 @@ inner = 5; outer = 7; }; + assigns = { + "9: Mail" = [{ app_id = "thunderbird"; }]; + "10: Messaging" = [{ app_id = "vesktop"; }]; + }; input = { "type:touchpad" = { accel_profile = "flat"; @@ -73,9 +77,12 @@ "XF86AudioMedia" = "exec vlc"; "XF86Launch1" = "exec nmcli device wifi rescan"; "Shift_L+Control_L+B" = "exec playerctl position 10-"; - "Shift_L+Control_L+F" = "exec--bind=enter:replace-query+print-query playerctl position 10+"; + "Shift_L+Control_L+F" = "exec playerctl position 10+"; "Mod4+w" = null; - "Mod4+s" = null; + "Mod4+s" = "scratchpad show"; + "Mod4+Shift+s" = "move scratchpad"; + "Mod4+Control+h" = "workspace prev_on_output"; + "Mod4+Control+l" = "workspace next_on_output"; }; floating.criteria = [ diff --git a/home/waybar/config b/home/waybar/config index 41df0c7..899b734 100644 --- a/home/waybar/config +++ b/home/waybar/config @@ -78,7 +78,8 @@ "custom/arrow": { "format": " ", - "tooltip": false + "tooltip": false, + "on-click": "swaync-client -t", }, "tray": {