Skip to content

Instantly share code, notes, and snippets.

@lokesh-krishna
lokesh-krishna / config.json
Last active November 1, 2021 07:35 — forked from bjesus/README.md
Weather widget for waybar
"custom/weather": {
"format": "{}",
"tooltip": true,
"interval": 3600,
"exec": "waybar-wttr.py",
"return-type": "json"
},
@lokesh-krishna
lokesh-krishna / rang.sh
Last active October 5, 2021 03:38
rang.sh
#!/bin/sh
grim -g "$(slurp -p)" - > /tmp/pixel.png
magick /tmp/pixel.png -colors 1 txt: | tail -n 1 | awk '{print $3}' > /tmp/hex
magick convert /tmp/pixel.png -filter point -resize 96x96 -bordercolor '#303030' -border 5 /tmp/big-pixel.png
notify-send -i /tmp/big-pixel.png " rang" "The hex code is $(cat /tmp/hex)"
cat /tmp/hex | wl-copy -n
@lokesh-krishna
lokesh-krishna / tabc.sh
Created January 31, 2020 07:22 — forked from jpentland/tabc.sh
Add or remove windows from suckless' tabbed
#!/bin/sh
# Usage:
# tabc.sh <tabbed-id> <command>
# Commands:
# add <window-id> - Add window to tabbed
# remove <window-id> - Remove window from tabbed
# list - List all clients of tabbed
#
# Neofetch config file
# https://github.com/dylanaraps/neofetch
# See this wiki page for more info:
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
print_info() {
info title
info underline

Keybase proof

I hereby claim:

  • I am lokesh-krishna on github.
  • I am lokiskywalker (https://keybase.io/lokiskywalker) on keybase.
  • I have a public key whose fingerprint is 1538 7C70 42C5 C691 499F D4E7 7D88 F4B8 D093 666B

To claim this, I am signing this object: