Twise Random

A site about computer science .
Skip to content
  • apple
  • android
  • c
  • cpp
  • data structure and algorithms
  • macos
  • python
  • tutorials

Category: unix

xprop a tutorial

Posted on July 12, 2021July 12, 2021 by mohamad wael

 

Let us start by defining what is xprop. xprop is simply a tool, to query, set, and remove the properties of an X11 window .

Additionally, using xprop, you can query X11 core fonts attributes, so you … Read More

tools bsd, linux, x11, X11 properties, xprop

What is a property in X11?

Posted on July 10, 2021July 12, 2021 by mohamad wael

 

In X11, a property simply has a name, a type, a format, a value, and is associated with a window.

There is a set of functions, provided by X11, which allows manipulating a property, and they … Read More

X11 bsd, linux, PropertyNotify, tutorial, x11, XChangeProperty, XDeleteProperty, XGetWindowProperty, XListProperties, XPropertyEvent, XRotateWindowProperties, XSelectInput

What is an atom in X11?

Posted on July 7, 2021July 9, 2021 by mohamad wael

 

An atom in X11, is of type Atom, which is defined in the <X11/Xatom.h header, as :

typedef unsigned long Atom;		/* Also in Xdefs.h */

An atom is 32 bits, the reason, that long was chosen, … Read More

X11 linux, tutorial, XGetAtomName, XGetAtomNames, XInternAtom, XInternAtoms

X11 fonts a tutorial

Posted on July 5, 2021July 5, 2021 by mohamad wael

 

In X11, you can use multiple font systems, practically there is the X11 core font system , core as in being part of the core protocol, and there is a newer font system, called the xft font … Read More

unix fonts, linux, x11

xset a tutorial

Posted on June 30, 2021June 30, 2021 by mohamad wael

 

xset is a tool, which allows specifying certain configuration, for the X11 server. Mainly these configuration, are related to hardware, that the X11 server interacts with, so the keyboard, the mouse, the display, this being said, the display power … Read More

unix tutorial, x11

Command line editing keyboard shortcuts

Posted on November 9, 2020 by mohamad wael

The command line , is the place where you type in your commands , to be interpreted and executed by the shell .

The command line is located just after the shell prompt , which usually has the format: username@host:currentWorkingDirectory$… Read More

unix command, command line, command line shortcuts

How to add global hotkeys to SMPlayer ?

Posted on September 26, 2020 by mohamad wael

To add global keyboard shortcuts for SMPlayer , like to toggle playing on or off , this can be done like this .

First install SMPlayer :

$ pkg install smplayer
# run as root under freebsd .

$ apt-get 
… Read More
unix Debian, freebsd, smplayer