2024-04-07 22:16:33 -04:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
2024-06-04 14:33:27 -04:00
|
|
|
imports = [./randomWallpaper.nix ./redShift.nix];
|
2024-05-27 16:07:29 -04:00
|
|
|
|
2024-03-31 08:09:03 -04:00
|
|
|
options = {
|
2024-05-27 16:07:29 -04:00
|
|
|
alyraffauf.desktop.sway = {
|
|
|
|
enable =
|
|
|
|
lib.mkEnableOption "Enables sway with extra apps.";
|
|
|
|
autoSuspend = lib.mkOption {
|
|
|
|
description = "Whether to autosuspend on idle.";
|
|
|
|
default = config.alyraffauf.desktop.sway.enable;
|
2024-05-17 23:16:43 -04:00
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
2024-05-27 16:07:29 -04:00
|
|
|
randomWallpaper = lib.mkOption {
|
|
|
|
description = "Whether to enable random wallpaper script.";
|
|
|
|
default = config.alyraffauf.desktop.sway.enable;
|
2024-05-17 23:16:43 -04:00
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
2024-05-27 16:07:29 -04:00
|
|
|
redShift = lib.mkOption {
|
|
|
|
description = "Whether to redshift display colors at night.";
|
|
|
|
default = config.alyraffauf.desktop.sway.enable;
|
2024-05-17 23:16:43 -04:00
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
2024-05-17 19:09:22 -04:00
|
|
|
};
|
2024-03-31 08:09:03 -04:00
|
|
|
};
|
|
|
|
|
2024-04-17 22:39:00 -04:00
|
|
|
config = lib.mkIf config.alyraffauf.desktop.sway.enable {
|
2024-04-18 14:21:33 -04:00
|
|
|
alyraffauf = {
|
2024-05-05 22:00:46 -04:00
|
|
|
desktop = {
|
2024-05-27 16:07:29 -04:00
|
|
|
waylandComp = lib.mkDefault true;
|
2024-05-05 22:00:46 -04:00
|
|
|
};
|
2024-04-18 14:21:33 -04:00
|
|
|
};
|
2024-03-31 08:09:03 -04:00
|
|
|
|
2024-04-24 17:39:19 -04:00
|
|
|
programs.waybar = {
|
|
|
|
settings = {
|
|
|
|
mainBar = {
|
2024-06-04 14:33:27 -04:00
|
|
|
modules-left = ["sway/workspaces" "sway/scratchpad" "sway/mode"];
|
2024-04-24 17:39:19 -04:00
|
|
|
};
|
2024-04-19 18:51:24 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-04-08 11:29:07 -04:00
|
|
|
wayland.windowManager.sway.enable = true;
|
2024-06-04 14:33:27 -04:00
|
|
|
wayland.windowManager.sway.package = pkgs.swayfx;
|
2024-04-20 13:58:45 -04:00
|
|
|
wayland.windowManager.sway.wrapperFeatures.gtk = true;
|
2024-05-03 11:16:58 -04:00
|
|
|
wayland.windowManager.sway.checkConfig = false;
|
2024-05-17 16:17:00 -04:00
|
|
|
|
|
|
|
alyraffauf.desktop.theme.gtk.hideTitleBar =
|
|
|
|
if config.wayland.windowManager.sway.package == pkgs.sway
|
|
|
|
then true
|
|
|
|
else false;
|
|
|
|
|
2024-04-14 14:07:21 -04:00
|
|
|
wayland.windowManager.sway.config = let
|
2024-04-08 11:29:07 -04:00
|
|
|
modifier = "Mod4";
|
2024-05-29 12:10:19 -04:00
|
|
|
swaymsg = lib.getExe' config.wayland.windowManager.sway.package "swaymsg";
|
2024-04-14 14:07:21 -04:00
|
|
|
|
|
|
|
# Default apps
|
2024-05-05 22:00:46 -04:00
|
|
|
browser = config.alyraffauf.desktop.defaultApps.webBrowser.exe;
|
2024-05-05 19:39:36 -04:00
|
|
|
fileManager = lib.getExe pkgs.xfce.thunar;
|
2024-05-05 22:00:46 -04:00
|
|
|
editor = config.alyraffauf.desktop.defaultApps.editor.exe;
|
|
|
|
terminal = config.alyraffauf.desktop.defaultApps.terminal.exe;
|
2024-04-14 14:07:21 -04:00
|
|
|
|
2024-05-05 19:39:36 -04:00
|
|
|
brightness = lib.getExe' pkgs.swayosd "swayosd-client";
|
2024-04-28 17:27:50 -04:00
|
|
|
brightness_up = "${brightness} --brightness=raise";
|
|
|
|
brightness_down = "${brightness} --brightness=lower";
|
2024-05-05 19:39:36 -04:00
|
|
|
volume = brightness;
|
2024-04-28 17:27:50 -04:00
|
|
|
volume_up = "${volume} --output-volume=raise";
|
|
|
|
volume_down = "${volume} --output-volume=lower";
|
|
|
|
volume_mute = "${volume} --output-volume=mute-toggle";
|
|
|
|
mic_mute = "${volume} --input-volume=mute-toggle";
|
2024-05-05 19:39:36 -04:00
|
|
|
media = lib.getExe pkgs.playerctl;
|
2024-04-28 17:27:50 -04:00
|
|
|
media_play = "${media} play-pause";
|
|
|
|
media_next = "${media} next";
|
|
|
|
media_prev = "${media} previous";
|
|
|
|
|
2024-04-19 22:00:41 -04:00
|
|
|
# Sway desktop utilities
|
2024-05-05 19:39:36 -04:00
|
|
|
bar = lib.getExe pkgs.waybar;
|
|
|
|
launcher = lib.getExe pkgs.fuzzel;
|
|
|
|
notifyd = lib.getExe pkgs.mako;
|
2024-05-26 01:25:13 -04:00
|
|
|
wallpaperd = "${lib.getExe pkgs.swaybg} -i ${config.alyraffauf.desktop.theme.wallpaper}";
|
2024-05-05 19:39:36 -04:00
|
|
|
logout = lib.getExe pkgs.wlogout;
|
|
|
|
lock = lib.getExe pkgs.swaylock;
|
2024-05-26 20:22:36 -04:00
|
|
|
idled = pkgs.writeShellScript "sway-idled" ''
|
|
|
|
${lib.getExe pkgs.swayidle} -w \
|
2024-05-27 13:18:21 -04:00
|
|
|
before-sleep '${media} pause' \
|
|
|
|
before-sleep '${lock}' \
|
2024-05-26 20:22:36 -04:00
|
|
|
timeout 240 '${lib.getExe pkgs.brightnessctl} -s set 10' \
|
|
|
|
resume '${lib.getExe pkgs.brightnessctl} -r' \
|
|
|
|
timeout 300 '${lock}' \
|
2024-05-29 12:10:19 -04:00
|
|
|
timeout 330 '${swaymsg} "output * dpms off"' \
|
|
|
|
resume '${swaymsg} "output * dpms on"' \
|
2024-05-26 20:22:36 -04:00
|
|
|
${
|
|
|
|
if config.alyraffauf.desktop.sway.autoSuspend
|
|
|
|
then ''timeout 900 '${lib.getExe' pkgs.systemd "systemctl"} suspend' \''
|
|
|
|
else ''\''
|
|
|
|
}
|
|
|
|
'';
|
2024-04-14 14:07:21 -04:00
|
|
|
|
2024-05-05 19:39:36 -04:00
|
|
|
screenshot = lib.getExe' pkgs.shotman "shotman";
|
2024-04-27 15:19:27 -04:00
|
|
|
screenshot_screen = "${screenshot} --capture output";
|
|
|
|
screenshot_region = "${screenshot} --capture region";
|
2024-04-14 14:07:21 -04:00
|
|
|
|
2024-05-28 03:15:00 -04:00
|
|
|
qt_platform_theme = "qt6ct";
|
2024-04-14 14:07:21 -04:00
|
|
|
gdk_scale = "1.5";
|
2024-04-25 21:02:34 -04:00
|
|
|
|
|
|
|
cycleSwayDisplayModes = pkgs.writeShellScriptBin "cycleSwayDisplayModes" ''
|
2024-04-27 17:33:46 -04:00
|
|
|
# TODO: remove petalburg hardcodes
|
2024-05-05 19:39:36 -04:00
|
|
|
current_mode=$(${lib.getExe' config.wayland.windowManager.sway.package "swaymsg"} -t get_outputs -p | grep "Current mode" | grep -Eo '[0-9]+x[0-9]+ @ [0-9.]+ Hz' | tr -d " " | grep 2880)
|
2024-04-25 21:02:34 -04:00
|
|
|
|
|
|
|
if [ $current_mode = "2880x1800@90.001Hz" ]; then
|
2024-05-05 19:39:36 -04:00
|
|
|
${lib.getExe' config.wayland.windowManager.sway.package "swaymsg"} output "eDP-1" mode "2880x1800@60.001Hz";
|
|
|
|
${lib.getExe pkgs.libnotify} "Display set to 2880x1800@60.001Hz."
|
2024-04-25 21:02:34 -04:00
|
|
|
elif [ $current_mode = "2880x1800@60.001Hz" ]; then
|
2024-05-05 19:39:36 -04:00
|
|
|
${lib.getExe' config.wayland.windowManager.sway.package "swaymsg"} output "eDP-1" mode "2880x1800@90.001Hz";
|
|
|
|
${lib.getExe pkgs.libnotify} "Display set to 2880x1800@90.001Hz."
|
2024-04-25 21:02:34 -04:00
|
|
|
fi
|
|
|
|
'';
|
2024-04-14 14:07:21 -04:00
|
|
|
in {
|
2024-05-01 13:59:33 -04:00
|
|
|
bars = [{command = "${bar}";}];
|
2024-04-14 14:07:21 -04:00
|
|
|
modifier = "${modifier}";
|
2024-05-04 21:41:56 -04:00
|
|
|
colors.background = "${config.alyraffauf.desktop.theme.colors.primary}EE";
|
2024-04-13 23:15:26 -04:00
|
|
|
colors.focused = {
|
2024-05-04 21:41:56 -04:00
|
|
|
background = "${config.alyraffauf.desktop.theme.colors.primary}EE";
|
|
|
|
border = "${config.alyraffauf.desktop.theme.colors.primary}EE";
|
|
|
|
childBorder = "${config.alyraffauf.desktop.theme.colors.primary}EE";
|
|
|
|
indicator = "${config.alyraffauf.desktop.theme.colors.primary}EE";
|
2024-05-04 20:44:06 -04:00
|
|
|
text = "${config.alyraffauf.desktop.theme.colors.text}";
|
2024-04-13 23:15:26 -04:00
|
|
|
};
|
|
|
|
colors.focusedInactive = {
|
2024-05-04 21:41:56 -04:00
|
|
|
background = "${config.alyraffauf.desktop.theme.colors.inactive}AA";
|
|
|
|
border = "${config.alyraffauf.desktop.theme.colors.inactive}AA";
|
|
|
|
childBorder = "${config.alyraffauf.desktop.theme.colors.inactive}AA";
|
|
|
|
indicator = "${config.alyraffauf.desktop.theme.colors.inactive}AA";
|
2024-05-04 20:44:06 -04:00
|
|
|
text = "${config.alyraffauf.desktop.theme.colors.text}";
|
2024-04-13 23:15:26 -04:00
|
|
|
};
|
|
|
|
colors.unfocused = {
|
2024-05-04 21:41:56 -04:00
|
|
|
background = "${config.alyraffauf.desktop.theme.colors.inactive}AA";
|
|
|
|
border = "${config.alyraffauf.desktop.theme.colors.inactive}AA";
|
|
|
|
childBorder = "${config.alyraffauf.desktop.theme.colors.inactive}AA";
|
|
|
|
indicator = "${config.alyraffauf.desktop.theme.colors.inactive}AA";
|
2024-05-04 20:44:06 -04:00
|
|
|
text = "${config.alyraffauf.desktop.theme.colors.text}";
|
2024-04-20 13:58:45 -04:00
|
|
|
};
|
|
|
|
defaultWorkspace = "workspace number 1";
|
|
|
|
focus = {
|
|
|
|
followMouse = "always";
|
2024-04-28 19:29:33 -04:00
|
|
|
newWindow = "focus";
|
2024-04-26 10:02:36 -04:00
|
|
|
# mouseWarping = "container";
|
2024-04-13 23:15:26 -04:00
|
|
|
};
|
|
|
|
fonts = {
|
2024-05-04 21:22:48 -04:00
|
|
|
names = ["${config.alyraffauf.desktop.theme.font.name}"];
|
2024-04-13 23:15:26 -04:00
|
|
|
style = "Bold";
|
2024-05-04 23:42:40 -04:00
|
|
|
size = config.alyraffauf.desktop.theme.font.size + 0.0;
|
2024-04-13 23:15:26 -04:00
|
|
|
};
|
2024-04-20 13:58:45 -04:00
|
|
|
gaps.inner = 5;
|
2024-05-04 14:45:54 -04:00
|
|
|
gaps.outer = 5;
|
2024-04-13 23:15:26 -04:00
|
|
|
input = {
|
|
|
|
"type:touchpad" = {
|
|
|
|
click_method = "clickfinger";
|
|
|
|
dwt = "enabled";
|
|
|
|
natural_scroll = "enabled";
|
|
|
|
scroll_method = "two_finger";
|
|
|
|
tap = "enabled";
|
|
|
|
tap_button_map = "lrm";
|
|
|
|
};
|
2024-05-26 15:52:40 -04:00
|
|
|
"type:keyboard" = {
|
|
|
|
xkb_layout = "us";
|
|
|
|
xkb_variant = "altgr-intl";
|
|
|
|
};
|
2024-04-25 19:45:02 -04:00
|
|
|
"1386:21186:Wacom_HID_52C2_Finger" = {
|
|
|
|
map_to_output = "'Samsung Display Corp. 0x4152 Unknown'";
|
|
|
|
};
|
|
|
|
"1386:21186:Wacom_HID_52C2_Pen" = {
|
|
|
|
map_to_output = "'Samsung Display Corp. 0x4152 Unknown'";
|
|
|
|
};
|
2024-04-13 23:15:26 -04:00
|
|
|
};
|
2024-04-19 22:00:41 -04:00
|
|
|
keybindings = {
|
|
|
|
# Apps
|
|
|
|
"${modifier}+B" = "exec ${browser}";
|
|
|
|
"${modifier}+E" = "exec ${editor}";
|
|
|
|
"${modifier}+F" = "exec ${fileManager}";
|
|
|
|
"${modifier}+R" = "exec ${launcher}";
|
|
|
|
"${modifier}+T" = "exec ${terminal}";
|
2024-04-14 14:07:21 -04:00
|
|
|
|
2024-04-19 22:00:41 -04:00
|
|
|
# Manage session.
|
|
|
|
"${modifier}+C" = "kill";
|
2024-05-04 22:01:37 -04:00
|
|
|
"${modifier}+Control+L" = "exec ${lock}";
|
2024-04-19 22:00:41 -04:00
|
|
|
"${modifier}+M" = "exec ${logout}";
|
2024-04-14 14:07:21 -04:00
|
|
|
|
2024-04-19 22:00:41 -04:00
|
|
|
# Basic window management.
|
|
|
|
"${modifier}+Shift+W" = "fullscreen toggle";
|
|
|
|
"${modifier}+Shift+V" = "floating toggle";
|
2024-04-14 14:07:21 -04:00
|
|
|
|
2024-04-19 22:00:41 -04:00
|
|
|
# Move focus with modifier + arrow keys
|
|
|
|
"${modifier}+Left" = "focus left";
|
|
|
|
"${modifier}+Down" = "focus down";
|
|
|
|
"${modifier}+Up" = "focus up";
|
|
|
|
"${modifier}+Right" = "focus right";
|
2024-04-14 14:07:21 -04:00
|
|
|
|
2024-05-01 17:49:24 -04:00
|
|
|
# Move focus with modifier + hjkl keys (vim/ADM-3A terminal)
|
|
|
|
"${modifier}+H" = "focus left";
|
|
|
|
"${modifier}+J" = "focus down";
|
|
|
|
"${modifier}+K" = "focus up";
|
|
|
|
"${modifier}+L" = "focus right";
|
|
|
|
|
2024-04-19 22:00:41 -04:00
|
|
|
# Move window with modifier SHIFT + arrow keys
|
|
|
|
"${modifier}+Shift+Left" = "move left";
|
|
|
|
"${modifier}+Shift+Down" = "move down";
|
|
|
|
"${modifier}+Shift+Up" = "move up";
|
|
|
|
"${modifier}+Shift+Right" = "move right";
|
2024-04-14 14:07:21 -04:00
|
|
|
|
2024-05-01 18:10:46 -04:00
|
|
|
# Move window with modifier SHIFT + hjkl keys
|
|
|
|
"${modifier}+Shift+H" = "move left";
|
|
|
|
"${modifier}+Shift+J" = "move down";
|
|
|
|
"${modifier}+Shift+K" = "move up";
|
|
|
|
"${modifier}+Shift+L" = "move right";
|
|
|
|
|
2024-04-19 22:00:41 -04:00
|
|
|
# Gnome-like workspaces.
|
|
|
|
"${modifier}+Comma" = "workspace prev";
|
|
|
|
"${modifier}+Period" = "workspace next";
|
|
|
|
"${modifier}+Shift+Comma" = "move container to workspace prev; workspace prev";
|
|
|
|
"${modifier}+Shift+Period" = "move container to workspace next; workspace next";
|
2024-04-14 14:07:21 -04:00
|
|
|
|
2024-04-19 22:00:41 -04:00
|
|
|
# Switch workspaces with modifier + [0-9]
|
2024-04-14 14:07:21 -04:00
|
|
|
"${modifier}+1" = "workspace number 1";
|
|
|
|
"${modifier}+2" = "workspace number 2";
|
|
|
|
"${modifier}+3" = "workspace number 3";
|
|
|
|
"${modifier}+4" = "workspace number 4";
|
|
|
|
"${modifier}+5" = "workspace number 5";
|
|
|
|
"${modifier}+6" = "workspace number 6";
|
|
|
|
"${modifier}+7" = "workspace number 7";
|
|
|
|
"${modifier}+8" = "workspace number 8";
|
|
|
|
"${modifier}+9" = "workspace number 9";
|
2024-04-19 22:00:41 -04:00
|
|
|
"${modifier}+0" = "workspace number 10";
|
2024-04-14 14:07:21 -04:00
|
|
|
|
2024-04-19 22:00:41 -04:00
|
|
|
# Move active window to a workspace with modifier + SHIFT + [0-9]
|
2024-05-03 06:34:56 -04:00
|
|
|
"${modifier}+Shift+1" = "move container to workspace number 1; workspace 1";
|
|
|
|
"${modifier}+Shift+2" = "move container to workspace number 2; workspace 2";
|
|
|
|
"${modifier}+Shift+3" = "move container to workspace number 3; workspace 3";
|
|
|
|
"${modifier}+Shift+4" = "move container to workspace number 4; workspace 4";
|
|
|
|
"${modifier}+Shift+5" = "move container to workspace number 5; workspace 5";
|
|
|
|
"${modifier}+Shift+6" = "move container to workspace number 6; workspace 6";
|
|
|
|
"${modifier}+Shift+7" = "move container to workspace number 7; workspace 7";
|
|
|
|
"${modifier}+Shift+8" = "move container to workspace number 8; workspace 8";
|
|
|
|
"${modifier}+Shift+9" = "move container to workspace number 9; workspace 9";
|
|
|
|
"${modifier}+Shift+0" = "move container to workspace number 10; workspace 10";
|
2024-04-19 22:00:41 -04:00
|
|
|
|
2024-04-27 17:33:46 -04:00
|
|
|
# Move workspace to another output.
|
|
|
|
"${modifier}+Control+Shift+Left" = "move workspace to output left";
|
|
|
|
"${modifier}+Control+Shift+Down" = "move workspace to output down";
|
|
|
|
"${modifier}+Control+Shift+Up" = "move workspace to output up";
|
|
|
|
"${modifier}+Control+Shift+Right" = "move workspace to output right";
|
|
|
|
|
2024-05-01 18:10:46 -04:00
|
|
|
# Move workspace to another output.
|
|
|
|
"${modifier}+Control+Shift+H" = "move workspace to output left";
|
|
|
|
"${modifier}+Control+Shift+J" = "move workspace to output down";
|
|
|
|
"${modifier}+Control+Shift+K" = "move workspace to output up";
|
|
|
|
"${modifier}+Control+Shift+L" = "move workspace to output right";
|
|
|
|
|
2024-04-19 22:00:41 -04:00
|
|
|
# Scratchpad show and move
|
|
|
|
"${modifier}+S" = "scratchpad show";
|
|
|
|
"${modifier}+Shift+S" = "move scratchpad";
|
2024-04-14 14:07:21 -04:00
|
|
|
|
2024-04-19 22:00:41 -04:00
|
|
|
# For petalburg
|
|
|
|
"XF86Launch4" = "exec pp-adjuster";
|
2024-04-25 21:02:34 -04:00
|
|
|
|
2024-05-05 19:39:36 -04:00
|
|
|
"XF86Launch3" = "exec ${lib.getExe cycleSwayDisplayModes}";
|
2024-04-25 21:02:34 -04:00
|
|
|
|
2024-04-19 22:00:41 -04:00
|
|
|
# Screenshots
|
|
|
|
"PRINT" = "exec ${screenshot_screen}";
|
2024-04-27 15:19:27 -04:00
|
|
|
"${modifier}+PRINT" = "exec ${screenshot_region}";
|
2024-04-19 22:00:41 -04:00
|
|
|
|
|
|
|
# Show/hide waybar
|
|
|
|
"${modifier}+F11" = "exec pkill -SIGUSR1 waybar";
|
|
|
|
|
2024-04-21 21:59:43 -04:00
|
|
|
"Ctrl+Mod1+M" = "mode move";
|
|
|
|
"Ctrl+Mod1+R" = "mode resize";
|
2024-04-19 22:00:41 -04:00
|
|
|
};
|
|
|
|
modes = {
|
|
|
|
move = {
|
|
|
|
Escape = "mode default";
|
|
|
|
Left = "move left";
|
|
|
|
Down = "move down";
|
|
|
|
Up = "move up";
|
|
|
|
Right = "move right";
|
2024-05-01 17:49:24 -04:00
|
|
|
H = "move left";
|
|
|
|
J = "move down";
|
|
|
|
K = "move up";
|
|
|
|
L = "move right";
|
2024-04-19 22:00:41 -04:00
|
|
|
Comma = "move container to workspace prev; workspace prev";
|
|
|
|
Period = "move container to workspace next; workspace next";
|
2024-05-03 06:34:56 -04:00
|
|
|
"1" = "move container to workspace number 1; workspace 1";
|
|
|
|
"2" = "move container to workspace number 2; workspace 2";
|
|
|
|
"3" = "move container to workspace number 3; workspace 3";
|
|
|
|
"4" = "move container to workspace number 4; workspace 4";
|
|
|
|
"5" = "move container to workspace number 5; workspace 5";
|
|
|
|
"6" = "move container to workspace number 6; workspace 6";
|
|
|
|
"7" = "move container to workspace number 7; workspace 7";
|
|
|
|
"8" = "move container to workspace number 8; workspace 8";
|
|
|
|
"9" = "move container to workspace number 9; workspace 9";
|
|
|
|
"0" = "move container to workspace number 10; workspace 10";
|
2024-04-19 22:00:41 -04:00
|
|
|
S = "move scratchpad";
|
|
|
|
};
|
2024-04-20 13:58:45 -04:00
|
|
|
resize = {
|
|
|
|
Escape = "mode default";
|
|
|
|
Left = "resize shrink width 10 px";
|
|
|
|
Down = "resize grow height 10 px";
|
|
|
|
Up = "resize shrink height 10 px";
|
|
|
|
Right = "resize grow width 10 px";
|
|
|
|
};
|
2024-04-14 14:07:21 -04:00
|
|
|
};
|
2024-04-20 13:58:45 -04:00
|
|
|
startup = [
|
2024-05-26 01:25:13 -04:00
|
|
|
{
|
|
|
|
command =
|
|
|
|
if config.alyraffauf.desktop.sway.randomWallpaper
|
2024-05-26 03:33:31 -04:00
|
|
|
then "true"
|
2024-05-26 01:25:13 -04:00
|
|
|
else "${wallpaperd}";
|
|
|
|
}
|
2024-05-27 14:51:40 -04:00
|
|
|
{command = "${fileManager} --daemon";}
|
|
|
|
{command = "${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1";}
|
2024-05-27 16:07:29 -04:00
|
|
|
{command = "${idled}";}
|
2024-05-27 14:51:40 -04:00
|
|
|
{command = lib.getExe pkgs.autotiling;}
|
|
|
|
{command = lib.getExe' pkgs.blueman "blueman-applet";}
|
|
|
|
{command = lib.getExe' pkgs.networkmanagerapplet "nm-applet";}
|
|
|
|
{command = lib.getExe' pkgs.playerctl "playerctld";}
|
|
|
|
{command = lib.getExe' pkgs.swayosd "swayosd-server";}
|
|
|
|
{command = notifyd;}
|
2024-04-20 13:58:45 -04:00
|
|
|
];
|
|
|
|
output = {
|
|
|
|
"BOE 0x095F Unknown" = {
|
|
|
|
scale = "1.5";
|
|
|
|
};
|
|
|
|
"LG Display 0x0569 Unknown" = {
|
2024-06-09 22:00:30 -04:00
|
|
|
scale = "1.0";
|
2024-04-20 13:58:45 -04:00
|
|
|
};
|
2024-04-22 13:41:15 -04:00
|
|
|
"Samsung Display Corp. 0x4152 Unknown" = {
|
|
|
|
scale = "2.0";
|
|
|
|
};
|
2024-04-20 13:58:45 -04:00
|
|
|
"LG Electronics LG ULTRAWIDE 311NTAB5M720" = {
|
|
|
|
scale = "1.25";
|
|
|
|
};
|
2024-04-22 13:41:15 -04:00
|
|
|
"Guangxi Century Innovation Display Electronics Co., Ltd 27C1U-D 0000000000001" = {
|
|
|
|
scale = "1.5";
|
|
|
|
pos = "-2560 0";
|
2024-04-20 13:58:45 -04:00
|
|
|
};
|
2024-04-26 09:05:27 -04:00
|
|
|
"HP Inc. HP 24mh 3CM037248S " = {
|
|
|
|
scale = "1.0";
|
|
|
|
pos = "-1920 0";
|
|
|
|
};
|
2024-04-20 13:58:45 -04:00
|
|
|
};
|
2024-04-28 21:58:04 -04:00
|
|
|
floating = {
|
|
|
|
criteria = [
|
2024-05-15 00:09:51 -04:00
|
|
|
{app_id = ".blueman-manager-wrapped";}
|
|
|
|
{app_id = "Bitwarden";}
|
|
|
|
{app_id = "blueberry.py";}
|
|
|
|
{app_id = "com.github.wwmm.easyeffects";}
|
|
|
|
{app_id = "org.keepassxc.KeePassXC";}
|
|
|
|
{app_id = "pavucontrol";}
|
2024-05-15 14:29:22 -04:00
|
|
|
{app_id = "solaar";}
|
2024-05-16 22:48:34 -04:00
|
|
|
{title = "Open File";}
|
|
|
|
{title = "Open Folder";}
|
2024-05-15 00:09:51 -04:00
|
|
|
{window_role = "bubble";}
|
|
|
|
{window_role = "dialog";}
|
|
|
|
{window_role = "pop-up";}
|
|
|
|
{window_type = "dialog";}
|
2024-04-28 21:58:04 -04:00
|
|
|
];
|
|
|
|
};
|
|
|
|
window = {
|
|
|
|
titlebar = false;
|
|
|
|
commands = [
|
2024-04-28 15:02:58 -04:00
|
|
|
{
|
2024-04-29 15:17:31 -04:00
|
|
|
command = "floating enable; sticky toggle; resize 35ppt 10ppt";
|
2024-04-28 15:02:58 -04:00
|
|
|
criteria = {
|
|
|
|
title = "^Picture-in-Picture$";
|
|
|
|
app_id = "firefox";
|
|
|
|
};
|
|
|
|
}
|
2024-05-16 22:48:34 -04:00
|
|
|
{
|
|
|
|
command = "resize set 40ppt 60ppt; move position center";
|
|
|
|
criteria = {title = "Open Folder";};
|
|
|
|
}
|
|
|
|
{
|
|
|
|
command = "resize set 40ppt 60ppt; move position center";
|
|
|
|
criteria = {title = "Open File";};
|
|
|
|
}
|
2024-04-29 15:17:31 -04:00
|
|
|
{
|
2024-05-15 00:09:51 -04:00
|
|
|
command = "resize set 40ppt 60ppt; move position center";
|
|
|
|
criteria = {app_id = "blueberry.py";};
|
2024-04-29 15:17:31 -04:00
|
|
|
}
|
2024-05-15 14:29:22 -04:00
|
|
|
{
|
|
|
|
command = "resize set 60ppt 80ppt; move position center";
|
|
|
|
criteria = {app_id = "solaar";};
|
|
|
|
}
|
2024-05-11 22:06:48 -04:00
|
|
|
{
|
2024-05-15 00:09:51 -04:00
|
|
|
command = "resize set 80ppt 80ppt; move position center";
|
|
|
|
criteria = {app_id = "org.keepassxc.KeePassXC";};
|
2024-05-11 22:06:48 -04:00
|
|
|
}
|
2024-04-29 15:17:31 -04:00
|
|
|
{
|
2024-05-15 00:09:51 -04:00
|
|
|
command = "resize set 40ppt 60ppt; move position center";
|
|
|
|
criteria = {app_id = ".blueman-manager-wrapped";};
|
|
|
|
}
|
|
|
|
{
|
|
|
|
command = "resize set 40ppt 60ppt; move position center";
|
|
|
|
criteria = {app_id = "pavucontrol";};
|
2024-04-29 15:17:31 -04:00
|
|
|
}
|
2024-04-28 15:02:58 -04:00
|
|
|
];
|
|
|
|
};
|
2024-04-28 17:58:19 -04:00
|
|
|
workspaceAutoBackAndForth = true;
|
2024-03-31 08:09:03 -04:00
|
|
|
};
|
|
|
|
|
2024-05-14 07:32:04 -04:00
|
|
|
wayland.windowManager.sway.extraConfig = let
|
|
|
|
brightness = lib.getExe' pkgs.swayosd "swayosd-client";
|
|
|
|
brightness_up = "${brightness} --brightness=raise";
|
|
|
|
brightness_down = "${brightness} --brightness=lower";
|
|
|
|
volume = brightness;
|
|
|
|
volume_up = "${volume} --output-volume=raise";
|
|
|
|
volume_down = "${volume} --output-volume=lower";
|
|
|
|
volume_mute = "${volume} --output-volume=mute-toggle";
|
|
|
|
mic_mute = "${volume} --input-volume=mute-toggle";
|
|
|
|
media = lib.getExe pkgs.playerctl;
|
|
|
|
media_play = "${media} play-pause";
|
|
|
|
media_next = "${media} next";
|
|
|
|
media_prev = "${media} previous";
|
|
|
|
in ''
|
|
|
|
bindsym --locked XF86MonBrightnessUp exec ${brightness_up}
|
|
|
|
bindsym --locked XF86MonBrightnessDown exec ${brightness_down}
|
|
|
|
bindsym --locked XF86AudioRaiseVolume exec ${volume_up}
|
|
|
|
bindsym --locked XF86AudioLowerVolume exec ${volume_down}
|
|
|
|
bindsym --locked XF86AudioMute exec ${volume_mute}
|
|
|
|
bindsym --locked XF86AudioMicMute exec ${mic_mute}
|
|
|
|
bindsym --locked XF86AudioPlay exec ${media_play}
|
|
|
|
bindsym --locked XF86AudioPrev exec ${media_prev}
|
|
|
|
bindsym --locked XF86AudioNext exec ${media_next}
|
|
|
|
bindsym --locked XF86Launch2 exec ${media_play}
|
|
|
|
|
2024-04-27 15:05:02 -04:00
|
|
|
mode "move" {
|
|
|
|
bindgesture swipe:right move container to workspace prev; workspace prev
|
|
|
|
bindgesture swipe:left move container to workspace next; workspace next
|
|
|
|
bindgesture pinch:inward+up move up
|
|
|
|
bindgesture pinch:inward+down move down
|
|
|
|
bindgesture pinch:inward+left move left
|
|
|
|
bindgesture pinch:inward+right move right
|
|
|
|
}
|
|
|
|
|
2024-04-14 10:03:18 -04:00
|
|
|
bindgesture swipe:right workspace prev
|
|
|
|
bindgesture swipe:left workspace next
|
2024-04-27 17:59:34 -04:00
|
|
|
|
2024-04-27 14:01:32 -04:00
|
|
|
bindswitch --reload --locked lid:on output eDP-1 disable
|
|
|
|
bindswitch --reload --locked lid:off output eDP-1 enable
|
2024-04-19 22:00:41 -04:00
|
|
|
|
2024-05-12 18:19:40 -04:00
|
|
|
${
|
2024-06-04 01:18:46 -04:00
|
|
|
if config.wayland.windowManager.sway.package == pkgs.swayfx
|
2024-05-12 18:19:40 -04:00
|
|
|
then "
|
|
|
|
blur enable
|
|
|
|
blur_passes 1
|
|
|
|
|
|
|
|
corner_radius 10
|
|
|
|
shadows enable
|
2024-05-12 23:19:58 -04:00
|
|
|
shadows_on_csd enable
|
|
|
|
shadow_color ${config.alyraffauf.desktop.theme.colors.shadow}
|
|
|
|
|
|
|
|
default_dim_inactive 0.05
|
2024-05-12 18:19:40 -04:00
|
|
|
|
|
|
|
layer_effects launcher blur enable
|
|
|
|
layer_effects launcher blur_ignore_transparent enable
|
2024-05-27 14:51:40 -04:00
|
|
|
layer_effects logout_dialog blur enable
|
2024-05-12 18:19:40 -04:00
|
|
|
layer_effects notifications blur enable
|
|
|
|
layer_effects notifications blur_ignore_transparent enable
|
2024-05-27 14:51:40 -04:00
|
|
|
layer_effects swaybar blur enable
|
|
|
|
layer_effects swaybar blur_ignore_transparent enable
|
2024-05-12 18:19:40 -04:00
|
|
|
layer_effects swayosd blur enable
|
2024-05-27 14:51:40 -04:00
|
|
|
layer_effects swayosd blur_ignore_transparent enable
|
|
|
|
layer_effects waybar blur enable
|
|
|
|
layer_effects waybar blur_ignore_transparent enable"
|
2024-05-12 18:19:40 -04:00
|
|
|
else ""
|
|
|
|
}
|
2024-04-14 10:03:18 -04:00
|
|
|
'';
|
|
|
|
|
2024-03-31 08:09:03 -04:00
|
|
|
xdg.portal = {
|
|
|
|
enable = true;
|
2024-04-07 22:16:33 -04:00
|
|
|
configPackages = [pkgs.xdg-desktop-portal-wlr];
|
|
|
|
extraPortals = [pkgs.xdg-desktop-portal-wlr];
|
2024-03-31 08:09:03 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|