- Clean pkg cache
- Remove unused packages (orphans)
- Clean cache in /home
- remove old config files
- Find and Remove
- duplicates
- empty files
- empty directories
- broken symlinks
# .bashrc | |
# If not running interactively, don't do anything | |
[[ $- != *i* ]] && return | |
eval "$(starship init bash)" | |
# Awesome Alias | |
## System commands | |
alias _='sudo' | |
alias ls='ls --color=auto' |
#!/bin/sh -ux | |
# This is a small script to setup the PulseAudio equalizer as a desktop | |
# application that runs just when the 'qpaeq' GUI is open. | |
# This is free and unencumbered software released into the public domain. | |
# | |
# Anyone is free to copy, modify, publish, use, compile, sell, or distribute | |
# this software, either in source code form or as a compiled binary, for any | |
# purpose, commercial or non-commercial, and by any means. |
More info can be found at, https://docs.microsoft.com/en-us/dotnet/api/system.environment.specialfolder?view=netframework-4.7.2
// C:\ProgramData\
var path1 = System.Environment.GetFolderPath(System.Environment.SpecialFolder.CommonApplicationData);
// C:\Users\USERNAME\AppData\Roaming
var path2 = System.Environment.GetFolderPath(System.Environment.SpecialFolder.ApplicationData);
How to export (backup), reset to defaults and import (restore) the configuration of a gnome extension. | |
// prints the whole config to a file | |
dconf dump /org/gnome/shell/extensions/<extension-name>/ > ~/<backupfile> | |
// Resets the config to defaults (might wanna check first if the dump was a succes by opening the file) | |
dconf reset -f /org/gnome/shell/extensions/<extension-name>/ | |
// Loads configuration from a file into your gnome-shell | |
dconf load /org/gnome/shell/extensions/<extension-name>/ < ~/<backupfile> | |
From what I can tell a good way to determine <extension-name> is from its url at https://extensions.gnome.org | |
However its better to be safe and launch dconf editor , browse to /org/gnome/shell/extensions/ and check the name. |
How to configure pam_kwallet
to auto-unlock the default kwallet5
"kdewallet" from sddm
login credentials on openSUSE Leap 42.3 KDE Plasma5
Note: Many other guides & posts were attempted before creating this, however they either no longer work or are ugly hacks which don't follow SUSE's odd pam.d layouts. Essentially, this solution boils down to this: pam_kwallet needs to be loaded from it's own substack just like pam_gnome_keyring already is configured to do so, so new substacks were created based on the gnome_keyring ones so that they could be added to sddm. I'm unsure how both gnome_keyring and kwallet behave if both are loaded from the same substack so I kept them in separate stacks. This was tested with only kwallet5 installed but it should also optionally load the old kwallet4 if it's present. My understanding of PAM is limited, so I'm open to suggestions, but this seemed like the cleanest solution which doesn't get overwritten on updates, though it should probably be globally registered as a
#!/bin/dash -e | |
# vim:ts=2 sw=2 sts=2 expandtab: | |
# How long to wait for an opened index to become green | |
TIMEOUT=3600 | |
DELAY=5 | |
say() { | |
echo | |
echo "\033[32m===> \033[1;37m${1}\033[0m" |