Compare commits
9 Commits
c87d49f8f5
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
| e9cd7c268a | |||
| 528ed9b0b7 | |||
| 7725847263 | |||
| a58ced0fcd | |||
| 9ab113bf91 | |||
| 4bd7b03290 | |||
| c8c0f56c95 | |||
| bead27b2d8 | |||
| 311245ea36 |
+2
-2
@@ -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 }}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
lat: 42.32
|
||||||
|
lng: -83.17
|
||||||
|
portal: true
|
||||||
+15
-8
@@ -1,8 +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
|
||||||
|
}
|
||||||
|
|
||||||
|
maybe_source "$HOME/.config/environment.local"
|
||||||
|
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}"
|
||||||
@@ -16,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
@@ -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
|
||||||
|
|||||||
@@ -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]])
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user