Skip to content

Instantly share code, notes, and snippets.

View tjuberg's full-sized avatar

Thomas Juberg tjuberg

  • Bane NOR SF
  • Trondheim, Norway
  • 21:29 (UTC +01:00)
View GitHub Profile

Using Other Window Managers with Plasma 5.21 and systemd Startup

KDE Plasma on X offers the option to use a differnt window manager than the default KWin. This way one can use many of the integrations KDE offers, but with for example the i3 window manager to have proper tiling support. This only works on X, not on Wayland.

With Plasma 5.21 it is now possible to "boot" KDE using systemd user services; that is, KDE Plasma provides a bunch of unit files that get started atfer you login in your graphical user session. Inidividual components, such as KWin, have individual unit files, and dependencies are specified using the usual systemd relationships between units. Among other things this allows for better ressource control using automatically created CGroups.

More details here: https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/47

Sadly this breaks the way one could change the window manager, that was used until now. I noticed af

@tjuberg
tjuberg / qip_provision_ip.py
Created March 3, 2020 21:20 — forked from ryancurrah/qip_provision_ip.py
Allocate an IP Address using VitalQIP SOAP API
#!/usr/bin/env python
import argparse
import re
import uuid
import sys
from xml.dom import minidom
from xml.parsers.expat import ExpatError
try:

Keybase proof

I hereby claim:

  • I am tjuberg on github.
  • I am tjuberg (https://keybase.io/tjuberg) on keybase.
  • I have a public key whose fingerprint is FFE7 2ABB C8E8 E651 009C 3188 097E EE16 30DD 6113

To claim this, I am signing this object:

@tjuberg
tjuberg / Ergodox-ez-configurator-characters-map-norwegian-qwerty.txt
Created December 20, 2018 23:29
Keyboard map for the Ergodox ez to create the various non 0-9,a-z characters for the norwegian qwerty keymap.
Created using the instructions here: https://git.io/vxWH1
+ <- -
\ <- =
å <- [
¨ <- ]
' <- \
ø <- ;
æ <- '
, <- ,
@tjuberg
tjuberg / sorted_json.rb
Created January 18, 2018 12:38 — forked from halkeye/sorted_json.rb
Puppet module for outputting json in a sorted consistent way
#
# sorted_json.rb
# Puppet module for outputting json in a sorted consistent way. I use it for creating config files with puppet
require 'json'
def sorted_json(json)
if (json.kind_of? String)
return json.to_json
elsif (json.kind_of? Array)
@tjuberg
tjuberg / alacritty.spec
Created October 13, 2017 08:38 — forked from poppyschmo/alacritty.spec
Fedora RPM spec for alacritty
Name: alacritty
Summary: A cross-platform, GPU enhanced terminal emulator
License: ASL 2.0
Release: 2%{?dist}
%define git_owner jwilm
%define git_url https://github.com/%{git_owner}/%{name}
URL: %{git_url}
@tjuberg
tjuberg / tweet_dumper.py
Created February 23, 2017 19:18 — forked from gabrielsoule/tweet_dumper.py
Updated version of yanofsky/5436496
import tweepy #https://github.com/tweepy/tweepy
import csv
#Twitter API credentials
consumer_key = ""
consumer_secret = ""
access_key = ""
access_secret = ""
@tjuberg
tjuberg / ansible-aur-pkg-installer.md
Last active February 16, 2017 11:05
download, build, and install aur packages with ansible
@tjuberg
tjuberg / reclaimWindows10.ps1
Created January 8, 2017 02:40 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1
@tjuberg
tjuberg / i3-autoname-workspaces.py
Created April 27, 2016 11:19 — forked from justbuchanan/readme.md
Show icons for open programs in i3's status bar. See a demo here: http://gfycat.com/AfraidAmusingCoyote
#!/usr/bin/env python3
# This script listens for i3 events and updates workspace names to show icons
# for running programs. It contains icons for a few programs, but more can
# easily be added by inserting them into WINDOW_ICONS below.
#
# Dependencies
# * xorg-xprop - install through system package manager
# * i3ipc - install with pip