Skip to content

Instantly share code, notes, and snippets.

sudo dnf install --best -y --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm &&sudo dnf install smplayer -y
import dbus
import gi
from gi.repository import GLib
from dbus.mainloop.glib import DBusGMainLoop
import sys
DBusGMainLoop(set_as_default=True)
loop = GLib.MainLoop()
if len(sys.argv)>1:
# Check if Broadway In Supported GDK backends
GDK_BACKEND=help gedit
# run Listening
broadwayd -a 0.0.0.0 -p 8080 :5
#run gedit
GDK_BACKEND=broadway BROADWAY_DISPLAY=:5 gedit
# In browser (Firefox)
@yucefsourani
yucefsourani / gnome_wayland_bind_global_shortcut.py
Created March 30, 2019 15:24
Global Shortcut On Gnome 3.32 Wayland (Fedora 30)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
#
# Copyright 2019 youcef sourani <youssef.m.sourani@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#!/usr/bin/python3
# -*- coding: utf-8 -*-
#
# makebootableflash.py
#
# Copyright 2018 youcef sourani <youssef.m.sourani@gmail.com>
import sys
import os
import time
#!/usr/bin/python3
# -*- coding: utf-8 -*-
#
# Require python3-psutil
#
import os
import psutil
import time
import sys
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from PyQt5.QtGui import QColor
import dbus
def kde_colorpicker_pick():
bus = dbus.SessionBus()
ob = bus.get_object("org.kde.KWin","/ColorPicker")
itf = dbus.Interface(ob,"org.kde.kwin.ColorPicker")
try:
sudo rm -rf /usr/share/themes/{Adapta,Adapta-Eta,Adapta-Nokto,Adapta-Nokto-Eta}
rm -rf ~/.local/share/themes/{Adapta,Adapta-Eta,Adapta-Nokto,Adapta-Nokto-Eta}
rm -rf ~/.themes/{Adapta,Adapta-Eta,Adapta-Nokto,Adapta-Nokto-Eta}
sudo dnf install autoconf automake inkscape gdk-pixbuf2-devel glib2-devel libsass libxml2 pkgconfig sassc parallel
cd && git clone https://github.com/adapta-project/adapta-gtk-theme
sudo dnf install --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install ffmpeg ffmpeg-libs compat-ffmpeg28
Name: gvrecord
Version: 0.3
Release: 2%{?dist}
Summary: Simple Tool To Record Gnome Shell Screen
BuildArch: noarch
License: GPLv3
URL: https://arfedora.blogspot.com
Source0: https://github.com/yucefsourani/gvrecord/archive/%{version}.tar.gz
BuildRequires: python3-rpm-macros
Requires: python3