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

@ -21,7 +21,7 @@
:spacing 5 :spacing 5
(button (button
:class "battery-icon" :class "battery-icon"
:onclick "" "") :onclick "" "󰂂")
(box (box
:orientation "v" :orientation "v"
:space-evenly "false" :space-evenly "false"

View file

@ -108,7 +108,8 @@ tooltip label {
.separ { .separ {
font-size: 5; font-size: 5;
padding-bottom: 3px; padding-bottom: 0px;
padding-top: 1px;
} }
.membar { .membar {
@ -138,6 +139,7 @@ tooltip label {
.bright_label { .bright_label {
color: $base09; color: $base09;
padding-top: 3px;
} }
.bright_icon { .bright_icon {
@ -164,6 +166,7 @@ tooltip label {
.vol_label { .vol_label {
color: $base08; color: $base08;
padding-top: 3px;
} }
.volume_icon { .volume_icon {
@ -218,12 +221,16 @@ tooltip label {
} }
.mem_label { .mem_label {
color: $base0A; color: $base0A;
padding-top: 3px;
} }
.cpu_label { .cpu_label {
color: $base0D; color: $base0D;
padding-top: 3px;
} }
.bat_label { .bat_label {
color: $base0E; color: $base0E;
padding-top: 3px;
padding-left: 3px;
} }
.bright_icon { .bright_icon {
font-size: 18; font-size: 18;
@ -233,6 +240,7 @@ tooltip label {
.disk_label { .disk_label {
color: $base09; color: $base09;
padding-top: 3px;
} }
.icondisk { .icondisk {

View file

@ -32,7 +32,7 @@
xdg.userDirs.videos = "${config.home.homeDirectory}/vids"; xdg.userDirs.videos = "${config.home.homeDirectory}/vids";
accounts.email = { accounts.email = {
maildirBasePath = "$HOME/mail"; maildirBasePath = "mail";
accounts = { accounts = {
personal = { personal = {
address = "chris@cochrun.xyz"; address = "chris@cochrun.xyz";
@ -70,13 +70,14 @@
}; };
maildir.path = "cochrun"; maildir.path = "cochrun";
}; };
work = { work = {
address = "chris@tfcconnection.org"; address = "chris@tfcconnection.org";
userName = "chris@tfcconnection.org"; userName = "chris@tfcconnection.org";
mbsync.enable = true; mbsync.enable = true;
mu.enable = true; mu.enable = true;
flavor = "outlook.office365.com"; 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"; realName = "Chris Cochrun";
imap = { imap = {
host = "outlook.office365.com"; host = "outlook.office365.com";

View file

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

View file

@ -46,6 +46,7 @@ with lib;
org-re-reveal org-re-reveal
org-re-reveal-ref org-re-reveal-ref
org-re-reveal-citeproc org-re-reveal-citeproc
org-web-tools
ox-reveal ox-reveal
ox-hugo ox-hugo
oer-reveal oer-reveal
@ -120,6 +121,7 @@ with lib;
nov nov
elfeed elfeed
elfeed-org elfeed-org
elfeed-protocol
bongo bongo
emms emms
transmission transmission

3
scripts/mailpass Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
rbw get --full 'Office 365' | rg 'sylemail' | awk '{print $2}'

View file

@ -45,7 +45,7 @@
# Enable fingerprint # Enable fingerprint
services.fprintd.enable = true; services.fprintd.enable = true;
# Some other things # Power settings
services.thermald.enable = true; services.thermald.enable = true;
services.power-profiles-daemon.enable = false; services.power-profiles-daemon.enable = false;
services.tlp = { services.tlp = {
@ -62,9 +62,14 @@
START_CHARGE_THRESH_BAT1=70; START_CHARGE_THRESH_BAT1=70;
STOP_CHARGE_THRESH_BAT1=80; STOP_CHARGE_THRESH_BAT1=80;
USB_ALLOWLIST="32ac:0002"; USB_ALLOWLIST="32ac:0002";
RUNTIME_PM_ON_AC="on";
RUNTIME_PM_ON_BAT="auto";
}; };
}; };
# SUBSYSTEM=="power_supply", ATTR{online}=="0", RUN+="/usr/bin/at -M -f /lib/udev/power-profiles/power-saver now"
# SUBSYSTEM=="power_supply", ATTR{online}=="1", RUN+="/usr/bin/at -M -f /lib/udev/power-profiles/performance now"
# Enable touchpad support (enabled default in most desktopManager). # Enable touchpad support (enabled default in most desktopManager).
services.xserver.libinput.enable = true; services.xserver.libinput.enable = true;
services.xserver.dpi = 144; services.xserver.dpi = 144;