This commit is contained in:
Jeffrey Serio 2025-01-10 12:05:49 -06:00
parent 120da049b3
commit 1ec0942366
5 changed files with 82 additions and 9 deletions

View File

@ -0,0 +1,48 @@
--- Emacs: right half
if (get_application_name() == "Emacs-gtk+x11") then
os.execute("sleep 0.4")
set_window_position(1720, 0, 0)
set_window_size(1720, 1391)
end
--- calibre: left half
if (get_application_name() == "calibre") then
set_window_position(0, 0, 0)
set_window_size(1720, 1391)
end
--- Proton Mail Bridge: left half
if (get_application_name() == "Proton Mail Bridge") then
set_window_position(0, 0, 0)
set_window_size(1720, 1391)
end
--- VLC media player: left half
if (get_application_name() == "VLC media player") then
set_window_position(0, 0, 0)
set_window_size(1720, 1391)
end
--- Wireshark: left half
if (get_application_name() == "The Wireshark Network Analyzer") then
set_window_position(0, 0, 0)
set_window_size(1720, 1391)
end
--- Discord: left half
if (get_application_name() == "Discord") then
set_window_position(0, 0, 0)
set_window_size(1720, 1391)
end
--- Podman Desktop: right half
if (get_application_name() == "Podman Desktop") then
set_window_position(1720, 0, 0)
set_window_size(1720, 1391)
end
--- Lagrange: left half
if (get_application_name() == "Lagrange") then
set_window_position(0, 0, 0)
set_window_size(1720, 1391)
end

View File

@ -326,9 +326,20 @@ If point was already at that position, move point to beginning of line."
(setq vterm-ignore-blink-cursor nil) (setq vterm-ignore-blink-cursor nil)
;;;; mastodon.el ;;;; mastodon.el
(setq mastodon-instance-url "https://fedi.hyperreal.coffee" (setq mastodon-instance-url "https://fedi.hyperreal.coffee"
mastodon-active-user "hyperreal" mastodon-active-user "hyperreal"
mastodon-use-emojify t) mastodon-use-emojify t)
;;;; elfeed
(setq elfeed-use-curl t)
(setq elfeed-protocol-enabled-protocols '(fever))
(elfeed-protocol-enable)
(setq elfeed-protocol-fever-update-unread-only t)
(setq elfeed-protocol-fever-fetch-category-as-tag t)
(setq elfeed-protocol-feeds '(("fever+https://hyperreal@freshrss.hyperreal.coffee"
:api-url "https://freshrss.hyperreal.coffee/api/fever.php"
:password (password-store-get "freshrss"))))

View File

@ -98,7 +98,7 @@
lsp ; M-x vscode lsp ; M-x vscode
magit ; a git porcelain for Emacs magit ; a git porcelain for Emacs
make ; run make tasks from Emacs make ; run make tasks from Emacs
;;pass ; password manager for nerds pass ; password manager for nerds
;; pdf ; pdf enhancements ;; pdf ; pdf enhancements
;;prodigy ; FIXME managing external services & code builders ;;prodigy ; FIXME managing external services & code builders
;;terraform ; infrastructure as code ;;terraform ; infrastructure as code
@ -146,7 +146,7 @@
;;latex ; writing papers in Emacs has never been so fun ;;latex ; writing papers in Emacs has never been so fun
;;lean ; for folks with too much to prove ;;lean ; for folks with too much to prove
;;ledger ; be audit you can be ;;ledger ; be audit you can be
;;lua ; one-based indices? one-based indices lua ; one-based indices? one-based indices
markdown ; writing docs for people to ignore markdown ; writing docs for people to ignore
;;nim ; python + lisp at the speed of c ;;nim ; python + lisp at the speed of c
nix ; I hereby declare "nix geht mehr!" nix ; I hereby declare "nix geht mehr!"

View File

@ -12,6 +12,8 @@
(package! casual) (package! casual)
(package! catppuccin-theme) (package! catppuccin-theme)
(package! dockerfile-mode) (package! dockerfile-mode)
(package! elfeed)
(package! elfeed-protocol)
(package! elpher) (package! elpher)
(package! ement) (package! ement)
(package! evil-nerd-commenter) (package! evil-nerd-commenter)

View File

