From 2b80bbdd6cd4767b39a7e132adcfdb070a3066a1 Mon Sep 17 00:00:00 2001 From: Flinner Yuu Date: Fri, 22 May 2026 23:47:15 +0300 Subject: [PATCH] feat: periodic update --- .gitignore | 1 + bin/bin/hyprlock_fix.sh | 5 ++++ bin/bin/mouse_accel.sh | 38 +++++++++++++++++++++++++ emacs.mine/.config/emacs.mine/emacs.org | 8 ++++-- hypr/.config/hypr/hyprland.conf | 1 - rofi/.config/rofi/config.rasi | 4 +++ rofi/.config/rofimoji.rc | 3 ++ zsh/.zshrc | 2 +- 8 files changed, 58 insertions(+), 4 deletions(-) create mode 100755 bin/bin/hyprlock_fix.sh create mode 100755 bin/bin/mouse_accel.sh create mode 100644 rofi/.config/rofi/config.rasi create mode 100644 rofi/.config/rofimoji.rc diff --git a/.gitignore b/.gitignore index 3188322..cd20b98 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ __pycache__ /emacs.mine/.config/emacs.mine/eln-cache/ /emacs.mine/.config/emacs.mine/elpy/ /haskell/.ghc/ghci_history +/bin/bin/out/ diff --git a/bin/bin/hyprlock_fix.sh b/bin/bin/hyprlock_fix.sh new file mode 100755 index 0000000..e652652 --- /dev/null +++ b/bin/bin/hyprlock_fix.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +pkill hyprlock +hyprctl --instance 0 'keyword misc:allow_session_lock_restore 1' +hyprctl --instance 0 'dispatch exec hyprlock' diff --git a/bin/bin/mouse_accel.sh b/bin/bin/mouse_accel.sh new file mode 100755 index 0000000..0727783 --- /dev/null +++ b/bin/bin/mouse_accel.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +STATE_FILE="/tmp/mouse_accel_state" +DEFAULT_SPEED=40 +STEP=20 +MAX_SPEED=200 +TIME_THRESHOLD_MS=100 + +now_ms() { + date +%s%3N # current time in milliseconds +} + +# Read previous state +if [[ -f "$STATE_FILE" ]]; then + read -r last_time last_speed < "$STATE_FILE" +else + last_time=0 + last_speed=$DEFAULT_SPEED +fi + +current_time=$(now_ms) +delta=$((current_time - last_time)) + +if (( delta <= TIME_THRESHOLD_MS )); then + # Accelerate + new_speed=$((last_speed + STEP)) + [[ $new_speed -gt $MAX_SPEED ]] && new_speed=$MAX_SPEED +else + # Reset + new_speed=$DEFAULT_SPEED +fi + +# Save new state +echo "$current_time $new_speed" > "$STATE_FILE" + +# Output the new speed +echo "$new_speed" + diff --git a/emacs.mine/.config/emacs.mine/emacs.org b/emacs.mine/.config/emacs.mine/emacs.org index 6c1ed02..c136b45 100644 --- a/emacs.mine/.config/emacs.mine/emacs.org +++ b/emacs.mine/.config/emacs.mine/emacs.org @@ -1,4 +1,4 @@ -#+title: Flinner's Config + #+PROPERTY: header-args:emacs-lisp :tangle ~/.config/emacs.mine/init.el :mkdirp yes #+startup: content * README: @@ -83,6 +83,7 @@ remove warning by use-package (setq max-mini-window-height 13) ; Maximum height for resizing mini-windows (the minibuffer and the echo area). = 1 line (defalias 'yes-or-no-p 'y-or-n-p) ; I don't want to type 'yes' everytime!, 'y' is enough + (setq dired-listing-switches "-al --group-directories-first") ; directories first ;(setq native-comp-deferred-compilation t); emacs 30+ i guess (setq comp-deferred-compilation-deny-list '()) ;; turn off bytecompiler warnings @@ -1352,8 +1353,11 @@ From: https://yiufung.net/post/anki-org/ (setq org-super-agenda-groups '((:log t :order 99); logs at bottom (:name "Study" - :order 90 + :order 88 :tag ("S")) + (:name "Conferences, Journals, and Papers" + :order 90 + :tag ("conf")) (:name "Life" :order 91 :tag ("L")) diff --git a/hypr/.config/hypr/hyprland.conf b/hypr/.config/hypr/hyprland.conf index cb5c979..c81f80e 100644 --- a/hypr/.config/hypr/hyprland.conf +++ b/hypr/.config/hypr/hyprland.conf @@ -214,7 +214,6 @@ animations { # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more dwindle { - pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + shift + t in the keybinds section below preserve_split = true # You probably want this force_split = 2 # right or bottom #smart_split = true diff --git a/rofi/.config/rofi/config.rasi b/rofi/.config/rofi/config.rasi new file mode 100644 index 0000000..6f8bfcf --- /dev/null +++ b/rofi/.config/rofi/config.rasi @@ -0,0 +1,4 @@ + +//@theme "/usr/share/rofi/themes/iggy.rasi" + +@theme "/usr/share/rofi/themes/material.rasi" diff --git a/rofi/.config/rofimoji.rc b/rofi/.config/rofimoji.rc new file mode 100644 index 0000000..e8c8df2 --- /dev/null +++ b/rofi/.config/rofimoji.rc @@ -0,0 +1,3 @@ +action = copy +files = [emojis, math] +skin-tone = moderate diff --git a/zsh/.zshrc b/zsh/.zshrc index 64b8b7e..720a3fb 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -219,7 +219,7 @@ ip.me () { curl eth0.me ; curl ipv6.icanhazip.com } # or ip.me [ ! -z "$1" ] && file=$1 || file=$(find . -maxdepth 2 -type f | fzf) [ -z "$file" ] && return echo "file=@$file" - _URL=$(curl -F "file=@$file" 0x0.st) + _URL=$(curl -F "file=@$file" ttm.sh) echo "$_URL" | xclip -sel clip echo "$_URL" }