Skip to content

Instantly share code, notes, and snippets.

@luixal
luixal / Mushroom_Input_Countdown.md
Last active September 20, 2024 18:15
Home Assistant cards configuration

Mushroom Countdown with Input Hours

This card shows an hours input card while charger is off and a countdown when charger is running for the hours selected.

There's another version that adds a simple scheduling feature in top of this here.

Screeenshots

image

image

@slarwise
slarwise / init.vim
Last active June 12, 2023 10:01
Navigate vim splits in kitty terminal and other windows with the same skhd keybinds. Window manager yabai.
" The (neo)vim function that takes care of navigation within vim.
" Same concept as vim-tmux-navigator. If we navigate in the wanted
" direction and the winnr() hasn't changed, then we are at the edge
" and should forward the navigation to the window manager.
function! NvimYabaiNavigate(yabai_direction, vim_direction)
let win_nr_before = winnr()
execute("wincmd " . a:vim_direction)
if win_nr_before ==# winnr()
call system("yabai -m window --focus " . a:yabai_direction)
@jeetsukumaran
jeetsukumaran / Open New MacVim Buffer.scpt
Last active August 3, 2019 11:19
AppleScript to open a new MacVim buffer.
on run
tell application "System Events"
set currProcs to (name of processes)
set MacVimRunning to (currProcs contains "MacVim")
if not MacVimRunning then
tell application "MacVim" to activate
end if
tell process "MacVim"
click menu item "New Window" of menu "File" of menu bar 1
set visible to true
@agnoster
agnoster / README.md
Last active September 25, 2024 09:27
My ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark