Skip to content

Instantly share code, notes, and snippets.

View imabuddha's full-sized avatar
👨‍💻
Looking for work

John Mifsud imabuddha

👨‍💻
Looking for work
View GitHub Profile
@imabuddha
imabuddha / lightdm.conf
Last active January 14, 2021 12:56
Login Greeter & Session Cleanup — file location: /etc/lightdm/
#
# General configuration
#
# start-default-seat = True to always start one seat if none are defined in the configuration
# greeter-user = User to run greeter as
# minimum-display-number = Minimum display number to use for X servers
# minimum-vt = First VT to run displays on
# lock-memory = True to prevent memory from being paged to disk
# user-authority-in-system-dir = True if session authority should be in the system location
# guest-account-script = Script to be run to setup guest account
@imabuddha
imabuddha / starship.toml
Last active January 13, 2021 07:48
Starship prompt config, place in ~/.config
# Don't print a new line at the start of the prompt
add_newline = false
# Wait milliseconds for starship to check files under the current dir (default: 30)
scan_timeout = 10
[line_break]
disabled = true
[battery]
Setting up the Compose key: In cmd line version of raspi-config, go to the configure_keyboard section.
See https://help.ubuntu.com/community/GtkComposeTable for how to use it.
Favs:
.= ⇒ •
.. ⇒ …
y= ⇒ ¥
--- ⇒ — (em)
--. ⇒ – (en)
-> ⇒ →
@imabuddha
imabuddha / lxde-pi-rc.xml
Last active January 10, 2021 05:55
[Raspberry Pi] — File in .config/openbox/ Lots of changes to hotkeys for: screen grab dir, file manager, browser, htop, DeaDBeeF, splatmoji, lock screen, vs code, pulseaudio volume, etc.
<?xml version="1.0" encoding="UTF-8"?>
<openbox_config xmlns="http://openbox.org/3.4/rc">
<resistance>
<strength>10</strength>
<screen_edge_strength>20</screen_edge_strength>
</resistance>
<focus>
<focusNew>yes</focusNew>
<!-- always try to focus new windows when they appear. other rules do
apply -->
@imabuddha
imabuddha / touchegg.conf
Last active January 10, 2021 05:47
Touchegg trackpad gestures config file: /home/pi/.config/touchegg/touchegg.conf
<touchégg>
<settings>
<!--
Delay, in milliseconds, since the gesture starts before the animation is displayed.
Default: 150ms if this property is not set.
Example: Use the MAXIMIZE_RESTORE_WINDOW action. You will notice that no animation is
displayed if you complete the action quick enough. This property configures that time.
-->
<property name="animation_delay">150</property>
@imabuddha
imabuddha / - README.md
Last active January 9, 2021 06:44
Deal with pulseaudio's crazy output volume

How to deal with pulseaudio's crazy output volume

Best method

TIL from the wonderful ArchWiki that one can specify @DEFAULT_SINK@ as the sink number as follows:

pactl set-sink-mute @DEFAULT_SINK@ toggle

pactl set-sink-volume @DEFAULT_SINK@ +1%
@imabuddha
imabuddha / - README.md
Created January 9, 2021 06:12
regarding system keychain not unlocking automatically

Regarding system keychain not always unlocking automatically upon login/screen unlock

This might be due to pkg accountsservice not being installed. Messages like the following were appearing in /var/log/messages:

lightdm[3572]: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files

List of all the file extensions known to xarchiver

.7z;.a;.deb;.arj;.bz2;.Z;.cpio;.gz;.lzh;.lrz;.lz4;.lz;.lzma;.lzo;.rar;.rpm;.tar;.xz;.zip;.apk;.cbz;.epub;.jar;.oxt;.xpi;.zst

@imabuddha
imabuddha / - README.md
Last active January 8, 2021 14:45
A simple calendar & multiple timezone display app for Linux

gsimplecal

  1. Install the pkg if necessary. sudo apt install gsimplecal
  2. Add the config file to ~/.config/gsimplecal/ (create the dir)
  3. Customize the config file as desired. It's set for my current needs. See man gsimplecal

Enjoy!

NOTES:

@imabuddha
imabuddha / - saneLocale.md
Last active January 8, 2021 08:05
Configure linux locale for US English but metric units & Monday as first week day.

Sane linux locale

Configure linux locale for US English but metric units & Monday as first week day.

  1. edit (as root) the locale file at /etc/default/locale as shown below.
  2. Edit /etc/locale.gen as root. (example below) If it does not exist, create it.
  3. Run /usr/sbin/locale-gen as root.

You might also want to add export LC_COLLATE="C" to ~/.bashrc to make dotfiles appear first in ls.