Make sure you have installed the following commands:
- swaymsg
- jq
- slurp
- awk
#!/bin/bash | |
# Controls a dropdown terminal for use in i3wm | |
DISPLAY_WIDTH=1920 | |
DISPLAY_HEIGHT=1080 # May be usefull... | |
TERMINAL_WIDTH=900 | |
TERMINAL_HEIGHT=400 | |
TERMINAL_X=$(( (DISPLAY_WIDTH - TERMINAL_WIDTH)/2 )) | |
TERMINAL_Y=500 |
{ | |
"$schema": "/etc/xdg/swaync/configSchema.json", | |
"positionX": "right", | |
"positionY": "top", | |
"control-center-margin-top": 2, | |
"control-center-margin-bottom": 2, | |
"control-center-margin-right": 1, | |
"control-center-margin-left": 0, | |
"notification-icon-size": 48, | |
"notification-body-image-height": 160, |
تنظیمات فونت در لینوکس بر عهده برنامه fontconfig میباشد. این برنامه فونتهای سیستم را بر اساس الویت بندیهایی که قابل تنظیم میباشد مرتب میکند و در اختیار سایر برنامه ها قرار می دهد. مشکل اصلی که اکثر کاربران فارسی زبان لینوکس در ارتباط با fontconfig دارند عدم نمایش صحیح حروف فارسی می باشد که معمولا به دو دلیل زیر اتفاق میافتد:
import json | |
import time | |
import logging | |
import telepot | |
import telepot.loop | |
thisbot_token = 'YOUR-BOT-TOKEN' |
# change application name here (executable output name) | |
TARGET=kernel | |
LINKERSCRIPT=link.ld | |
# compiler | |
CC=gcc | |
ASM=nasm | |
QEMU=qemu-system-i386 -kernel | |
LD=ld |
# compiler | |
CC=clang++ | |
# linker | |
LD=$(CC) | |
# optimisation | |
OPT=-ggdb | |
# warnings | |
WARN=-Wall -Wextra | |
# standards | |
STD=c++14 |
#!/usr/bin/env python3 | |
# -*-coding:utf-8-*- | |
# usage: | |
# ./Watchdog.py <subfile> <commands> | |
# This script takes a <subfile> file and a list of <commands> which it immediately | |
# executes in a subprocess. | |
# It kills the subprocess and relaunches it whenever the file changes. | |
# |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# | |
# Simple Bot to reply to Telegram messages. This is built on the API wrapper, see | |
# echobot2.py to see the same example built on the telegram.ext bot framework. | |
# This program is dedicated to the public domain under the CC0 license. | |
import logging | |
import telegram | |
from telegram.error import NetworkError, Unauthorized | |
from time import sleep |