Skip to content

Instantly share code, notes, and snippets.

View T31337's full-sized avatar

Trenton T31337

  • 1337 Software
  • In The Interwebz, For All To See And Access Equally
View GitHub Profile
@T31337
T31337 / fix-yakuake-focus.sh
Created July 26, 2024 01:02
Script To Fix YAKUAKE Focus Issue Under Wayland
#!/bin/bash
#yakuake wayland focus fix
#Copy The Global Yakuake Config To Local
cp /usr/share/applications/org.kde.yakuake.desktop ~/.local/share/applications/
#Make Needed Adjustments To The Config
sed -i -e "s/'Exec=yakuake'/'Exec=env QT_QPA_PLATFORM=xcb yakuake'/g" ~/.local/share/applications/org.kde.yakuake.desktop
#DONE!
echo -e "\e[35mYakuake Focus Should Now Be Working Under Wayland!\e[0m"
#May Or May Not Be Needed Afterwards?
@T31337
T31337 / switch-input-method.py
Created November 15, 2024 23:45
python script to switch to next avaiable keyboard input method
#!/usr/bin/env python
import subprocess
import json
def ex(cmd):
return subprocess.getoutput(cmd)
engineList = ex('ibus read-config | grep preload-engines | sed "s/preload-engines://g; s/\'/\\"/g"')
engineList = json.loads(engineList)
@T31337
T31337 / pyList.py
Last active December 28, 2024 02:43
Simple Python List App Using PySide6
#Simple List In Python Using Pyside6 GUI Library
import sys
import os
from PySide6.QtWidgets import QApplication, QWidget, QPushButton, QLineEdit, QListWidget, QMessageBox, QFileDialog, QMenu, QSystemTrayIcon
from PySide6.QtCore import Qt, QSize, QFile, QTextStream
from PySide6.QtGui import QPixmap, QIcon
import myResources
class PyListApp(QWidget):
@T31337
T31337 / pyg.py
Created January 31, 2025 21:06
Kivy Pyg Game
import random
import sys
import kivy
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.button import Button
from kivy.uix.label import Label
from kivy.uix.popup import Popup
class PigGame: