Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| #!/bin/sh | |
| # SPDX-FileCopyrightText: 2017-2024 SanderTheDragon <[email protected]> | |
| # | |
| # SPDX-License-Identifier: MIT | |
| arch=$(dpkg --print-architecture) | |
| echo "Detected architecture: $arch" | |
| case "$arch" in |
| #!/usr/bin/env python | |
| import dbus | |
| import dbus.service | |
| class FakeScreenSaver(dbus.service.Object): | |
| def __init__(self): | |
| self.session_bus = dbus.SessionBus() | |
| name = dbus.service.BusName('org.freedesktop.ScreenSaver', bus=self.session_bus) | |
| dbus.service.Object.__init__(self, name, '/org/freedesktop/ScreenSaver') |
| #!python3.5 | |
| # Prerequisites : | |
| # 1.SetUp dropbox sdk to be able to use Dropbox Api's | |
| # $ sudo pip install dropbox | |
| # By default python dropbox sdk is based upon the python 3.5 | |
| # | |
| # 2. Create an App on dropbox console (https://www.dropbox.com/developers/apps) which will be used and validated to do | |
| # the file upload and restore using dropbox api. Mostly you need an access token to connect to Dropbox before actual file/folder operations. | |
| # |
| #!/bin/bash | |
| sudo apt-get install build-essential autotools-dev tcl8.5-dev tk8.5-dev | |
| cd $HOME | |
| mkdir build && cd build | |
| wget ftp://gadoid.ices.cmu.edu/pub/tkgate/pre-release/tkgate-2.0-b10.tar.gz | |
| tar xvzf tkgate-2.0-b10.tar.gz | |
| cd tkgate-2.0-b10/ | |
| ./configure | |
| make | |
| # Only if you want to install |