Compare commits

..
86 Commits
Author SHA1 Message Date
Daniele Fucini be065bef95 picom: never unredirect for mpv
Fullscreen mpv was unredirected and left the HDMI output (reverse PRIME sink) black, as i3lock did.
2026-11-21 15:11:38 +01:00
Daniele Fucini 9e2b6d52bb gamemode: add config, keep the powersave governor
The performance governor didn't lower temps or improve smoothness, since the CPU is heat-limited at 95 °C anyway.
2026-11-21 11:07:23 +01:00
Daniele Fucini 85796d4c39 picom: never unredirect for i3lock
With unredir-if-possible, the fullscreen i3lock window made picom unredirect, which left the HDMI output (reverse PRIME sink) black while locked.
2026-11-20 08:32:39 +01:00
Daniele Fucini 6e587622f0 picom: unredirect fullscreen windows
Fullscreen games bypass the compositor, saving CPU work and latency.
2026-11-19 19:02:32 +01:00
Daniele Fucini 5fa637ef79 MangoHud: add 60/30 fps cap toggle, show only the NVIDIA GPU
Shift_L+F1 cycles 60, 30 and unlimited. Drop GPU power and fan, which the laptop doesn't report.
2026-11-19 19:02:26 +01:00
Daniele Fucini a5f7d9507f fish: drop cookie and calcurse from shell startup
New interactive shells no longer print a fortune or the 7-day calcurse agenda; the xmobar calcurse widget and the daily reminder cover upcoming events.
2026-11-19 17:12:27 +01:00
Daniele Fucini 394e1d4d58 MangoHud: add thermal-focused overlay config
Starts hidden; Shift_R+F12 toggles it. Shows GPU/CPU load, temperature and clock, plus GPU power, fan and throttling, VRAM/RAM, FPS and frame time.
2026-11-19 17:11:39 +01:00
Daniele Fucini 108f71e711 xmonad: fix urgency marker and ws 3 focus, simplify hooks
Enable withUrgencyHook so ppUrgent works, focus ws 3 when it opens on HDMI, and
make ppOrder total. Track discover-overlay windows instead of scanning the tree
on every log hook. Group manage rules with classIn, deduplicate the layouts and
scratchpads, and use wpctl for all volume keys.
2026-11-17 21:47:48 +01:00
Daniele Fucini 7e8328bf60 xmonad: swap the RiseupVPN scratchpad for Windscribe
Windscribe moves itself to a saved position after mapping, so an event hook
drops its move requests (resizes still apply) to keep it at the scratchpad's spot.
2026-11-17 18:42:27 +01:00
Daniele Fucini 49141ef177 xmobar: show NVIDIA GPU load and temperature
Add gpu.sh, which reads both values from nvidia-smi and colors them like the CPU ones (load 25/75, temp 75/90), and show it between CPU and memory.
2026-11-16 21:42:30 +01:00
Daniele Fucini 478e4d391e Retry i3lock when a keyboard grab blocks it
i3lock exits if another client holds a grab, leaving the screen blanked but
unlocked. Close gcr-prompter (ssh passphrase dialog) first, retry every 2s up
to 30 times and log failures to the journal (tag screen-lock).
2026-11-16 20:57:18 +01:00
Daniele Fucini e2fd3e4aa9 xmonad: restore floating windows after leaving fullscreen
Remember each window's float rect when it goes fullscreen and put it back on exit,
instead of always sinking it (Viewnior after F5). Windows with no record are still sunk.
2026-11-14 19:43:37 +01:00
Daniele Fucini 4a96319bb2 Merge the database dump scripts into db-dump
garmin-dump, weather-dump and library-dump differed only in project, database and rotation; one
db-dump PROJECT DATABASE week|day replaces them. The units keep their names and only change ExecStart.
2026-11-14 15:49:48 +01:00
Daniele Fucini faad434dad aurb: keep ThinLTO cache entries until the size cap
lld expires entries unused for a week by default, which empties the cache between most package rebuilds; prune_after=0s leaves only the 10 GB cap.
2026-11-13 21:27:56 +01:00
Daniele Fucini 9896d9bb21 xmobar: draw the weather icon larger
Add a 13 pt additional font and use it for the weather icon only, so the
rest of the bar and its height are unchanged.
2026-11-13 18:39:53 +01:00
Daniele Fucini 248a9b7d1f xmobar: treat CAVOK/NSC weather reports as clear
NOAA's decoded METAR has no sky conditions line for CAVOK or NSC, so the
weather showed a generic cloud icon and "Unknown"; read them from the raw
observation as clear.
2026-11-13 18:23:14 +01:00
Daniele Fucini 216e1bff0f xmobar: toggle mute on volume click
Left-clicking the volume widget toggles mute on the default sink, so it
works for speakers and headphones alike.
2026-11-12 21:26:39 +01:00
Daniele Fucini 472bf7246b xmobar: show current weather details on click
Clicking the weather now runs weather.sh notify, which shows the
description and temperature; the forecast keeps its ens-forecast week
notification.
2026-11-12 19:24:15 +01:00
Daniele Fucini 0d1cb6cf2a xmonad: fix Signal not moving to the chat workspace
Signal 8.x sets its WM_CLASS to lowercase "signal", so the case-sensitive "Signal" rule no longer matched. Merge it with the discord rule into a case-insensitive classIn.
2026-11-12 18:58:39 +01:00
Daniele Fucini 96903a4d22 Show a weather condition icon in xmobar
Replace the Weather plugin with weather.sh, which picks an icon from the METAR weather/sky and uses moon icons when the sun is down.
2026-11-12 16:54:08 +01:00
Daniele Fucini ce1cd479df Remove gsimplecal calendar popup from xmobar date
Drop the click action on the date and its xmonad float rule; delete the gsimplecal config.
2026-11-12 16:38:42 +01:00
Daniele Fucini c103510786 xmobar: show the next calcurse appointment
Time of today's next appointment, or an icon for a whole-day event today or an appointment tomorrow; click lists both days, right-click opens the calcurse scratchpad. Uptime dropped and the date shortened to make room.
2026-11-12 16:03:00 +01:00
Daniele Fucini 3053b35f26 calcurse: enable automatic note garbage collection
Removes note files no longer linked to any item on each save, instead of running calcurse -g by hand.
2026-11-12 15:40:55 +01:00
Daniele Fucini a260a42352 calcurse: tag appointment alerts with app name and icon
Matches the other calcurse notifications, so dunst rules can target them.
2026-11-12 15:38:16 +01:00
Daniele Fucini 566ac562bd calcurse: one-click Google login renewal
On expiry calcurse-sync starts calcurse-relogin, a notification that opens the consent page when clicked and catches the OAuth code on 127.0.0.1:8749. dunst's left-click now runs a notification's action before closing it.
2026-11-12 14:35:56 +01:00
Daniele Fucini 3bb25669ea calcurse: sync with Google Calendar via calcurse-caldav
Hourly timer started from xmonad, plus UI hooks that sync before load and after exit. calcurse-sync notifies once when the OAuth login expires and restarts the daemon after imports, since it never re-reads its files.
2026-11-12 14:16:36 +01:00
Daniele Fucini 84eec8c855 calcurse: notify whole-day events every morning
The calcurse daemon only alerts timed appointments, so birthdays went unnoticed. A daily 09:00 timer, started from xmonad and persistent across suspend, sends today's events through notify-send.
2026-11-12 11:27:30 +01:00
Daniele Fucini f6015f8d98 xmobar: use the ens-forecast brief subcommand 2026-11-10 18:52:46 +01:00
Daniele Fucini 7aa423b6d6 Update cursor 2026-11-07 10:44:05 +01:00
Daniele Fucini b5c268ae7d xmobar: show reboot and .pacnew markers in the updates segment
Red R until the reboot, blue P until the files are merged, read from
update-notify's pending file; markers show alone when there are no updates.
2026-11-07 10:41:36 +01:00
Daniele Fucini 0ec1272df6 Remove unused clean-aurutils-cache alias 2026-11-06 20:07:54 +01:00
Daniele Fucini 6f4aa3806f xmonad: keep the wallpaper on login and monitor hotplug
Startup and hotplug now pass --keep-wallpaper to screen-layout, so only fehbg.timer picks new random wallpapers.
2026-11-05 17:36:19 +01:00
Daniele Fucini 9da7cc8105 xmobar: show forecast frost/snow/heat probabilities as icons
The bar's forecast line now uses Nerd Font weather glyphs instead of the
words, like the rain drop; the week notification keeps the words.
2026-11-05 17:03:53 +01:00
Daniele Fucini 93b5bcbf30 claude-rc: add the ens-forecast MCP server
Register ens-forecast-mcp, allow its tools in the shared session and document the weather_ro login it needs.
2026-11-05 09:50:42 +01:00
Daniele Fucini 4c5ca29f6e lf: open HTML files in the browser 2026-11-05 09:50:35 +01:00
Daniele Fucini 8bfd577b20 xmobar: raise color thresholds for temps and memory
CPU temp 70/90, memory 50/80, weather 0/30 with orange instead of red for hot weather.
2026-11-01 11:50:09 +01:00
Daniele Fucini 3a2d2b7c37 Add the shared Claude Remote Control setup
Units, settings and setup README for the claude-rc user, which serves my projects' read-only MCP servers to the Claude app (negsplit for now).
2026-11-01 11:06:58 +01:00
Daniele Fucini 51b2bbeff8 Fix mutt's urlscan and HTML view macros
Use <pipe-message> for urlscan (pipe-entry doesn't exist in the pager) and bind it in the index too. Open HTML attachments in Zen instead of Vivaldi, from ~/.cache/mutt/html, which the firejail profiles share. Prune cached messages deleted on the server.
2026-11-01 08:15:00 +01:00
Daniele Fucini b76ae5c3f6 Enlarge the gsimplecal calendar opened from the xmobar date
gsimplecal has no size option, so launch it with GDK_DPI_SCALE=1.25 to scale it up for that process only.
2026-10-31 21:43:52 +01:00
Daniele Fucini 90a81ea960 Add a weekly dump of the Weather database
weather-dump.timer runs weather-dump weekly, keeping the two newest ISO weeks in
~/.local/share/ens-forecast/dumps, which simple_backup then copies; the login comes
from ~/.config/ens-forecast/dump.cnf (not tracked).
2026-10-31 19:00:06 +01:00
Daniele Fucini 5b6e381c89 Raise dunst's maximum notification height to 600 px
The xmobar click list of pending updates was cut off at 300 px.
2026-10-31 11:33:17 +01:00
Daniele Fucini 10bfc025c3 Open a gsimplecal calendar by clicking the xmobar date
Float gsimplecal in xmonad; its config opens it at the mouse and closes it on unfocus.
2026-10-31 11:31:32 +01:00
Daniele Fucini 831238e040 Add a weekly dump of the Garmin database
garmin-dump.timer runs garmin-dump weekly, keeping the two newest ISO weeks in
~/.local/share/negsplit/dumps, which simple_backup then copies; the login comes
from ~/.config/negsplit/dump.cnf (not tracked).
2026-10-31 11:30:03 +01:00
Daniele Fucini cc8eaebd5f Switch keyboard layout by clicking the xmobar indicator
Left-click cycles it -> us -> sk(qwerty), right-click cycles backwards, via a
new kbd_cycle.sh that calls setxkbmap like the M-i/M-u/M-s keys.
2026-10-30 21:25:57 +01:00
Daniele Fucini a41afe4983 Enlarge xmobar font to 10 and fit the bar's contents to its width
Workspaces show only their icon, layouts show an icon instead of their name, and window titles share a 60-character budget (8–30 each), so more windows get shorter titles instead of overflowing the bar.
2026-10-28 19:50:11 +01:00
Daniele Fucini 4e431d6710 Make xmobar and trayer 24px tall and match trayer's background to xmobar
xmobar was auto-sized (17px) and trayer 18px; both are now 24px. trayer only
honours --tint with --transparent, so it drew the GTK background instead.
2026-10-26 17:55:26 +01:00
Daniele Fucini 68bbcaeb82 Add a keybinding list on M-F1; match games by class pattern; update workspace icons
All keys get descriptions (NamedActions) and M-F1 lists them in dmenu. Proton
and Wine games go to ws 3 by class prefix/suffix instead of one rule per game;
GIMP and Audacity go to ws 5; small tools float; new icons for ws 2-7.
2026-10-26 17:49:04 +01:00
Daniele Fucini efea899ccb Pause dunst while the screen is locked; add notification history keys
screen-lock holds notifications until unlock, and M-S-l now goes through
loginctl lock-session so it uses the same locker. M-S-n pops dunst history,
M-C-n closes all notifications.
2026-10-26 17:31:03 +01:00
Daniele Fucini 15e6dfebb7 Hide the NSP workspace in xmobar while it's empty 2026-10-25 21:23:41 +01:00
Daniele Fucini 5d8620560a Strip stock example comments from kitty, mpd, ncmpcpp, picom and mutt configs
Keep only the active settings; behaviour is unchanged apart from dropping an empty picom rule. kitty keeps its theme markers.
2026-10-25 21:18:47 +01:00
Daniele Fucini 496c16ab07 Lighten mpv rendering and trim mpv.conf
Use high-quality instead of the deprecated gpu-hq, drop the expensive ewa_lanczossharp chroma scaling, switch to hwdec=auto-safe and remove the stock example comments.
2026-10-25 21:10:09 +01:00
Daniele Fucini d0684b5200 Drop mpris-proxy so headphone buttons reach playerctld
mpris-proxy registers every MPRIS player with BlueZ, which then sends AVRCP
commands to one of them (mpd). With it disabled, BlueZ sends the buttons as
media keys, which xmonad passes to playerctl.
2026-10-25 20:58:03 +01:00
Daniele Fucini 5e8fa266d7 Control media players with playerctl from media keys and headphones
Run playerctld as a dbus unit with Restart=on-failure, start it through that
unit on D-Bus activation, tie mpris-proxy to it, and bind the XF86 media keys
to playerctl in xmonad.
2026-10-25 19:41:22 +01:00
Daniele Fucini cd439be109 Add a daily dump of the Library database
library-dump.timer writes Library-<weekday>.sql.gz to
~/.local/share/library_manager/dumps, which simple_backup then copies;
the login comes from ~/.config/library_manager/dump.cnf (not tracked).
2026-10-25 19:05:24 +01:00
Daniele Fucini 2718d8531e Let fehbg.service write the wallpaper cache
ProtectHome=read-only stopped the timer from writing ~/.cache/wallpapers, so it failed without a cache and otherwise kept redrawing the same images.
2026-10-25 15:16:44 +01:00
Daniele Fucini 12affc76f7 Add an xmobar indicator and daily reminder for overdue backups
backup.sh shows the days since the last simple_backup (orange from 7,
red from 14); backup-reminder.timer notifies daily once it is overdue.
2026-10-25 12:40:38 +01:00
Daniele Fucini ffe2039de5 Clean downloaded sources from AUR clones after aurs
After a successful sync, aurb runs git clean -fx in each clone under the aurutils sync folder, removing downloaded sources and build logs while keeping tracked files and VCS source folders.
2026-10-24 22:17:23 +02:00
Daniele Fucini 638f7e3dd9 Run discover-overlay-wait as a user unit and rework the vidthumb cache
vidthumb names thumbnails by a hash of path, size and mtime instead of a jq index that broke on quotes in filenames; systemd-tmpfiles removes ones unused for 30 days. discover-overlay-wait now runs from a systemd user unit started by xmonad and logs to the journal.
2026-10-24 22:08:49 +02:00
Daniele Fucini 3e5824a590 Keep the games workspace on the HDMI screen
Wine games lose the mouse when their window moves between screens. safeView replaces greedyView for mod-N, xmobar clicks and mpv so workspace 3 always opens on screen 0 and is never swapped away; safeRescreen keeps a hidden workspace 3 off the laptop screen when screens change.
2026-10-24 20:27:52 +02:00
Daniele Fucini b10970bf36 Keep the wallpaper when movie restores the screen layout
.fehbg now saves its random picks to ~/.cache/wallpapers and redraws them with
--keep; screen-layout passes this through with --keep-wallpaper, used by movie.
2026-10-24 16:31:02 +02:00
Daniele Fucini 12ba85b83b Replace xautolock with xss-lock, xidle-dim and xidle-inhibit
The screen dims after 590s and locks 10s later with i3lock-color through the new
screen-lock script; DPMS turns it off after 15 minutes.
2026-10-24 16:31:02 +02:00
Daniele Fucini 3ff5c20cb5 Clarify that kernel PKGBUILDs set their own toolchain in aurutils-makepkg.conf 2026-10-24 16:30:56 +02:00
Daniele Fucini 43758f2c0e Add README 2026-10-18 22:47:02 +02:00
Daniele Fucini f3f4f346a8 Stop tracking conky config
Conky is no longer started anywhere in the desktop setup.
2026-10-18 22:12:40 +02:00
Daniele Fucini 6dff7f553d Track missing configs referenced by tracked files and other desktop settings
Add kitty themes and mutt includes loaded by tracked configs, xmonad's stack
build files, new systemd units and overrides, plus picom, pipewire, portal,
modprobed-db, btop, vifm, qt5ct/qt6ct, calcurse, mpDris2 and thefuck configs.
2026-10-18 22:12:14 +02:00
Daniele Fucini fd29875044 Send beets-lastimport errors to the journal 2026-10-18 21:58:28 +02:00
Daniele Fucini f8891e01bc Switch dunst icon theme to Tokyonight-Dark 2026-10-18 21:58:28 +02:00
Daniele Fucini 209f9120fd Use vim for sudoedit and switch ALE to ruff, mypy and shellcheck
Drop the rvim sudoedit setup and replace pylint with ruff/mypy. Ruff's EXE001 check is turned off for sudoedit's temporary copies in /var/tmp.
2026-10-18 21:58:28 +02:00
Daniele Fucini 81e2ed075e Build AUR packages with clang and ThinLTO by default
aurb now builds with clang + lld + ThinLTO and bind-mounts a ThinLTO cache and its clang.cfg into the chroot; --gcc keeps the old gcc build. update-kernel still uses gcc.
2026-10-18 21:58:23 +02:00
Daniele Fucini ffd6289a0f Disable debug packages in aurutils-makepkg.conf
Builds through aurb/aurs no longer produce -debug split packages in the local repo.
2026-10-15 13:37:52 +02:00
Daniele Fucini 2066b52f05 Add pending updates widget to xmobar
updates.sh shows the repo/AUR counts and pending kernel rebuilds from update-notify's pending file, and lists them in a notification on click.
2026-10-15 13:36:28 +02:00
Daniele Fucini 8bf32a2744 Add fish history filtering and monthly pruning 2026-10-14 11:09:24 +02:00
Daniele Fucini 7209834c0f Add systemd user units and drop-ins
Enable state (*.wants symlinks) is not tracked; enable units per machine.
2026-10-14 11:09:24 +02:00
Daniele Fucini be1818b335 Add aur and su fish functions 2026-10-14 11:09:17 +02:00
Daniele Fucini cfbe7fcbc4 Update aurutils-makepkg.conf 2026-10-13 20:36:45 +02:00
Daniele Fucini 07135c3452 Kill xmobars by name when restarting status bars
killAllStatusBars only kills the PIDs xmonad has stored, and bars that dropped off that list
kept running after M-q and movie, leaving a laptop-config bar on HDMI. pkill -x xmobar
catches them all.
2026-10-13 20:34:53 +02:00
Daniele Fucini 3e77c8be34 Start dunst through its systemd user unit from XMonad
Gives it journal logging, and D-Bus activation already uses the same unit.
2026-10-13 19:00:29 +02:00
Daniele Fucini fbd2312eee Start fehbg.timer from XMonad instead of enabling it
The timer needs X, so its countdown should start with the X session.
2026-10-13 18:58:29 +02:00
Daniele Fucini a858e92b50 Restart all xmobars on every XMonad screen change
dynamicEasySBs kept bars for existing screen ids, so the bar started
before screen-layout ran kept the laptop config on HDMI.
2026-10-13 18:56:33 +02:00
Daniele Fucini ba720116a6 Make ICON first fallback in forecast brief 2026-10-12 17:34:09 +02:00
Daniele Fucini 9cb98bef22 Handle stale data in ens-forecast brief in xmobar 2026-10-11 22:53:26 +02:00
Daniele Fucini ab3be028eb Fix elinks in mutt mailcap 2026-10-11 22:52:54 +02:00
Daniele Fucini 7e53279223 Remove broken mailcap entries in mutt/mailcap 2026-10-11 15:22:59 +02:00
Daniele Fucini b64ea797bf Make xmobar workspaces clickable
Clicking a workspace switches to it; one visible on the other screen is
swapped onto the focused screen. xmobar uses UnsafeXMonadLog so the
click actions are kept.
2026-10-10 19:39:04 +02:00
Daniele Fucini 2877d5f026 Track vidthumb, discover-overlay-wait and aurb/aurs scripts 2026-10-10 19:05:48 +02:00
Daniele Fucini 316c3f3b90 Add phone script to mount Android phones over MTP as ~/Phone 2026-10-10 19:03:32 +02:00
125 changed files with 4189 additions and 3723 deletions

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
Xcursor.theme: Dracula
Xcursor.theme: Dracula-cursors
*.Dialog.bodyFont: Jetbrains Mono Nerd Font
*.Dialog.headingFont: Jetbrains Mono Nerd Font
+1 -4
View File
@@ -1,6 +1,5 @@
# Aliases
alias cat='bat'
alias clean-aurutils-cache='find ~/.cache/aurutils/sync -type d -name .git -execdir git clean -xi \;'
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
alias cookie='fortune /usr/share/fortune/asoiaf /usr/share/fortune/startrek | cowthink | lolcat -p 2.0 -F 0.3 -a -d 1'
alias fastfetch='hyfetch --distro=arch'
@@ -15,9 +14,7 @@ alias sort='sort -n'
alias scrcpy='scrcpy --disable-screensaver'
alias ssh='kitten ssh'
alias sudo='doas'
alias sudoedit='doas rvim'
#alias trayer='trayer -l --edge top --align right --SetDockType true --SetPartialStrut true --expand true --widthtype request --transparent true --tint 0x232634 --height 18 --monitor 1'
alias trayer='trayer -l --edge top --align right --SetDockType true --SetPartialStrut true --expand true --widthtype request --tint 0x232634 --height 18 --monitor 1'
alias trayer='trayer -l --edge top --align right --SetDockType true --SetPartialStrut true --expand true --widthtype request --transparent true --alpha 0 --tint 0x24283b --height 24 --monitor 1'
alias trc='trash-empty'
alias trl='trash-list'
alias trm='trash-rm'
+5
View File
@@ -0,0 +1,5 @@
#
# ~/.bash_profile
#
[[ -f ~/.bashrc ]] && . ~/.bashrc
+1 -1
View File
@@ -19,7 +19,7 @@ if [ ! -d ~/.cache/mutt ]; then
fi
export EDITOR=vim
export SUDO_EDITOR=rvim
export SUDO_EDITOR=vim
export PATH="/home/fuxino/.local/bin:$PATH"
+29
View File
@@ -0,0 +1,29 @@
# Thermal-focused overlay; starts hidden, Shift_R+F12 toggles it.
no_display
toggle_hud=Shift_R+F12
position=top-left
font_size=20
background_alpha=0.4
# Divisors of 60 Hz only; Shift_L+F1 cycles 60 -> 30 -> unlimited.
fps_limit=60,30,0
toggle_fps_limit=Shift_L+F1
fps_limit_method=late
# GPU0 is the Intel iGPU (no temp, power or VRAM); only show the NVIDIA one.
gpu_list=1
gpu_stats
gpu_temp
gpu_core_clock
throttling_status
cpu_stats
cpu_temp
cpu_mhz
vram
ram
fps
frametime
frame_timing
+5
View File
@@ -0,0 +1,5 @@
# clang options for aurb chroot builds (CC/CXX pass --config=<this file>, see aurutils-makepkg.conf).
# Here rather than in LDFLAGS: old libtool (<2.4.7) drops -fuse-ld=lld, and these then reach GNU ld.
-fuse-ld=lld
-Wl,--thinlto-cache-dir=/home/fuxino/.cache/thinlto
-Wl,--thinlto-cache-policy=cache_size_bytes=10g:prune_after=0s
+179
View File
@@ -0,0 +1,179 @@
#!/hint/bash
# shellcheck disable=2034
#
# /etc/makepkg.conf
#
#########################################################################
# SOURCE ACQUISITION
#########################################################################
#
#-- The download utilities that makepkg should use to acquire sources
# Format: 'protocol::agent'
DLAGENTS=('file::/usr/bin/curl -qgC - -o %o %u'
'ftp::/usr/bin/curl -qgfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
'http::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
'https::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
'rsync::/usr/bin/rsync --no-motd -z %u %o'
'scp::/usr/bin/scp -C %u %o')
# Other common tools:
# /usr/bin/snarf
# /usr/bin/lftpget -c
# /usr/bin/wget
#-- The package required by makepkg to download VCS sources
# Format: 'protocol::package'
VCSCLIENTS=('bzr::breezy'
'fossil::fossil'
'git::git'
'hg::mercurial'
'svn::subversion')
#########################################################################
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
CARCH="x86_64"
CHOST="x86_64-pc-linux-gnu"
#NPROC=2
#-- Compiler and Linker Flags
#CPPFLAGS=""
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
-Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security \
-fstack-clash-protection -fcf-protection \
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
-Wl,-z,pack-relative-relocs"
LTOFLAGS="-flto=auto"
#-- Make Flags: change this for DistCC/SMP systems
MAKEFLAGS="-j$(nproc)"
#-- Debugging flags
DEBUG_CFLAGS="-g"
DEBUG_CXXFLAGS="$DEBUG_CFLAGS"
#########################################################################
# BUILD ENVIRONMENT
#########################################################################
#
# Makepkg defaults: BUILDENV=(!distcc !color !ccache check !sign)
# A negated environment option will do the opposite of the comments below.
#
#-- distcc: Use the Distributed C/C++/ObjC compiler
#-- color: Colorize output messages
#-- ccache: Use ccache to cache compilation
#-- check: Run the check() function if present in the PKGBUILD
#-- sign: Generate PGP signature file
#
BUILDENV=(!distcc color ccache check !sign)
#
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
#-- specify a space-delimited list of hosts running in the DistCC cluster.
#DISTCC_HOSTS=""
#
#-- Specify a directory for package building.
#BUILDDIR=/tmp/makepkg
#########################################################################
# GLOBAL PACKAGE OPTIONS
# These are default values for the options=() settings
#########################################################################
#
# Makepkg defaults:
# OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto !autodeps)
# A negated option will do the opposite of the comments below.
#
#-- strip: Strip symbols from binaries/libraries
#-- docs: Save doc directories specified by DOC_DIRS
#-- libtool: Leave libtool (.la) files in packages
#-- staticlibs: Leave static library (.a) files in packages
#-- emptydirs: Leave empty directories in packages
#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
#-- purge: Remove files specified by PURGE_TARGETS
#-- debug: Add debugging flags as specified in DEBUG_* variables
#-- lto: Add compile flags for building with link time optimization
#-- autodeps: Automatically add depends/provides
#
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)
#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
INTEGRITY_CHECK=(sha256)
#-- Options to be used when stripping binaries. See `man strip' for details.
STRIP_BINARIES="--strip-all"
#-- Options to be used when stripping shared libraries. See `man strip' for details.
STRIP_SHARED="--strip-unneeded"
#-- Options to be used when stripping static libraries. See `man strip' for details.
STRIP_STATIC="--strip-debug"
#-- Manual (man and info) directories to compress (if zipman is specified)
MAN_DIRS=(usr{,/local}{,/share}/{man,info})
#-- Doc directories to remove (if !docs is specified)
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc})
#-- Files to be removed from all packages (if purge is specified)
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
#-- Directory to store source code in for debug packages
DBGSRCDIR="/usr/src/debug"
#-- Prefix and directories for library autodeps
LIB_DIRS=('lib:usr/lib' 'lib32:usr/lib32')
#########################################################################
# PACKAGE OUTPUT
#########################################################################
#
# Default: put built package and cached source in build directory
#
#-- Destination: specify a fixed directory where all packages will be placed
#PKGDEST=/home/packages
#-- Source cache: specify a fixed directory where source files will be cached
#SRCDEST=/home/sources
#-- Source packages: specify a fixed directory where all src packages will be placed
#SRCPKGDEST=/home/srcpackages
#-- Log files: specify a fixed directory where all log files will be placed
#LOGDEST=/home/makepkglogs
#-- Packager: name/email of the person or organization building packages
#PACKAGER="John Doe <john@doe.com>"
#-- Specify a key to use for package signing
#GPGKEY=""
#########################################################################
# COMPRESSION DEFAULTS
#########################################################################
#
COMPRESSGZ=(gzip -c -f -n)
COMPRESSBZ2=(bzip2 -c -f)
COMPRESSXZ=(xz -c -z -)
COMPRESSZST=(zstd -c -T0 --ultra -20 -)
COMPRESSLRZ=(lrzip -q)
COMPRESSLZO=(lzop -q)
COMPRESSZ=(compress -c -f)
COMPRESSLZ4=(lz4 -q)
COMPRESSLZ=(lzip -c -f)
#########################################################################
# EXTENSION DEFAULTS
#########################################################################
#
PKGEXT='.pkg.tar.zst'
SRCEXT='.src.tar.gz'
#########################################################################
# OTHER
#########################################################################
#
#-- Command used to run pacman as root, instead of trying sudo and su
#PACMAN_AUTH=()
export CCACHE_DIR=/home/fuxino/.cache/ccache
# clang + lld + ThinLTO, only when aurb prepends AURB_CLANG=1 (its default; `aurb --gcc` doesn't).
# update-kernel uses this file as is; the kernels' toolchain is set only by their PKGBUILDs (LLVM=1).
# Linker flags live in clang.cfg (lld + ThinLTO cache); aurb bind-mounts its dir and the ThinLTO cache dir.
if [[ -n ${AURB_CLANG-} ]]; then
export CC="clang --config=/home/fuxino/.config/aurb/clang.cfg"
export CXX="clang++ --config=/home/fuxino/.config/aurb/clang.cfg"
export AR=llvm-ar NM=llvm-nm RANLIB=llvm-ranlib
LTOFLAGS="-flto=thin"
fi
# vim: set ft=sh ts=2 sw=2 et:
+87
View File
@@ -0,0 +1,87 @@
[Desktop Entry]
Version=1.0
Name=Redshift
Name[be]=Redshift
Name[ca]=Redshift
Name[cs]=Redshift
Name[da]=Redshift
Name[de]=Redshift
Name[en_GB]=Redshift
Name[es]=Redshift
Name[fr]=Redshift
Name[he]=Redshift
Name[hu]=Redshift
Name[it]=Redshift
Name[ja]=Redshift
Name[lt]=Redshift
Name[nb]=Rødskift
Name[pl]=Redshift
Name[pt]=Redshift
Name[pt_BR]=Redshift
Name[ro]=Redshift
Name[ru]=Redshift
Name[sr]=Редшифт
Name[sv]=Redshift
Name[tr]=Redshift
Name[uk]=Redshift
Name[zh_CN]=红移
Name[zh_TW]=Redshift
GenericName=Color temperature adjustment
GenericName[be]=Рэгуляванне каляровай тэмпературы
GenericName[ca]=Ajust de la temperatura de color
GenericName[cs]=Nastavení teploty barev
GenericName[da]=Justering af farvetemperatur
GenericName[de]=Farbtemperaturanpassung
GenericName[en_GB]=Colour temperature adjustment
GenericName[es]=Ajuste de la temperatura de color
GenericName[fr]=Réglage de la température de couleur
GenericName[he]=התאמת טמפרטורת צבע
GenericName[hu]=Színhőmérséklet beállítása
GenericName[it]=Regolazione della temperatura del colore
GenericName[ja]=色温度の調整
GenericName[lt]=Spalvos temperatūros reguliavimas
GenericName[nb]=Justering av fargetemperatur
GenericName[nl]=Bijstelling van kleurtemperatuur
GenericName[pl]=Dostosowanie temperatury barwowej
GenericName[pt_BR]=Ajuste de temperatura de cor
GenericName[ru]=Настройка цветовой температуры
GenericName[sr]=Прилагођавање температуре боје
GenericName[sv]=Färgtemperaturjustering
GenericName[tr]=Renk sıcaklığı ayarı
GenericName[uk]=Налаштування колірної температури
GenericName[zh_CN]=色温调节
GenericName[zh_TW]=色溫調整
Comment=Color temperature adjustment tool
Comment[be]=Інструмент рэгулявання каляровай тэмпературы
Comment[ca]=Eina per a l'ajust de la temperatura de color
Comment[cs]=Nástroj pro přizpůsobení barevné teploty
Comment[da]=Justeringsværktøj for farvetemperatur
Comment[de]=Farbtemperaturanpassungswerkzeug
Comment[en_GB]=Colour temperature adjustment tool
Comment[es]=Herramienta para el ajuste de la temperatura de color
Comment[fr]=Outil de réglage de la température de couleur
Comment[he]=כלי להתאמת טמפרטורת צבע
Comment[hu]=Színhőmérséklet beállító eszköz
Comment[it]=Strumento per la regolazione della temperatura del colore
Comment[ja]=色温度の調整ツール
Comment[lt]=Spalvos temperatūros reguliavimo įrankis
Comment[nb]=Justeringsverktøy for fargetemperatur
Comment[nl]=Hulpmiddel voor het bijstellen van de kleurtemperatuur
Comment[pl]=Narzędzie do dostosowywania temperatury barwowej
Comment[pt_BR]=Ferramenta de ajuste de temperatura de cor
Comment[ru]=Инструмент регулирования цветовой температуры
Comment[sr]=Алатка за прилагођавање температуре боје
Comment[sv]=Justeringsverktyg för färgtemperaturer
Comment[tr]=Renk sıcaklığı ayarlama aracı
Comment[uk]=Знаряддя налаштувань колірної температури
Comment[zh_CN]=色温调节工具
Comment[zh_TW]=色溫調整工具
Exec=redshift-gtk
Icon=redshift
Terminal=false
Type=Application
Categories=Utility;
StartupNotify=true
Hidden=true
X-GNOME-Autostart-enabled=false
+286
View File
@@ -0,0 +1,286 @@
#? Config file for btop v.1.4.7
#* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes.
#* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes"
color_theme = "/home/fuxino/.config/btop/themes/catppuccin_frappe.theme"
#* If the theme set background should be shown, set to False if you want terminal background transparency.
theme_background = false
#* Sets if 24-bit truecolor should be used, will convert 24-bit colors to 256 color (6x6x6 color cube) if false.
truecolor = true
#* Set to true to force tty mode regardless if a real tty has been detected or not.
#* Will force 16-color mode and TTY theme, set all graph symbols to "tty" and swap out other non tty friendly symbols.
force_tty = false
#* Option to disable presets. Either the default preset, custom presets, or all presets.
#* "Off" All presets are enabled.
#* "Default" preset is disabled.#* "Custom" presets are disabled.#* "All" presets are disabled.
disable_presets = "Off"
#* Define presets for the layout of the boxes. Preset 0 is always all boxes shown with default settings. Max 9 presets.
#* Format: "box_name:P:G,box_name:P:G" P=(0 or 1) for alternate positions, G=graph symbol to use for box.
#* Use whitespace " " as separator between different presets.
#* Example: "cpu:0:default,mem:0:tty,proc:1:default cpu:0:braille,proc:0:tty"
presets = "cpu:1:default,proc:0:default cpu:0:default,mem:0:default,net:0:default cpu:0:block,net:0:tty"
#* Set to True to enable "h,j,k,l,g,G" keys for directional control in lists.
#* Conflicting keys for h:"help" and k:"kill" is accessible while holding shift.
vim_keys = true
#* Disable all mouse events.
disable_mouse = false
#* Rounded corners on boxes, is ignored if TTY mode is ON.
rounded_corners = true
#* Use terminal synchronized output sequences to reduce flickering on supported terminals.
terminal_sync = true
#* Default symbols to use for graph creation, "braille", "block" or "tty".
#* "braille" offers the highest resolution but might not be included in all fonts.
#* "block" has half the resolution of braille but uses more common characters.
#* "tty" uses only 3 different symbols but will work with most fonts and should work in a real TTY.
#* Note that "tty" only has half the horizontal resolution of the other two, so will show a shorter historical view.
graph_symbol = "braille"
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
graph_symbol_cpu = "default"
# Graph symbol to use for graphs in gpu box, "default", "braille", "block" or "tty".
graph_symbol_gpu = "default"
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
graph_symbol_mem = "default"
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
graph_symbol_net = "default"
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
graph_symbol_proc = "default"
#* Manually set which boxes to show. Available values are "cpu mem net proc" and "gpu0" through "gpu5", separate values with whitespace.
shown_boxes = "cpu mem net proc"
#* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs.
update_ms = 2000
#* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct",
#* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly.
proc_sorting = "cpu lazy"
#* Reverse sorting order, True or False.
proc_reversed = false
#* Show processes as a tree.
proc_tree = false
#* Use the cpu graph colors in the process list.
proc_colors = true
#* Use a darkening gradient in the process list.
proc_gradient = true
#* If process cpu usage should be of the core it's running on or usage of the total available cpu power.
proc_per_core = false
#* Show process memory as bytes instead of percent.
proc_mem_bytes = true
#* Show cpu graph for each process.
proc_cpu_graphs = true
#* Use /proc/[pid]/smaps for memory information in the process info box (very slow but more accurate)
proc_info_smaps = false
#* Show proc box on left side of screen instead of right.
proc_left = false
#* (Linux) Filter processes tied to the Linux kernel(similar behavior to htop).
proc_filter_kernel = false
#* Should the process list follow the selected process when detailed view is open.
proc_follow_detailed = true
#* In tree-view, always accumulate child process resources in the parent process.
proc_aggregate = false
#* Should cpu and memory usage display be preserved for dead processes when paused.
keep_dead_proc_usage = false
#* Sets the CPU stat shown in upper half of the CPU graph, "total" is always available.
#* Select from a list of detected attributes from the options menu.
cpu_graph_upper = "Auto"
#* Sets the CPU stat shown in lower half of the CPU graph, "total" is always available.
#* Select from a list of detected attributes from the options menu.
cpu_graph_lower = "Auto"
#* If gpu info should be shown in the cpu box. Available values = "Auto", "On" and "Off".
show_gpu_info = "Auto"
#* Toggles if the lower CPU graph should be inverted.
cpu_invert_lower = true
#* Set to True to completely disable the lower CPU graph.
cpu_single_graph = false
#* Show cpu box at bottom of screen instead of top.
cpu_bottom = false
#* Shows the system uptime in the CPU box.
show_uptime = true
#* Shows the CPU package current power consumption in watts. Requires running `make setcap` or `make setuid` or running with sudo.
show_cpu_watts = true
#* Show cpu temperature.
check_temp = true
#* Which sensor to use for cpu temperature, use options menu to select from list of available sensors.
cpu_sensor = "Auto"
#* Show temperatures for cpu cores also if check_temp is True and sensors has been found.
show_coretemp = true
#* Set a custom mapping between core and coretemp, can be needed on certain cpus to get correct temperature for correct core.
#* Use lm-sensors or similar to see which cores are reporting temperatures on your machine.
#* Format "x:y" x=core with wrong temp, y=core with correct temp, use space as separator between multiple entries.
#* Example: "4:0 5:1 6:3"
cpu_core_map = ""
#* Which temperature scale to use, available values: "celsius", "fahrenheit", "kelvin" and "rankine".
temp_scale = "celsius"
#* Use base 10 for bits/bytes sizes, KB = 1000 instead of KiB = 1024.
base_10_sizes = false
#* Show CPU frequency.
show_cpu_freq = true
#* How to calculate CPU frequency, available values: "first", "range", "lowest", "highest" and "average".
freq_mode = "first"
#* Draw a clock at top of screen, formatting according to strftime, empty string to disable.
#* Special formatting: /host = hostname | /user = username | /uptime = system uptime
clock_format = "%X"
#* Update main ui in background when menus are showing, set this to false if the menus is flickering too much for comfort.
background_update = true
#* Custom cpu model name, empty string to disable.
custom_cpu_name = ""
#* Optional filter for shown disks, should be full path of a mountpoint, separate multiple values with whitespace " ".
#* Only disks matching the filter will be shown. Prepend exclude= to only show disks not matching the filter. Examples: disk_filter="/boot /home/user", disks_filter="exclude=/boot /home/user"
disks_filter = ""
#* Show graphs instead of meters for memory values.
mem_graphs = true
#* Show mem box below net box instead of above.
mem_below_net = false
#* Count ZFS ARC in cached and available memory.
zfs_arc_cached = true
#* If swap memory should be shown in memory box.
show_swap = true
#* Show swap as a disk, ignores show_swap value above, inserts itself after first disk.
swap_disk = true
#* If mem box should be split to also show disks info.
show_disks = true
#* Filter out non physical disks. Set this to False to include network disks, RAM disks and similar.
only_physical = true
#* Read disks list from /etc/fstab. This also disables only_physical.
use_fstab = true
#* Setting this to True will hide all datasets, and only show ZFS pools. (IO stats will be calculated per-pool)
zfs_hide_datasets = false
#* Set to true to show available disk space for privileged users.
disk_free_priv = false
#* Toggles if io activity % (disk busy time) should be shown in regular disk usage view.
show_io_stat = true
#* Toggles io mode for disks, showing big graphs for disk read/write speeds.
io_mode = true
#* Set to True to show combined read/write io graphs in io mode.
io_graph_combined = false
#* Set the top speed for the io graphs in MiB/s (100 by default), use format "mountpoint:speed" separate disks with whitespace " ".
#* Example: "/mnt/media:100 /:20 /boot:1".
io_graph_speeds = ""
#* Swap the positions of the upload and download speed graphs. When true, upload will be on top.
swap_upload_download = false
#* Set fixed values for network graphs in Mebibits. Is only used if net_auto is also set to False.
net_download = 100
net_upload = 100
#* Use network graphs auto rescaling mode, ignores any values set above and rescales down to 10 Kibibytes at the lowest.
net_auto = false
#* Sync the auto scaling for download and upload to whichever currently has the highest scale.
net_sync = true
#* Starts with the Network Interface specified here.
net_iface = ""
#* "True" shows bitrates in base 10 (Kbps, Mbps). "False" shows bitrates in binary sizes (Kibps, Mibps, etc.). "Auto" uses base_10_sizes.
base_10_bitrate = "Auto"
#* Show battery stats in top right if battery is present.
show_battery = true
#* Which battery to use if multiple are present. "Auto" for auto detection.
selected_battery = "BAT0"
#* Show power stats of battery next to charge indicator.
show_battery_watts = true
#* Set loglevel for "~/.local/state/btop.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG".
#* The level set includes all lower levels, i.e. "DEBUG" will show all logging info.
log_level = "INFO"
#* Automatically save current settings to config file on exit.
save_config_on_exit = true
#* Measure PCIe throughput on NVIDIA cards, may impact performance on certain cards.
nvml_measure_pcie_speeds = true
#* Measure PCIe throughput on AMD cards, may impact performance on certain cards.
rsmi_measure_pcie_speeds = true
#* Horizontally mirror the GPU graph.
gpu_mirror_graph = true
#* Set which GPU vendors to show. Available values are "nvidia amd intel apple"
shown_gpus = "nvidia amd intel"
#* Custom gpu0 model name, empty string to disable.
custom_gpu_name0 = ""
#* Custom gpu1 model name, empty string to disable.
custom_gpu_name1 = ""
#* Custom gpu2 model name, empty string to disable.
custom_gpu_name2 = ""
#* Custom gpu3 model name, empty string to disable.
custom_gpu_name3 = ""
#* Custom gpu4 model name, empty string to disable.
custom_gpu_name4 = ""
#* Custom gpu5 model name, empty string to disable.
custom_gpu_name5 = ""
@@ -0,0 +1,83 @@
# Main background, empty for terminal default, need to be empty if you want transparent background
theme[main_bg]="#303446"
# Main text color
theme[main_fg]="#C6D0F5"
# Title color for boxes
theme[title]="#C6D0F5"
# Highlight color for keyboard shortcuts
theme[hi_fg]="#8CAAEE"
# Background color of selected item in processes box
theme[selected_bg]="#51576D"
# Foreground color of selected item in processes box
theme[selected_fg]="#8CAAEE"
# Color of inactive/disabled text
theme[inactive_fg]="#838BA7"
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
theme[graph_text]="#F2D5CF"
# Background color of the percentage meters
theme[meter_bg]="#51576D"
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
theme[proc_misc]="#F2D5CF"
# CPU, Memory, Network, Proc box outline colors
theme[cpu_box]="#ca9ee6" #Mauve
theme[mem_box]="#a6d189" #Green
theme[net_box]="#ea999c" #Maroon
theme[proc_box]="#8caaee" #Blue
# Box divider line and small boxes line color
theme[div_line]="#737994"
# Temperature graph color (Green -> Yellow -> Red)
theme[temp_start]="#a6d189"
theme[temp_mid]="#e5c890"
theme[temp_end]="#e78284"
# CPU graph colors (Teal -> Lavender)
theme[cpu_start]="#81c8be"
theme[cpu_mid]="#85c1dc"
theme[cpu_end]="#babbf1"
# Mem/Disk free meter (Mauve -> Lavender -> Blue)
theme[free_start]="#ca9ee6"
theme[free_mid]="#babbf1"
theme[free_end]="#8caaee"
# Mem/Disk cached meter (Sapphire -> Lavender)
theme[cached_start]="#85c1dc"
theme[cached_mid]="#8caaee"
theme[cached_end]="#babbf1"
# Mem/Disk available meter (Peach -> Red)
theme[available_start]="#ef9f76"
theme[available_mid]="#ea999c"
theme[available_end]="#e78284"
# Mem/Disk used meter (Green -> Sky)
theme[used_start]="#a6d189"
theme[used_mid]="#81c8be"
theme[used_end]="#99d1db"
# Download graph colors (Peach -> Red)
theme[download_start]="#ef9f76"
theme[download_mid]="#ea999c"
theme[download_end]="#e78284"
# Upload graph colors (Green -> Sky)
theme[upload_start]="#a6d189"
theme[upload_mid]="#81c8be"
theme[upload_end]="#99d1db"
# Process box color gradient for threads, mem and cpu usage (Sapphire -> Mauve)
theme[process_start]="#85c1dc"
theme[process_mid]="#babbf1"
theme[process_end]="#ca9ee6"
@@ -0,0 +1,84 @@
# Main background, empty for terminal default, need to be empty if you want transparent background
theme[main_bg]="#EFF1F5"
# Main text color
theme[main_fg]="#4C4F69"
# Title color for boxes
theme[title]="#4C4F69"
# Highlight color for keyboard shortcuts
theme[hi_fg]="#1E66F5"
# Background color of selected item in processes box
theme[selected_bg]="#BCC0CC"
# Foreground color of selected item in processes box
theme[selected_fg]="#1E66F5"
# Color of inactive/disabled text
theme[inactive_fg]="#8C8FA1"
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
theme[graph_text]="#DC8A78"
# Background color of the percentage meters
theme[meter_bg]="#BCC0CC"
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
theme[proc_misc]="#DC8A78"
# CPU, Memory, Network, Proc box outline colors
theme[cpu_box]="#8839ef" #Mauve
theme[mem_box]="#40a02b" #Green
theme[net_box]="#e64553" #Maroon
theme[proc_box]="#1e66f5" #Blue
# Box divider line and small boxes line color
theme[div_line]="#9CA0B0"
# Temperature graph color (Green -> Yellow -> Red)
theme[temp_start]="#40a02b"
theme[temp_mid]="#df8e1d"
theme[temp_end]="#d20f39"
# CPU graph colors (Teal -> Lavender)
theme[cpu_start]="#179299"
theme[cpu_mid]="#209fb5"
theme[cpu_end]="#7287fd"
# Mem/Disk free meter (Mauve -> Lavender -> Blue)
theme[free_start]="#8839ef"
theme[free_mid]="#7287fd"
theme[free_end]="#1e66f5"
# Mem/Disk cached meter (Sapphire -> Lavender)
theme[cached_start]="#209fb5"
theme[cached_mid]="#1e66f5"
theme[cached_end]="#7287fd"
# Mem/Disk available meter (Peach -> Red)
theme[available_start]="#fe640b"
theme[available_mid]="#e64553"
theme[available_end]="#d20f39"
# Mem/Disk used meter (Green -> Sky)
theme[used_start]="#40a02b"
theme[used_mid]="#179299"
theme[used_end]="#04a5e5"
# Download graph colors (Peach -> Red)
theme[download_start]="#fe640b"
theme[download_mid]="#e64553"
theme[download_end]="#d20f39"
# Upload graph colors (Green -> Sky)
theme[upload_start]="#40a02b"
theme[upload_mid]="#179299"
theme[upload_end]="#04a5e5"
# Process box color gradient for threads, mem and cpu usage (Sapphire -> Lavender-> Mauve)
theme[process_start]="#209fb5"
theme[process_mid]="#7287fd"
theme[process_end]="#8839ef"
@@ -0,0 +1,83 @@
# Main background, empty for terminal default, need to be empty if you want transparent background
theme[main_bg]="#24273A"
# Main text color
theme[main_fg]="#CAD3F5"
# Title color for boxes
theme[title]="#CAD3F5"
# Highlight color for keyboard shortcuts
theme[hi_fg]="#8AADF4"
# Background color of selected item in processes box
theme[selected_bg]="#494D64"
# Foreground color of selected item in processes box
theme[selected_fg]="#8AADF4"
# Color of inactive/disabled text
theme[inactive_fg]="#8087A2"
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
theme[graph_text]="#F4DBD6"
# Background color of the percentage meters
theme[meter_bg]="#494D64"
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
theme[proc_misc]="#F4DBD6"
# CPU, Memory, Network, Proc box outline colors
theme[cpu_box]="#c6a0f6" #Mauve
theme[mem_box]="#a6da95" #Green
theme[net_box]="#ee99a0" #Maroon
theme[proc_box]="#8aadf4" #Blue
# Box divider line and small boxes line color
theme[div_line]="#6E738D"
# Temperature graph color (Green -> Yellow -> Red)
theme[temp_start]="#a6da95"
theme[temp_mid]="#eed49f"
theme[temp_end]="#ed8796"
# CPU graph colors (Teal -> Lavender)
theme[cpu_start]="#8bd5ca"
theme[cpu_mid]="#7dc4e4"
theme[cpu_end]="#b7bdf8"
# Mem/Disk free meter (Mauve -> Lavender -> Blue)
theme[free_start]="#c6a0f6"
theme[free_mid]="#b7bdf8"
theme[free_end]="#8aadf4"
# Mem/Disk cached meter (Sapphire -> Lavender)
theme[cached_start]="#7dc4e4"
theme[cached_mid]="#8aadf4"
theme[cached_end]="#b7bdf8"
# Mem/Disk available meter (Peach -> Red)
theme[available_start]="#f5a97f"
theme[available_mid]="#ee99a0"
theme[available_end]="#ed8796"
# Mem/Disk used meter (Green -> Sky)
theme[used_start]="#a6da95"
theme[used_mid]="#8bd5ca"
theme[used_end]="#91d7e3"
# Download graph colors (Peach -> Red)
theme[download_start]="#f5a97f"
theme[download_mid]="#ee99a0"
theme[download_end]="#ed8796"
# Upload graph colors (Green -> Sky)
theme[upload_start]="#a6da95"
theme[upload_mid]="#8bd5ca"
theme[upload_end]="#91d7e3"
# Process box color gradient for threads, mem and cpu usage (Sapphire -> Mauve)
theme[process_start]="#7dc4e4"
theme[process_mid]="#b7bdf8"
theme[process_end]="#c6a0f6"
@@ -0,0 +1,83 @@
# Main background, empty for terminal default, need to be empty if you want transparent background
theme[main_bg]="#1E1E2E"
# Main text color
theme[main_fg]="#CDD6F4"
# Title color for boxes
theme[title]="#CDD6F4"
# Highlight color for keyboard shortcuts
theme[hi_fg]="#89B4FA"
# Background color of selected item in processes box
theme[selected_bg]="#45475A"
# Foreground color of selected item in processes box
theme[selected_fg]="#89B4FA"
# Color of inactive/disabled text
theme[inactive_fg]="#7F849C"
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
theme[graph_text]="#F5E0DC"
# Background color of the percentage meters
theme[meter_bg]="#45475A"
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
theme[proc_misc]="#F5E0DC"
# CPU, Memory, Network, Proc box outline colors
theme[cpu_box]="#cba6f7" #Mauve
theme[mem_box]="#a6e3a1" #Green
theme[net_box]="#eba0ac" #Maroon
theme[proc_box]="#89b4fa" #Blue
# Box divider line and small boxes line color
theme[div_line]="#6C7086"
# Temperature graph color (Green -> Yellow -> Red)
theme[temp_start]="#a6e3a1"
theme[temp_mid]="#f9e2af"
theme[temp_end]="#f38ba8"
# CPU graph colors (Teal -> Lavender)
theme[cpu_start]="#94e2d5"
theme[cpu_mid]="#74c7ec"
theme[cpu_end]="#b4befe"
# Mem/Disk free meter (Mauve -> Lavender -> Blue)
theme[free_start]="#cba6f7"
theme[free_mid]="#b4befe"
theme[free_end]="#89b4fa"
# Mem/Disk cached meter (Sapphire -> Lavender)
theme[cached_start]="#74c7ec"
theme[cached_mid]="#89b4fa"
theme[cached_end]="#b4befe"
# Mem/Disk available meter (Peach -> Red)
theme[available_start]="#fab387"
theme[available_mid]="#eba0ac"
theme[available_end]="#f38ba8"
# Mem/Disk used meter (Green -> Sky)
theme[used_start]="#a6e3a1"
theme[used_mid]="#94e2d5"
theme[used_end]="#89dceb"
# Download graph colors (Peach -> Red)
theme[download_start]="#fab387"
theme[download_mid]="#eba0ac"
theme[download_end]="#f38ba8"
# Upload graph colors (Green -> Sky)
theme[upload_start]="#a6e3a1"
theme[upload_mid]="#94e2d5"
theme[upload_end]="#89dceb"
# Process box color gradient for threads, mem and cpu usage (Sapphire -> Mauve)
theme[process_start]="#74C7EC"
theme[process_mid]="#89DCEB"
theme[process_end]="#cba6f7"
@@ -0,0 +1,91 @@
# All graphs and meters can be gradients
# For single color graphs leave "mid" and "end" variable empty.
# Use "start" and "end" variables for two color gradient
# Use "start", "mid" and "end" for three color gradient
# Main background, empty for terminal default, need to be empty if you want transparent background
theme[main_bg]="#272e33"
# Main text color
theme[main_fg]="#d3c6aa"
# Title color for boxes
theme[title]="#d3c6aa"
# Highlight color for keyboard shortcuts
theme[hi_fg]="#e67e80"
# Background color of selected items
theme[selected_bg]="#374145"
# Foreground color of selected items
theme[selected_fg]="#dbbc7f"
# Color of inactive/disabled text
theme[inactive_fg]="#272e33"
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
theme[graph_text]="#d3c6aa"
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
theme[proc_misc]="#a7c080"
# Cpu box outline color
theme[cpu_box]="#374145"
# Memory/disks box outline color
theme[mem_box]="#374145"
# Net up/down box outline color
theme[net_box]="#374145"
# Processes box outline color
theme[proc_box]="#374145"
# Box divider line and small boxes line color
theme[div_line]="#374145"
# Temperature graph colors
theme[temp_start]="#a7c080"
theme[temp_mid]="#dbbc7f"
theme[temp_end]="#f85552"
# CPU graph colors
theme[cpu_start]="#a7c080"
theme[cpu_mid]="#dbbc7f"
theme[cpu_end]="#f85552"
# Mem/Disk free meter
theme[free_start]="#f85552"
theme[free_mid]="#dbbc7f"
theme[free_end]="#a7c080"
# Mem/Disk cached meter
theme[cached_start]="#7fbbb3"
theme[cached_mid]="#83c092"
theme[cached_end]="#a7c080"
# Mem/Disk available meter
theme[available_start]="#f85552"
theme[available_mid]="#dbbc7f"
theme[available_end]="#a7c080"
# Mem/Disk used meter
theme[used_start]="#a7c080"
theme[used_mid]="#dbbc7f"
theme[used_end]="#f85552"
# Download graph colors
theme[download_start]="#a7c080"
theme[download_mid]="#83c092"
theme[download_end]="#7fbbb3"
# Upload graph colors
theme[upload_start]="#dbbc7f"
theme[upload_mid]="#e69875"
theme[upload_end]="#e67e80"
# Process box color gradient for threads, mem and cpu usage
theme[process_start]="#a7c080"
theme[process_mid]="#f85552"
theme[process_end]="#CC241D"
+33
View File
@@ -0,0 +1,33 @@
appearance.calendarview=monthly
appearance.compactpanels=no
appearance.defaultpanel=calendar
appearance.layout=1
appearance.headerline=yes
appearance.eventseparator=yes
appearance.dayseparator=yes
appearance.emptyline=yes
appearance.emptyday=--
appearance.notifybar=yes
appearance.sidebarwidth=36
appearance.theme=default on default
appearance.todoview=hide-completed
appearance.headingpos=right-justified
daemon.enable=yes
daemon.log=no
format.inputdate=2
format.notifydate=%a %F
format.notifytime=%T
format.appointmenttime=%H:%M
format.outputdate=%F
format.dayheading=%B %e, %Y
general.autogc=yes
general.autosave=yes
general.confirmdelete=yes
general.confirmquit=yes
general.firstdayofweek=monday
general.multipledays=yes
general.periodicsave=0
general.systemevents=yes
notification.command=calcurse --next | xargs -0 notify-send -a calcurse -i x-office-calendar "Appointment"
notification.notifyall=all
notification.warning=3600
+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
# Sync the UI's saved changes once it exits (syncing while it runs would change files under it).
[ "$(ps -o args= -p "$PPID")" = calcurse ] && [ "$(ps -o tty= -p "$PPID" | tr -d ' ')" != '?' ] || exit 0
# shellcheck disable=SC2016 # $1 expands in the inner shell
setsid -f sh -c 'while kill -0 "$1" 2>/dev/null; do sleep 1; done; systemctl --user start calcurse-sync.service' \
sh "$PPID" >/dev/null 2>&1
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
# Sync with Google before the UI loads. Non-interactive calls (-Q, -d, -i, calcurse-caldav's own) run this hook
# too, so act only for the UI: a bare "calcurse" with a terminal (the daemon is bare too, but has none).
[ "$(ps -o args= -p "$PPID")" = calcurse ] && [ "$(ps -o tty= -p "$PPID" | tr -d ' ')" != '?' ] || exit 0
calcurse-sync --now 2>&1 | systemd-cat -t calcurse-sync
+56
View File
@@ -0,0 +1,56 @@
#
# Calcurse keys configuration file
#
# In this file the keybindings used by Calcurse are defined.
# It is generated automatically by Calcurse and is maintained
# via the key configuration menu of the interactive user
# interface. It should not be edited directly.
generic-cancel ESC
generic-select SPC
generic-credits @
generic-help ?
generic-quit q Q
generic-save s S ^S
generic-reload R
generic-copy c
generic-paste p ^V
generic-change-view TAB
generic-prev-view KEY_BTAB
generic-import i I
generic-export x X
generic-goto g G
generic-other-cmd o O
generic-config-menu C
generic-redraw ^R
generic-add-appt ^A
generic-add-todo ^T
generic-prev-day T ^H
generic-next-day t ^L
generic-prev-week W ^K
generic-next-week w
generic-prev-month M
generic-next-month m
generic-prev-year Y
generic-next-year y
generic-scroll-down ^N
generic-scroll-up ^P
generic-goto-today ^G
generic-command :
move-right l L RGT
move-left h H LFT
move-down j J DWN
move-up k K UP
start-of-week 0
end-of-week $
add-item a A
del-item d D
edit-item e E
view-item v V RET
pipe-item |
flag-item !
repeat r
edit-note n N
view-note >
raise-priority +
lower-priority -
+88
View File
@@ -0,0 +1,88 @@
# Always-on Remote Control
Reference copy of a machine setup: Claude Code Remote Control running as its own system user `claude-rc`, so my
projects' read-only MCP servers (now: negsplit, ens-forecast) can be used from the Claude app on the phone. One user and one
session (`data`) for all projects. The user holds only read-only database logins; Bash runs sandboxed without
network and can't read them (only the MCP servers, which run outside the sandbox, do). Nothing secret in this
folder: the ntfy topic lives only in `/etc/claude-rc-notify.env`.
Needs `claude-code`, `bubblewrap`, `socat` and each project's MCP server installed. Per project:
- negsplit: the installed `negsplit` (with `python-mcp`) and the `garmin_ro` grants from its
`sql/garmin_ro_grants.sql`. A per-user query limit is a useful safety net (the session can lift it):
```
mariadb -u root -p -e "ALTER USER 'garmin_ro'@'localhost' WITH MAX_STATEMENT_TIME 30;"
```
- ens-forecast: the installed `ens-forecast-mcp` (with `python-mcp` and `python-mysqlclient`) and the `weather_ro`
grant from its `sql/weather_grants.sql`; the same safety net:
```
mariadb -u root -p -e "ALTER USER 'weather_ro'@'localhost' WITH MAX_STATEMENT_TIME 30;"
```
## Setup
Run from this folder. User and folders:
```
doas useradd --system --create-home --home-dir /var/lib/claude-rc --shell /usr/bin/nologin claude-rc
doas chmod 700 /var/lib/claude-rc
doas install -d -o claude-rc -g claude-rc -m 700 /var/lib/claude-rc/.config /var/lib/claude-rc/.claude /var/lib/claude-rc/data /var/lib/claude-rc/data/.claude
doas install -o claude-rc -g claude-rc -m 644 mcp.json /var/lib/claude-rc/data/.mcp.json
doas install -o claude-rc -g claude-rc -m 644 project-settings.json /var/lib/claude-rc/data/.claude/settings.json
doas install -o claude-rc -g claude-rc -m 644 user-settings.json /var/lib/claude-rc/.claude/settings.json
```
`strictAllowlist` must stay in the user settings: in project settings it has no effect.
Each project's config holds only a `[readonly]` section. negsplit (`garmin_ro`):
```
doas install -d -o claude-rc -g claude-rc -m 700 /var/lib/claude-rc/.config/negsplit
doas install -o claude-rc -g claude-rc -m 600 config.toml /var/lib/claude-rc/.config/negsplit/config.toml
```
ens-forecast (`weather_ro`): only the `[readonly]` section of my own config, so the password never shows:
```
doas install -d -o claude-rc -g claude-rc -m 700 /var/lib/claude-rc/.config/ens-forecast
awk '/^\[/ { keep = ($0 == "[readonly]") } keep' ~/.config/ens-forecast/config.toml | doas install -o claude-rc -g claude-rc -m 600 /dev/stdin /var/lib/claude-rc/.config/ens-forecast/config.toml
```
Log in, trust the folder and enable Remote Control once, interactively:
```
doas -u claude-rc sh -c 'cd /var/lib/claude-rc/data && exec claude auth login'
doas -u claude-rc sh -c 'cd /var/lib/claude-rc/data && exec claude'
doas -u claude-rc sh -c 'cd /var/lib/claude-rc/data && exec claude remote-control --name data --spawn session'
```
ntfy topic for the failure alert (subscribe to it on ntfy.sh), then the units:
```
doas sh -c 'umask 077; printf "NTFY_TOPIC=claude-rc-%s\n" "$(openssl rand -hex 16)" > /etc/claude-rc-notify.env'
doas install -m 644 claude-rc.service claude-rc-notify.service claude-rc-recover.service claude-rc-recover.timer -t /etc/systemd/system/
doas systemctl daemon-reload
doas systemctl enable --now claude-rc.service claude-rc-recover.timer
```
The service restarts with a growing delay (30 s to 10 min); after about 50 minutes of failures it gives up and
sends the alert. The timer restarts it every 3 hours if it gave up, so a long network outage doesn't stop it for
good. After upgrading a project's MCP server, or changing `mcp.json` or the settings, restart `claude-rc.service`
so phone sessions use the new version.
## Adding a project
Add its server to `mcp.json` and `mcp__<server>` to the `allow` list in `project-settings.json` (plus a `Read` rule
for its chart folder, if any), install its `[readonly]` config as above, reinstall the changed files and restart
the service.
## Dead login
```
doas systemctl stop claude-rc.service
doas -u claude-rc sh -c 'cd /var/lib/claude-rc/data && exec claude auth login'
doas systemctl reset-failed claude-rc.service
doas systemctl start claude-rc.service
```
@@ -0,0 +1,13 @@
[Unit]
Description=Notify via ntfy that Claude Remote Control stopped
[Service]
Type=oneshot
DynamicUser=yes
# NTFY_TOPIC=...: root-only (0600), the topic is the only secret
EnvironmentFile=/etc/claude-rc-notify.env
TimeoutStartSec=10min
ExecStart=/usr/bin/curl -fsS -m 30 --retry 5 --retry-delay 60 --retry-all-errors \
-H "Title: Claude Remote Control stopped" -H "Tags: warning" \
-d "%H: claude-rc.service keeps failing (dead login?). Retried every 3 h; fix at home: claude auth login as claude-rc." \
https://ntfy.sh/${NTFY_TOPIC}
@@ -0,0 +1,8 @@
[Unit]
Description=Restart Claude Remote Control if it gave up (e.g. after a long network outage)
[Service]
Type=oneshot
ExecCondition=/usr/bin/systemctl is-failed --quiet claude-rc.service
ExecStart=/usr/bin/systemctl reset-failed claude-rc.service
ExecStart=/usr/bin/systemctl start --no-block claude-rc.service
@@ -0,0 +1,9 @@
[Unit]
Description=Every 3 h, restart Claude Remote Control if it gave up
[Timer]
OnBootSec=1h
OnUnitActiveSec=3h
[Install]
WantedBy=timers.target
+39
View File
@@ -0,0 +1,39 @@
[Unit]
Description=Claude Code Remote Control (read-only MCP servers)
Wants=network-online.target
After=network-online.target mariadb.service
# about 50 min of failed starts (back-off below): give up and notify
StartLimitIntervalSec=1h
StartLimitBurst=8
OnFailure=claude-rc-notify.service
[Service]
User=claude-rc
Group=claude-rc
WorkingDirectory=/var/lib/claude-rc/data
# strips credentials from subprocess environments; on Linux also sandboxes ! shell commands
Environment=CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1
ExecStart=/usr/bin/claude remote-control --name data --spawn session
Restart=always
RestartSec=30s
RestartSteps=4
RestartMaxDelaySec=10min
ProtectSystem=strict
ProtectHome=yes
ReadWritePaths=/var/lib/claude-rc
PrivateTmp=yes
NoNewPrivileges=yes
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectControlGroups=yes
ProtectKernelLogs=yes
ProtectClock=yes
ProtectHostname=yes
CapabilityBoundingSet=
RestrictSUIDSGID=yes
RestrictRealtime=yes
LockPersonality=yes
# no RestrictNamespaces/MemoryDenyWriteExecute: the Bash sandbox (bubblewrap) needs user namespaces
[Install]
WantedBy=multi-user.target
+11
View File
@@ -0,0 +1,11 @@
{
"mcpServers": {
"negsplit": {
"command": "negsplit",
"args": ["mcp"]
},
"ens-forecast": {
"command": "ens-forecast-mcp"
}
}
}
+37
View File
@@ -0,0 +1,37 @@
{
"permissions": {
"defaultMode": "default",
"disableBypassPermissionsMode": "disable",
"disableAutoMode": "disable",
"allow": [
"mcp__negsplit",
"mcp__ens-forecast",
"Read(~/.local/share/negsplit/charts/**)"
],
"deny": [
"Read(~/.config/**)",
"Read(~/.claude/**)",
"Read(~/.claude.json)",
"Edit(~/.config/**)",
"Edit(~/.claude/**)",
"Edit(~/.claude.json)",
"Edit(./.claude/**)",
"Edit(./.mcp.json)",
"WebFetch",
"WebSearch"
]
},
"sandbox": {
"enabled": true,
"failIfUnavailable": true,
"allowUnsandboxedCommands": false,
"autoAllowBashIfSandboxed": true,
"filesystem": {
"denyRead": ["~/.config", "~/.claude", "~/.claude.json"],
"denyWrite": ["./.claude", "./.mcp.json"]
},
"network": {
"allowedDomains": []
}
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"theme": "dark",
"sandbox": {
"network": {
"strictAllowlist": true,
"allowedDomains": []
}
}
}
-94
View File
@@ -1,94 +0,0 @@
-- Conky, a system monitor https://github.com/brndnmtthws/conky
--
-- This configuration file is Lua code. You can write code in here, and it will
-- execute when Conky loads. You can use it to generate your own advanced
-- configurations.
--
-- Try this (remove the `--`):
--
-- print("Loading Conky config")
--
-- For more on Lua, see:
-- https://www.lua.org/pil/contents.html
conky.config = {
alignment = 'top_right',
xinerama_head = 1,
background = false,
border_width = 1,
cpu_avg_samples = 2,
default_color = 'white',
default_outline_color = 'white',
default_shade_color = 'white',
double_buffer = true,
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
extra_newline = false,
font = 'DejaVu Sans Mono:size=12',
gap_x = 60,
gap_y = 60,
minimum_height = 5,
minimum_width = 5,
net_avg_samples = 2,
no_buffers = true,
out_to_console = false,
out_to_ncurses = false,
out_to_stderr = false,
out_to_x = true,
own_window = true,
own_window_transparent = false,
own_window_argb_visual = true,
own_window_argb_value = 90,
own_window_class = 'Conky',
own_window_type = 'desktop',
show_graph_range = false,
show_graph_scale = false,
stippled_borders = 0,
update_interval = 1.0,
uppercase = false,
use_spacer = 'none',
use_xft = true,
}
conky.text = [[
${voffset 4}${color}${font :bold}ASUS TUF Gaming FX705GE${font}${image $HOME/.config/conky/archlinux.png -n -p 280x0 -s 98x30}
$hr
${color grey}OS : ${color}$sysname $kernel
${color grey}Uptime : ${color}$uptime
${voffset 8}${color}${font :size=14}CPU ${font}$hr
${voffset 4}${color grey}Model: ${color}${exec lscpu | grep 'Model name' | cut -f 2 -d ":" | awk '{$1=$1}1' | awk 'BEGIN {FS=" "; OFS=" "} {print $1 OFS $2 OFS $3}'}
${color grey}CPU Usage: ${color}$cpu% ${cpubar 4}
${color grey}Core 0: ${color}${alignr}${freq_g 1} GHz ${color grey}Temperature: ${color}${execi 30 sensors | grep "Core 0" | awk '{print $3}'}
${color grey}Core 1: ${color}${alignr}${freq_g 2} GHz ${color grey}Temperature: ${color}${execi 30 sensors | grep "Core 1" | awk '{print $3}'}
${color grey}Core 2: ${color}${alignr}${freq_g 3} GHz ${color grey}Temperature: ${color}${execi 30 sensors | grep "Core 2" | awk '{print $3}'}
${color grey}Core 3: ${color}${alignr}${freq_g 4} GHz ${color grey}Temperature: ${color}${execi 30 sensors | grep "Core 3" | awk '{print $3}'}
${color grey}Core 4: ${color}${alignr}${freq_g 5} GHz ${color grey}Temperature: ${color}${execi 30 sensors | grep "Core 4" | awk '{print $3}'}
${color grey}Core 5: ${color}${alignr}${freq_g 6} GHz ${color grey}Temperature: ${color}${execi 30 sensors | grep "Core 5" | awk '{print $3}'}
${voffset 4}${color grey}Process PID CPU% MEM%
${color} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${voffset 6}${color}${font :size=14}GPU ${font}$hr
${voffset 4}${color grey}Model: ${color}${exec lspci | grep VGA | grep NVIDIA | cut -d[ -f2 | cut -d] -f1}
${color grey}Usage:${color}${execi 15 nvidia-smi -q -d UTILIZATION | grep Gpu | cut -d: -f2}
${color grey}Temperature: ${color}${execi 30 nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits}°C
${voffset 6}${font :size=14}MEMORY ${font}$hr
${voffset 4}${color grey}RAM usage: ${color}${memperc}% of ${memmax} ${voffset 3}${membar}${voffset -3}
${color grey}Swap usage: ${color}${swapperc}% of ${swapmax} ${voffset 3}${swapbar}${voffset -3}
${voffset 4}${color grey}Process PID CPU% MEM%
${color} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${voffset 6}${color}${font :size=14}DISK ${font}$hr
${voffset 4}${color grey}Root: ${color}${fs_used /}/${fs_size /} ${voffset 3}${fs_bar 6 /}${voffset -3}
${color grey}EFI: ${color}${fs_used /efi}/${fs_size /efi} ${voffset 3}${fs_bar 6 /efi}${voffset -3}
${if_existing /sys/class/net/wlo1/operstate up}
${voffset -12}${font :size=14}NETWORK ${font}$hr
${voffset 4}${color grey}Net Down:${color} ${downspeed wlo1} ${goto 230}${color grey}Net Up:${color} ${upspeed wlo1}
${downspeedgraph wlo1 32,155 104E8B ffffff} ${goto 230}${upspeedgraph wlo1 32,155 104E8B ffffff}
${endif}
${voffset -24}${color}${font :size=14}UPDATES ${font}$hr
${voffset 4}${color grey}${alignc}Arch: ${color}${execi 1800 checkupdates | wc -l} ${color grey}AUR: ${color}${execi 1800 aur repo -u -d aur-local | wc -l}
]]
+3 -3
View File
@@ -27,7 +27,7 @@
width = (300, 500)
# The maximum height of a single notification, excluding the frame.
height = (0, 300)
height = (0, 600)
# Position the notification in the top right corner
origin = top-right
@@ -206,7 +206,7 @@
enable_recursive_icon_lookup = true
# Set icon theme (only used for recursive icon lookup)
icon_theme = Everforest-Dark
icon_theme = Tokyonight-Dark
# You can also set multiple icon themes, with the leftmost one being used first.
# icon_theme = "Adwaita, breeze"
@@ -300,7 +300,7 @@
# * context_all: Open context menu for all notifications.
# These values can be strung together for each mouse event, and
# will be executed in sequence.
mouse_left_click = close_current
mouse_left_click = do_action, close_current
mouse_middle_click = do_action, close_current
mouse_right_click = close_all
+2
View File
@@ -0,0 +1,2 @@
# Shared ccache dir, so host and chroot builds read the same $CCACHE_DIR/ccache.conf
set -gx CCACHE_DIR ~/.cache/ccache
-4
View File
@@ -9,10 +9,6 @@ if status is-interactive
fastfetch
cookie
calcurse -d 7
starship init fish | source
end
+11
View File
@@ -0,0 +1,11 @@
# Route aur build/sync through the ccache wrapper (~/.local/bin/aurb, aurs)
function aur --wraps aur --description 'aur with ccache for build/sync'
switch "$argv[1]"
case build
aurb $argv[2..-1]
case sync
aurs $argv[2..-1]
case '*'
command aur $argv
end
end
@@ -0,0 +1,5 @@
function fish_should_add_to_history
# Skip trivial commands that aren't worth recalling
string match -qr '^(doas )?(ls|ll|pwd|clear|exit|cd \.\.)( |$)' -- $argv; and return 1
return 0
end
+52
View File
@@ -0,0 +1,52 @@
function history_prune --description 'Prune old, easily retyped commands from history'
argparse h/help a/apply 'd/days=!_validate_int --min 1' -- $argv; or return
if set -q _flag_help
echo 'Usage: history_prune [-d DAYS] [-a]'
echo 'Lists old disposable entries (dry run); -a deletes them. Default age: 90 days.'
return
end
set -q _flag_days; or set _flag_days 90
set -l cutoff (math (date +%s) - $_flag_days \* 86400)
# Trivial commands: always dropped once old (optional doas prefix)
set -l trivial '^(doas )?(cd|ls|ll|cat|less|man|vim|vimdiff|du|ps|kill|which|file|echo|rm|rmdir|mv|cp|mkdir|grep|history)( |$)'
# One-off invocations of tools: the newest one per two-word prefix is kept as a template
set -l oneoff (string join '' '^(doas )?(beet|pacman -(Q[a-z]*|S[si])|aur (search|fetch)|' \
'(git|config) (add|commit|restore|checkout|status|diff|log|show)|' \
'systemctl( --user)? status|shnsplit|cuetag\.sh|flac2all|hyperfine|stack run)( |$)')
set -l seen
set -l doomed
# Newest first, so the first match of a prefix is its most recent use
for e in (history search --show-time='%s|' --null | string split0)
set -l t (string split -m1 '|' -- $e)
set -l cmd $t[2]
set -l old (test $t[1] -lt $cutoff; and echo 1)
if string match -qr -- $oneoff $cmd
# Prefix is the command plus its subcommand/flag, if any (not a path or quoted arg)
set -l w (string split -n ' ' -- (string replace -r '^doas ' '' -- $cmd))
set -l prefix $w[1]
string match -qr '^-?-?[a-zA-Z][a-zA-Z-]*$' -- "$w[2]"; and set prefix "$w[1..2]"
if not contains -- $prefix $seen
set -a seen $prefix
continue
end
set -q old[1]; and set -a doomed $cmd
else if set -q old[1]; and begin
test (string length -- $cmd) -lt 20; or string match -qr -- $trivial $cmd
end
set -a doomed $cmd
end
end
if not set -q _flag_apply
printf '%s\n' $doomed
echo (count $doomed) "entries would be removed (run with -a to apply)" >&2
return
end
test (count $doomed) -gt 0; or return
set -l hist ~/.local/share/fish/fish_history
cp $hist $hist.bak
history delete --exact --case-sensitive -- $doomed
echo (count $doomed) "entries removed; backup at $hist.bak" >&2
end
+3
View File
@@ -0,0 +1,3 @@
function su
command su --shell=/usr/bin/fish $argv
end
+5
View File
@@ -0,0 +1,5 @@
[general]
inhibit_screensaver=1
renice=10
; performance gave no gain: the CPU is heat-limited at 95 °C either way
desiredgov=powersave
+1 -1
View File
@@ -13,4 +13,4 @@ gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle=hintfull
gtk-xft-hintstyle=hintmedium
+80
View File
@@ -0,0 +1,80 @@
# vim:ft=kitty
## name: Catppuccin-Frappe
## author: Pocco81 (https://github.com/Pocco81)
## license: MIT
## upstream: https://github.com/catppuccin/kitty/blob/main/frappe.conf
## blurb: Soothing pastel theme for the high-spirited!
# The basic colors
foreground #C6D0F5
background #303446
selection_foreground #303446
selection_background #F2D5CF
# Cursor colors
cursor #F2D5CF
cursor_text_color #303446
# URL underline color when hovering with mouse
url_color #F2D5CF
# Kitty window border colors
active_border_color #BABBF1
inactive_border_color #737994
bell_border_color #E5C890
# OS Window titlebar colors
wayland_titlebar_color system
macos_titlebar_color system
# Tab bar colors
active_tab_foreground #232634
active_tab_background #CA9EE6
inactive_tab_foreground #C6D0F5
inactive_tab_background #292C3C
tab_bar_background #232634
# Colors for marks (marked text in the terminal)
mark1_foreground #303446
mark1_background #BABBF1
mark2_foreground #303446
mark2_background #CA9EE6
mark3_foreground #303446
mark3_background #85C1DC
# The 16 terminal colors
# black
color0 #51576D
color8 #626880
# red
color1 #E78284
color9 #E78284
# green
color2 #A6D189
color10 #A6D189
# yellow
color3 #E5C890
color11 #E5C890
# blue
color4 #8CAAEE
color12 #8CAAEE
# magenta
color5 #F4B8E4
color13 #F4B8E4
# cyan
color6 #81C8BE
color14 #81C8BE
# white
color7 #B5BFE2
color15 #A5ADCE
+80
View File
@@ -0,0 +1,80 @@
# vim:ft=kitty
## name: Catppuccin-Mocha
## author: Pocco81 (https://github.com/Pocco81)
## license: MIT
## upstream: https://github.com/catppuccin/kitty/blob/main/mocha.conf
## blurb: Soothing pastel theme for the high-spirited!
# The basic colors
foreground #CDD6F4
background #1E1E2E
selection_foreground #1E1E2E
selection_background #F5E0DC
# Cursor colors
cursor #F5E0DC
cursor_text_color #1E1E2E
# URL underline color when hovering with mouse
url_color #F5E0DC
# Kitty window border colors
active_border_color #B4BEFE
inactive_border_color #6C7086
bell_border_color #F9E2AF
# OS Window titlebar colors
wayland_titlebar_color system
macos_titlebar_color system
# Tab bar colors
active_tab_foreground #11111B
active_tab_background #CBA6F7
inactive_tab_foreground #CDD6F4
inactive_tab_background #181825
tab_bar_background #11111B
# Colors for marks (marked text in the terminal)
mark1_foreground #1E1E2E
mark1_background #B4BEFE
mark2_foreground #1E1E2E
mark2_background #CBA6F7
mark3_foreground #1E1E2E
mark3_background #74C7EC
# The 16 terminal colors
# black
color0 #45475A
color8 #585B70
# red
color1 #F38BA8
color9 #F38BA8
# green
color2 #A6E3A1
color10 #A6E3A1
# yellow
color3 #F9E2AF
color11 #F9E2AF
# blue
color4 #89B4FA
color12 #89B4FA
# magenta
color5 #F5C2E7
color13 #F5C2E7
# cyan
color6 #94E2D5
color14 #94E2D5
# white
color7 #BAC2DE
color15 #A6ADC8
+35
View File
@@ -0,0 +1,35 @@
# vim:ft=kitty
## name: Dracula
## author: Keegan Carruthers-Smith
## license: MIT
## upstream: https://raw.githubusercontent.com/dracula/kitty/master/dracula.conf
foreground #f8f8f2
background #282a36
selection_foreground #ffffff
selection_background #44475a
url_color #8be9fd
color0 #21222c
color8 #6272a4
color1 #ff5555
color9 #ff6e6e
color2 #50fa7b
color10 #69ff94
color3 #f1fa8c
color11 #ffffa5
color4 #bd93f9
color12 #d6acff
color5 #ff79c6
color13 #ff92df
color6 #8be9fd
color14 #a4ffff
color7 #f8f8f2
color15 #ffffff
cursor #f8f8f2
cursor_text_color background
active_tab_foreground #282a36
active_tab_background #f8f8f2
inactive_tab_foreground #282a36
inactive_tab_background #6272a4
mark1_foreground #282a36
mark1_background #ff5555
+27
View File
@@ -0,0 +1,27 @@
# Theme ported from the Mac Terminal application.
background #323232
foreground #ffffff
cursor #d6d6d6
selection_background #5b5b5b
selection_foreground #323232
color0 #353535
color8 #535353
color1 #d25252
color9 #f00c0c
color2 #a4c161
color10 #c1df74
color3 #ffc56d
color11 #e1e48a
color4 #6c99ba
color12 #8ab6d9
color5 #d096d9
color13 #efb5f7
color6 #bdd6ff
color14 #dbf4ff
color7 #ededec
color15 #ffffff
active_tab_foreground #ffffff
active_tab_background #535353
inactive_tab_foreground #ffffff
inactive_tab_background #353535
+70
View File
@@ -0,0 +1,70 @@
# vim:ft=kitty
## name: Everforest Dark Hard
## author: Sainnhe Park
## license: MIT
## upstream: https://github.com/ewal/kitty-everforest/blob/master/themes/everforest_dark_hard.conf
## blurb: A green based color scheme designed to be warm and soft
foreground #d3c6aa
background #272e33
selection_foreground #9da9a0
selection_background #464e53
cursor #d3c6aa
cursor_text_color #2e383c
url_color #7fbbb3
active_border_color #a7c080
inactive_border_color #4f5b58
bell_border_color #e69875
visual_bell_color none
wayland_titlebar_color system
macos_titlebar_color system
active_tab_background #272e33
active_tab_foreground #d3c6aa
inactive_tab_background #374145
inactive_tab_foreground #9da9a0
tab_bar_background #2e383c
tab_bar_margin_color none
mark1_foreground #272e33
mark1_background #7fbbb3
mark2_foreground #272e33
mark2_background #d3c6aa
mark3_foreground #272e33
mark3_background #d699b6
#: black
color0 #343f44
color8 #868d80
#: red
color1 #e67e80
color9 #e67e80
#: green
color2 #a7c080
color10 #a7c080
#: yellow
color3 #dbbc7f
color11 #dbbc7f
#: blue
color4 #7fbbb3
color12 #7fbbb3
#: magenta
color5 #d699b6
color13 #d699b6
#: cyan
color6 #83c092
color14 #83c092
#: white
color7 #859289
color15 #9da9a0
+50
View File
@@ -0,0 +1,50 @@
# vim:ft=kitty
## name: Tokyo Night Storm
## license: MIT
## author: Folke Lemaitre
## upstream: https://github.com/folke/tokyonight.nvim/raw/main/extras/kitty/tokyonight_storm.conf
background #24283b
foreground #c0caf5
selection_background #2e3c64
selection_foreground #c0caf5
url_color #73daca
cursor #c0caf5
cursor_text_color #24283b
# Tabs
active_tab_background #7aa2f7
active_tab_foreground #1f2335
inactive_tab_background #292e42
inactive_tab_foreground #545c7e
#tab_bar_background #1d202f
# Windows
active_border_color #7aa2f7
inactive_border_color #292e42
# normal
color0 #1d202f
color1 #f7768e
color2 #9ece6a
color3 #e0af68
color4 #7aa2f7
color5 #bb9af7
color6 #7dcfff
color7 #a9b1d6
# bright
color8 #414868
color9 #f7768e
color10 #9ece6a
color11 #e0af68
color12 #7aa2f7
color13 #bb9af7
color14 #7dcfff
color15 #c0caf5
# extended colors
color16 #ff9e64
color17 #db4b4b
File diff suppressed because it is too large. Load diff
+1
View File
@@ -36,6 +36,7 @@ set cleaner ~/.config/lf/lf_kitty_clean
# text files and a file opener for the rest.
cmd open &{{
case $(file --mime-type -Lb $f) in
text/html) for f in $fx; do $OPENER $f > /dev/null 2> /dev/null & done;;
text/*) lf -remote "send $id \$$EDITOR \$fx";;
application/json) lf -remote "send $id \$$EDITOR \$fx";;
video/*) movie $fx > /dev/null 2> /dev/null;;
+135
View File
@@ -0,0 +1,135 @@
[Default Applications]
inode/directory=nemo.desktop
image/avif=viewnior.desktop
image/bmp=viewnior.desktop
image/gif=viewnior.desktop
image/heif=viewnior.desktop
image/jpeg=viewnior.desktop
image/jpg=viewnior.desktop
image/pjpeg=viewnior.desktop
image/png=viewnior.desktop
image/svg+xml=viewnior.desktop
image/svg+xml-compressed=viewnior.desktop
image/tiff=viewnior.desktop
image/vnd.wap.wbmp=viewnior.desktop
image/webp=viewnior.desktop
image/x-bmp=viewnior.desktop
image/x-gray=viewnior.desktop
image/x-icb=viewnior.desktop
image/x-ico=viewnior.desktop
image/x-pcx=viewnior.desktop
image/x-png=viewnior.desktop
image/x-portable-anymap=viewnior.desktop
image/x-portable-bitmap=viewnior.desktop
image/x-portable-graymap=viewnior.desktop
image/x-portable-pixmap=viewnior.desktop
image/x-xbitmap=viewnior.desktop
image/x-xpixmap=viewnior.desktop
x-scheme-handler/http=zen.desktop
x-scheme-handler/https=zen.desktop
application/pdf=xreader.desktop
application/javascript=vim.desktop
application/x-httpd-php3=vim.desktop
application/x-httpd-php4=vim.desktop
application/x-httpd-php5=vim.desktop
application/x-m4=vim.desktop
application/x-php=vim.desktop
application/x-ruby=vim.desktop
application/x-shellscript=vim.desktop
application/xml=vim.desktop
text/css=vim.desktop
text/turtle=vim.desktop
text/x-c++hdr=vim.desktop
text/x-c++src=vim.desktop
text/x-chdr=vim.desktop
text/x-csharp=vim.desktop
text/x-csrc=vim.desktop
text/x-diff=vim.desktop
text/x-dsrc=vim.desktop
text/x-fortran=vim.desktop
text/x-java=vim.desktop
text/x-makefile=vim.desktop
text/x-pascal=vim.desktop
text/x-perl=vim.desktop
text/x-python=vim.desktop
text/x-sql=vim.desktop
text/x-vb=vim.desktop
text/yaml=vim.desktop
text/plain=xed.desktop
x-scheme-handler/chrome=zen.desktop
text/html=zen.desktop
application/x-extension-htm=zen.desktop
application/x-extension-html=zen.desktop
application/x-extension-shtml=zen.desktop
application/xhtml+xml=zen.desktop
application/x-extension-xhtml=zen.desktop
application/x-extension-xht=zen.desktop
x-scheme-handler/freetube=freetube.desktop
x-scheme-handler/claude-cli=claude-code-url-handler.desktop
[Added Associations]
inode/directory=nemo.desktop;
image/avif=viewnior.desktop;
image/bmp=viewnior.desktop;
image/gif=viewnior.desktop;
image/heif=viewnior.desktop;
image/jpeg=viewnior.desktop;
image/jpg=viewnior.desktop;
image/pjpeg=viewnior.desktop;
image/png=viewnior.desktop;
image/svg+xml=viewnior.desktop;
image/svg+xml-compressed=viewnior.desktop;
image/tiff=viewnior.desktop;
image/vnd.wap.wbmp=viewnior.desktop;
image/webp=viewnior.desktop;
image/x-bmp=viewnior.desktop;
image/x-gray=viewnior.desktop;
image/x-icb=viewnior.desktop;
image/x-ico=viewnior.desktop;
image/x-pcx=viewnior.desktop;
image/x-png=viewnior.desktop;
image/x-portable-anymap=viewnior.desktop;
image/x-portable-bitmap=viewnior.desktop;
image/x-portable-graymap=viewnior.desktop;
image/x-portable-pixmap=viewnior.desktop;
image/x-xbitmap=viewnior.desktop;
image/x-xpixmap=viewnior.desktop;
x-scheme-handler/http=zen.desktop;vivaldi-stable.desktop;
application/pdf=libreoffice-draw.desktop;xreader.desktop;
text/x-python=vim.desktop;
application/javascript=vim.desktop;
application/x-httpd-php3=vim.desktop;
application/x-httpd-php4=vim.desktop;
application/x-httpd-php5=vim.desktop;
application/x-m4=vim.desktop;
application/x-php=vim.desktop;
application/x-ruby=vim.desktop;
application/x-shellscript=vim.desktop;
application/xml=vim.desktop;
text/css=vim.desktop;
text/turtle=vim.desktop;
text/x-c++hdr=vim.desktop;
text/x-c++src=vim.desktop;
text/x-chdr=vim.desktop;
text/x-csharp=vim.desktop;
text/x-csrc=vim.desktop;
text/x-diff=vim.desktop;
text/x-dsrc=vim.desktop;
text/x-fortran=vim.desktop;
text/x-java=vim.desktop;
text/x-makefile=vim.desktop;
text/x-pascal=vim.desktop;
text/x-perl=vim.desktop;
text/x-sql=vim.desktop;
text/x-vb=vim.desktop;
text/yaml=vim.desktop;
text/plain=xed.desktop;
x-scheme-handler/https=zen.desktop;
x-scheme-handler/chrome=zen.desktop;
text/html=zen.desktop;
application/x-extension-htm=zen.desktop;
application/x-extension-html=zen.desktop;
application/x-extension-shtml=zen.desktop;
application/xhtml+xml=zen.desktop;
application/x-extension-xhtml=zen.desktop;
application/x-extension-xht=zen.desktop;
+21
View File
@@ -0,0 +1,21 @@
# For documentation, see the manpage for modprobed-db
# Path where database will reside.
# Do NOT use a variable in the following path like $HOME
# You MUST use a fully qualified path or else invoking the script via sudo
# will trick it into thinking that the db is in /root/foo/bar
DBPATH="/home/fuxino/.local/share/modprobed-db"
# Define the background of your terminal theme here.
# A setting of dark will produce colors that nicely contrast a dark background.
# A setting of light will produce colors that nicely contrast a light background.
COLORS=dark
#COLORS=light
# Add modules in the ignore array that you do NOT want counted, for example out-of-tree
# modules and those provided by another package.
#
# For Arch Linux, some examples are given below but this is not a fully inclusive list.
IGNORE=(nvidia nvidia_drm nvidia_modeset nvidia_uvm vboxdrv vboxnetadp vboxnetflt vboxpci)
+18
View File
@@ -0,0 +1,18 @@
# Copy this to /etc/mpDris2.conf or ~/.config/mpDris2/mpDris2.conf
# Default values are shown here, commented out.
[Connection]
# You can also export $MPD_HOST and/or $MPD_PORT to change the server.
#host = localhost
#port = 6600
#password =
[Library]
#music_dir =
#cover_regex = ^(album|cover|\.?folder|front).*\.(gif|jpeg|jpg|png)$
[Bling]
#mmkeys = True
notify = False
# Urgency of the notification: 0 for low, 1 for medium and 2 for high.
#notify_urgency = 0
+3 -399
View File
@@ -1,425 +1,29 @@
# An example configuration file for MPD.
# Read the user manual for documentation: http://www.musicpd.org/doc/user/
# Files and directories #######################################################
#
# This setting controls the top directory which MPD will search to discover the
# available audio files and add them to the daemon's online database. This
# setting defaults to the XDG directory, otherwise the music directory will be
# be disabled and audio files will only be accepted over ipc socket (using
# file:// protocol) or streaming files over an accepted protocol.
#
music_directory "~/Music"
#
# This setting sets the MPD internal playlist directory. The purpose of this
# directory is storage for playlists created by MPD. The server will use
# playlist files not created by the server but only if they are in the MPD
# format. This setting defaults to playlist saving being disabled.
#
playlist_directory "~/.local/share/mpd/playlists"
#
# This setting sets the location of the MPD database. This file is used to
# load the database at server start up and store the database while the
# server is not up. This setting defaults to disabled which will allow
# MPD to accept files over ipc socket (using file:// protocol) or streaming
# files over an accepted protocol.
#
db_file "~/.local/share/mpd/database"
#
# These settings are the locations for the daemon log files for the daemon.
# These logs are great for troubleshooting, depending on your log_level
# settings.
#
# The special value "syslog" makes MPD use the local syslog daemon. This
# setting defaults to logging to syslog, otherwise logging is disabled.
#
#log_file "~/.config/mpd/log"
#
# This setting sets the location of the file which stores the process ID
# for use of mpd --kill and some init scripts. This setting is disabled by
# default and the pid file will not be stored.
#
#pid_file "~/.config/mpd/pid"
#
# This setting sets the location of the file which contains information about
# most variables to get MPD back into the same general shape it was in before
# it was brought down. This setting is disabled by default and the server
# state will be reset on server start up.
#
state_file "~/.local/share/mpd/state"
#
# The location of the sticker database. This is a database which
# manages dynamic information attached to songs.
#
sticker_file "~/.local/share/mpd/sticker.sql"
#
###############################################################################
# General music daemon options ################################################
#
# This setting specifies the user that MPD will run as. MPD should never run as
# root and you may use this setting to make MPD change its user ID after
# initialization. This setting is disabled by default and MPD is run as the
# current user.
#
#user "nobody"
#
# This setting specifies the group that MPD will run as. If not specified
# primary group of user specified with "user" setting will be used (if set).
# This is useful if MPD needs to be a member of group such as "audio" to
# have permission to use sound card.
#
#group "nogroup"
#
# This setting sets the address for the daemon to listen on. Careful attention
# should be paid if this is assigned to anything other then the default, any.
# This setting can deny access to control of the daemon.
#
# For network
bind_to_address "127.0.0.1"
#
# And for Unix Socket
bind_to_address "~/.local/share/mpd/socket"
#
# This setting is the TCP port that is desired for the daemon to get assigned
# to.
#
#port "6600"
#
# This setting controls the type of information which is logged. Available
# setting arguments are "default", "secure" or "verbose". The "verbose" setting
# argument is recommended for troubleshooting, though can quickly stretch
# available resources on limited hardware storage.
#
#log_level "default"
#
# If you have a problem with your MP3s ending abruptly it is recommended that
# you set this argument to "no" to attempt to fix the problem. If this solves
# the problem, it is highly recommended to fix the MP3 files with vbrfix
# (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
# point gapless MP3 playback can be enabled.
#
#gapless_mp3_playback "yes"
#
# Setting "restore_paused" to "yes" puts MPD into pause mode instead
# of starting playback after startup.
#
restore_paused "yes"
#
# This setting enables MPD to create playlists in a format usable by other
# music players.
#
#save_absolute_paths_in_playlists "no"
#
# This setting defines a list of tag types that will be extracted during the
# audio file discovery process. The complete list of possible values can be
# found in the mpd.conf man page.
#metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
#
# This setting enables automatic update of MPD's database when files in
# music_directory are changed.
#
auto_update "yes"
#
# Limit the depth of the directories being watched, 0 means only watch
# the music directory itself. There is no limit by default.
#
#auto_update_depth "3"
#
###############################################################################
# Symbolic link behavior ######################################################
#
# If this setting is set to "yes", MPD will discover audio files by following
# symbolic links outside of the configured music_directory.
#
#follow_outside_symlinks "yes"
#
# If this setting is set to "yes", MPD will discover audio files by following
# symbolic links inside of the configured music_directory.
#
#follow_inside_symlinks "yes"
#
###############################################################################
# Zeroconf / Avahi Service Discovery ##########################################
#
# If this setting is set to "yes", service information will be published with
# Zeroconf / Avahi.
#
#zeroconf_enabled "yes"
#
# The argument to this setting will be the Zeroconf / Avahi unique name for
# this MPD server on the network.
#
#zeroconf_name "Music Player"
#
###############################################################################
# Permissions #################################################################
#
# If this setting is set, MPD will require password authorization. The password
# can setting can be specified multiple times for different password profiles.
#
#password "password@read,add,control,admin"
#
# This setting specifies the permissions a user has who has not yet logged in.
#
#default_permissions "read,add,control,admin"
#
###############################################################################
# Database #######################################################################
#
#database {
# plugin "proxy"
# host "other.mpd.host"
# port "6600"
#}
# Input #######################################################################
#
replaygain "auto"
input {
plugin "curl"
# proxy "proxy.isp.com:8080"
# proxy_user "user"
# proxy_password "password"
}
#
###############################################################################
# Audio Output ################################################################
#
# MPD supports various audio output types, as well as playing through multiple
# audio outputs at the same time, through multiple audio_output settings
# blocks. Setting this block is optional, though the server will only attempt
# autodetection for one sound card.
#
# An example of an ALSA output:
#
#audio_output {
# type "alsa"
# name "My ALSA Device"
# device "hw:0,0" # optional
# mixer_type "software" # optional
## mixer_device "default" # optional
## mixer_control "PCM" # optional
## mixer_index "0" # optional
#}
#
audio_output {
type "pipewire"
name "Pipewire MPD"
}
# Feeds ncmpcpp's visualizer
audio_output {
type "fifo"
name "my_fifo"
path "/tmp/mpd.fifo"
format "44100:16:2"
}
#
# An example of an OSS output:
#
#audio_output {
# type "oss"
# name "My OSS Device"
## device "/dev/dsp" # optional
## mixer_type "hardware" # optional
## mixer_device "/dev/mixer" # optional
## mixer_control "PCM" # optional
#}
#
# An example of a shout output (for streaming to Icecast):
#
#audio_output {
# type "shout"
# encoding "ogg" # optional
# name "My Shout Stream"
# host "localhost"
# port "8000"
# mount "/mpd.ogg"
# password "hackme"
# quality "5.0"
# bitrate "128"
# format "44100:16:1"
## protocol "icecast2" # optional
## user "source" # optional
## description "My Stream Description" # optional
## url "http://example.com" # optional
## genre "jazz" # optional
## public "no" # optional
## timeout "2" # optional
## mixer_type "software" # optional
#}
#
# An example of a recorder output:
#
#audio_output {
# type "recorder"
# name "My recorder"
# encoder "vorbis" # optional, vorbis or lame
# path "/var/lib/mpd/recorder/mpd.ogg"
## quality "5.0" # do not define if bitrate is defined
# bitrate "128" # do not define if quality is defined
# format "44100:16:1"
#}
#
# An example of a httpd output (built-in HTTP streaming server):
#
#audio_output {
# type "httpd"
# name "My HTTP Stream"
# encoder "vorbis" # optional, vorbis or lame
# port "8000"
# bind_to_address "0.0.0.0" # optional, IPv4 or IPv6
## quality "5.0" # do not define if bitrate is defined
# bitrate "128" # do not define if quality is defined
# format "44100:16:1"
# max_clients "0" # optional 0=no limit
#}
#
# An example of a pulseaudio output (streaming to a remote pulseaudio server)
#
#audio_output {
# type "pulse"
# name "My Pulse Output"
## server "remote_server" # optional
## sink "remote_server_sink" # optional
#}
#
# An example of a winmm output (Windows multimedia API).
#
#audio_output {
# type "winmm"
# name "My WinMM output"
## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
# or
## device "0" # optional
## mixer_type "hardware" # optional
#}
#
# An example of an openal output.
#
#audio_output {
# type "openal"
# name "My OpenAL output"
## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
#}
#
## Example "pipe" output:
#
#audio_output {
# type "pipe"
# name "my pipe"
# command "aplay -f cd 2>/dev/null"
## Or if you're want to use AudioCompress
# command "AudioCompress -m | aplay -f cd 2>/dev/null"
## Or to send raw PCM stream through PCM:
# command "nc example.org 8765"
# format "44100:16:2"
#}
#
## An example of a null output (for no audio output):
#
#audio_output {
# type "null"
# name "My Null Output"
# mixer_type "none" # optional
#}
#
# If MPD has been compiled with libsamplerate support, this setting specifies
# the sample rate converter to use. Possible values can be found in the
# mpd.conf man page or the libsamplerate documentation. By default, this is
# setting is disabled.
#
#samplerate_converter "Fastest Sinc Interpolator"
#
###############################################################################
# Normalization automatic volume adjustments ##################################
#
# This setting specifies the type of ReplayGain to use. This setting can have
# the argument "off", "album", "track" or "auto". "auto" is a special mode that
# chooses between "track" and "album" depending on the current state of
# random playback. If random playback is enabled then "track" mode is used.
# See <http://www.replaygain.org> for more details about ReplayGain.
# This setting is off by default.
#
replaygain "auto"
#
# This setting sets the pre-amp used for files that have ReplayGain tags. By
# default this setting is disabled.
#
#replaygain_preamp "0"
#
# This setting sets the pre-amp used for files that do NOT have ReplayGain tags.
# By default this setting is disabled.
#
#replaygain_missing_preamp "0"
#
# This setting enables or disables ReplayGain limiting.
# MPD calculates actual amplification based on the ReplayGain tags
# and replaygain_preamp / replaygain_missing_preamp setting.
# If replaygain_limit is enabled MPD will never amplify audio signal
# above its original level. If replaygain_limit is disabled such amplification
# might occur. By default this setting is enabled.
#
#replaygain_limit "yes"
#
# This setting enables on-the-fly normalization volume adjustment. This will
# result in the volume of all playing audio to be adjusted so the output has
# equal "loudness". This setting is disabled by default.
#
#volume_normalization "no"
#
###############################################################################
# Character Encoding ##########################################################
#
# If file or directory names do not display correctly for your locale then you
# may need to modify this setting.
#
#filesystem_charset "UTF-8"
#
# This setting controls the encoding that ID3v1 tags should be converted from.
#
#id3v1_encoding "ISO-8859-1"
#
###############################################################################
# SIDPlay decoder #############################################################
#
# songlength_database:
# Location of your songlengths file, as distributed with the HVSC.
# The sidplay plugin checks this for matching MD5 fingerprints.
# See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq
#
# default_songlength:
# This is the default playing time in seconds for songs not in the
# songlength database, or in case you're not using a database.
# A value of 0 means play indefinitely.
#
# filter:
# Turns the SID filter emulation on or off.
#
#decoder {
# plugin "sidplay"
# songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt"
# default_songlength "120"
# filter "true"
#}
#
###############################################################################
+5 -139
View File
@@ -1,148 +1,14 @@
#
# Example mpv configuration file
#
# Warning:
#
# The commented example options usually do _not_ set the default values. Call
# mpv with --list-options to see the default values for most options. There is
# no builtin or example mpv.conf with all the defaults.
#
#
# Configuration files are read system-wide from /usr/local/etc/mpv.conf
# and per-user from ~/.config/mpv/mpv.conf, where per-user settings override
# system-wide settings, all of which are overridden by the command line.
#
# Configuration file settings and the command line options use the same
# underlying mechanisms. Most options can be put into the configuration file
# by dropping the preceding '--'. See the man page for a complete list of
# options.
#
# Lines starting with '#' are comments and are ignored.
#
# See the CONFIGURATION FILES section in the man page
# for a detailed description of the syntax.
#
# Profiles should be placed at the bottom of the configuration file to ensure
# that settings wanted as defaults are not restricted to specific profiles.
##################
# video settings #
##################
# Start in fullscreen mode by default.
# Video
fs=yes
profile=high-quality
hwdec=auto-safe
# force starting with centered window
#geometry=50%:50%
# don't allow a new window to have a size larger than 90% of the screen size
#autofit-larger=90%x90%
# Do not close the window on exit.
#keep-open=yes
# Do not wait with showing the video window until it has loaded. (This will
# resize the window once video is loaded. Also always shows a window with
# audio.)
#force-window=immediate
# Disable the On Screen Controller (OSC).
#osc=no
# Keep the player window on top of all other windows.
#ontop=yes
# Specify high quality video rendering preset (for --vo=gpu only)
# Can cause performance problems with some drivers and GPUs.
profile=gpu-hq
scale=ewa_lanczossharp
cscale=ewa_lanczossharp
# Smooth playback: match video speed to the display refresh rate and blend frames
video-sync=display-resample
interpolation
tscale=oversample
# Force video to lock on the display's refresh rate, and change video and audio
# speed to some degree to ensure synchronous playback - can cause problems
# with some drivers and desktop environments.
#video-sync=display-resample
# Enable hardware decoding if available. Often, this does not work with all
# video outputs, but should work well with default settings on most systems.
# If performance or energy usage is an issue, forcing the vdpau or vaapi VOs
# may or may not help.
hwdec=auto
ytdl-format=bestvideo[height<=1080]+bestaudio/best[height<=1080]
##################
# audio settings #
##################
#ao=alsa
# Audio
volume=100
# Specify default audio device. You can list devices with: --audio-device=help
# The option takes the device string (the stuff between the '...').
#audio-device=alsa/default
# Do not filter audio to keep pitch when changing playback speed.
#audio-pitch-correction=no
# Output 5.1 audio natively, and upmix/downmix audio with a different format.
#audio-channels=5.1
# Disable any automatic remix, _if_ the audio output accepts the audio format.
# of the currently played file. See caveats mentioned in the manpage.
# (The default is "auto-safe", see manpage.)
#audio-channels=auto
##################
# other settings #
##################
# Pretend to be a web browser. Might fix playback with some streaming sites,
# but also will break with shoutcast streams.
#user-agent="Mozilla/5.0"
# cache settings
#
# Use a large seekable RAM cache even for local input.
#cache=yes
#
# Use extra large RAM cache (needs cache=yes to make it useful).
#demuxer-max-bytes=500M
#demuxer-max-back-bytes=100M
#
# Disable the behavior that the player will pause if the cache goes below a
# certain fill size.
#cache-pause=no
#
# Store cache payload on the hard disk instead of in RAM. (This may negatively
# impact performance unless used for slow input such as network.)
#cache-dir=~/.cache/
#cache-on-disk=yes
# Display English subtitles if available.
#slang=en
# Play Finnish audio if available, fall back to English otherwise.
#alang=fi,en
# Change subtitle encoding. For Arabic subtitles use 'cp1256'.
# If the file seems to be valid UTF-8, prefer UTF-8.
# (You can add '+' in front of the codepage to force it.)
#sub-codepage=cp1256
# You can also include other configuration files.
#include=/path/to/the/file/you/want/to/include
############
# Profiles #
############
# The options declared as part of profiles override global default settings,
# but only take effect when the profile is active.
# The following profile can be enabled on the command line with: --profile=eye-cancer
#[eye-cancer]
#sharpen=5
+15
View File
@@ -0,0 +1,15 @@
# -*-muttrc-*-
set pgp_decode_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
set pgp_verify_command="gpg --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f"
set pgp_decrypt_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
set pgp_sign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_clearsign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
set pgp_encrypt_sign_command="pgpewrap gpg %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
set pgp_import_command="gpg --no-verbose --import %f"
set pgp_export_command="gpg --no-verbose --export --armor %r"
set pgp_verify_key_command="gpg --verbose --batch --fingerprint --check-sigs %r"
set pgp_list_pubring_command="gpg --no-verbose --batch --quiet --with-colons --with-fingerprint --with-fingerprint --list-keys %r"
set pgp_list_secring_command="gpg --no-verbose --batch --quiet --with-colons --with-fingerprint --with-fingerprint --list-secret-keys %r"
set pgp_good_sign="^\\[GNUPG:\\] GOODSIG"
set pgp_check_gpg_decrypt_status_fd
+2 -2
View File
@@ -1,3 +1,3 @@
macro pager \cb <pipe-entry>'urlscan'<enter> 'Follow links with urlview'
macro index,pager \cb "<pipe-message>urlscan<enter>" "Follow links with urlscan"
macro index,pager a "<pipe-message>abook --add-email-quiet<return>" "Add this sender to Abook"
macro attach V "<pipe-entry>iconv -c --to-code=UTF8 > ~/.cache/mutt/mail.html<enter><shell-escape>vivaldi-stable ~/.cache/mutt/mail.html<enter>"
macro attach V "<pipe-entry>iconv -c --to-code=UTF8 > ~/.cache/mutt/html/mail.html<enter><shell-escape>zen-browser ~/.cache/mutt/html/mail.html >/dev/null 2>&1<enter>" "Open attachment in Zen"
+1 -3
View File
@@ -1,3 +1 @@
text/html; elinks -dump -dump-color-mode 1; copiousoutput;
image/*; xviewer %s
application/pdf; xreader %s
text/html; /usr/bin/elinks -dump -dump-color-mode 1; copiousoutput;
+1
View File
@@ -29,6 +29,7 @@ bind editor <Tab> complete-query
# Other settings
set header_cache = "~/.cache/mutt"
set message_cachedir = "~/.cache/mutt"
set message_cache_clean = yes
set timeout = 30
set editor = "vim"
+29
View File
@@ -0,0 +1,29 @@
set sidebar_visible = yes
set sidebar_width = 20
set sidebar_short_path = yes
set sidebar_delim_chars = '/.'
set sidebar_folder_indent = no
set sidebar_indent_string = ' '
set sidebar_new_mail_only = no
sidebar_whitelist '/home/user/mailbox1'
sidebar_whitelist '/home/user/mailbox2'
set sidebar_next_new_wrap = no
set sidebar_divider_char = '|'
set mail_check_stats
set sidebar_format = '%B%?F? [%F]?%* %?N?%N/?%S'
set sidebar_sort_method = 'unsorted'
bind index,pager \Cp sidebar-prev
bind index,pager \Cn sidebar-next
bind index,pager \Co sidebar-open
bind index,pager <F3> sidebar-page-up
bind index,pager <F4> sidebar-page-down
bind index,pager <F5> sidebar-prev-new
bind index,pager <F6> sidebar-next-new
bind index,pager B sidebar-toggle-visible
color indicator cyan black
color sidebar_highlight black color8
color sidebar_divider color8 black
color sidebar_flagged red black
color sidebar_new green black
+8 -574
View File
@@ -1,598 +1,32 @@
##############################################################
## This is an example configuration file. Copy it to ##
## $XDG_CONFIG_HOME/ncmpcpp/config or $HOME/.ncmpcpp/config ##
## and set up your preferences. ##
##############################################################
#
##### directories ######
##
## Directory for storing ncmpcpp related files. Changing it is useful if you
## want to store everything somewhere else and provide command line setting for
## alternative location to config file which defines that while launching
## ncmpcpp.
##
#
ncmpcpp_directory = ~/.config/ncmpcpp
#
##
## Directory for storing downloaded lyrics. It defaults to ~/.lyrics since other
## MPD clients (eg. ncmpc) also use that location.
##
#
lyrics_directory = ~/.local/share/mpd/lyrics
#
##### connection settings #####
#
# MPD
mpd_host = localhost
#
mpd_port = 6600
#
#mpd_connection_timeout = 5
#
## Needed for tag editor and file operations to work.
##
mpd_music_dir = ~/Music
#
mpd_crossfade_time = 10
#
# Exclude pattern for random song action
# http://www.boost.org/doc/libs/1_46_1/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html
#random_exclude_pattern = "^(temp|midi_songs).*"
#
##### music visualizer #####
##
## In order to make music visualizer work with MPD you need to use the fifo
## output. Its format parameter has to be set to 44100:16:1 for mono
## visualization or 44100:16:2 for stereo visualization. As an example here is
## the relevant section for mpd.conf:
##
## audio_output {
## type "fifo"
## name "Visualizer feed"
## path "/tmp/mpd.fifo"
## format "44100:16:2"
## }
##
## If the visualization on occasion diverges from the audio output, please set
## 'buffer_time' parameter of your audio output in mpd.conf to '100000' (100ms)
## or less to prevent that from happening.
##
## Note: If you're using Mopidy, an address of a udpsink gstreamer's output is
## also accepted. For example, the following section in mopidy.conf:
##
## [audio]
## output = tee name=t ! queue ! autoaudiosink t.
## ! queue ! audio/x-raw,rate=44100,channels=2,format=S16LE
## ! udpsink host=localhost port=5555
##
## will make localhost:5555 available as a source of data for the stereo
## visualizer.
##
#
# Visualizer (reads mpd's "my_fifo" output)
visualizer_data_source = /tmp/mpd.fifo
#
##
## Note: Below parameter is needed for ncmpcpp to determine which output
## provides data for visualizer and reset it at the beginning of visualization
## to synchronize with audio.
##
#
visualizer_output_name = "my_fifo"
#
##
## If you set format to 44100:16:2, make it 'yes'.
##
visualizer_in_stereo = yes
#
##
## Note: set below to >=10 only if you have synchronization issues with
## visualization and audio.
##
#
#visualizer_sync_interval = 0
#
##
## Note: To enable spectrum frequency visualization you need to compile ncmpcpp
## with fftw3 support.
##
#
## Available values: spectrum, wave, wave_filled, ellipse.
##
visualizer_type = spectrum
#
#visualizer_fps = 60
#
#visualizer_autoscale = no
#
visualizer_look = ●▮
#
#visualizer_color = blue, cyan, green, yellow, magenta, red
#
## Alternative subset of 256 colors for terminals that support it.
##
#visualizer_color = 47, 83, 119, 155, 191, 227, 221, 215, 209, 203, 197, 161
#
##
## Note: The next few visualization options apply to the spectrum visualizer.
##
#
## Use unicode block characters for a smoother, more continuous look.
## This will override the visualizer_look option. With transparent terminals
## and visualizer_in_stereo set, artifacts may be visible on the bottom half of
## the visualization.
#
#visualizer_spectrum_smooth_look = yes
#
## A value between 1 and 5 inclusive. Specifying a larger value makes the
## visualizer look at a larger slice of time, which results in less jumpy
## visualizer output.
#
#visualizer_spectrum_dft_size = 2
#
#visualizer_spectrum_gain = 10
#
## Left-most frequency of visualizer in Hz, must be less than HZ MAX
#
#visualizer_spectrum_hz_min = 20
#
## Right-most frequency of visualizer in Hz, must be greater than HZ MIN
#
#visualizer_spectrum_hz_max = 20000
#
##### system encoding #####
##
## ncmpcpp should detect your charset encoding but if it failed to do so, you
## can specify charset encoding you are using here.
##
## Note: You can see whether your ncmpcpp build supports charset detection by
## checking output of `ncmpcpp --version`.
##
## Note: Since MPD uses UTF-8 by default, setting this option makes sense only
## if your encoding is different.
##
#
#system_encoding = ""
#
##### delays #####
#
## Time of inactivity (in seconds) after playlist highlighting will be disabled
## (0 = always on).
##
#playlist_disable_highlight_delay = 5
#
## Defines how long messages are supposed to be visible.
##
#message_delay_time = 5
#
##### song format #####
##
## For a song format you can use:
##
## %l - length
## %f - filename
## %D - directory
## %a - artist
## %A - album artist
## %t - title
## %b - album
## %y - date
## %n - track number (01/12 -> 01)
## %N - full track info (01/12 -> 01/12)
## %g - genre
## %c - composer
## %p - performer
## %d - disc
## %C - comment
## %P - priority
## $R - begin right alignment
##
## If you want to make sure that a part of the format is displayed only when
## certain tags are present, you can archieve it by grouping them with brackets,
## e.g. '{%a - %t}' will be evaluated to 'ARTIST - TITLE' if both tags are
## present or '' otherwise. It is also possible to define a list of
## alternatives by providing several groups and separating them with '|',
## e.g. '{%t}|{%f}' will be evaluated to 'TITLE' or 'FILENAME' if the former is
## not present.
##
## Note: If you want to set limit on maximal length of a tag, just put the
## appropriate number between % and character that defines tag type, e.g. to
## make album take max. 20 terminal cells, use '%20b'.
##
## In addition, formats support markers used for text attributes. They are
## followed by character '$'. After that you can put:
##
## - 0 - default window color (discards all other colors)
## - 1 - black
## - 2 - red
## - 3 - green
## - 4 - yellow
## - 5 - blue
## - 6 - magenta
## - 7 - cyan
## - 8 - white
## - 9 - end of current color
## - b - bold text
## - u - underline text
## - r - reverse colors
## - a - use alternative character set
##
## If you don't want to use a non-color attribute anymore, just put it again,
## but this time insert character '/' between '$' and attribute character,
## e.g. {$b%t$/b}|{$r%f$/r} will display bolded title tag or filename with
## reversed colors.
##
## If you want to use 256 colors and/or background colors in formats (the naming
## scheme is described below in section about color definitions), it can be done
## with the syntax $(COLOR), e.g. to set the artist tag to one of the
## non-standard colors and make it have yellow background, you need to write
## $(197_yellow)%a$(end). Note that for standard colors this is interchangable
## with attributes listed above.
##
## Note: colors can be nested.
##
#
#song_list_format = {%a - }{%t}|{$8%f$9}$R{$3%l$9}
#
#song_status_format = {{%a{ "%b"{ (%y)}} - }{%t}}|{%f}
#
#song_library_format = {%n - }{%t}|{%f}
#
#alternative_header_first_line_format = $b$1$aqqu$/a$9 {%t}|{%f} $1$atqq$/a$9$/b
#
#alternative_header_second_line_format = {{$4$b%a$/b$9}{ - $7%b$9}{ ($4%y$9)}}|{%D}
#
#current_item_prefix = $(yellow)$r
#
#current_item_suffix = $/r$(end)
#
#current_item_inactive_column_prefix = $(white)$r
#
#current_item_inactive_column_suffix = $/r$(end)
#
#now_playing_prefix = $b
#
#now_playing_suffix = $/b
#
#browser_playlist_prefix = "$2playlist$9 "
#
#selected_item_prefix = $6
#
#selected_item_suffix = $9
#
#modified_item_prefix = $3> $9
#
##
## Note: attributes are not supported for the following variables.
##
#song_window_title_format = {%a - }{%t}|{%f}
##
## Note: Below variables are used for sorting songs in browser. The sort mode
## determines how songs are sorted, and can be used in combination with a sort
## format to specify a custom sorting format. Available values for
## browser_sort_mode are "type", "name", "mtime", "format" and "none".
##
#
#browser_sort_mode = type
#
#browser_sort_format = {%a - }{%t}|{%f} {%l}
#
##### columns settings #####
##
## syntax of song columns list format is "column column etc."
##
## - syntax for each column is:
##
## (width of the column)[color of the column]{displayed tag}
##
## Note: Width is by default in %, if you want a column to have fixed size, add
## 'f' after the value, e.g. (10)[white]{a} will be the column that take 10% of
## screen (so the real width will depend on actual screen size), whereas
## (10f)[white]{a} will take 10 terminal cells, no matter how wide the screen
## is.
##
## - color is optional (if you want the default one, leave the field empty).
##
## Note: You can give a column additional attributes by putting appropriate
## character after displayed tag character. Available attributes are:
##
## - r - column will be right aligned
## - E - if tag is empty, empty tag marker won't be displayed
##
## You can also:
##
## - give a column custom name by putting it after attributes, separated with
## character ':', e.g. {lr:Length} gives you right aligned column of lengths
## named "Length".
##
## - define sequence of tags, that have to be displayed in case predecessor is
## empty in a way similar to the one in classic song format, i.e. using '|'
## character, e.g. {a|c|p:Owner} creates column named "Owner" that tries to
## display artist tag and then composer and performer if previous ones are not
## available.
##
#
#song_columns_list_format = (20)[]{a} (6f)[green]{NE} (50)[white]{t|f:Title} (20)[cyan]{b} (7f)[magenta]{l}
#
##### various settings #####
#
##
## Note: Custom command that will be executed each time song changes. Useful for
## notifications etc.
##
#execute_on_song_change =
#
##
## Note: Custom command that will be executed each time player state
## changes. The environment variable MPD_PLAYER_STATE is set to the current
## state (either unknown, play, pause, or stop) for its duration.
##
#
#execute_on_player_state_change =
#
#playlist_show_mpd_host = no
#
#playlist_show_remaining_time = no
#
#playlist_shorten_total_times = no
#
#playlist_separate_albums = no
#
##
## Note: Possible display modes: classic, columns.
##
#playlist_display_mode = columns
#
#browser_display_mode = classic
#
#search_engine_display_mode = classic
#
#playlist_editor_display_mode = classic
#
#discard_colors_if_item_is_selected = yes
#
#show_duplicate_tags = yes
#
#incremental_seeking = yes
#
#seek_time = 1
#
#volume_change_step = 2
#
#autocenter_mode = no
#
#centered_cursor = no
#
##
## Note: You can specify third character which will be used to build 'empty'
## part of progressbar.
##
#progressbar_look = =>
#
## Available values: database, playlist.
##
#default_place_to_search_in = database
#
## Available values: classic, alternative.
##
# Interface
user_interface = alternative
#
#data_fetching_delay = yes
#
## Available values: artist, album_artist, date, genre, composer, performer.
##
media_library_primary_tag = album_artist
#
#media_library_albums_split_by_date = yes
#
#media_library_hide_album_dates = no
#
## Available values: wrapped, normal.
##
#default_find_mode = wrapped
#
#default_tag_editor_pattern = %n - %t
#
#header_visibility = yes
#
#statusbar_visibility = yes
#
## Show the "Connected to ..." message on startup
#connected_message_on_startup = yes
#
#titles_visibility = yes
#
#header_text_scrolling = yes
#
#cyclic_scrolling = no
#
lyrics_fetchers = musixmatch, sing365, metrolyrics, justsomelyrics, jahlyrics, plyrics, tekstowo, zeneszoveg, genius, azlyrics, internet
#
#follow_now_playing_lyrics = no
#
#fetch_lyrics_for_current_song_in_background = no
#
#store_lyrics_in_song_dir = no
#
#generate_win32_compatible_filenames = yes
#
#allow_for_physical_item_deletion = no
#
##
## Note: If you set this variable, ncmpcpp will try to get info from last.fm in
## language you set and if it fails, it will fall back to english. Otherwise it
## will use english the first time.
##
## Note: Language has to be expressed as an ISO 639 alpha-2 code.
##
#lastfm_preferred_language = en
#
#space_add_mode = add_remove
#
#show_hidden_files_in_local_browser = no
#
##
## How shall screen switcher work?
##
## - "previous" - switch between the current and previous screen.
## - "screen1,...,screenN" - switch between given sequence of screens.
##
## Screens available for use: help, playlist, browser, search_engine,
## media_library, playlist_editor, tag_editor, outputs, visualizer, clock,
## lyrics, last_fm.
##
#screen_switcher_mode = playlist, browser
#
##
## Note: You can define startup screen by choosing screen from the list above.
##
startup_screen = media_library
#
##
## Note: You can define startup slave screen by choosing screen from the list
## above or an empty value for no slave screen.
##
#startup_slave_screen = playlist
#
#startup_slave_screen_focus = no
#
##
## Default width of locked screen (in %). Acceptable values are from 20 to 80.
##
#
#locked_screen_width_part = 60
#
#ask_for_locked_screen_width_part = yes
#
#jump_to_now_playing_song_at_start = yes
#
#ask_before_clearing_playlists = yes
#
#clock_display_seconds = no
#
#display_volume_level = yes
#
#display_bitrate = no
#
#display_remaining_time = no
#
## Available values: none, basic, extended, perl.
##
#regular_expressions = perl
#
##
## Note: if below is enabled, ncmpcpp will ignore leading "The" word while
## sorting items in browser, tags in media library, etc.
##
ignore_leading_the = yes
#
##
## Note: if below is enabled, ncmpcpp will ignore diacritics while searching and
## filtering lists. This takes an effect only if boost was compiled with ICU
## support.
##
#ignore_diacritics = no
#
#block_search_constraints_change_if_items_found = yes
#
#mouse_support = yes
#
#mouse_list_scroll_whole_page = no
#
#lines_scrolled = 5
#
#empty_tag_marker = <empty>
#
#tags_separator = " | "
#
#tag_editor_extended_numeration = no
#
#media_library_sort_by_mtime = no
#
#enable_window_title = yes
#
##
## Note: You can choose default search mode for search engine. Available modes
## are:
##
## - 1 - use mpd built-in searching (no regexes, pattern matching)
##
## - 2 - use ncmpcpp searching (pattern matching with support for regexes, but
## if your mpd is on a remote machine, downloading big database to process
## it can take a while
##
## - 3 - match only exact values (this mode uses mpd function for searching in
## database and local one for searching in current playlist)
##
#
#search_engine_default_search_mode = 1
#
external_editor = vim
#
## Note: set to yes if external editor is a console application.
##
use_console_editor = yes
#
##### colors definitions #####
##
## It is possible to set a background color by setting a color value
## "<foreground>_<background>", e.g. red_black will set foregound color to red
## and background color to black.
##
## In addition, for terminals that support 256 colors it is possible to set one
## of them by using a number in range [1, 256] instead of color name,
## e.g. numerical value corresponding to red_black is 2_1. To find out if the
## terminal supports 256 colors, run ncmpcpp and check out the bottom of the
## help screen for list of available colors and their numerical values.
##
## What is more, there are two special values for the background color:
## "transparent" and "current". The first one explicitly sets the background to
## be transparent, while the second one allows you to preserve current
## background color and change only the foreground one. It's used implicitly
## when background color is not specified.
##
## Moreover, it is possible to attach format information to selected color
## variables by appending to their end a colon followed by one or more format
## flags, e.g. black:b or red:ur. The following variables support this syntax:
## visualizer_color, color1, color2, empty_tag_color, volume_color,
## state_line_color, state_flags_color, progressbar_color,
## progressbar_elapsed_color, player_state_color, statusbar_time_color,
## alternative_ui_separator_color.
##
## Note: due to technical limitations of older ncurses version, if 256 colors
## are used there is a possibility that you'll be able to use only colors with
## transparent background.
#
# Colors
colors_enabled = yes
#
#empty_tag_color = cyan
#
header_window_color = 226
#
#volume_color = default
#
#state_line_color = default
#
#state_flags_color = default:b
#
main_window_color = 160
#
#color1 = white
#
#color2 = green
#
#progressbar_color = black:b
#
progressbar_elapsed_color = 226:b
#
statusbar_color = 226
#
#statusbar_time_color = default:b
#
#player_state_color = default:b
#
#alternative_ui_separator_color = black:b
#
window_border_color = 226
#
#active_window_border = red
#
+51
View File
@@ -0,0 +1,51 @@
backend = "xrender"
dithered-present = false;
use-damage = true;
# Fullscreen games bypass picom: less CPU work and latency.
unredir-if-possible = true;
shadow = true;
shadow-radius = 7;
shadow-offset-x = -7;
shadow-offset-y = -7;
fading = true;
fade-in-step = 0.03;
fade-out-step = 0.03;
frame-opacity = 0.9;
corner-radius = 0
blur-kern = "3x3box";
detect-rounded-corners = true;
detect-client-opacity = true;
detect-transient = true;
rules: ({
match = "window_type = 'tooltip'";
fade = false;
shadow = true;
opacity = 0.75;
full-shadow = false;
}, {
match = "window_type = 'dock' || "
"window_type = 'desktop' || "
"_GTK_FRAME_EXTENTS@";
blur-background = false;
}, {
match = "window_type = 'dock' || "
"window_type = 'desktop'";
corner-radius = 0;
}, {
match = "name = 'Notification' || "
"class_g = 'Conky' || "
"class_g ?= 'Notify-osd' || "
"class_g = 'Cairo-clock' || "
"_GTK_FRAME_EXTENTS@";
shadow = false;
}, {
# Unredirecting fullscreen i3lock/mpv left the HDMI output (reverse PRIME sink) black.
match = "class_g = 'i3lock' || "
"class_g = 'mpv'";
unredir = false;
})
@@ -0,0 +1,4 @@
# Adds more common rates
context.properties = {
default.clock.allowed-rates = [ 44100 48000 88200 96000 ]
}
@@ -0,0 +1,4 @@
[ColorScheme]
active_colors=#ffc6d0f5, #ff292c3c, #ffa5adce, #ff949cbb, #ff51576d, #ff737994, #ffc6d0f5, #ffc6d0f5, #ffc6d0f5, #ff303446, #ff292c3c, #ff838ba7, #ff8caaee, #ff303446, #ff8caaee, #ffe78284, #ff303446, #ffc6d0f5, #ff232634, #ffc6d0f5, #80838ba7
disabled_colors=#ffa5adce, #ff292c3c, #ffa5adce, #ff949cbb, #ff51576d, #ff737994, #ffa5adce, #ffa5adce, #ffa5adce, #ff303446, #ff292c3c, #ff838ba7, #ff626880, #ffb5bfe2, #ff8caaee, #ffe78284, #ff303446, #ffc6d0f5, #ff232634, #ffc6d0f5, #80838ba7
inactive_colors=#ffc6d0f5, #ff292c3c, #ffa5adce, #ff949cbb, #ff51576d, #ff737994, #ffc6d0f5, #ffc6d0f5, #ffc6d0f5, #ff303446, #ff292c3c, #ff838ba7, #ff414559, #ffa5adcb, #ff8caaee, #ffe78284, #ff303446, #ffc6d0f5, #ff232634, #ffc6d0f5, #80838ba7
+4
View File
@@ -0,0 +1,4 @@
[ColorScheme]
active_colors=#ffbd93f9, #ff424559, #ff484d6b, #ff6272a4, #ff44475a, #ff44475a, #ff6272a4, #ff44475a, #ffbd93f9, #ff282a36, #ff282a36, #ff44475a, #ff6272a4, #ffbd93f9, #ff8be9fd, #ff8be9fd, #ff44475a, #ff6272a4, #ff44475a, #fff8f8f2, #ff44475a
disabled_colors=#ffbd93f9, #ff424559, #ff484d6b, #ff6272a4, #ff44475a, #ff44475a, #ff6272a4, #ff44475a, #ffbd93f9, #ff282a36, #ff282a36, #ff44475a, #ff6272a4, #ffbd93f9, #ff8be9fd, #ff8be9fd, #ff44475a, #ff6272a4, #ff44475a, #fff8f8f2, #ff44475a
inactive_colors=#ffbd93f9, #ff424559, #ff484d6b, #ff6272a4, #ff44475a, #ff44475a, #ff6272a4, #ff44475a, #ffbd93f9, #ff282a36, #ff282a36, #ff44475a, #ff6272a4, #ffbd93f9, #ff8be9fd, #ff8be9fd, #ff44475a, #ff6272a4, #ff44475a, #fff8f8f2, #ff44475a
+4
View File
@@ -0,0 +1,4 @@
[ColorScheme]
active_colors=#7aa2f7, #24283b, #565f89, #c0caf5, #414868, #414868, #c0caf5, #414868, #7aa2f7, #1a1b26, #1a1b26, #414868, #343b58, #7aa2f7, #9ece6a, #9ece6a, #414868, #343b58, #414868, #565a6e, #414868
disabled_colors=#7aa2f7, #24283b, #565f89, #c0caf5, #414868, #414868, #c0caf5, #414868, #7aa2f7, #1a1b26, #1a1b26, #414868, #c0caf5, #7aa2f7, #9ece6a, #9ece6a, #414868, #c0caf5, #414868, #565a6e, #414868
inactive_colors=#7aa2f7, #24283b, #565f89, #c0caf5, #414868, #414868, #c0caf5, #414868, #7aa2f7, #1a1b26, #1a1b26, #414868, #c0caf5, #7aa2f7, #9ece6a, #9ece6a, #414868, #c0caf5, #414868, #565a6e, #414868
+32
View File
@@ -0,0 +1,32 @@
[Appearance]
color_scheme_path=/home/fuxino/.config/qt5ct/colors/Dracula.conf
custom_palette=true
icon_theme=Dracula
standard_dialogs=gtk3
style=Fusion
[Fonts]
fixed="Noto Sans,10,-1,5,50,0,0,0,0,0"
general="Noto Sans,10,-1,5,50,0,0,0,0,0"
[Interface]
activate_item_on_single_click=1
buttonbox_layout=0
cursor_flash_time=1000
dialog_buttons_have_icons=1
double_click_interval=400
gui_effects=@Invalid()
keyboard_scheme=2
menus_have_icons=true
show_shortcuts_in_context_menus=true
stylesheets=@Invalid()
toolbutton_style=4
underline_shortcut=1
wheel_scroll_lines=3
[SettingsWindow]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\a\x80\0\0\0\x11\0\0\xe\xff\0\0\x4\x37\0\0\a\x81\0\0\0\x12\0\0\xe\xfe\0\0\x4\x36\0\0\0\0\0\0\0\0\a\x80\0\0\a\x81\0\0\0\x12\0\0\xe\xfe\0\0\x4\x36)
[Troubleshooting]
force_raster_widgets=1
ignored_applications=@Invalid()
@@ -0,0 +1,4 @@
[ColorScheme]
active_colors=#ffc6d0f5, #ff292c3c, #ffa5adce, #ff949cbb, #ff51576d, #ff737994, #ffc6d0f5, #ffc6d0f5, #ffc6d0f5, #ff303446, #ff292c3c, #ff838ba7, #ff8caaee, #ff303446, #ff8caaee, #ffe78284, #ff303446, #ffc6d0f5, #ff232634, #ffc6d0f5, #80838ba7
disabled_colors=#ffa5adce, #ff292c3c, #ffa5adce, #ff949cbb, #ff51576d, #ff737994, #ffa5adce, #ffa5adce, #ffa5adce, #ff303446, #ff292c3c, #ff838ba7, #ff626880, #ffb5bfe2, #ff8caaee, #ffe78284, #ff303446, #ffc6d0f5, #ff232634, #ffc6d0f5, #80838ba7
inactive_colors=#ffc6d0f5, #ff292c3c, #ffa5adce, #ff949cbb, #ff51576d, #ff737994, #ffc6d0f5, #ffc6d0f5, #ffc6d0f5, #ff303446, #ff292c3c, #ff838ba7, #ff414559, #ffa5adcb, #ff8caaee, #ffe78284, #ff303446, #ffc6d0f5, #ff232634, #ffc6d0f5, #80838ba7
+4
View File
@@ -0,0 +1,4 @@
[ColorScheme]
active_colors=#ffbd93f9, #ff424559, #ff484d6b, #ff6272a4, #ff44475a, #ff44475a, #ff6272a4, #ff44475a, #ffbd93f9, #ff282a36, #ff282a36, #ff44475a, #ff6272a4, #ffbd93f9, #ff8be9fd, #ff8be9fd, #ff44475a, #ff6272a4, #ff44475a, #fff8f8f2, #ff44475a
disabled_colors=#ffbd93f9, #ff424559, #ff484d6b, #ff6272a4, #ff44475a, #ff44475a, #ff6272a4, #ff44475a, #ffbd93f9, #ff282a36, #ff282a36, #ff44475a, #ff6272a4, #ffbd93f9, #ff8be9fd, #ff8be9fd, #ff44475a, #ff6272a4, #ff44475a, #fff8f8f2, #ff44475a
inactive_colors=#ffbd93f9, #ff424559, #ff484d6b, #ff6272a4, #ff44475a, #ff44475a, #ff6272a4, #ff44475a, #ffbd93f9, #ff282a36, #ff282a36, #ff44475a, #ff6272a4, #ffbd93f9, #ff8be9fd, #ff8be9fd, #ff44475a, #ff6272a4, #ff44475a, #fff8f8f2, #ff44475a
+4
View File
@@ -0,0 +1,4 @@
[ColorScheme]
active_colors=#7aa2f7, #24283b, #565f89, #c0caf5, #414868, #414868, #c0caf5, #414868, #7aa2f7, #1a1b26, #1a1b26, #414868, #343b58, #7aa2f7, #9ece6a, #9ece6a, #414868, #343b58, #414868, #565a6e, #414868
disabled_colors=#7aa2f7, #24283b, #565f89, #c0caf5, #414868, #414868, #c0caf5, #414868, #7aa2f7, #1a1b26, #1a1b26, #414868, #c0caf5, #7aa2f7, #9ece6a, #9ece6a, #414868, #c0caf5, #414868, #565a6e, #414868
inactive_colors=#7aa2f7, #24283b, #565f89, #c0caf5, #414868, #414868, #c0caf5, #414868, #7aa2f7, #1a1b26, #1a1b26, #414868, #c0caf5, #7aa2f7, #9ece6a, #9ece6a, #414868, #c0caf5, #414868, #565a6e, #414868
+32
View File
@@ -0,0 +1,32 @@
[Appearance]
color_scheme_path=/home/fuxino/.config/qt6ct/colors/Dracula.conf
custom_palette=true
icon_theme=Dracula
standard_dialogs=gtk3
style=Fusion
[Fonts]
fixed="Noto Sans,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"
general="Noto Sans,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"
[Interface]
activate_item_on_single_click=1
buttonbox_layout=0
cursor_flash_time=1000
dialog_buttons_have_icons=1
double_click_interval=400
gui_effects=@Invalid()
keyboard_scheme=2
menus_have_icons=true
show_shortcuts_in_context_menus=true
stylesheets=@Invalid()
toolbutton_style=4
underline_shortcut=1
wheel_scroll_lines=3
[SettingsWindow]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\a\x80\0\0\0\x11\0\0\xe\xff\0\0\x4\x37\0\0\a\x81\0\0\0\x12\0\0\xe\xfe\0\0\x4\x36\0\0\0\x1\0\0\0\0\a\x80\0\0\a\x81\0\0\0\x12\0\0\xe\xfe\0\0\x4\x36)
[Troubleshooting]
force_raster_widgets=1
ignored_applications=@Invalid()
@@ -0,0 +1,11 @@
[Unit]
Description=Notify when the last simple_backup is 14 days old or more
StartLimitIntervalSec=2h
StartLimitBurst=4
[Service]
Type=oneshot
ExecStart=%h/.config/xmobar/backup.sh remind
# no notification daemon yet (e.g. caught up right after login)? retry a few times
Restart=on-failure
RestartSec=5min
@@ -0,0 +1,9 @@
[Unit]
Description=Check daily whether a backup is overdue
[Timer]
OnCalendar=*-*-* 10:00:00
Persistent=true
[Install]
WantedBy=timers.target
@@ -0,0 +1,9 @@
[Unit]
Description=Update music play_count from Last.fm with beets lastimport
[Service]
ExecStart=/usr/bin/beet lastimport
Type=simple
Restart=no
StandardOutput=null
StandardError=journal
@@ -0,0 +1,9 @@
[Unit]
Description=Run beets lastimport daily
[Timer]
OnCalendar=*-*-* 0:00:00
Persistent=true
[Install]
WantedBy=timers.target
@@ -0,0 +1,7 @@
[Unit]
Description=Ask to renew the calcurse Google Calendar login
[Service]
# simple: the prompt waits for a click without a start timeout
Type=simple
ExecStart=%h/.local/bin/calcurse-relogin --prompt
@@ -0,0 +1,6 @@
[Unit]
Description=Sync calcurse with Google Calendar
[Service]
Type=oneshot
ExecStart=%h/.local/bin/calcurse-sync
+7
View File
@@ -0,0 +1,7 @@
[Unit]
Description=Sync calcurse with Google Calendar hourly
[Timer]
OnActiveSec=1min
OnCalendar=hourly
Persistent=true
@@ -0,0 +1,7 @@
[Unit]
Description=Notify today's calcurse events
After=calcurse-sync.service
[Service]
Type=oneshot
ExecStart=%h/.local/bin/calcurse-today
@@ -0,0 +1,6 @@
[Unit]
Description=Notify today's calcurse events every morning
[Timer]
OnCalendar=*-*-* 09:00
Persistent=true
@@ -0,0 +1,7 @@
[Unit]
Description=Run discover-overlay while Discord is running
[Service]
ExecStart=%h/.local/bin/discover-overlay-wait
Restart=on-failure
RestartSec=5
+9
View File
@@ -0,0 +1,9 @@
[Unit]
Description=Change desktop background
[Service]
ExecStart=/home/fuxino/.fehbg
Type=simple
Restart=no
ProtectHome=read-only
ReadWritePaths=%C
+6
View File
@@ -0,0 +1,6 @@
[Unit]
Description=Change desktop background every 6 hours
[Timer]
OnActiveSec=6h
OnUnitActiveSec=6h
+11
View File
@@ -0,0 +1,11 @@
[Unit]
Description=Dump the Garmin database to ~/.local/share/negsplit/dumps
StartLimitIntervalSec=2h
StartLimitBurst=4
[Service]
Type=oneshot
ExecStart=%h/.local/bin/db-dump negsplit Garmin week
# MariaDB not up yet (e.g. caught up right after boot)? retry a few times
Restart=on-failure
RestartSec=5min
+9
View File
@@ -0,0 +1,9 @@
[Unit]
Description=Dump the Garmin database weekly
[Timer]
OnCalendar=weekly
Persistent=true
[Install]
WantedBy=timers.target
@@ -0,0 +1,8 @@
[Unit]
Description=redshift needs to get a (geo)clue
[Service]
ExecStart=/usr/lib/geoclue-2.0/demos/agent
[Install]
WantedBy=default.target
@@ -0,0 +1,6 @@
[Unit]
Description=Prune old, easily retyped commands from fish history
[Service]
ExecStart=/usr/bin/fish -c 'history_prune -a'
Type=oneshot
+9
View File
@@ -0,0 +1,9 @@
[Unit]
Description=Prune fish history monthly
[Timer]
OnCalendar=monthly
Persistent=true
[Install]
WantedBy=timers.target
+11
View File
@@ -0,0 +1,11 @@
[Unit]
Description=Dump the Library database to ~/.local/share/library_manager/dumps
StartLimitIntervalSec=2h
StartLimitBurst=4
[Service]
Type=oneshot
ExecStart=%h/.local/bin/db-dump library_manager Library day
# MariaDB not up yet (e.g. caught up right after boot)? retry a few times
Restart=on-failure
RestartSec=5min
+9
View File
@@ -0,0 +1,9 @@
[Unit]
Description=Dump the Library database daily
[Timer]
OnCalendar=daily
Persistent=true
[Install]
WantedBy=timers.target
@@ -0,0 +1,11 @@
[Unit]
Description=modprobed-db store at logout/shutdown
RequiresMountsFor=/home/
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStop=/usr/bin/modprobed-db storesilent
[Install]
WantedBy=default.target
@@ -0,0 +1,5 @@
[Service]
Type=dbus
ExecStart=
ExecStart=/usr/bin/playerctld
Restart=on-failure
+8
View File
@@ -0,0 +1,8 @@
[Unit]
Description=Automount removable media with udiskie
Documentation=man:udiskie(8)
[Service]
ExecStart=/usr/bin/udiskie
Restart=on-failure
RestartSec=2
@@ -0,0 +1,3 @@
[Path]
PathChanged=/home/aur-local/aur-local.db.tar.gz.sig
PathChanged=/home/custom-pkgs/custom-pkgs.db.tar.gz.sig
+11
View File
@@ -0,0 +1,11 @@
[Unit]
Description=Dump the Weather database to ~/.local/share/ens-forecast/dumps
StartLimitIntervalSec=2h
StartLimitBurst=4
[Service]
Type=oneshot
ExecStart=%h/.local/bin/db-dump ens-forecast Weather week
# MariaDB not up yet (e.g. caught up right after boot)? retry a few times
Restart=on-failure
RestartSec=5min
+9
View File
@@ -0,0 +1,9 @@
[Unit]
Description=Dump the Weather database weekly
[Timer]
OnCalendar=weekly
Persistent=true
[Install]
WantedBy=timers.target
@@ -0,0 +1,2 @@
[Service]
Environment="XDG_CURRENT_DESKTOP=GNOME"
+26
View File
@@ -0,0 +1,26 @@
# The Fuck settings file
#
# The rules are defined as in the example bellow:
#
# rules = ['cd_parent', 'git_push', 'python_command', 'sudo']
#
# The default values are as follows. Uncomment and change to fit your needs.
# See https://github.com/nvbn/thefuck#settings for more information.
#
# rules = [<const: All rules enabled>]
# exclude_rules = []
# wait_command = 3
# require_confirmation = True
# no_colors = False
# debug = False
# priority = {}
# history_limit = None
# alter_history = True
# wait_slow_command = 15
# slow_commands = ['lein', 'react-native', 'gradle', './gradlew', 'vagrant']
# repeat = False
# instant_mode = False
# num_close_matches = 3
# env = {'LC_ALL': 'C', 'LANG': 'C', 'GIT_TRACE': '1'}
# excluded_search_path_prefixes = []
+2
View File
@@ -0,0 +1,2 @@
# Remove vidthumb thumbnails (and leftover temp files) not used for 30 days; %C is $XDG_CACHE_HOME.
e %C/vidthumb - - - 30d
+566
View File
@@ -0,0 +1,566 @@
" vim: filetype=vifm :
" Sample configuration file for vifm (last updated: 3 April, 2023)
" You can edit this file by hand.
" The " character at the beginning of a line comments out the line.
" Blank lines are ignored.
" The basic format for each item is shown with an example.
" ------------------------------------------------------------------------------
" Main settings
" ------------------------------------------------------------------------------
" Command used to edit files in various contexts. The default is vim.
" If you would like to use another vi clone such as Elvis or Vile
" you will need to change this setting.
if executable('vim')
set vicmd=vim
elseif executable('nvim')
set vicmd=nvim
elseif executable('elvis')
set vicmd=elvis\ -G\ termcap
elseif executable('vile')
set vicmd=vile
elseif $EDITOR != ''
echo 'Note: using `'.$EDITOR.'` as an editor'
let &vicmd = $EDITOR
endif
" This makes vifm perform file operations on its own instead of relying on
" standard utilities like `cp`. While using `cp` and alike is a more universal
" solution, it's also much slower when processing large amounts of files and
" doesn't support progress measuring.
set syscalls
" Trash Directory
" The default is to move files that are deleted with dd or :d to
" the trash directory. If you change this you will not be able to move
" files by deleting them and then using p to put the file in the new location.
" I recommend not changing this until you are familiar with vifm.
" This probably shouldn't be an option.
set trash
" What should be saved automatically on restarting vifm. Drop "savedirs"
" value if you don't want vifm to remember last visited directories for you.
set vifminfo=dhistory,savedirs,chistory,state,tui,shistory,
\phistory,fhistory,dirstack,registers,bookmarks,bmarks
" This is how many directories to store in the directory history.
set history=100
" Automatically resolve symbolic links on l or Enter.
set nofollowlinks
" Natural sort of (version) numbers within text.
set sortnumbers
" Maximum number of changes that can be undone.
set undolevels=100
" Use Vim's format of help file (has highlighting and "hyperlinks").
" If you would rather use a plain text help file set novimhelp.
set vimhelp
" If you would like to run an executable file when you
" press Enter, l or Right Arrow, set this.
set norunexec
" Format for displaying time in file list. For example:
" TIME_STAMP_FORMAT=%m/%d-%H:%M
" See man date or man strftime for details.
set timefmt='%Y/%m/%d %H:%M'
" Show list of matches on tab completion in command-line mode
set wildmenu
" Display completions in a form of popup with descriptions of the matches
set wildstyle=popup
" Display suggestions in normal, visual and view modes for keys, marks and
" registers (at most 5 files). In other view, when available.
set suggestoptions=normal,visual,view,otherpane,keys,marks,registers
" Ignore case in search patterns unless it contains at least one uppercase
" letter
set ignorecase
set smartcase
" Don't highlight search results automatically
set nohlsearch
" Use increment searching (search while typing)
set incsearch
" Try to leave some space from cursor to upper/lower border in lists
set scrolloff=4
" Don't do too many requests to slow file systems
if !has('win')
set slowfs=curlftpfs
endif
" Set custom status line look
set statusline=" Hint: %z%= %A %10u:%-7g %15s %20d "
" List of color schemes to try (picks the first one supported by the terminal)
colorscheme Default-256 Default
" ------------------------------------------------------------------------------
" Bookmarks
" ------------------------------------------------------------------------------
" :mark mark /full/directory/path [filename]
mark b ~/bin/
mark h ~/
" ------------------------------------------------------------------------------
" Commands
" ------------------------------------------------------------------------------
" :com[mand][!] command_name action
"
" These are some of the macros that can be used in the action part:
" %a for user arguments
" %c for current file under the cursor
" %C for current file under the cursor of inactive pane
" %f for selected file(s)
" %F for selected file(s) of inactive pane
" %b is the same as %f %F
" %d for current directory name
" %D for current directory name of inactive pane
" %r{x} for list of files in register {x}
" %m runs the command in a menu window
" %u uses command's output to build a file list
" see `:help vifm-macros` and `:help vifm-filename-modifiers` for more
command! df df -h %m 2> /dev/null
command! diff vim -d %f %F
command! zip zip -r %c.zip %f
command! run !! ./%f
command! make !!make %a
command! mkcd :mkdir %a | cd %a
command! vgrep vim "+grep %a"
command! reload :write | restart full
" ------------------------------------------------------------------------------
" File types association
" ------------------------------------------------------------------------------
" :filetype pattern1,pattern2 defaultprogram,program2
" :fileviewer pattern1,pattern2 consoleviewer
"
" The first entry is the default program to be used with a matching file.
" The other programs for the file type can be accessed via :file command.
" The command macros like %f, %F, %d, %D may be used in the commands.
" The %a macro is ignored. To use a % you must put %%.
" Spaces in an app name must be escaped, for example: QuickTime\ Player.app
" For automated FUSE mounts, you must register an extension with :file[x]type
" in one of the following formats:
"
" :filetype patterns FUSE_MOUNT|mount_cmd %SOURCE_FILE %DESTINATION_DIR
"
" %SOURCE_FILE and %DESTINATION_DIR are filled in at runtime.
"
" Example:
" :filetype *.zip,*.[jwe]ar FUSE_MOUNT|fuse-zip %SOURCE_FILE %DESTINATION_DIR
"
" :filetype patterns FUSE_MOUNT2|mount_cmd %PARAM %DESTINATION_DIR
"
" %PARAM and %DESTINATION_DIR are filled in at runtime.
"
" Example:
" :filetype *.ssh FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR
"
" %PARAM value is the first line of the matched file, example: root@127.0.0.1:/
"
" You can also add %CLEAR if you want to clear screen before running FUSE
" program. There is also %FOREGROUND, which is useful for entering passwords.
" Pdf
filextype {*.pdf},<application/pdf> zathura %c %i, apvlv %c, xpdf %c
fileviewer {*.pdf},<application/pdf> pdftotext -nopgbrk %c -
" PostScript
filextype {*.ps,*.eps,*.ps.gz},<application/postscript>
\ {View in zathura}
\ zathura %f,
\ {View in gv}
\ gv %c %i,
" Djvu
filextype {*.djvu},<image/vnd.djvu>
\ {View in zathura}
\ zathura %f,
\ {View in apvlv}
\ apvlv %f,
" Midi
filetype {*.mid,*.kar}
\ {Play using TiMidity++}
\ timidity %f,
" Audio
filetype {*.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus,
\*.aac,*.mpga},
\<audio/*>
\ {Play using MPlayer}
\ mplayer %f,
\ {Play using mpv}
\ mpv --no-video %f %s,
\ {Play using ffplay}
\ ffplay -nodisp -hide_banner -autoexit %c,
fileviewer {*.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus,
\*.aac,*.mpga},
\<audio/*>
\ ffprobe -hide_banner -pretty %c 2>&1
" Video
filextype {*.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
\*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,
\*.as[fx],*.unknown_video},
\<video/*>
\ {View using ffplay}
\ ffplay -fs -hide_banner -autoexit %f,
\ {View using Dragon}
\ dragon %f:p,
\ {View using mplayer}
\ mplayer %f,
\ {Play using mpv}
\ mpv --no-video %f,
fileviewer {*.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
\*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,
\*.as[fx],*.unknown_video},
\<video/*>
\ ffprobe -hide_banner -pretty %c 2>&1
" Web
filextype {*.xhtml,*.html,*.htm},<text/html>
\ {Open with qutebrowser}
\ qutebrowser %f %i,
\ {Open with firefox}
\ firefox %f &,
filetype {*.xhtml,*.html,*.htm},<text/html> links, lynx
" Object
filetype {*.o},<application/x-object> nm %f | less
" Man page
filetype {*.[1-8]},<text/troff> man ./%c
fileviewer {*.[1-8]},<text/troff> man ./%c | col -b
" Images
filextype {*.svg,*.svgz},<image/svg+xml>
\ {Edit in Inkscape}
\ inkscape %f,
\ {View in Inkview}
\ inkview %f,
filextype {*.cr2}
\ {Open in Darktable}
\ darktable %f,
\ {Open in RawTherapee}
\ rawtherapee %f,
filextype {*.xcf}
\ {Open in GIMP}
\ gimp %f,
filextype {.kra}
\ {Open in Krita}
\ krita %f,
filextype {.blend}
\ {Open in Blender}
\ blender %c,
filextype {*.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm},<image/*>
\ {View in sxiv}
\ sxiv %f,
\ {View in gpicview}
\ gpicview %c,
\ {View in shotwell}
\ shotwell,
fileviewer {*.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm},<image/*>
\ identify %f
" OpenRaster
filextype *.ora
\ {Edit in MyPaint}
\ mypaint %f,
" Mindmap
filextype *.vym
\ {Open with VYM}
\ vym %f &,
" MD5
filetype *.md5
\ {Check MD5 hash sum}
\ md5sum -c %f %S,
" SHA1
filetype *.sha1
\ {Check SHA1 hash sum}
\ sha1sum -c %f %S,
" SHA256
filetype *.sha256
\ {Check SHA256 hash sum}
\ sha256sum -c %f %S,
" SHA512
filetype *.sha512
\ {Check SHA512 hash sum}
\ sha512sum -c %f %S,
" GPG signature
filetype {*.asc},<application/pgp-signature>
\ {Check signature}
\ !!gpg --verify %c,
" Torrent
filetype {*.torrent},<application/x-bittorrent> ktorrent %f &
fileviewer {*.torrent},<application/x-bittorrent>
\ dumptorrent -v %c,
\ transmission-show %c
" FuseZipMount
filetype {*.zip,*.jar,*.war,*.ear,*.oxt,*.apkg},
\<application/zip,application/java-archive>
\ {Mount with fuse-zip}
\ FUSE_MOUNT|fuse-zip %SOURCE_FILE %DESTINATION_DIR,
\ {View contents}
\ unzip -l %f | less,
\ {Extract here}
\ unzip %c,
fileviewer *.zip,*.jar,*.war,*.ear,*.oxt unzip -l %f
" ArchiveMount
filetype {*.tar,*.tar.bz2,*.tbz2,*.tgz,*.tar.gz,*.tar.xz,*.txz,*.tar.zst,
\*.tzst},
\<application/x-tar>
\ {Mount with archivemount}
\ FUSE_MOUNT|archivemount %SOURCE_FILE %DESTINATION_DIR,
fileviewer *.tgz,*.tar.gz tar -tzf %c
fileviewer *.tar.bz2,*.tbz2 tar -tjf %c
fileviewer *.tar.xz,*.txz tar -tJf %c
fileviewer *.tar.zst,*.tzst tar -t --zstd -f %c
fileviewer {*.tar},<application/x-tar> tar -tf %c
" Rar2FsMount and rar archives
filetype {*.rar},<application/x-rar>
\ {Mount with rar2fs}
\ FUSE_MOUNT|rar2fs %SOURCE_FILE %DESTINATION_DIR,
fileviewer {*.rar},<application/x-rar> unrar v %c
" IsoMount
filetype {*.iso},<application/x-iso9660-image>
\ {Mount with fuseiso}
\ FUSE_MOUNT|fuseiso %SOURCE_FILE %DESTINATION_DIR,
" SshMount
filetype *.ssh
\ {Mount with sshfs}
\ FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR %FOREGROUND,
" FtpMount
filetype *.ftp
\ {Mount with curlftpfs}
\ FUSE_MOUNT2|curlftpfs -o ftp_port=-,,disable_eprt %PARAM %DESTINATION_DIR %FOREGROUND,
" Fuse7z and 7z archives
filetype {*.7z},<application/x-7z-compressed>
\ {Mount with fuse-7z}
\ FUSE_MOUNT|fuse-7z %SOURCE_FILE %DESTINATION_DIR,
fileviewer {*.7z},<application/x-7z-compressed> 7z l %c
" Office files
filextype {*.odt,*.doc,*.docx,*.xls,*.xlsx,*.odp,*.pptx,*.ppt},
\<application/vnd.openxmlformats-officedocument.*,
\application/msword,
\application/vnd.ms-excel>
\ libreoffice %f &
fileviewer {*.doc},<application/msword> catdoc %c
fileviewer {*.docx},
\<application/
\vnd.openxmlformats-officedocument.wordprocessingml.document>
\ docx2txt.pl %f -
" TuDu files
filetype *.tudu tudu -f %c
" Qt projects
filextype *.pro qtcreator %f &
" Directories
filextype */
\ {View in thunar}
\ Thunar %f &,
" Syntax highlighting in preview
"
" Explicitly set highlight type for some extensions
"
" 256-color terminal
" fileviewer *.[ch],*.[ch]pp highlight -O xterm256 -s dante --syntax c %c
" fileviewer Makefile,Makefile.* highlight -O xterm256 -s dante --syntax make %c
"
" 16-color terminal
" fileviewer *.c,*.h highlight -O ansi -s dante %c
"
" Or leave it for automatic detection
" fileviewer *[^/] pygmentize -O style=monokai -f console256 -g
" Displaying pictures in terminal
" fileviewer *.jpg,*.png shellpic %c
" Open all other files with default system programs (you can also remove all
" :file[x]type commands above to ensure they don't interfere with system-wide
" settings). By default all unknown files are opened with 'vi[x]cmd'
" uncommenting one of lines below will result in ignoring 'vi[x]cmd' option
" for unknown file types.
" For *nix:
" filetype * xdg-open
" For OS X:
" filetype * open
" For Windows:
" filetype * explorer %"f &
" ------------------------------------------------------------------------------
" Panel configuration examples
" ------------------------------------------------------------------------------
" Customize view columns a bit (enable ellipsis for truncated file names)
" set viewcolumns=-{name}..,6{}.
" Show vertical border
" set fillchars=vborder:│
" Filter-out build and temporary files
" filter! {*.lo,*.o,*.d,*.class,*.pyc,*.pyo,.*~}
" ------------------------------------------------------------------------------
" Sample keyboard mappings
" ------------------------------------------------------------------------------
" Start shell in current directory
nnoremap s :shell<cr>
" Display sorting dialog
nnoremap S :sort<cr>
" Toggle visibility of preview window
nnoremap w :view<cr>
vnoremap w :view<cr>gv
if $DISPLAY && executable('gvim')
" Open file in existing instance of gvim
nnoremap o :!gvim --remote-tab-silent %f<cr>
" Open file in new instance of gvim
nnoremap O :!gvim %f<cr>
endif
" Open file in the background using its default program
nnoremap gb :file &<cr>l
" Interaction with system clipboard
if has('win')
" Yank current directory path to Windows clipboard with forward slashes
nnoremap yp :!echo %"d:gs!\!/! %i | clip<cr>
" Yank path to current file to Windows clipboard with forward slashes
nnoremap yf :!echo %"c:gs!\!/! %i | clip<cr>
elseif $WAYLAND_DISPLAY != ''
if executable('wl-copy')
" Yank current directory path into primary and selection clipboards
nnoremap yd :!echo -n %d | wl-copy %i &&
\ echo -n %d | wl-copy -p %i<cr>
" Yank current file path into into primary and selection clipboards
nnoremap yf :!echo -n %c:p | wl-copy %i &&
\ echo -n %c:p | wl-copy -p %i<cr>
endif
elseif $DISPLAY != ''
if executable('xclip')
" Yank current directory path into the clipboard
nnoremap yd :!echo %d | xclip %i<cr>
" Yank current file path into the clipboard
nnoremap yf :!echo %c:p | xclip %i<cr>
elseif executable('xsel')
" Yank current directory path into primary and selection clipboards
nnoremap yd :!echo -n %d | xsel --input --primary %i &&
\ echo -n %d | xsel --clipboard --input %i<cr>
" Yank current file path into into primary and selection clipboards
nnoremap yf :!echo -n %c:p | xsel --input --primary %i &&
\ echo -n %c:p | xsel --clipboard --input %i<cr>
endif
endif
" Mappings for faster renaming
nnoremap I cw<c-a>
nnoremap cc cw<c-u>
nnoremap A cw
" As above, but without the file extension
" nnoremap I cW<c-a>
" nnoremap cc cW<c-u>
" nnoremap A cW
" Open console in current directory
if $DISPLAY && executable('xterm')
nnoremap ,t :!xterm &<cr>
elseif $TERMINAL != ''
nnoremap ,t :!$TERMINAL &<cr>
endif
" Open editor to edit vifmrc and apply settings after returning to vifm
nnoremap ,c :write | edit $MYVIFMRC | restart full<cr>
" Open gvim to edit vifmrc
if $DISPLAY && executable('gvim')
nnoremap ,C :!gvim --remote-tab-silent $MYVIFMRC &<cr>
endif
" Toggle wrap setting on ,w key
nnoremap ,w :set wrap!<cr>
" Example of standard two-panel file managers mappings
nnoremap <f3> :!less %f<cr>
nnoremap <f4> :edit<cr>
nnoremap <f5> :copy<cr>
nnoremap <f6> :move<cr>
nnoremap <f7> :mkdir<space>
nnoremap <f8> :delete<cr>
" Midnight commander alike mappings
" Open current directory in the other pane
nnoremap <a-i> :sync<cr>
" Open directory under cursor in the other pane
nnoremap <a-o> :sync %c<cr>
" Swap panes
nnoremap <c-u> <c-w>x
" ------------------------------------------------------------------------------
" Various customization examples
" ------------------------------------------------------------------------------
" Use ag (the silver searcher) instead of grep
" set grepprg='ag --line-numbers %i %a %s'
" Add additional place to look for executables
" let $PATH = $HOME.'/bin/fuse:'.$PATH
" Block particular shortcut
" nnoremap <left> <nop>
" Export IPC name of current instance as environment variable and use it to
" communicate with the instance later.
"
" It can be used in some shell script that gets run from inside vifm, for
" example, like this:
" vifm --server-name "$VIFM_SERVER_NAME" --remote +"cd '$PWD'"
"
" let $VIFM_SERVER_NAME = v:servername
" Activate screen/tmux support
" screen!
" ------------------------------------------------------------------------------
" Icon decorations example
" ------------------------------------------------------------------------------
" https://github.com/cirala/vifm_devicons
+3
View File
@@ -0,0 +1,3 @@
[preferred]
default=gtk
org.freedesktop.impl.portal.Notification=dunst
+63
View File
@@ -0,0 +1,63 @@
#!/bin/bash
# Days since the last simple_backup for xmobar, e.g. " 9d | ": hidden under 7 days, orange from 7, red from 14
# Reads simple_backup's state file and the journal (versions before the state file only log there), whichever is newer.
# With "list": show the date in a notification (for a click on the bar)
# With "remind": notify only when a backup is overdue (run daily by backup-reminder.timer)
warn=7 overdue=14
state="${XDG_STATE_HOME:-$HOME/.local/state}/simple_backup/last_backup"
last=0 dir=""
if [[ -r $state ]]; then
{ read -r time; read -r dir; } < "$state"
last=$(date -d "$time" +%s 2>/dev/null) || last=0
fi
# The journal drops old entries, so after a long gap there may be nothing left to find
line=$(journalctl -q -t /usr/bin/simple_backup -r -o short-unix 2>/dev/null | grep -m1 'Backup completed')
jlast=${line%%.*}
if [[ $jlast =~ ^[0-9]+$ ]] && (( jlast > last )); then
last=$jlast dir=""
fi
days=$(( ($(date +%s) - last) / 86400 ))
age() {
case $days in
0) echo "today" ;;
1) echo "1 day ago" ;;
*) echo "$days days ago" ;;
esac
}
case ${1:-} in
list)
if (( last )); then
body="$(date -d "@$last" '+%Y-%m-%d %H:%M') ($(age))"
[[ -n $dir ]] && body+=$'\n'"$dir"
else
body="No backup found"
fi
notify-send "Last backup" "$body"
exit ;;
remind)
(( last && days < overdue )) && exit 0
if (( last )); then
body="Last backup $(age) ($(date -d "@$last" '+%Y-%m-%d'))"
else
body="No backup found"
fi
# A failure (e.g. no notification daemon yet) makes the service retry
exec notify-send "Backup overdue" "$body. Plug in the backup disk." ;;
esac
(( last && days < warn )) && exit 0
icon=$'\xef\x82\xa0' # nf-fa-hdd_o, as UTF-8 bytes so the locale doesn't matter
if (( ! last )); then
text="<fc=#f7768e>$icon ?</fc>"
elif (( days >= overdue )); then
text="<fc=#f7768e>$icon ${days}d</fc>"
else
text="<fc=#ffb86c>$icon ${days}d</fc>"
fi
echo "$text | "
+42
View File
@@ -0,0 +1,42 @@
#!/bin/bash
# Next calcurse item for xmobar: pink " 10:15 | " for an appointment later today, a cyan icon for a whole-day
# event today, a pink icon alone when the next appointment is tomorrow; empty otherwise.
# With "list": show today's and tomorrow's items in a notification (for a click on the bar)
set -uo pipefail
icon=$'\xf3\xb0\x83\xad' # nf-md-calendar, as UTF-8 bytes so the locale doesn't matter
today=$(date +%F)
query() {
calcurse -Q --filter-type cal --days 2 --output-datefmt %F "$@"
}
if [[ ${1:-} == list ]]; then
tomorrow=$(date -d tomorrow +%F)
body=$(query --format-apt '%S–%E %m\n' --format-recur-apt '%S–%E %m\n' \
--format-event 'all day %m\n' --format-recur-event 'all day %m\n' |
sed -e 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g' -e "s/^$today:$/Today:/; s/^$tomorrow:$/Tomorrow:/")
notify-send -a calcurse -i x-office-calendar "Calendar" "${body:-Nothing today or tomorrow}"
exit
fi
now=$(date +%s)
day="" next="" event=false
while read -r kind start; do
case $kind in
*:) day=${kind%:} ;;
A) [[ -z $next ]] && ((start > now)) && next=$start ;;
E) [[ $day == "$today" ]] && event=true ;;
esac
done < <(query --format-apt 'A %s\n' --format-recur-apt 'A %s\n' --format-event 'E\n' --format-recur-event 'E\n')
if [[ -n $next && $(date -d "@$next" +%F) == "$today" ]]; then
text="<fc=#ff79c6>$icon $(date -d "@$next" +%H:%M)</fc>"
elif $event; then
text="<fc=#8be9fd>$icon</fc>"
elif [[ -n $next ]]; then
text="<fc=#ff79c6>$icon</fc>"
else
exit 0
fi
echo "$text | "
+39 -4
View File
@@ -1,9 +1,38 @@
#!/bin/bash
# Next day from ens-forecast for xmobar, e.g. "Sat 19/10° 39%" (today before 18:00, then tomorrow)
# With "week": show the next 7 days in a notification (for a click on the bar)
# Uses IFS unless its newest saved run is STALE; then the first fallback in MODELS whose download names its
# run and isn't STALE. The bar names the model when it isn't IFS, and adds a red "!" when it is stale.
# AIFS/AIGEFS are left out: AIFS comes through the same ECMWF pipeline as IFS and fails with it.
MODELS=(ecmwf_ifs025 icon_seamless_eps ncep_gefs025 google_weathernext2_ensemble)
declare -A LABEL=([ncep_gefs025]=GEFS [icon_seamless_eps]=ICON [google_weathernext2_ensemble]=Google)
# pick DAYS: sets $line (the --brief output) and $model. IFS unless it is STALE; a fallback only if its
# download names its run (so it can be checked) and isn't STALE; otherwise IFS anyway.
pick() {
local m l head first="" first_model="" err=""
for m in "${MODELS[@]}"; do
if ! l=$(ens-forecast brief "$1" --model "$m" 2>&1); then
[[ -z $err ]] && err=$l
continue
fi
l=$(grep -v '^note: ' <<< "$l") # e.g. "note: ... forecasts only 10 days" (on stderr, models < 14 days)
[[ -z $first ]] && first=$l first_model=$m
head=${l%%: *}
[[ $m != "${MODELS[0]}" && $head != *", run "* ]] && continue # unlabelled fallback: can't check
if [[ $head != *STALE* ]]; then
line=$l model=$m
return 0
fi
done
if [[ -n $first ]]; then line=$first model=$first_model; return 0; fi
line=$err
return 1
}
if [ "$1" = "week" ]; then
if ! line=$(ens-forecast --brief 7 2>&1); then
if ! pick 7; then
notify-send "ens-forecast" "$line"
exit
fi
@@ -17,6 +46,12 @@ if [ "$1" = "week" ]; then
exit
fi
line=$(ens-forecast --brief 1 2>/dev/null) || exit 0
read -r day temps rain <<< "${line#*: }"
echo "$day ${temps%C} "$'\uf043'" $rain"
pick 1 2>/dev/null || exit 0
read -r day temps rain extra <<< "${line#*: }"
# Probabilities as nf-weather icons: frost snowflake_cold, snow, heat hot
extra=${extra//frost /$'\xee\x8d\xaf' } extra=${extra//snow /$'\xee\x8c\x9a' } extra=${extra//heat /$'\xee\x8d\xab' }
label=""
[[ $model != "${MODELS[0]}" ]] && label="${LABEL[$model]:-$model} "
stale=""
[[ ${line%%: *} == *STALE* ]] && stale=" <fc=#f7768e>!</fc>"
echo "$label$day ${temps%C} "$''" $rain${extra:+ $extra}$stale"
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
# NVIDIA GPU load and temperature for xmobar, e.g. "<icon> 9% 68°C", colored like the CPU ones.
# Load 25/75 as MultiCpu; temperature 75/90 (GTX 1050 Ti Mobile: target 94°C, ~65°C driving the HDMI output).
color() { # value low high
if (( $1 > $3 )); then c='#ff5555'; elif (( $1 > $2 )); then c='#ffb86c'; else c='#50fa7b'; fi
printf '<fc=%s>%s</fc>' "$c" "$4"
}
icon=$'\U000f08ae'
IFS=', ' read -r load temp < <(nvidia-smi --query-gpu=utilization.gpu,temperature.gpu --format=csv,noheader,nounits 2>/dev/null)
if [[ ! $load =~ ^[0-9]+$ || ! $temp =~ ^[0-9]+$ ]]; then
echo "$icon N/A"
exit
fi
echo "$icon $(color "$load" 25 75 "$load%") $(color "$temp" 75 90 "$temp°C")"
+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
# Cycle keyboard layout it -> us -> sk(qwerty); "prev" cycles backwards.
current=$(setxkbmap -query | awk '/^layout:/ {split($2, a, ","); print a[1]}')
if [[ "$1" == "prev" ]]; then
case "$current" in
it) next=sk ;;
us) next=it ;;
*) next=us ;;
esac
else
case "$current" in
it) next=us ;;
us) next=sk ;;
*) next=it ;;
esac
fi
if [[ "$next" == "sk" ]]; then
setxkbmap -layout sk -variant qwerty
else
setxkbmap -layout "$next" -variant ""
fi
Loaded 100 of 125 files, more files were not shown because too many files have changed in this diff. Show more