mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
sway: modular config
This commit is contained in:
parent
93a6613abc
commit
050799b77f
17 changed files with 264 additions and 193 deletions
|
|
@ -4,7 +4,7 @@
|
|||
environment.systemPackages = with pkgs; [
|
||||
swaybg
|
||||
swayidle
|
||||
mako
|
||||
dunst
|
||||
rofi
|
||||
rofimoji
|
||||
rofi-power-menu
|
||||
|
|
|
|||
10
nixcfgs/modules/nixos/programs/dolphin.nix
Normal file
10
nixcfgs/modules/nixos/programs/dolphin.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs.kdePackages; [
|
||||
dolphin
|
||||
dolphin-plugins
|
||||
konsole
|
||||
kio-admin
|
||||
];
|
||||
# See: https://github.com/NixOS/nixpkgs/issues/409986
|
||||
environment.etc."xdg/menus/applications.menu".source = "${pkgs.kdePackages.plasma-workspace}/etc/xdg/menus/plasma-applications.menu";
|
||||
}
|
||||
|
|
@ -24,6 +24,7 @@
|
|||
# "com.vivaldi.Vivaldi"
|
||||
"com.getpostman.Postman"
|
||||
"us.zoom.Zoom"
|
||||
"com.ticktick.Ticktick"
|
||||
];
|
||||
services.flatpak.overrides = {
|
||||
global = {
|
||||
|
|
@ -48,6 +49,7 @@
|
|||
};
|
||||
};
|
||||
"md.obsidian.Obsidian".Context.sockets = ["wayland"];
|
||||
"com.ticktick.Ticktick".Context.sockets = ["wayland"];
|
||||
"com.getpostman.Postman".Context.persistent = ["Postman"];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
43
nixcfgs/users/js0ny/programs/desktop/sway.nix
Normal file
43
nixcfgs/users/js0ny/programs/desktop/sway.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
# See also: ~/.dotfiles/home/dot_config/sway
|
||||
# https://d19qhx4ioawdt7.cloudfront.net/docs/nix-home-manager-sway.html
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
mod = "Mod4";
|
||||
in {
|
||||
wayland.windowManager.sway = {
|
||||
checkConfig = true;
|
||||
# config = {
|
||||
# modifier = mod;
|
||||
# keybindings = lib.attrsets.mergeAttrsList [
|
||||
# (lib.attrsets.mergeAttrsList (map (num: let
|
||||
# ws = toString num;
|
||||
# in {
|
||||
# "${mod}+${ws}" = "workspace ${ws}";
|
||||
# "${mod}+Ctrl+${ws}" = "move container to workspace ${ws}";
|
||||
# }) [1 2 3 4 5 6 7 8 9 0]))
|
||||
#
|
||||
# (lib.attrsets.concatMapAttrs (key: direction: {
|
||||
# "${mod}+${key}" = "focus ${direction}";
|
||||
# "${mod}+Ctrl+${key}" = "move ${direction}";
|
||||
# }) {
|
||||
# h = "left";
|
||||
# j = "down";
|
||||
# k = "up";
|
||||
# l = "right";
|
||||
# })
|
||||
# ];
|
||||
# };
|
||||
swaynag.enable = true;
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
grim
|
||||
slurp
|
||||
grim
|
||||
dunst
|
||||
sway-contrib.grimshot
|
||||
];
|
||||
}
|
||||
|
|
@ -35,8 +35,8 @@
|
|||
./programs/ollama.nix
|
||||
|
||||
# Desktop Linux
|
||||
./programs/plasma.nix
|
||||
./programs/niri.nix
|
||||
./programs/desktop/plasma.nix
|
||||
./programs/desktop/sway.nix
|
||||
|
||||
# General Program config
|
||||
../../modules/home/programs/eza.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue