chore: use sway on brontes

This commit is contained in:
Nydragon 2024-09-21 01:29:27 +02:00
parent 619c5e8931
commit 502d6d457b
Signed by: nydragon
SSH key fingerprint: SHA256:iQnIC12spf4QjWSbarmkD2No1cLMlu6TWoV7K6cYF5g
6 changed files with 12 additions and 20 deletions

View file

@ -3,9 +3,11 @@
imports = [ imports = [
./hypridle ./hypridle
./hyprland ./hyprland
./hyprlock
./foot.nix ./foot.nix
./graphical ./graphical
./terminal ./terminal
./rofi ./rofi
./sway
]; ];
} }

View file

@ -4,7 +4,7 @@
osConfig, osConfig,
... ...
}: }:
lib.mkIf osConfig.programs.hyprland.enable { lib.mkIf (osConfig.programs.hyprland.enable || osConfig.programs.sway.enable) {
services.hypridle = { services.hypridle = {
enable = true; enable = true;
settings = { settings = {

View file

@ -1,4 +1,5 @@
{ { lib, osConfig, ... }:
lib.mkIf (osConfig.programs.hyprland.enable || osConfig.programs.sway.enable) {
programs.hyprlock = { programs.hyprlock = {
enable = true; enable = true;
settings = { settings = {

View file

@ -3,16 +3,10 @@
pkgs, pkgs,
config, config,
lib, lib,
osConfig,
... ...
}: }:
{ lib.mkIf osConfig.programs.sway.enable {
imports = [
./swayidle.nix
./swaylock.nix
./../swaync
./../waybar
];
wayland.windowManager.sway = wayland.windowManager.sway =
let let
homeDirectory = config.home.homeDirectory; homeDirectory = config.home.homeDirectory;
@ -60,7 +54,7 @@
mod = config.wayland.windowManager.sway.config.modifier; mod = config.wayland.windowManager.sway.config.modifier;
in in
lib.mkOptionDefault { lib.mkOptionDefault {
"${mod}+p" = "exec ${pkgs.cliphist}/bin/cliphist wipe & ${pkgs.swaylock}/bin/swaylock"; "${mod}+p" = "${pkgs.hyprlock}/bin/hyprlock";
"${mod}+Shift+p" = "exec rofi -show p -modi p:${pkgs.rofi-power-menu}/bin/rofi-power-menu"; "${mod}+Shift+p" = "exec rofi -show p -modi p:${pkgs.rofi-power-menu}/bin/rofi-power-menu";
# Reload the config file # Reload the config file
@ -92,8 +86,8 @@
"--locked XF86AudioNext" = "exec ${pkgs.playerctl}/bin/playerctl next"; "--locked XF86AudioNext" = "exec ${pkgs.playerctl}/bin/playerctl next";
"--locked XF86AudioPrev" = "exec ${pkgs.playerctl}/bin/playerctl previous"; "--locked XF86AudioPrev" = "exec ${pkgs.playerctl}/bin/playerctl previous";
"Print" = "exec ${pkgs.scripts.screenshot}/bin/screenshot"; "Print" = "exec ${pkgs.scripts.screenshot}/bin/screenshot";
"${mod}+u" = "exec ${pkgs.scripts.screenshot}/bin/screenshot"; "${mod}+u" = "exec ${pkgs.hyprpicker}/bin/hyprpicker -r -z & ${pkgs.hyprshot}/bin/hyprshot -o ~/Pictures/screenshots -m region";
"${mod}+Shift+u" = "exec ${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\" - | ${pkgs.satty}/bin/satty -f - --fullscreen"; "${mod}+Shift+u" = "exec ${pkgs.hyprpicker}/bin/hyprpicker -r -z & ${pkgs.hyprshot}/bin/hyprshot --raw -m region | ${pkgs.satty}/bin/satty -f - --fullscreen";
#: Workspace movement {{{ #: Workspace movement {{{
"--input-device=${inputs.kb.builtin} ${mod}+ampersand" = "workspace number 1"; "--input-device=${inputs.kb.builtin} ${mod}+ampersand" = "workspace number 1";
@ -135,10 +129,6 @@
command = "${pkgs.swaynotificationcenter}/bin/swaync-client --reload-config --reload-css"; command = "${pkgs.swaynotificationcenter}/bin/swaync-client --reload-config --reload-css";
always = true; always = true;
} }
{
# Copy all copied values into the cliphist store
command = "${pkgs.wl-clipboard}/bin/wl-paste --watch ${pkgs.cliphist}/bin/cliphist store -max-items 10";
}
]; ];
#: }}} #: }}}
assigns = { assigns = {

View file

@ -41,7 +41,7 @@
fish.enable = true; fish.enable = true;
firefox.enable = true; firefox.enable = true;
thunderbird.enable = true; thunderbird.enable = true;
hyprland.enable = true; sway.enable = true;
}; };
security.polkit.enable = true; security.polkit.enable = true;
@ -83,6 +83,7 @@
eza eza
bat bat
swaynotificationcenter swaynotificationcenter
pop-icon-theme
]; ];
system.stateVersion = "24.05"; system.stateVersion = "24.05";

View file

@ -10,7 +10,6 @@
../../home/rofi ../../home/rofi
../../home/swaync ../../home/swaync
../../home/waybar ../../home/waybar
../../home/hyprlock
../../home/hyprpaper ../../home/hyprpaper
../../home/themes/catppuccin.nix ../../home/themes/catppuccin.nix
../../home ../../home
@ -35,7 +34,6 @@
keepassxc keepassxc
kdeconnect kdeconnect
nextcloud-client nextcloud-client
cliphist
digikam digikam
fragments fragments
element-desktop element-desktop