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 = [
./hypridle
./hyprland
./hyprlock
./foot.nix
./graphical
./terminal
./rofi
./sway
];
}

View file

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

View file

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

View file

@ -3,16 +3,10 @@
pkgs,
config,
lib,
osConfig,
...
}:
{
imports = [
./swayidle.nix
./swaylock.nix
./../swaync
./../waybar
];
lib.mkIf osConfig.programs.sway.enable {
wayland.windowManager.sway =
let
homeDirectory = config.home.homeDirectory;
@ -60,7 +54,7 @@
mod = config.wayland.windowManager.sway.config.modifier;
in
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";
# Reload the config file
@ -92,8 +86,8 @@
"--locked XF86AudioNext" = "exec ${pkgs.playerctl}/bin/playerctl next";
"--locked XF86AudioPrev" = "exec ${pkgs.playerctl}/bin/playerctl previous";
"Print" = "exec ${pkgs.scripts.screenshot}/bin/screenshot";
"${mod}+u" = "exec ${pkgs.scripts.screenshot}/bin/screenshot";
"${mod}+Shift+u" = "exec ${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\" - | ${pkgs.satty}/bin/satty -f - --fullscreen";
"${mod}+u" = "exec ${pkgs.hyprpicker}/bin/hyprpicker -r -z & ${pkgs.hyprshot}/bin/hyprshot -o ~/Pictures/screenshots -m region";
"${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 {{{
"--input-device=${inputs.kb.builtin} ${mod}+ampersand" = "workspace number 1";
@ -135,10 +129,6 @@
command = "${pkgs.swaynotificationcenter}/bin/swaync-client --reload-config --reload-css";
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 = {

View file

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

View file

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