Skip to content

Instantly share code, notes, and snippets.

# `agreety` is the bundled agetty/login-lookalike. You can replace `/bin/sh`
# with whatever you want started, such as `sway`.
command = "tuigreet"
#command = "/usr/bin/noctalia-greeter-session -- --session niri"
/* -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- */
polkit.addRule(function(action, subject) {
if (subject.isInGroup("wheel")) {
// Elogind
if (action.id.indexOf("org.freedesktop.login1.") === 0) {
return polkit.Result.YES;
}
// Network management
if (action.id.indexOf("org.freedesktop.NetworkManager.") === 0) {
sync
umount -a
mount -f / -o remount,ro
echo s >| /proc/sysrq-trigger
echo u >| /proc/sysrq-trigger
echo b >| /proc/sysrq-trigger
id = "plugins/uptime"
name = "Uptime"
version = "1.0.0"
plugin_api = 3
min_noctalia = "5.0.0"
author = "demm"
license = "MIT"
tags = [
"Bar",
"Desktop",
uptime.lua:
==========================
function init()
barWidget.setUpdateInterval(60000)
update()
end
function update()
read -r up _ < /proc/uptime; up=${up%.*}; echo \"up $((up/86400)) days $(((up%86400)/3600)):$(((up%3600)/60)):$((up%60))\"
@demmm
demmm / plasma.sh
Created May 10, 2026 11:25
plasma.sh
#!/bin/sh
export XDG_SESSION_TYPE=wayland
export XDG_CURRENT_DESKTOP=KDE
export LIBSEAT_BACKEND=seatd
export XDG_VTNR=1
export XDG_SEAT=seat0
export KWIN_DRM_DEVICES=/dev/dri/card0
#sleep 0.5
-- Logs begin at Mon 2018-04-02 22:35:33 CEST, end at Tue 2018-04-03 00:12:39 CEST. --
apr 03 00:11:42 sdc50 pulseaudio[760]: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
## Please edit the paths and kernel parameters according to your system.
title KaOS 2015.08 GNU/Linux, with Linux-Next kernel
linux /vmlinuz-linux-next
initrd /initramfs-linux-next.img
options root=UUID=b8fcdcbd-f596-4ab6-b6b3-fba0979f1db4 quiet systemd.show_status=0 resume=UUID=69a32168-6a9f-4f5e-9929-78412a18ba27 rw iommu=soft ipv6.autoconf=0 ipv6.disable=1 ipv6.disable_ipv6=1
pkgname=elisa
pkgver=0.0.1
_commit=b2db72cb8d1c1803eba1ce507bf504589bbb5587
pkgrel=1
arch=('x86_64')
pkgdesc="Music Player"
url="https://github.com/KDE/elisa"
license=('GPL')
depends=('ki18n' 'kdeclarative' 'kcoreaddons' 'baloo' 'kfilemetadata' 'kxmlgui'