Instantly share code, notes, and snippets.

View gist:641e397490a0de9fcd2b97aac40dcf7f
[Unit]
Description=Delayed hibernation trigger
Documentation=https://bbs.archlinux.org/viewtopic.php?pid=1420279#p1420279
Documentation=https://wiki.archlinux.org/index.php/Power_management
Conflicts=hibernate.target hybrid-sleep.target
Before=sleep.target
StopWhenUnneeded=true
[Service]
Type=oneshot
View README.md
  1. ne: ne, the nice editor
  2. micro: A modern and intuitive terminal-based text editor
  3. wed: wed is a terminal text editor with key bindings commonly used in Windows based editors
View README.md

Tools for more digital awareness

  1. Snooze Tabby: Establish new habits by making web pages reappear periodically.
  2. Anki: Train your memory using flash cards.
  3. 10 seconds of math: Practise some mental arithmetics regularly.
  4. Page Monitor: Receive a notification when something changes on a web page that is of interest to you so that you don't have to repeatedly check yourself.
  5. Safe Eyes: Perform regular eye exercises while working in front of the computer screen.
  6. Chrome Custom Search Engine: Directly search a website by typing in a specific keyword as the URL.
  7. FZF: Press
View README.md
View fedora_flatpak_update.sh
#/bin/sh
echo "Ready to check for Fedora updates?"
select yn in "Yes" "No"; do
case $yn in
Yes ) sudo dnf upgrade --refresh --best --allowerasing; break;;
No ) exit;;
esac
done
View README.md

https://orzanna.de


Hacks

  • Learn mouse and keyboard shortcuts
  • Automate workflows
  • Unsubscribe from noisy emails
  • Keep your email inbox empty
View decrease-brightness.desktop
# ~/.local/share/applications/decrease-brightness.desktop
[Desktop Entry]
Version=1.1
Type=Application
Name=Decrease brightness
Icon=~/.icons/decrease-brightness.png
Exec=gdbus call --session --dest org.gnome.SettingsDaemon.Power --object-path /org/gnome/SettingsDaemon/Power --method org.gnome.SettingsDaemon.Power.Screen.StepDown
Actions=
View gist:6910cf3a86e9a114255464b552d9f4cd
function enable() {
aggregateMenu = Main.panel.statusArea.aggregateMenu;
if (aggregateMenu.hasOwnProperty('_volume') && aggregateMenu._volume instanceof PanelMenu.SystemIndicator) {
volumeIndicator = aggregateMenu._volume;
_onVolumeIndicatorScrollEventId = volumeIndicator.indicators.connect('scroll-event', _onVolumeIndicatorScroll);
_onVolumeIndicatorClickEventId = volumeIndicator.indicators.connect('button-press-event', _onVolumeIndicatorClick);
_onAggregateMenuEnterEventId = aggregateMenu.menu.actor.connect('enter-event', _onAggregateMenuEnter);
_onAggregateMenuLeaveEventId = aggregateMenu.menu.actor.connect('leave-event', _onAggregateMenuLeave);
_onAggregateMenuClickEventId = aggregateMenu.actor.connect('button-press-event', _onAggregateMenuClick);