add some wayland stuff

This commit is contained in:
zoe 2023-06-24 13:48:56 +02:00
parent b335246a3d
commit ca94a84072
3 changed files with 10 additions and 4 deletions

View File

@ -1,4 +1,4 @@
{ pkgs, lib, config, ... }:
{ lib, config, ... }:
let
mod = "Mod4";
term = "kitty";
@ -67,7 +67,7 @@ in
## calculator
"${mod}+c" = "exec rofi -show calc";
## emoji
"${mod}+period" = "exec kaokao | xclip -selection clipboard";
"${mod}+period" = "exec kaokao | wl-copy";
## THE PICTURES
"${mod}+s" = "exec flameshot gui --clipboard";
@ -172,7 +172,7 @@ in
bars = [{
position = "top";
command = "waybar";
command = "swaybar";
statusCommand =
"i3status-rs $HOME/.config/i3status-rust/config-main.toml";
fonts = {
@ -217,6 +217,10 @@ in
command = "--no-startup-id i3-layouts";
always = true;
}
{
command = "swaymsg -t SUBSCRIBE -m \"['workspace']\" | jq --unbuffered -r 'select(.change == \"focus\") | .current.output' | xargs -L1 swaymsg input type:tablet\_tool map\_to\_output";
always = true;
}
];
};
home-manager.users.zoe.xsession.windowManager.i3.extraConfig = ''

View File

@ -1,4 +1,4 @@
{ pkgs, lib, ... }: {
{ pkgs, ... }: {
imports = [ ./config.nix ];
home-manager.users.zoe.wayland.windowManager.sway = {
package = pkgs.sway;

View File

@ -197,6 +197,8 @@ in {
nix-index
# system tools
wl-clipboard
jq
eva
xf86_input_wacom
xorg.xkill