Add more sway config files.

This commit is contained in:
Tom Alexander 2024-12-20 23:03:51 -05:00
parent 54c8459fa1
commit a7f3754d25
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 44 additions and 2 deletions

View File

@ -42,8 +42,8 @@ let
include ${window-management} include ${window-management}
include ${movement} include ${movement}
include ${disable-focus-follows-mouse} include ${disable-focus-follows-mouse}
include ~/.config/sway/config.d/*.conf include ${background}
include /etc/sway/config.d/* include ${touchpad_input}
''; '';
}; };
base-hotkeys = pkgs.writeTextFile { base-hotkeys = pkgs.writeTextFile {
@ -210,6 +210,46 @@ let
focus_follows_mouse no focus_follows_mouse no
''; '';
}; };
background = pkgs.writeTextFile {
name = "background.conf";
text = ''
output * bg ${./files/bliss.jpg} fill
'';
};
touchpad_input = pkgs.writeTextFile {
name = "touchpad_input.conf";
text = ''
input * xkb_rules "evdev"
# All touchpads
input type:touchpad {
dwt enabled
click_method clickfinger
tap enabled
}
'';
};
start_screen_share = pkgs.writeShellScriptBin "start_screen_share" ''
# Disable displaying notifications. This is useful for video conference screen sharing.
set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "''${BASH_SOURCE[0]}" )" && pwd )"
makoctl set-mode do-not-disturb
swaymsg output "'Dell Inc. DELL U3014 P1V6N35M329L'" scale 2
'';
stop_screen_share = pkgs.writeShellScriptBin "stop_screen_share" ''
# Allow mako to show notifications again.
set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "''${BASH_SOURCE [ 0 ]}" )" && pwd )"
makoctl set-mode default
swaymsg output "'Dell Inc. DELL U3014 P1V6N35M329L'" scale 1
'';
in in
{ {
imports = [ ]; imports = [ ];
@ -217,6 +257,8 @@ in
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
alacritty alacritty
pcmanfm pcmanfm
start_screen_share
stop_screen_share
]; ];
environment.sessionVariables = { environment.sessionVariables = {

Binary file not shown.

After

Width:  |  Height:  |  Size: 638 KiB