diff --git a/config/.config/devilspie2/devilspie2.lua b/config/.config/devilspie2/devilspie2.lua new file mode 100644 index 0000000..199a9f1 --- /dev/null +++ b/config/.config/devilspie2/devilspie2.lua @@ -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 diff --git a/doom/.doom.d/config.el b/doom/.doom.d/config.el index ce6b662..899840b 100644 --- a/doom/.doom.d/config.el +++ b/doom/.doom.d/config.el @@ -326,9 +326,20 @@ If point was already at that position, move point to beginning of line." (setq vterm-ignore-blink-cursor nil) - ;;;; mastodon.el (setq mastodon-instance-url "https://fedi.hyperreal.coffee" mastodon-active-user "hyperreal" 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")))) diff --git a/doom/.doom.d/init.el b/doom/.doom.d/init.el index 39ef12b..8a9a5a9 100644 --- a/doom/.doom.d/init.el +++ b/doom/.doom.d/init.el @@ -98,7 +98,7 @@ lsp ; M-x vscode magit ; a git porcelain for Emacs make ; run make tasks from Emacs - ;;pass ; password manager for nerds + pass ; password manager for nerds ;; pdf ; pdf enhancements ;;prodigy ; FIXME managing external services & code builders ;;terraform ; infrastructure as code @@ -146,7 +146,7 @@ ;;latex ; writing papers in Emacs has never been so fun ;;lean ; for folks with too much to prove ;;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 ;;nim ; python + lisp at the speed of c nix ; I hereby declare "nix geht mehr!" diff --git a/doom/.doom.d/packages.el b/doom/.doom.d/packages.el index 3cc33b6..471ee65 100644 --- a/doom/.doom.d/packages.el +++ b/doom/.doom.d/packages.el @@ -12,6 +12,8 @@ (package! casual) (package! catppuccin-theme) (package! dockerfile-mode) +(package! elfeed) +(package! elfeed-protocol) (package! elpher) (package! ement) (package! evil-nerd-commenter) diff --git a/just/.justfile b/just/.justfile index 090ece8..649d3dd 100644 --- a/just/.justfile +++ b/just/.justfile @@ -1,8 +1,8 @@ # justfile for common household tasks dotfiles_repo := "/home/jas/repos/codeberg.org/hyperreal/dotfiles" -homedir := "/home/jas/" -configdir := "/home/jas/.config/" +homedir := "/home/jas" +configdir := "/home/jas/.config" to-laptop: 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 -fv {{dotfiles_repo}}/zsh/.zshenv {{homedir}} 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/rofi {{configdir}} cp -fv {{dotfiles_repo}}/config/.config/starship.toml {{configdir}} cp -rfv {{dotfiles_repo}}/config/.config/zellij {{configdir}} - cp -rfv {{dotfiles_repo}}/local/.local/share/xfce4 {{homedir}}/.local/share/ save-dotfiles: cp -fv {{homedir}}/.justfile {{dotfiles_repo}}/just/ @@ -35,11 +35,11 @@ save-dotfiles: cp -rfv {{homedir}}/.zshrc.d {{dotfiles_repo}}/zsh/ cp -fv {{homedir}}/.zshenv {{dotfiles_repo}}/zsh/ 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}}/rofi {{dotfiles_repo}}/config/.config/ cp -fv {{configdir}}/starship.toml {{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: rm -fv {{homedir}}/.justfile @@ -48,13 +48,13 @@ clean-dotfiles: rm -rfv {{homedir}}/.zshrc.d rm -fv {{homedir}}/.zshenv rm -rfv {{configdir}}/bat + rm -rfv {{configdir}}/devilspie2 rm -rfv {{configdir}}/git rm -rfv {{configdir}}/rofi rm -fv {{configdir}}/starship.toml rm -rfv {{configdir}}/zellij - rm -rfv {{homedir}}/.local/share/xfce4 -install-dust: +dust: #!/usr/bin/env bash 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 '"') @@ -90,3 +90,15 @@ webdev-tools: rustup: 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