Skip to content

Instantly share code, notes, and snippets.

@slinkyvagabond
slinkyvagabond / YPBConky.rc
Created October 12, 2020 14:34
Current Conky rc, designed for primarily AMD processors/gfx cards
##Juddly's Custom Conky##
conky.config = {
alignment = 'top_left',
use_xft = true,
xftalpha = 0.8,
font = 'Noto:normal:size=8',
text_buffer_size = 2048,
update_interval = 0.5,
total_run_times = 0,
background = true,
@Blaradox
Blaradox / brightnessControl.sh
Created September 23, 2018 03:47
Notifications for brightness and volume, using dunstify
#!/usr/bin/env bash
# You can call this script like this:
# $ ./brightnessControl.sh up
# $ ./brightnessControl.sh down
# Script inspired by these wonderful people:
# https://github.com/dastorm/volume-notification-dunst/blob/master/volume.sh
# https://gist.github.com/sebastiencs/5d7227f388d93374cebdf72e783fbd6a
@meskarune
meskarune / cal.lua
Last active February 11, 2024 18:57
conky calendar and weather
#!/usr/bin/env lua
conky_color = "${color1}%2d${color}"
t = os.date('*t', os.time())
year, month, currentday = t.year, t.month, t.day
daystart = os.date("*t",os.time{year=year,month=month,day=01}).wday
month_name = os.date("%B")
@anton-christensen
anton-christensen / polyhedra.conky
Created April 20, 2018 23:45
Polyhedra conky script
conky.config = {
_update_interval=0.03,
update_interval=0.075,
background=false,
text_buffer_size=2048,
double_buffer=true,
no_buffers=true,
use_xft=true,
font='Inconsolata',
draw_shades=false,
@jakewtaylor
jakewtaylor / readme.md
Last active January 6, 2024 23:29
VS Code CSS addition to increase readability on file tree.

Increases indentation on the file tree and adds some lines to each directory/file.

Works 15 levels deep, but you can expand it by just adding more of each line thats repeating, i.e.:

  • add another box shadow
    • (n*-20px) 0 0 0 rgba(255, 255, 255, 0.4)
  • add another padding-left
    • .monaco-tree-row[aria-level="n"] { padding-left: ((n-1)*20)px; }
  • add another :before & :after with left positioning
    • .monaco-tree-row[aria-level="n"]:before { left: (((n-1)*20)-9)px; }
  • .monaco-tree-row[aria-level="n"]:after { left: (((n-1)*20)-9)px; }
# Conky, a system monitor, based on torsmo
#
# Any original torsmo code is licensed under the BSD license
#
# All code written since the fork of torsmo is licensed under the GPL
#
# Please see COPYING for details
#
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
@subfuzion
subfuzion / README.md
Last active April 11, 2024 14:52
vim/neovim configuration

I recently switched over to neovim (see my screenshots at the bottom). Below is my updated config file.

It's currently synchronized with my .vimrc config except for a block of neovim-specific terminal key mappings.

This is still a work in progress (everyone's own config is always a labor of love), but I'm already extremely pleased with how well this is working for me with neovim. While terminal mode isn't enough to make me stop using tmux, it is quite good and I like having it since it simplifies my documentation workflow for yanking terminal output to paste in a markdown buffer.

These days I primarily develop in Go. I'm super thrilled and grateful for fatih/vim-go,

@Birchwell
Birchwell / convert-image.sh
Created October 18, 2015 00:31
Convert images to many formats. Quality can be set. The converted images will be placed in a separate folder and the originals will be intact. Zenity must be installed.
#! /bin/sh
# Increment and count the number of files passed to the script
# for later use in the progress dialog box
n=1
# Ask for the destination graphic image format to change to
# Next line is entered all on one line
EXT=`zenity --title="Convert Image" --entry --text="Please
enter the image format to convert to (e.g. PNG, JPG, TIFF, WEBP etc.)"`
@afarah1
afarah1 / mplayerp
Last active September 17, 2018 19:29
mplayerp - Use mplayer+bash as a full-featured media player
#!/bin/bash
#
# mplayerp - Use mplayer+bash as a full-featured music player
#
# Starts mplayer in slave mode listening to commands from a fifo and reading
# media from a playlist file. There are some extras to make it pleasent to use.
#
# Syntax: mplayerp [OPTIONS] [ACTION | DIR]
#
# Options:
#!/bin/sh
#
# cmus-status-display
#
# Usage:
# in cmus command ":set status_display_program=cmus-status-display"
#
# This scripts is executed by cmus when status changes:
# cmus-status-display key1 val1 key2 val2 ...
#