sync from mellinoe

This commit is contained in:
= 2024-08-04 22:45:25 -04:00
parent 718a6d2e5c
commit 3baef4563c
8 changed files with 78 additions and 69 deletions

View file

@ -16,6 +16,7 @@
.config/dunst/dunstrc .config/dunst/dunstrc
.config/rofi/wal.rasi .config/rofi/wal.rasi
.config/nvim .config/nvim
.config/sway/outputs
.inputrc .inputrc
.env .env
{{- end }} {{- end }}

View file

@ -52,30 +52,42 @@ export XMODIFIERS=@im=fcitx
################################ ################################
# pls use the goddamn xdg dirs # # pls use the goddamn xdg dirs #
################################ ################################
export GOPATH="$XDG_DATA_HOME"/go
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
# If you use non-default GnuPG Home directory, you will need to edit all # If you use non-default GnuPG Home directory, you will need to edit all
# socket files to use the values of gpgconf --list-dirs. # socket files to use the values of gpgconf --list-dirs.
# If you set your SSH_AUTH_SOCK manually, keep in mind that your socket # If you set your SSH_AUTH_SOCK manually, keep in mind that your socket
# location may be different if you are using a custom GNUPGHOME # location may be different if you are using a custom GNUPGHOME
export GOPATH="$XDG_DATA_HOME"/go
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
# export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME"/npm/npmrc
#export PNPM_HOME="$XDG_DATA_HOME/pnpm" #export PNPM_HOME="$XDG_DATA_HOME/pnpm"
export NPM_CONFIG_PREFIX="$XDG_DATA_HOME/npm-global"
alias wget=wget --hsts-file="$XDG_DATA_HOME/wget-hsts" alias wget=wget --hsts-file="$XDG_DATA_HOME/wget-hsts"
export AWS_CONFIG_FILE="$XDG_CONFIG_HOME"/aws/config
export AWS_SHARED_CREDENTIALS_FILE="$XDG_CONFIG_HOME"/aws/credentials
export CARGO_HOME="$XDG_DATA_HOME/cargo" export CARGO_HOME="$XDG_DATA_HOME/cargo"
export CARGO_INSTALL_ROOT="$HOME/.local" export CARGO_INSTALL_ROOT="$HOME/.local"
export DOCKER_CONFIG="$XDG_CONFIG_HOME"/docker
export GOPATH="$XDG_DATA_HOME"/go
export GRADLE_USER_HOME="$XDG_DATA_HOME/gradle"
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
export INPUTRC="$XDG_CONFIG_HOME/readline/inputrc" export INPUTRC="$XDG_CONFIG_HOME/readline/inputrc"
export IPYTHONDIR="$XDG_CONFIG_HOME/ipython"
export JUPYTER_CONFIG_DIR="$XDG_CONFIG_HOME"/jupyter
export LESSHISTFILE="$XDG_STATE_HOME/less/history" export LESSHISTFILE="$XDG_STATE_HOME/less/history"
# export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME"/npm/npmrc export MYPY_CACHE_DIR="$XDG_CACHE_HOME"/mypy
export NPM_CONFIG_PREFIX="$XDG_DATA_HOME/npm-global"
export PARALLEL_HOME="$XDG_CONFIG_HOME"/parallel export PARALLEL_HOME="$XDG_CONFIG_HOME"/parallel
export RUSTUP_HOME="$XDG_DATA_HOME"/rustup export RUSTUP_HOME="$XDG_DATA_HOME"/rustup
export WINEPREFIX="$XDG_DATA_HOME"/wine export WINEPREFIX="$XDG_DATA_HOME"/wine
export XCURSOR_PATH=/usr/share/icons:$XDG_DATA_HOME/icons export XCURSOR_PATH=/usr/share/icons:$XDG_DATA_HOME/icons
export GOPATH="$XDG_DATA_HOME"/go export NODE_REPL_HISTORY="$XDG_DATA_HOME"/node_repl_history
export AWS_SHARED_CREDENTIALS_FILE="$XDG_CONFIG_HOME"/aws/credentials export PYTHONSTARTUP="$HOME"/python/pythonrc
export AWS_CONFIG_FILE="$XDG_CONFIG_HOME"/aws/config export TLDR_CACHE_DIR="$XDG_CACHE_HOME"/tldr
export DOCKER_CONFIG="$XDG_CONFIG_HOME"/docker export ERRFILE="$XDG_CACHE_HOME/X11/xsession-errors"
export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
############### ###############
# SET UP PATH # # SET UP PATH #
############### ###############
@ -127,3 +139,5 @@ esac
export LOCALE_ARCHIVE=/usr/lib/locale/locale-archive export LOCALE_ARCHIVE=/usr/lib/locale/locale-archive
# this better fix libadwaita? # this better fix libadwaita?
export ADW_DISABLE_PORTAL=1 export ADW_DISABLE_PORTAL=1
export MOZ_ENABLE_WAYLAND=1
export XDG_CURRENT_DESKTOP="${XDG_CURRENT_DESKTOP:-sway}"

View file

@ -139,3 +139,12 @@ load_aliases() {
} }
load_aliases load_aliases
unset -f load_aliases unset -f load_aliases
function yy() {
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")"
yazi "$@" --cwd-file="$tmp"
if cwd="$(cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
builtin cd -- "$cwd"
fi
rm -f -- "$tmp"
}

View file

@ -10,11 +10,11 @@ checkCommand(){
type "$1" >/dev/null 2>&1 type "$1" >/dev/null 2>&1
} }
# If you have zellij installed, this will auto start it # # If you have zellij installed, this will auto start it
if [ -z "$ZELLIJ" ] && checkCommand zellij; then # if [ -z "$ZELLIJ" ] && checkCommand zellij; then
#export ZELLIJ_AUTO_ATTACH=true # #export ZELLIJ_AUTO_ATTACH=true
exec zellij # exec zellij
fi # fi
# Speed up shell load on WSL # Speed up shell load on WSL
OLDPATH=$PATH OLDPATH=$PATH

@ -1 +1 @@
Subproject commit d1313ec3626b148042706e656c6e58d5f86038f0 Subproject commit ec9a04ae33660eba606ca624884e74f1884d1a94

View file

@ -19,27 +19,17 @@
#: heavy. Setting them manually is useful for font families that have #: heavy. Setting them manually is useful for font families that have
#: many weight variants like Book, Medium, Thick, etc. For example:: #: many weight variants like Book, Medium, Thick, etc. For example::
font_family Berkeley Mono Trial font_family MonaspiceNe Nerd Font Mono
# font_family ProFont IIx bold_family MonaspiceNe Nerd Font Mono
# font_family Monocraft Nerd Font italic_family MonaspiceNe Nerd Font Mono
# font_family Miracode bold_italic_family MonaspiceNe Nerd Font Mono
# modify_font baseline -1.75
# font_family Monocraft Nerd Font
# font_family Ubuntu Mono
# bold_font Operator Mono Medium
# italic_font Operator Mono Book Italic
# bold_italic_font Operator Mono Medium Italic
font_size 12.0 font_size 12.0
#: Font size (in pts) #: Font size (in pts)
# force_ltr no # force_ltr no
symbol_map U+002A ProFont IIx # TODO: move neerdfont icons into an import
symbol_map U+0023 ProFont IIx
symbol_map U+002F ProFont IIx
symbol_map U+005C ProFont IIx
# https://github.com/ryanoasis/nerd-fonts/wiki/Glyph-Sets-and-Code-Points # https://github.com/ryanoasis/nerd-fonts/wiki/Glyph-Sets-and-Code-Points
# symbol_map U+E5FA-U+E62B Symbols Nerd Font Mono # symbol_map U+E5FA-U+E62B Symbols Nerd Font Mono
# # Devicons # # Devicons
@ -636,7 +626,7 @@ url_color #0B5393
#: Terminal bell {{{ #: Terminal bell {{{
# enable_audio_bell yes enable_audio_bell no
#: The audio bell. Useful to disable it in environments that require #: The audio bell. Useful to disable it in environments that require
#: silence. #: silence.
@ -657,7 +647,7 @@ url_color #0B5393
#: Request window attention on bell. Makes the dock icon bounce on #: Request window attention on bell. Makes the dock icon bounce on
#: macOS or the taskbar flash on linux. #: macOS or the taskbar flash on linux.
# bell_on_tab "🔔 " bell_on_tab "🔔 "
#: Some text or a Unicode symbol to show on the tab if a window in the #: Some text or a Unicode symbol to show on the tab if a window in the
#: tab that does not have focus has a bell. If you want to use leading #: tab that does not have focus has a bell. If you want to use leading
@ -1287,18 +1277,10 @@ include colors.conf
#: in the path are expanded. Changing this option by reloading the #: in the path are expanded. Changing this option by reloading the
#: config is not supported. #: config is not supported.
# clipboard_control write-clipboard write-primary read-clipboard-ask read-primary-ask clipboard_control write-clipboard write-primary read-clipboard read-primary
#: Allow programs running in kitty to read and write from the #: Allow programs running in kitty to read and write from the
#: clipboard. You can control exactly which actions are allowed. The #: clipboard.
#: possible actions are: write-clipboard, read-clipboard, write-
#: primary, read-primary, read-clipboard-ask, read-primary-ask. The
#: default is to allow writing to the clipboard and primary selection
#: and to ask for permission when a program tries to read from the
#: clipboard. Note that disabling the read confirmation is a security
#: risk as it means that any program, even the ones running on a
#: remote server via SSH can read your clipboard. See also
#: clipboard_max_size.
# clipboard_max_size 64 # clipboard_max_size 64
@ -1325,7 +1307,7 @@ include colors.conf
#: special value of ask means that kitty will ask before opening the #: special value of ask means that kitty will ask before opening the
#: link when clicked. #: link when clicked.
# shell_integration enabled shell_integration enabled
#: Enable shell integration on supported shells. This enables features #: Enable shell integration on supported shells. This enables features
#: such as jumping to previous prompts, browsing the output of the #: such as jumping to previous prompts, browsing the output of the

View file

@ -1,3 +1,5 @@
include /etc/sway/config.d/*
include /etc/sway/config.d/50-systemd-user.conf
set $mod Mod4 set $mod Mod4
include "theme" include "theme"
@ -10,6 +12,7 @@ include "outputs"
floating_modifier $mod floating_modifier $mod
for_window [app_id="flameshot"] border pixel 0, floating enable, fullscreen disable, move absolute position 0 0
# Define names for default workspaces for which we configure key bindings later on. # Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places. # We use variables to avoid repeating the names in multiple places.
set $ws1 "1" set $ws1 "1"
@ -33,9 +36,9 @@ set $ws27 "27"
set $ws28 "28" set $ws28 "28"
set $ws29 "29" set $ws29 "29"
set $ws20 "20" set $ws20 "20"
exec systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec_always systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \ exec_always dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
include "keybinds" include "keybinds"
#border size #border size
@ -47,9 +50,9 @@ exec_always --no-startup-id /usr/bin/lxpolkit
exec_always --no-startup-id /usr/bin/lxqt-policykit-agent exec_always --no-startup-id /usr/bin/lxqt-policykit-agent
#notif daemon #notif daemon
exec dunst exec dunst
exec nm-tray
# exec_always fcitx5 # exec_always fcitx5
exec_always wl-paste --watch cliphist store exec wl-paste --watch cliphist store
exec_always gnome-keyring-daemon -r exec gnome-keyring-daemon -r
exec ~/.config/swhkd/hotkeys.sh exec ~/.config/swhkd/hotkeys.sh
exec udiskie exec udiskie
exec nm-tray

View file

@ -1,60 +1,60 @@
# Browser # Browser
super + b super + b
xdg-open http:// exec xdg-open http://
# Pipewire controls # Pipewire controls
XF86AudioRaiseVolume XF86AudioRaiseVolume
pactl set-sink-volume @DEFAULT_SINK@ +5%;# increase sound volume exec pactl set-sink-volume @DEFAULT_SINK@ +5%;# increase sound volume
XF86AudioLowerVolume XF86AudioLowerVolume
pactl set-sink-volume @DEFAULT_SINK@ -5%; # decrease sound volume exec pactl set-sink-volume @DEFAULT_SINK@ -5%; # decrease sound volume
XF86AudioMute XF86AudioMute
pactl set-sink-mute @DEFAULT_SINK@ toggle # mute sound exec pactl set-sink-mute @DEFAULT_SINK@ toggle # mute sound
# Media player controls # Media player controls
XF86AudioPlay XF86AudioPlay
playerctl play-pause exec playerctl play-pause
XF86AudioNext XF86AudioNext
playerctl next exec playerctl next
XF86AudioPrev XF86AudioPrev
playerctl previous exec playerctl previous
# Sreen brightness controls # Sreen brightness controls
#sudo chmod +s $(which brightnessctl) #sudo chmod +s $(which brightnessctl)
XF86MonBrightnessUp XF86MonBrightnessUp
brightnessctl -e s 5%+ exec brightnessctl -e s 5%+
XF86MonBrightnessDown XF86MonBrightnessDown
brightnessctl -e s 5%- exec brightnessctl -e s 5%-
super + enter super + enter
kitty exec kitty
super + shift + e super + shift + e
rofi \ exec rofi \
-show p \ exec -show p \
-modi p:'rofi-power-menu --symbols-font "Symbols Nerd Font Mono"' \ exec -modi p:'rofi-power-menu --symbols-font "Symbols Nerd Font Mono"' \
-theme lunar-witch exec -theme lunar-witch
super + space super + space
rofi -combi-modi "drun#run" -show combi -show-icons -theme lunar-witch exec rofi -combi-modi "drun#run" -show combi -show-icons -theme lunar-witch
super + tab super + tab
rofi -show window -show-icons -theme lunar-witch exec rofi -show window -show-icons -theme lunar-witch
print print
grim - | tee "$XDG_PICTURES_DIR/screenshots/$(date -Is).png" | wl-copy -t image/png exec grim - | tee "$XDG_PICTURES_DIR/screenshots/$(date -Is).png" | wl-copy -t image/png
shift + print shift + print
grim -g "$(slurp)" - | tee "$XDG_PICTURES_DIR/screenshots/$(date -Is).png" | wl-copy -t image/png exec grim -g "$(slurp)" - | tee "$XDG_PICTURES_DIR/screenshots/$(date -Is).png" | wl-copy -t image/png
ctrl + print ctrl + print
TEMP=$(mktemp); grim -g "$(slurp)" $TEMP && notify-send "$TEMP" && flatpak run org.gimp.GIMP -- $TEMP exec TEMP=$(mktemp); grim -g "$(slurp)" $TEMP && notify-send "$TEMP" && flatpak run org.gimp.GIMP -- $TEMP
super + shift + v super + shift + v
cliphist list | rofi -dmenu -display-columns 2 -p "Select item to copy" -lines 10 -width 35 -theme lunar-witch | cliphist decode | wl-copy exec cliphist list | rofi -dmenu -display-columns 2 -p "Select item to copy" -lines 10 -width 35 -theme lunar-witch | cliphist decode | wl-copy
# super + shift + v # super + shift + v
# cb hs $(cb hs | jq '.[] | .content.path? // .content' | rofi -dmenu -format i -theme lunar-witch) # cb hs $(cb hs | jq '.[] | .content.path? // .content' | rofi -dmenu -format i -theme lunar-witch)
super + shift + . super + shift + .
rofi -show emoji -modi emoji -theme lunar-witch | cb exec rofi -show emoji -modi emoji -theme lunar-witch | cb