Fixed sway, waybar, xdg and pass

This commit is contained in:
Andrea Ciceri 2021-10-01 00:43:42 +02:00
parent 25fa736dff
commit f138a25ad6
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
10 changed files with 65 additions and 65 deletions

View file

@ -1,7 +1,7 @@
{
programs.foot = {
enable = true;
server.enable = true;
server.enable = false; # server is executed by sway without systemd integration
settings = {
main = {
term = "xterm-256color";
@ -14,5 +14,6 @@
hide-when-typing = "yes";
};
};
};
}

View file

@ -1,5 +1,9 @@
{
services.pass-secret-service.enable = true;
services.password-store-sync.enable = true;
programs.password-store.enable = true;
programs.password-store = {
enable = true;
settings = {
PASSWORD_STORE_DIR = "/home/ccr/.password-store";
};
};
}

View file

@ -6,47 +6,47 @@
let
modifier = "Mod4";
in
{
enable = true;
config = {
modifier = modifier;
menu = "${pkgs.bemenu}/bin/bemenu-run -b -m 1 -p 'λ'";
output = {
HDMI-A-2 = {
#bg = "~/dotfiles/dotfiles/xorg/wallpaper.jpg fill";
};
};
#fonts = [ "Font Awesome" "Fira Code" ];
terminal = "${pkgs.foot}/bin/footclient";
bars = [
{
command = "${pkgs.waybar}/bin/waybar";
}
];
#startup = [{
#command = "systemctl --user restart redshift";
# always = true;
#}];
window.commands = [
{ criteria = { app_id = "mpv"; }; command = "sticky enable"; }
{ criteria = { app_id = "mpv"; }; command = "floating enable"; }
{ criteria = { title = "MetaMask Notification.*"; }; command = "floating enable"; }
];
input = {
"*" = {
xkb_layout = "us";
xkb_variant = "intl";
{
enable = true;
config = {
modifier = modifier;
menu = "${pkgs.bemenu}/bin/bemenu-run -b -m 1 -p 'λ'";
output = {
HDMI-A-2 = {
#bg = "~/dotfiles/dotfiles/xorg/wallpaper.jpg fill";
};
};
#fonts = [ "Font Awesome" "Fira Code" ];
terminal = "${pkgs.foot}/bin/footclient";
bars = [
{
command = "${pkgs.waybar}/bin/waybar";
}
];
startup = [
{
command = "foot --server";
always = true;
}
];
window.commands = [
{ criteria = { app_id = "mpv"; }; command = "sticky enable"; }
{ criteria = { app_id = "mpv"; }; command = "floating enable"; }
{ criteria = { title = "MetaMask Notification.*"; }; command = "floating enable"; }
];
input = {
"*" = {
xkb_layout = "us";
xkb_variant = "intl";
};
};
};
extraConfig = ''
bindsym ${modifier}+p move workspace to output right
'';
xwayland = true;
systemdIntegration = true;
};
extraConfig = ''
bindsym ${modifier}+p move workspace to output right
#exec systemctl --user import-environment
#exec systemctl --user start graphical-session.target
'';
xwayland = true;
systemdIntegration = true;
};
};
programs.waybar = {
@ -62,7 +62,7 @@
"sway/mode"
"sway/workspaces"
];
modules-center = [ ];
modules-center = [];
modules-right = [
"idle_inhibitor"
"tray"

View file

@ -54,5 +54,6 @@
NIX_BUILD_SHELL = "${pkgs.zsh-nix-shell}/scripts/buildShellShim.zsh";
PROMPT = "\\\${IN_NIX_SHELL:+[nix-shell] }$PROMPT";
};
loginExtra = "[[ -z $DISPLAY && $TTY = /dev/tty1 ]] && exec sway";
};
}