Skip to content

Instantly share code, notes, and snippets.

View lucsoft's full-sized avatar
:shipit:

lucsoft lucsoft

:shipit:
View GitHub Profile
@lucsoft
lucsoft / GnomeNested.sh
Last active January 8, 2024 22:52 — forked from davidedmundson/PlasmaNested.sh
Run plasma from within gamescope
#!/bin/sh
# Remove the performance overlay, it meddles with some tasks
unset LD_PRELOAD
# Fetch Resolution
RES=$(xdpyinfo | awk '/dimensions/{print $2}')
# Apply Resolution in env and start a new nested gnome with a new dbus
env MUTTER_DEBUG_DUMMY_MODE_SPECS=$RES dbus-run-session -- gnome-shell --wayland --nested
@lucsoft
lucsoft / hexToString.js
Created March 13, 2020 08:31
hex to string in JS
function hexToString (hex) {
var string = '';
for (let i = 0; i < hex.length; i += 2) {
string += String.fromCharCode(parseInt(hex.substr(i, 2), 16));
}
return string;
}