This is an example set of scripts that allow me to always have weather forecast at my waybar.
Each script can be used on its own, but together they are great.
- NetworkManager for WIFI AP scanning
- Google Geolocation API key
- OpenWeatherMap API key
/////////////////////////////////////////////////////////////////////////////////////////////////// | |
// ПАРАГРАФ НИЖЕ ОБЯЗАТЕЛЕН К ПРОЧТЕНИЮ! | |
// Данные настройки НЕ уникальны, НЕ универсальны, НЕ подходят для слишком старых | |
// компьютеров (без осознанной шлифовки по себя). Ими НЕ стоит пользоваться, если вы не уверены в | |
// своих силах и не желаете тратить время на какие-либо эксперименты. Основная цель данного | |
// маленького проекта - это сбор всех интересных настроек с описаниями в одном месте, чтобы каждый | |
// мог настроить Firefox под свои собственные требования | |
/////////////////////////////////////////////////////////////////////////////////////////////////// | |
// Данный USER.JS создан Sergey Twersky для портала COMSS.ru | |
// Распространяется под лицензией CC BY-NC-SA -> https://creativecommons.org/licenses/by-nc-sa/3.0/ |
This is an example set of scripts that allow me to always have weather forecast at my waybar.
Each script can be used on its own, but together they are great.
"custom/weather": { | |
"format": "{}", | |
"tooltip": true, | |
"interval": 3600, | |
"exec": "waybar-wttr.py", | |
"return-type": "json" | |
}, |
#EXTM3U | |
#EXTINF:-1,Digitally Imported - Ambient | |
http://pub1.diforfree.org:8000/di_ambient_hi | |
#EXTINF:-1,Digitally Imported - Big Room House | |
http://pub1.diforfree.org:8000/di_bigroomhouse_hi | |
#EXTINF:-1,Digitally Imported - Breaks | |
http://pub1.diforfree.org:8000/di_breaks_hi |
[Trigger] | |
Operation = Install | |
Operation = Upgrade | |
Operation = Remove | |
Type = Package | |
Target = * | |
[Action] | |
Description = Searching for orphaned packages... | |
When = PostTransaction |
#!/usr/bin/env python3 | |
""" | |
pacman-upgrades-graph.py: a script to visualize the most-upgraded packages on an pacman-based system. | |
""" | |
import argparse, os, re, shutil, subprocess, sys | |
parser = argparse.ArgumentParser() | |
parser.add_argument('-w', '--width', type=int, default=-1, | |
help='Max total width of graph. Defaults to terminal size, ' + |
Install the dependencies for the archiso
package:
(root): pacman -S make squashfs-tools libisoburn dosfstools patch lynx devtools git
I recommend archiso
getting them from git, there is a package in the repositories, however, at this time of writing, it will not work with the instructions below.
So, grab the most recent version from git and install it:
(user): git clone git://projects.archlinux.org/archiso.git && cd archiso
#!/usr/bin/env bash | |
# | |
# Use rofi to select an entry from gpaste | |
# | |
# Requirements: | |
# rofi, gpaste | |
# | |
line=`gpaste-client --oneline | rofi -dmenu -i -p gpaste: $@` | |
index=`echo $line | cut -d ':' -f1` |
#!/bin/bash | |
## chose a provider from; | |
# less /usr/share/dnscrypt-proxy/dnscrypt-resolvers.csv | |
sudo pacman -Sy --noconfirm dnscrypt-proxy dnsmasq dnsutils | |
cat <<-'EOF' | sudo SYSTEMD_EDITOR=tee systemctl edit dnscrypt-proxy.service | |
[Service] | |
ExecStart= |