Skip to content

Instantly share code, notes, and snippets.

@budRich
budRich / i3mtm
Last active September 2, 2017 21:46
toggle floating state and move window to mark selected from dmenu
#!/bin/bash
# i3mtm - move to mark
# ====================
# patchwork by: **budRich** 2017
#
# when launched without flags, i3mtm checks
# floating status of current window. If it is
# tiled, the window becomes floating.
# if it is floating, a search for marks is done
@budRich
budRich / i3cast
Last active March 17, 2020 16:47
create and upload screen reordings
#!/bin/bash
# i3cast - create and upload screen recordings
# ============================================
# gluecifer: **budRich** 2017
#
# ### usage ###
# just run the script to start the recording
# run it again to stop and preview the recording
# and perform action, (save,upload or play again).
@budRich
budRich / budSolarized-Dark.tmTheme
Created August 31, 2017 19:02
3 colors is enough, solarized is nice, for adults using sublime text
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>author</key>
<string>budRich</string>
<key>colorSpaceName</key>
<string>sRGB</string>
<key>name</key>
<string>bud Solarized Dark</string>
@budRich
budRich / reddit.css
Created August 31, 2017 18:58
reddit nofrills solarized dark+
/*
BY: budRich 2017
BASED ON WORK BY: L'avventura, Amor Kumar - https://userstyles.org/styles/126393/reddit-no-frills
WITH PIECES FROM: https://userstyles.org/styles/88599/reddit-stilig-mod
*/
body {
background-color: #002b36 !important;
@budRich
budRich / README.md
Last active October 21, 2024 13:34
zen mode in i3wm

2021.10.23

Make windows floating before moving them to origin workspace.

2021.10.19

Use workspace name when appropriate.

2021.10.18

@budRich
budRich / i3gw
Last active August 2, 2024 10:22
ghost window wrapper for i3wm
#!/bin/bash
# i3gw - "ghost window" wrapper for i3
# ctrl+c, ctrl+v by budRich 2017
#
# https://www.reddit.com/r/i3wm/comments/6x5vgp/oc_i3gw/
# https://gist.github.com/budRich/d09cbfd07ffdc57680fbc51ffff3687b
#
# i3-msg has an undocumented function (open) that creates
# empty containers, or as I call them: ghosts.
@budRich
budRich / i3run
Last active November 11, 2020 03:56
run, raise or minimize applications
#!/bin/bash
# i3run
# run, raise or minimize a program depending on its state.
#
# https://www.reddit.com/r/i3wm/comments/6x0p0q/oc_i3run/
# https://gist.github.com/budRich/8810a88a5a24080f4c499c65da76853b
#
# if target window doesn't exist, a given command is launched.
# if target window is on another workspace, it is moved to current
@budRich
budRich / i3get
Last active April 10, 2023 16:32
extract window information from i3 tree
#!/bin/sh
# i3get
#
# search for windows in i3 tree, return desired information
# if no arguments are passed. con_id of acitve window is returned.
# ctrl+c, ctrl+v by budRich 2017
# bash to sh by: nimaje
#
# Options:
@budRich
budRich / i3ass
Last active August 11, 2017 22:45
complicate application launching and increase autism in i3wm
#!/bin/bash
about(){
# ? show script info
# # pass function name as arg: details about that function
echo '
i3ass - version 0.3 - major rewrite
ctrl+c & ctrl+v: by budRich, 2017
testing: mxh-
@budRich
budRich / i3ass-rcl
Last active March 23, 2017 19:03
i3ass-rcl
#!/bin/bash
eval $(xdotool getmouselocation --shell)
wname="$(xdotool getwindowname $WINDOW)"
if [ "$wname" = "i3" ]; then
notify-send "hello"
fi
# getmouselocation [--shell]
# Outputs the x, y, screen, and window id of the mouse cursor. Screen