Skip to content

Commit

Permalink
screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
isidroas committed Jun 8, 2024
1 parent ac553cb commit 81481c4
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pip install .
python example.py
```

!(./docs/screenshot.png)
![screenshot](./docs/screenshot.png)

# Learn specification

Expand Down
Binary file added docs/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions docs/screenshot_terminal.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/bash

CLASSNAME=$(head -c 6 /dev/urandom | base64 | tr -cd [:alnum:])

# gruvbox colors
colors=(
'-xrm' '*.color0: #282828'
'-xrm' '*.color1: #cc241d'
'-xrm' '*.color2: #98971a'
'-xrm' '*.color3: #d79921'
'-xrm' '*.color4: #458588'
'-xrm' '*.color5: #b16286'
'-xrm' '*.color6: #689d6a'
'-xrm' '*.color7: #a89984'
'-xrm' '*.color8: #928374'
'-xrm' '*.color9: #fb4934'
'-xrm' '*.color10:#b8bb26'
'-xrm' '*.color11:#fabd2f'
'-xrm' '*.color12:#83a598'
'-xrm' '*.color13:#d3869b'
'-xrm' '*.color14:#8ec07c'
'-xrm' '*.color15:#ebdbb2'
'-xrm' '*.foreground:#ebdbb2'
'-xrm' '*.background:#282828'
)

urxvt "${colors[@]}" +is -g 150x50 -b 0 +sb -name $CLASSNAME -fn "xft:FiraCode Nerd Font:pixelsize=20" -e python example.py &

RXVTWINDOWID=$(xdotool search --sync --classname "$CLASSNAME")

xdotool type -window $RXVTWINDOWID add_entropy
xdotool key -window $RXVTWINDOWID Return
xdotool type -window $RXVTWINDOWID asdfjkl
xdotool key -window $RXVTWINDOWID ctrl+c

import -window $RXVTWINDOWID $(dirname $0)/screenshot.png

kill %1
Binary file added screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 81481c4

Please sign in to comment.