This commit is contained in:
Chris Cochrun 2023-06-17 06:37:15 -05:00
parent e6901ef554
commit 5dc21e5630
7 changed files with 35 additions and 13 deletions

View file

@ -32,7 +32,7 @@
xdg.userDirs.videos = "${config.home.homeDirectory}/vids";
accounts.email = {
maildirBasePath = "$HOME/mail";
maildirBasePath = "mail";
accounts = {
personal = {
address = "chris@cochrun.xyz";
@ -70,13 +70,14 @@
};
maildir.path = "cochrun";
};
work = {
address = "chris@tfcconnection.org";
userName = "chris@tfcconnection.org";
mbsync.enable = true;
mu.enable = true;
flavor = "outlook.office365.com";
passwordCommand = "${pkgs.rbw}/bin/rbw get --full 'Office 365' | ${pkgs.ripgrep}/bin/rg 'sylemail' | ${pkgs.gawk}/bin/awk '{print $2}'";
passwordCommand = "/home/chris/.dotfiles/scripts/mailpass";
realName = "Chris Cochrun";
imap = {
host = "outlook.office365.com";

View file

@ -1,11 +1,14 @@
{ config, lib, pkgs, ... }:
let
laptop = builtins.readFile "/etc/hostname" == "syl\n";
in
{
home.file.".config/hypr/hyprpaper.conf" = {
source = if builtins.readFile "/etc/hostname" == "syl\n" then /home/chris/.dotfiles/.config/hypr/hyprpaper.conf else /home/chris/.dotfiles/.config/hypr/hyprpaper.conf;
source = if laptop then /home/chris/.dotfiles/.config/hypr/hyprpaper.conf else /home/chris/.dotfiles/.config/hypr/hyprpaper.conf;
};
home.file.".config/hypr/hyprsome" = {
source = if builtins.readFile "/etc/hostname" == "syl\n" then /home/chris/.dotfiles/.config/hypr/hyprsome else /home/chris/.dotfiles/.config/hypr/hyprsome;
source = if laptop then /home/chris/.dotfiles/.config/hypr/hyprsome else /home/chris/.dotfiles/.config/hypr/hyprsome;
};
home.file.".config/hypr/hyprland.conf" = {
@ -116,22 +119,22 @@
windowrule=opaque,firefox
windowrule=float,dolphin
windowrule=size 60% 60%,dolphin
${if builtins.readFile "/etc/hostname" == "syl\n" then "# this is a kaladin space" else "windowrule=workspace 1,mpv"}
${if laptop then "# this is a kaladin space" else "windowrule=workspace 1,mpv"}
windowrule=float,mpv
windowrule=size ${if builtins.readFile "/etc/hostname" == "syl\n" then "90% 76%" else "85% 85%"},mpv
windowrule=size ${if laptop then "90% 76%" else "85% 85%"},mpv
windowrule=center,mpv
windowrule=opaque,mpv
# windowrule=pin,mpv
windowrule=float,pulsemixer
windowrule=workspace ${if builtins.readFile "/etc/hostname" == "syl\n" then "2" else "1"},firefox
windowrule=workspace ${if builtins.readFile "/etc/hostname" == "syl\n" then "1" else "2"},emacs
windowrule=workspace ${if laptop then "2" else "1"},firefox
windowrule=workspace ${if laptop then "1" else "2"},emacs
windowrule=float,btop
windowrule=size 70% 70%,btop
windowrule=center,btop
windowrule=float,presenter
windowrule=size 80% 80%,presenter
windowrule=center,presenter
windowrule=workspace ${if builtins.readFile "/etc/hostname" == "syl\n" then "1" else "3"},title:presentation-window
windowrule=workspace ${if laptop then "1" else "3"},title:presentation-window
# example binds
bind = SUPER,RETURN,exec,alacritty
@ -140,7 +143,7 @@
bind = SUPERSHIFT,D,exec,dolphin
bind = SUPERSHIFT,F,togglefloating,
bindr = SUPER,Super_L,exec,/home/chris/bin/launcher.sh
bindr = ALT,Alt_L,exec,/home/chris/bin/window.sh
bindr = ALT,Alt_R,exec,/home/chris/bin/window.sh
bind = SUPER,w,exec,/home/chris/bin/window.sh
bind = SUPER,E,exec,/home/chris/bin/emacslof
bind = SUPER,d,exec,emacsclient -c -e '(dired-jump)'