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

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 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
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.

@imabuddha
imabuddha / config
Last active January 8, 2021 05:46
Put in: ~/.config/deadbeef/
ape.write_apev2 1
artwork.cache.period 48
artwork.cache_reset_time 1609588504
artwork.enable_albumartorg 1
artwork.enable_embedded 1
artwork.enable_lastfm 1
artwork.enable_localfolder 1
artwork.enable_musicbrainz 1
artwork.enable_wos 1
artwork.filemask *cover*.jpg;*front*.jpg;*folder*.jpg;*cover*.png;*front*.png;*folder*.png
@imabuddha
imabuddha / dunstrc
Last active January 8, 2021 05:47
Put in: ~/.config/dunst/ Configures the position, colors, font, timeouts, etc.
[global]
### Display ###
# Which monitor should the notifications be displayed on.
monitor = 0
# Display notification on focused monitor. Possible modes are:
# mouse: follow mouse pointer
# keyboard: follow window with keyboard focus
# none: don't follow anything
@imabuddha
imabuddha / org.freedesktop.Notifications.service
Created January 1, 2021 10:44
`sudo apt install notification-daemon` then copy this file into: `/usr/share/dbus-1/services/`
[D-BUS Service]
Name=org.freedesktop.Notifications
Exec=/usr/lib/notification-daemon/notification-daemon
@imabuddha
imabuddha / org.deadbeef.desktop
Created January 1, 2021 09:23
DeaDBeeF music player, put in: /usr/local/share/applications
[Desktop Entry]
Version=devel-jdm
Name=DeaDBeeF
Comment=Play your music collection
TryExec=deadbeef
Exec=deadbeef %U
Terminal=false
Type=Application
Icon=deadbeef
Categories=Qt;Audio;Music;Player;AudioVideo;
@imabuddha
imabuddha / us
Created December 28, 2020 06:54
Change Linux X11 US Colemak layout to make caps lock⇒control [Raspberry OS]
// file path: /usr/share/X11/xkb/symbols/us
// Change Linux X11 US Colemak layout to make capslock ⇒ control [Raspberry OS]
default partial alphanumeric_keys modifier_keys
xkb_symbols "basic" {
name[Group1]= "English (US)";
key <TLDE> { [ grave, asciitilde ] };
key <AE01> { [ 1, exclam ] };
@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>