Add kanshi.

This commit is contained in:
Tom Alexander 2025-01-09 18:04:44 -05:00
parent 6b9660bc44
commit a3cb2c8632
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
3 changed files with 43 additions and 2 deletions

View File

@ -0,0 +1,24 @@
{
config,
lib,
pkgs,
...
}:
{
imports = [ ];
environment.systemPackages = with pkgs; [
kanshi
];
home-manager.users.talexander =
{ pkgs, ... }:
{
home.file = {
".config/kanshi/config" = {
source = ./files/config_kanshi;
};
};
};
}

View File

@ -0,0 +1,7 @@
profile docked {
output eDP-1 disable
output "Dell Inc. DELL U3014 P1V6N35M329L" enable
}
profile laptop {
output eDP-1 enable
}

View File

@ -46,6 +46,7 @@ let
include ${touchpad_input}
include ${waybar}
include ${announce_sway_start}
include ${exec_kanshi}
'';
};
base-hotkeys = pkgs.writeTextFile {
@ -261,6 +262,13 @@ let
'';
};
exec_kanshi = pkgs.writeTextFile {
name = "exec_kanshi.conf";
text = ''
exec kanshi
'';
};
start_screen_share = pkgs.writeShellScriptBin "start_screen_share" ''
# Disable displaying notifications. This is useful for video conference screen sharing.
set -euo pipefail
@ -283,7 +291,9 @@ let
'';
in
{
imports = [ ];
imports = [
../kanshi
];
environment.systemPackages = with pkgs; [
alacritty
@ -359,11 +369,11 @@ in
};
};
# Configure default programs (for example, default browser)
home-manager.users.talexander =
{ pkgs, ... }:
{
home.file = {
# Configure default programs (for example, default browser)
".config/mimeapps.list" = {
source = ./files/mimeapps.list;
};