Add kanshi.
This commit is contained in:
parent
6b9660bc44
commit
a3cb2c8632
24
nix/configuration/roles/kanshi/default.nix
Normal file
24
nix/configuration/roles/kanshi/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
7
nix/configuration/roles/kanshi/files/config_kanshi
Normal file
7
nix/configuration/roles/kanshi/files/config_kanshi
Normal file
@ -0,0 +1,7 @@
|
||||
profile docked {
|
||||
output eDP-1 disable
|
||||
output "Dell Inc. DELL U3014 P1V6N35M329L" enable
|
||||
}
|
||||
profile laptop {
|
||||
output eDP-1 enable
|
||||
}
|
@ -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;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user