@ -1,8 +1,8 @@
# justfile for common household tasks # justfile for common household tasks
dotfiles_repo := "/home/jas/repos/codeberg.org/hyperreal/dotfiles" dotfiles_repo := "/home/jas/repos/codeberg.org/hyperreal/dotfiles"
homedir := "/home/jas/" homedir := "/home/jas"
configdir := "/home/jas/.config/" configdir := "/home/jas/.config"
to-laptop: to-laptop:
rsync -aAXP {{homedir}}/sync/ jas@laptop.lyrebird-marlin.ts.net:/home/jas/sync rsync -aAXP {{homedir}}/sync/ jas@laptop.lyrebird-marlin.ts.net:/home/jas/sync
@ -22,11 +22,11 @@ deploy-dotfiles:
cp -rfv {{dotfiles_repo}}/zsh/.zshrc.d {{homedir}} cp -rfv {{dotfiles_repo}}/zsh/.zshrc.d {{homedir}}
cp -fv {{dotfiles_repo}}/zsh/.zshenv {{homedir}} cp -fv {{dotfiles_repo}}/zsh/.zshenv {{homedir}}
cp -rfv {{dotfiles_repo}}/config/.config/bat {{configdir}} cp -rfv {{dotfiles_repo}}/config/.config/bat {{configdir}}
cp -rfv {{dotfiles_repo}}/config/.config/devilspie2 {{configdir}}
cp -rfv {{dotfiles_repo}}/config/.config/git {{configdir}} cp -rfv {{dotfiles_repo}}/config/.config/git {{configdir}}
cp -rfv {{dotfiles_repo}}/config/.config/rofi {{configdir}} cp -rfv {{dotfiles_repo}}/config/.config/rofi {{configdir}}
cp -fv {{dotfiles_repo}}/config/.config/starship.toml {{configdir}} cp -fv {{dotfiles_repo}}/config/.config/starship.toml {{configdir}}
cp -rfv {{dotfiles_repo}}/config/.config/zellij {{configdir}} cp -rfv {{dotfiles_repo}}/config/.config/zellij {{configdir}}
cp -rfv {{dotfiles_repo}}/local/.local/share/xfce4 {{homedir}}/.local/share/
save-dotfiles: save-dotfiles:
cp -fv {{homedir}}/.justfile {{dotfiles_repo}}/just/ cp -fv {{homedir}}/.justfile {{dotfiles_repo}}/just/
@ -35,11 +35,11 @@ save-dotfiles:
cp -rfv {{homedir}}/.zshrc.d {{dotfiles_repo}}/zsh/ cp -rfv {{homedir}}/.zshrc.d {{dotfiles_repo}}/zsh/
cp -fv {{homedir}}/.zshenv {{dotfiles_repo}}/zsh/ cp -fv {{homedir}}/.zshenv {{dotfiles_repo}}/zsh/
cp -rfv {{configdir}}/bat {{dotfiles_repo}}/config/.config/ cp -rfv {{configdir}}/bat {{dotfiles_repo}}/config/.config/
cp -rfv {{configdir}}/devilspie2 {{dotfiles_repo}}/config/.config/
cp -rfv {{configdir}}/git {{dotfiles_repo}}/config/.config/ cp -rfv {{configdir}}/git {{dotfiles_repo}}/config/.config/
cp -rfv {{configdir}}/rofi {{dotfiles_repo}}/config/.config/ cp -rfv {{configdir}}/rofi {{dotfiles_repo}}/config/.config/
cp -fv {{configdir}}/starship.toml {{dotfiles_repo}}/config/.config/ cp -fv {{configdir}}/starship.toml {{dotfiles_repo}}/config/.config/
cp -rfv {{configdir}}/zellij {{dotfiles_repo}}/config/.config/ cp -rfv {{configdir}}/zellij {{dotfiles_repo}}/config/.config/
cp -rfv {{homedir}}/.local/share/xfce4 {{dotfiles_repo}}/local/.local/share
clean-dotfiles: clean-dotfiles:
rm -fv {{homedir}}/.justfile rm -fv {{homedir}}/.justfile
@ -48,13 +48,13 @@ clean-dotfiles:
rm -rfv {{homedir}}/.zshrc.d rm -rfv {{homedir}}/.zshrc.d
rm -fv {{homedir}}/.zshenv rm -fv {{homedir}}/.zshenv
rm -rfv {{configdir}}/bat rm -rfv {{configdir}}/bat
rm -rfv {{configdir}}/devilspie2
rm -rfv {{configdir}}/git rm -rfv {{configdir}}/git
rm -rfv {{configdir}}/rofi rm -rfv {{configdir}}/rofi
rm -fv {{configdir}}/starship.toml rm -fv {{configdir}}/starship.toml
rm -rfv {{configdir}}/zellij rm -rfv {{configdir}}/zellij
rm -rfv {{homedir}}/.local/share/xfce4
install-dust: dust:
#!/usr/bin/env bash #!/usr/bin/env bash
set -euo pipefail set -euo pipefail
dl_url=$(curl -s "https://api.github.com/repos/bootandy/dust/releases/latest" | jq '.assets.[].browser_download_url' | grep "x86_64-unknown-linux-gnu.tar.gz" | tr -d '"') dl_url=$(curl -s "https://api.github.com/repos/bootandy/dust/releases/latest" | jq '.assets.[].browser_download_url' | grep "x86_64-unknown-linux-gnu.tar.gz" | tr -d '"')
@ -90,3 +90,15 @@ webdev-tools:
rustup: rustup:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
devilspie2:
#!/usr/bin/env bash
set -euo pipefail
dl_url=$(curl --silent "https://api.github.com/repos/dsalt/devilspie2/releases/latest" | grep "tarball_url" | cut -d : -f 2,3 | tr -d '", ')
wget "$dl_url" -O "$(basename $dl_url).tar.gz"
filename="$(basename $dl_url).tar.gz"
tar xvf "$filename"
sudo dnf install -y glib2-devel lua-devel libwnck3-devel '@c-development' '@development-tools'
cd dsalt-devilspie2*
make
sudo make install