Skip to content

Instantly share code, notes, and snippets.

@01micko
01micko / wly_colpick
Created May 13, 2024 11:23
Yad GUI to fetch the color anywhere on screen in a wayland session, at least wlroots anyway.
#!/usr/bin/env bash
# (c) Copyright 2024 Mick Amadio <01micko@gmail.com> GPL3
# requires yad, sed, grep, dc, ppmtoxpm, grim, slurp
# simple hex to decimal conversion
find_color() {
printf "%d" "0x${1}"
}
@01micko
01micko / wwals
Created October 20, 2021 11:57
wwals - bash script to change backgrounds in a wlroots wayland compositor
#!/bin/bash
# wayland wallpapers - 'wwals'
# choose a wallpaper
# (c) Michael Amadio (@01micko) 2021 GPL (/usr/share/doc/legal)
# this changes walls for wayland wlroots compositors
# requires 'swaybg', 'wlr-randr', 'gtkdialog', 'bash'
# thanks to @johanmalm for testing and input
@01micko
01micko / latest-chrome.sh
Created December 26, 2016 01:44 — forked from ruario/latest-chrome.sh
This script will find the latest Google Chrome binary package, download it and repackage it into Slackware format.
#!/bin/bash
# latest-chrome Version 1.3.3
# This script will find the latest Google Chrome binary package,
# download it and repackage it into Slackware format.
# I don't use Chrome for regular browsing but it is handy for
# comparative tests against Vivaldi. :P
# Copyright 2016 Ruari Oedegaard, Oslo, Norway