This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# examples: | |
# dts 5pm | |
# dts 17:38 | |
# dts Jan 8 20:15 | |
function dts { | |
echo "$@" | xargs -I {} date -d "{}" +%s | xargs -I {} echo "<t:{}:t>" | xclip -selection clipboard | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Author: intrntbrn | |
* | |
* Compile with: | |
* gcc resize-increment.c -Wall -o resize-increment `pkg-config --cflags --libs x11` | |
* | |
* Usage: | |
* resize-increment windowid width_inc height_inc | |
* e.g.: resize-increment 1234567 6 12 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# qutebrowser_export_html.sh | |
# this script generates a simple html startpage for qutebrowser | |
# containing quickmarks, bookmarks and history. | |
print_usage() { | |
echo "Usage: $0 [-q quickmarks] [-b bookmarks] [-h history] [-l history-limit] [-o out] [-r]" | |
echo " -q specify quickmark file (default: ~/.config/qutebrowser/quickmarks)" | |
echo " -b specify bookmarks file (default: ~/.config/qutebrowser/bookmarks/urls)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- awesomewm fancy_taglist: a taglist that contains a tasklist for each tag. | |
-- Usage: | |
-- 1. Save as "fancy_taglist.lua" in ~/.config/awesome | |
-- 2. Add a fancy_taglist for every screen: | |
-- awful.screen.connect_for_each_screen(function(s) | |
-- ... | |
-- local fancy_taglist = require("fancy_taglist") | |
-- s.mytaglist = fancy_taglist.new({ | |
-- screen = s, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Dependency: xdotool | |
-- | |
-- Usage: | |
-- 1. Save as "virtual_keyboard.lua" in ~/.config/awesome/ | |
-- 2. Add a virtual_keyboard for every screen: | |
-- awful.screen.connect_for_each_screen(function(s) | |
-- ... | |
-- local virtual_keyboard = require("virtual_keyboard") | |
-- s.virtual_keyboard = virtual_keyboard:new({ screen = s } ) | |
-- ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# menu (dmenu, rofi, fzf, etc.) | |
menu_cmd='dmenu -i -p Bookmark' | |
# browser | |
browser_cmd='firefox --new-tab' | |
# in case the automatic profile detection does not work properly, | |
# replace <PROFILE> with your profile id (e.g. ik52yqxf.default-1574488801337) and uncomment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# menu (dmenu, rofi, fzf, etc.) | |
menu_cmd='dmenu -i -p Bookmark' | |
# browser | |
browser_cmd='chromium' | |
# bookmarks json file | |
bookmarks=~/.config/chromium/Default/Bookmarks |