Compare commits
No commits in common. "6a1e43ffa593729e1d65fa22c6005d88fc2857e8" and "8349c6e607fdd3c7c07d2fce66f92bd27a2376a1" have entirely different histories.
6a1e43ffa5
...
8349c6e607
7 changed files with 46 additions and 99 deletions
|
@ -7,4 +7,4 @@ set FZF_ALT_C_COMMAND "
|
||||||
command find -L \$dir -mindepth 1 \\( -path \$dir'*/\\.*' \\) -prune \
|
command find -L \$dir -mindepth 1 \\( -path \$dir'*/\\.*' \\) -prune \
|
||||||
-o -type d -print 2> /dev/null | sed 's@^\./@@'"
|
-o -type d -print 2> /dev/null | sed 's@^\./@@'"
|
||||||
fzf_key_bindings
|
fzf_key_bindings
|
||||||
# bind \cr history-pager
|
bind \cr history-pager
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
if ! "$REMOTE" && test "$(tty)" = /dev/tty1
|
if ! "$REMOTE" && test "$(tty)" = /dev/tty1
|
||||||
run_sway
|
doas mkdir -p /run/user
|
||||||
end
|
doas chmod 755 /run/user
|
||||||
|
set -gx XDG_RUNTIME_DIR "/run/user/$(id -u)"
|
||||||
function run_sway
|
doas mkdir -p "$XDG_RUNTIME_DIR"
|
||||||
|
doas chmod 700 "$XDG_RUNTIME_DIR"
|
||||||
|
doas chown "$(id -u):$(id -g)" "$XDG_RUNTIME_DIR"
|
||||||
mkdir -p "$HOME/.local/share/sway"
|
mkdir -p "$HOME/.local/share/sway"
|
||||||
set log "$HOME/.local/share/sway/$(date +%Y-%m-%d@%H:%M:%S).log"
|
set log "$HOME/.local/share/sway/$(date +%Y-%m-%d@%H:%M:%S).log"
|
||||||
|
|
||||||
|
@ -12,6 +14,7 @@ function run_sway
|
||||||
end
|
end
|
||||||
|
|
||||||
exec env \
|
exec env \
|
||||||
|
XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" \
|
||||||
XDG_CURRENT_DESKTOP=sway \
|
XDG_CURRENT_DESKTOP=sway \
|
||||||
XDG_SESSION_DESKTOP=sway \
|
XDG_SESSION_DESKTOP=sway \
|
||||||
dbus-run-session sway >"$log" 2>&1
|
dbus-run-session sway >"$log" 2>&1
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
theme = "emacs"
|
# theme = "monokai_pro"
|
||||||
|
# theme = "everforest_light"
|
||||||
|
theme = "autumn_night"
|
||||||
|
|
||||||
[editor.lsp]
|
[editor.lsp]
|
||||||
display-messages = true
|
display-messages = true
|
||||||
|
|
||||||
[keys.normal]
|
|
||||||
C-r = [":config-reload"]
|
|
||||||
|
|
|
@ -12,7 +12,10 @@ formatter = { command = 'prettier', args = ["--parser=typescript"] }
|
||||||
|
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "html"
|
name = "html"
|
||||||
auto-format = false
|
formatter = { command = 'prettier', args = ["--parser=html"] }
|
||||||
|
|
||||||
|
[[language]]
|
||||||
|
name = "html"
|
||||||
formatter = { command = 'prettier', args = ["--parser=html"] }
|
formatter = { command = 'prettier', args = ["--parser=html"] }
|
||||||
|
|
||||||
[[language]]
|
[[language]]
|
||||||
|
|
|
@ -9,50 +9,51 @@ map ctrl+shift+n new_os_window_with_cwd
|
||||||
## license: MIT
|
## license: MIT
|
||||||
## upstream: https://github.com/rose-pine/kitty/blob/main/dist/rose-pine.conf
|
## upstream: https://github.com/rose-pine/kitty/blob/main/dist/rose-pine.conf
|
||||||
## blurb: All natural pine, faux fur and a bit of soho vibes for the classy minimalist
|
## blurb: All natural pine, faux fur and a bit of soho vibes for the classy minimalist
|
||||||
# foreground #e0def4
|
|
||||||
# background #191724
|
foreground #e0def4
|
||||||
# selection_foreground #e0def4
|
background #191724
|
||||||
# selection_background #403d52
|
selection_foreground #e0def4
|
||||||
# cursor #524f67
|
selection_background #403d52
|
||||||
# cursor_text_color #e0def4
|
|
||||||
# url_color #c4a7e7
|
cursor #524f67
|
||||||
# active_tab_foreground #e0def4
|
cursor_text_color #e0def4
|
||||||
# active_tab_background #26233a
|
|
||||||
# inactive_tab_foreground #6e6a86
|
url_color #c4a7e7
|
||||||
# inactive_tab_background #191724
|
|
||||||
|
active_tab_foreground #e0def4
|
||||||
|
active_tab_background #26233a
|
||||||
|
inactive_tab_foreground #6e6a86
|
||||||
|
inactive_tab_background #191724
|
||||||
|
|
||||||
# black
|
# black
|
||||||
# color0 #26233a
|
color0 #26233a
|
||||||
# color8 #6e6a86
|
color8 #6e6a86
|
||||||
|
|
||||||
# red
|
# red
|
||||||
# color1 #eb6f92
|
color1 #eb6f92
|
||||||
# color9 #eb6f92
|
color9 #eb6f92
|
||||||
|
|
||||||
# green
|
# green
|
||||||
# color2 #31748f
|
color2 #31748f
|
||||||
# color10 #31748f
|
color10 #31748f
|
||||||
|
|
||||||
# yellow
|
# yellow
|
||||||
# color3 #f6c177
|
color3 #f6c177
|
||||||
# color11 #f6c177
|
color11 #f6c177
|
||||||
|
|
||||||
# blue
|
# blue
|
||||||
# color4 #9ccfd8
|
color4 #9ccfd8
|
||||||
# color12 #9ccfd8
|
color12 #9ccfd8
|
||||||
|
|
||||||
# magenta
|
# magenta
|
||||||
# color5 #c4a7e7
|
color5 #c4a7e7
|
||||||
# color13 #c4a7e7
|
color13 #c4a7e7
|
||||||
|
|
||||||
# cyan
|
# cyan
|
||||||
# color6 #ebbcba
|
color6 #ebbcba
|
||||||
# color14 #ebbcba
|
color14 #ebbcba
|
||||||
|
|
||||||
# white
|
# white
|
||||||
# color7 #e0def4
|
color7 #e0def4
|
||||||
# color15 #e0def4
|
color15 #e0def4
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
include themes.conf
|
|
||||||
|
|
|
@ -1,50 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
. ~/.profile
|
|
||||||
|
|
||||||
dconf_color_path=/org/gnome/desktop/interface/color-scheme
|
|
||||||
dconf_message_path=/org/gnome/shell/extensions/simple-message/message
|
|
||||||
|
|
||||||
switch_helix() {
|
|
||||||
sed -i 's/theme = ".*"/theme = "'$1'"/' ~/.config/helix/config.toml
|
|
||||||
}
|
|
||||||
switch_kitty() {
|
|
||||||
kitty +kitten themes --reload-in=all --config-file-name=themes.conf "$1"
|
|
||||||
}
|
|
||||||
light() {
|
|
||||||
switch_helix "emacs"
|
|
||||||
switch_kitty "Modus Operandi"
|
|
||||||
}
|
|
||||||
dark() {
|
|
||||||
switch_helix "autumn_night"
|
|
||||||
switch_kitty "Modus Vivendi"
|
|
||||||
}
|
|
||||||
switch_from_dconf() {
|
|
||||||
if test "$1" = prefer-dark; then
|
|
||||||
dark
|
|
||||||
else
|
|
||||||
light
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
switch_from_dconf "$(dconf read "$dconf_color_path")"
|
|
||||||
|
|
||||||
(dconf watch "$dconf_color_path" | while read -r line; do
|
|
||||||
theme="$(echo "$line" | grep -E "'.*'" | sed "s/'//g")"
|
|
||||||
test -z "$theme" && continue
|
|
||||||
switch_from_dconf "$theme"
|
|
||||||
done) &
|
|
||||||
|
|
||||||
update_zeit() {
|
|
||||||
dconf write "$dconf_message_path" "'$(zeit tracking --no-colors)'"
|
|
||||||
echo updated zeit
|
|
||||||
}
|
|
||||||
update_zeit
|
|
||||||
|
|
||||||
(busybox inotifyd - "$ZEIT_DB":c | while read -r; do
|
|
||||||
update_zeit
|
|
||||||
done) &
|
|
||||||
|
|
||||||
while true; do
|
|
||||||
sleep 30
|
|
||||||
update_zeit
|
|
||||||
done
|
|
|
@ -1,9 +0,0 @@
|
||||||
[Desktop Entry]
|
|
||||||
Version=1.0
|
|
||||||
Name=watch-dconf
|
|
||||||
Exec=watch-dconf
|
|
||||||
Terminal=false
|
|
||||||
Type=Application
|
|
||||||
X-GNOME-Autostart-enabled=true
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue