Compare commits

..

8 Commits

Author SHA1 Message Date
Joel Beckmeyer e9cd7c268a add darkman 2026-05-18 21:23:05 -04:00
Joel Beckmeyer 528ed9b0b7 fix gap issue when using foot with KDE+window manager plugins 2026-05-07 08:42:44 -04:00
Joel Beckmeyer 7725847263 support dynamic toggling between dark/light theme via darkman 2026-05-07 08:13:13 -04:00
Joel Beckmeyer a58ced0fcd update ignore file 2026-04-16 13:46:46 -04:00
Joel Beckmeyer 9ab113bf91 remove sway vars, add vars for vscode/wayland 2026-04-10 14:08:23 -04:00
Joel Beckmeyer 4bd7b03290 propertly check and source additional env files 2026-03-24 10:08:01 -04:00
Joel Beckmeyer c8c0f56c95 use explicit path for SUDO_EDITOR in case EDITOR not on secure_path 2026-03-23 09:37:09 -04:00
Joel Beckmeyer bead27b2d8 add history fixup and support default and per-user nix profile 2026-03-23 09:30:14 -04:00
10 changed files with 110 additions and 32 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
README.md README.md
{{ if or (eq .chezmoi.hostname "daybreak") (eq .chezmoi.hostname "epoch") (eq .chezmoi.hostname "UGC13335X84") (eq .chezmoi.hostname "UGCB2YBS33") (env "ANDROID_ROOT") }} {{ if or (eq .chezmoi.hostname "daybreak") (eq .chezmoi.hostname "epoch") (eq .chezmoi.hostname "UGC13335X84") (eq .chezmoi.hostname "UGCB2YBS33") (eq .chezmoi.hostname "UGC1C4PJF24") (env "ANDROID_ROOT") }}
.config/beets .config/beets
.config/davfs2/secrets .config/davfs2/secrets
.config/kitty .config/kitty
@@ -9,7 +9,7 @@ README.md
.config/waybar .config/waybar
{{ end }} {{ end }}
{{ if or (eq .chezmoi.hostname "daybreak") (eq .chezmoi.hostname "epoch") (eq .chezmoi.hostname "UGC13335X84") (eq .chezmoi.hostname "UGCB2YBS33") }} {{ if or (eq .chezmoi.hostname "daybreak") (eq .chezmoi.hostname "epoch") (eq .chezmoi.hostname "UGC13335X84") (eq .chezmoi.hostname "UGCB2YBS33") (eq .chezmoi.hostname "UGC1C4PJF24") }}
.local/share/gnupg/sshcontrol .local/share/gnupg/sshcontrol
{{ end }} {{ end }}
+3
View File
@@ -0,0 +1,3 @@
lat: 42.32
lng: -83.17
portal: true
+14 -10
View File
@@ -1,11 +1,16 @@
#!/bin/sh #!/bin/sh
# icky, but necessary since this might inject the needed XDG vars # Function to source a file only if it exists
. "$HOME/.config/environment.local" 2>/dev/null maybe_source() {
. "$XDG_DATA_HOME/cargo/env" 2>/dev/null for file in "$@"; do
[ -f "$file" ] && . "$file"
done
}
# nix home-manager maybe_source "$HOME/.config/environment.local"
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh" maybe_source "$XDG_DATA_HOME/cargo/env"
maybe_source "$HOME/.nix-profile/etc/profile.d/nix.sh"
maybe_source "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
# set to defaults if any of these are unset # set to defaults if any of these are unset
export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}" export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
@@ -19,13 +24,12 @@ export SVDIR="$XDG_STATE_HOME"/service
# editor # editor
export EDITOR=nvim export EDITOR=nvim
export SUDO_EDITOR=nvim export SUDO_EDITOR="$(which $EDITOR)"
export PAGER=less export PAGER=less
# sway # wayland
#export XDG_CURRENT_DESKTOP=sway export ELECTRON_OZONE_PLATFORM_HINT=wayland
#export _JAVA_AWT_WM_NONREPARENTING=1 export GTK_USE_PORTAL=1
#export QT_WAYLAND_DISABLE_WINDOWDECORATION="1"
# virt # virt
export LIBVIRT_DEFAULT_URI="qemu:///system" export LIBVIRT_DEFAULT_URI="qemu:///system"
+33 -18
View File
@@ -24,12 +24,12 @@ font=FiraCode:size=10
# dpi-aware=no # dpi-aware=no
# gamma-correct-blending=no # gamma-correct-blending=no
# initial-color-theme=1 initial-color-theme=light
# initial-window-size-pixels=700x500 # Or, # initial-window-size-pixels=700x500 # Or,
# initial-window-size-chars=<COLSxROWS> # initial-window-size-chars=<COLSxROWS>
initial-window-mode=maximized initial-window-mode=maximized
# pad=0x0 center-when-maximized-and-fullscreen # pad=0x0 center-when-maximized-and-fullscreen
# resize-by-cells=yes resize-by-cells=no
# resize-keep-grid=yes # resize-keep-grid=yes
# resize-delay-ms=100 # resize-delay-ms=100
@@ -103,28 +103,24 @@ initial-window-mode=maximized
[colors-dark] [colors-dark]
alpha=0.95 alpha=0.95
background=fbf1c7 background=282828
foreground=3c3836 foreground=ebdbb2
regular0=282828
# Normal/regular colors (color palette 0-7)
regular0=bdae93
regular1=cc241d regular1=cc241d
regular2=98971a regular2=98971a
regular3=d79921 regular3=d79921
regular4=458588 regular4=458588
regular5=b16286 regular5=b16286
regular6=689d6a regular6=689d6a
regular7=7c6f64 regular7=a89984
bright0=928374
# Bright colors (color palette 8-15) bright1=fb4934
bright0=a89984 bright2=b8bb26
bright1=9d0006 bright3=fabd2f
bright2=79740e bright4=83a598
bright3=b57614 bright5=d3869b
bright4=076678 bright6=8ec07c
bright5=8f3f71 bright7=ebdbb2
bright6=427b58
bright7=665c54
## dimmed colors (see foot.ini(5) man page) ## dimmed colors (see foot.ini(5) man page)
# dim-blend-towards=black # dim-blend-towards=black
@@ -168,6 +164,25 @@ bright7=665c54
# Alternative color theme, see man page foot.ini(5) # Alternative color theme, see man page foot.ini(5)
# Same builtin defaults as [color], except for: # Same builtin defaults as [color], except for:
# dim-blend-towards=white # dim-blend-towards=white
alpha=0.95
background=fbf1c7
foreground=3c3836
regular0=bdae93
regular1=cc241d
regular2=98971a
regular3=d79921
regular4=458588
regular5=b16286
regular6=689d6a
regular7=7c6f64
bright0=a89984
bright1=9d0006
bright2=79740e
bright3=b57614
bright4=076678
bright5=8f3f71
bright6=427b58
bright7=665c54
[csd] [csd]
# preferred=server # preferred=server
-1
View File
@@ -76,7 +76,6 @@ vim.opt.mouse = "a"
-- Colorscheme -- Colorscheme
vim.opt.termguicolors = true vim.opt.termguicolors = true
vim.o.background = "light"
vim.g.gruvbox_contrast_light = "medium" vim.g.gruvbox_contrast_light = "medium"
vim.g.gruvbox_italicize_comments = 0 vim.g.gruvbox_italicize_comments = 0
vim.cmd([[colorscheme gruvbox]]) vim.cmd([[colorscheme gruvbox]])
+9 -1
View File
@@ -67,6 +67,12 @@ if [[ -n "$WSL_DISTRO_NAME" ]]; then
alias usbipd='usbipd.exe' alias usbipd='usbipd.exe'
fi fi
fix_corrupt_history() {
mv "$HISTFILE" "$HISTFILE"_bad
strings "$HISTFILE"_bad > "$HISTFILE"
fc -R "$HISTFILE"
}
# GPG setup (and SSH) # GPG setup (and SSH)
# SSH setup # SSH setup
# I finally figured out how to export my id_rsa from GPG using # I finally figured out how to export my id_rsa from GPG using
@@ -119,8 +125,10 @@ for plugin in zsh-syntax-highlighting zsh-history-substring-search zsh-autosugge
possible_locations=( possible_locations=(
# Standard location # Standard location
"/usr/share/zsh/plugins/$plugin/$plugin.zsh" "/usr/share/zsh/plugins/$plugin/$plugin.zsh"
# Nix # Nix default profile
"/nix/var/nix/profiles/default/share/$plugin/$plugin.zsh" "/nix/var/nix/profiles/default/share/$plugin/$plugin.zsh"
# Nix per-user profile
"$HOME/.nix-profile/share/$plugin/$plugin.zsh"
# Direct in /usr/share # Direct in /usr/share
"/usr/share/$plugin/$plugin.zsh" "/usr/share/$plugin/$plugin.zsh"
# Home directory locations # Home directory locations
@@ -0,0 +1,12 @@
#!/usr/bin/env sh
# trigger a small, passive popup dialog to inform the user about darkman's activity
# reference https://wiki.archlinux.org/title/Desktop_notifications#Usage_in_programming
case "$1" in
dark) ICON=weather-clear-night ;;
light) ICON=weather-clear ;;
default) exit 1 ;;
esac
notify-send --app-name="darkman" --urgency=low --icon="$ICON" "switching to $1 mode"
@@ -0,0 +1,10 @@
#!/usr/bin/env sh
CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/foot/foot.ini"
case "$1" in
dark) sed -i 's/initial-color-theme=light/initial-color-theme=dark/' "$CONFIG";
pkill -u "$USER" --signal=SIGUSR1 ^foot$ ;;
light) sed -i 's/initial-color-theme=dark/initial-color-theme=light/' "$CONFIG";
pkill -u "$USER" --signal=SIGUSR2 ^foot$ ;;
esac
@@ -0,0 +1,17 @@
#!/usr/bin/env sh
# Change the global Plasma Theme. On Manjaro you can use "org.manjaro.breath-dark.desktop"
# or "org.manjaro.breath-light.desktop", or you can create your own global Plasma Theme
# with the "Plasma Look And Feel Explorer".
# Reference: https://userbase.kde.org/Plasma/Create_a_Global_Theme_Package
#
# Since Plasma 5.26 the lookandfeeltool does not work anymore without "faking" the screen.
# Reference: https://bugs.kde.org/show_bug.cgi?id=460643
case "$1" in
dark) THEME=org.kde.breezedark.desktop ;;
light) THEME=org.kde.breeze.desktop ;;
default) exit 1 ;;
esac
lookandfeeltool -platform offscreen --apply "$THEME"
@@ -0,0 +1,10 @@
#!/bin/sh
# This uses the neovim-remote python package to control other neovim instances.
# see: https://github.com/mhinz/neovim-remote
# Further, it is assumed that toggling the background in neovim is enough.
# Anything else should be handled by the set color scheme.
for server in $(nvr --serverlist); do
nvr --servername "$server" -cc "set background=$1"
done