Skip to content

Instantly share code, notes, and snippets.

Pedro Côrte-Real pedrocr

Block or report user

Report or block pedrocr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pedrocr
pedrocr / gist:ebc42631b5ac479e29078e5c41e37e23
Created Oct 30, 2019
Firefox correctly (non-tiled) tooltips
View gist:ebc42631b5ac479e29078e5c41e37e23
"representation": "H[firefox]",
"nodes": [
{
"id": 212,
"name": "Structure and Interpretation of Computer Programs, 2nd ed. - sicp.pdf - Mozilla Firefox",
"rect": {
"x": 0,
"y": 40,
"width": 2560,
"height": 1400
View gist:b12fb22f7881f7d3903dd939b4c5d1bb
"representation": "H[firefox firefox]",
"nodes": [
{
"id": 70,
"name": "Structure and Interpretation of Computer Programs, 2nd ed. - sicp.pdf - Mozilla Firefox",
"rect": {
"x": 0,
"y": 40,
"width": 1280,
"height": 1400
View gist:8721e7d2f6304a87cd80a4a3569dd9ae
"type": "workspace",
"representation": "H[firefox firefox]",
"nodes": [
{
"id": 70,
"name": "Carros elétricos, painéis solares e armazenamento de energia limpa | Tesla - Mozilla Firefox",
"rect": {
"x": 0,
"y": 40,
"width": 1280,
View gist:5e1f6e1f406f63bebfa31ee734abb5be
Playing: test.avi
(+) Video --vid=1 (msmpeg4v3 640x352 25.000fps)
(+) Audio --aid=1 (ac3 2ch 48000Hz)
File tags:
Artist: AMC
Comment: AMC
Title: AMC
[1029483.636] -> wl_display@1.get_registry(new id wl_registry@2)
[1029483.671] -> wl_display@1.sync(new id wl_callback@3)
[1029483.742] wl_display@1.delete_id(3)
View gist:539daf0639eb4f8ee112eb1639d5a4e7
2019-10-21 23:29:33 - [sway/main.c:152] Linux coulson 5.0.0-31-generic #33-Ubuntu SMP Mon Sep 30 18:51:59 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
2019-10-21 23:29:33 - [sway/main.c:168] Contents of /etc/lsb-release:
2019-10-21 23:29:33 - [sway/main.c:152] DISTRIB_ID=Ubuntu
2019-10-21 23:29:33 - [sway/main.c:152] DISTRIB_RELEASE=19.04
2019-10-21 23:29:33 - [sway/main.c:152] DISTRIB_CODENAME=disco
2019-10-21 23:29:33 - [sway/main.c:152] DISTRIB_DESCRIPTION="Ubuntu 19.04"
2019-10-21 23:29:33 - [sway/main.c:168] Contents of /etc/os-release:
2019-10-21 23:29:33 - [sway/main.c:152] NAME="Ubuntu"
2019-10-21 23:29:33 - [sway/main.c:152] VERSION="19.04 (Disco Dingo)"
2019-10-21 23:29:33 - [sway/main.c:152] ID=ubuntu
@pedrocr
pedrocr / wlmenu
Created Aug 27, 2019
wldash startup script
View wlmenu
#!/bin/bash
if pgrep --uid $(whoami) wldash
then
killall --user $(whoami) wldash
exit 0
else
selection="$(~/bin/dot-desktop | ~/bin/wldash -i -p 'exec:')"
if [ "$selection" != "" ]
then
@pedrocr
pedrocr / gist:d37c42d08af14de505cddc7f949d69d7
Created Aug 1, 2019
bindsym clis that should be shared with the GUI programs
View gist:d37c42d08af14de505cddc7f949d69d7
# Brightness keys
bindsym XF86MonBrightnessUp exec brightnessctl s 5%+
bindsym XF86MonBrightnessDown exec brightnessctl --min-value=17 s 5%-
# Audio Keys
set $sink $(pacmd list-sinks 2>&1 | grep "* index" | head -n 1 | cut -d " " -f 5)
bindsym XF86AudioLowerVolume exec pactl -- set-sink-mute $sink 0 && pactl -- set-sink-volume $sink -10%
bindsym XF86AudioRaiseVolume exec pactl -- set-sink-mute $sink 0 && pactl -- set-sink-volume $sink +10%
bindsym XF86AudioMute exec pactl -- set-sink-mute $sink toggle
@pedrocr
pedrocr / gist:02706c877d42747fecd5cea707249d4a
Created Jul 31, 2019
sway: disabling events on type:touchpad not working
View gist:02706c877d42747fecd5cea707249d4a
2019-07-31 19:59:17 - [sway/main.c:152] Linux coulson 5.0.0-20-generic #21-Ubuntu SMP Mon Jun 24 09:32:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
2019-07-31 19:59:17 - [sway/main.c:168] Contents of /etc/lsb-release:
2019-07-31 19:59:17 - [sway/main.c:152] DISTRIB_ID=Ubuntu
2019-07-31 19:59:17 - [sway/main.c:152] DISTRIB_RELEASE=19.04
2019-07-31 19:59:17 - [sway/main.c:152] DISTRIB_CODENAME=disco
2019-07-31 19:59:17 - [sway/main.c:152] DISTRIB_DESCRIPTION="Ubuntu 19.04"
2019-07-31 19:59:17 - [sway/main.c:168] Contents of /etc/os-release:
2019-07-31 19:59:17 - [sway/main.c:152] NAME="Ubuntu"
2019-07-31 19:59:17 - [sway/main.c:152] VERSION="19.04 (Disco Dingo)"
2019-07-31 19:59:17 - [sway/main.c:152] ID=ubuntu
@pedrocr
pedrocr / gist:b4b9ed288b906540fb5d23ed69d8bb78
Created Jul 28, 2019
sway: resize has numerical instability
View gist:b4b9ed288b906540fb5d23ed69d8bb78
2019-07-28 11:07:07 - [sway/main.c:152] Linux coulson 5.0.0-20-generic #21-Ubuntu SMP Mon Jun 24 09:32:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
2019-07-28 11:07:07 - [sway/main.c:168] Contents of /etc/lsb-release:
2019-07-28 11:07:07 - [sway/main.c:152] DISTRIB_ID=Ubuntu
2019-07-28 11:07:07 - [sway/main.c:152] DISTRIB_RELEASE=19.04
2019-07-28 11:07:07 - [sway/main.c:152] DISTRIB_CODENAME=disco
2019-07-28 11:07:07 - [sway/main.c:152] DISTRIB_DESCRIPTION="Ubuntu 19.04"
2019-07-28 11:07:07 - [sway/main.c:168] Contents of /etc/os-release:
2019-07-28 11:07:07 - [sway/main.c:152] NAME="Ubuntu"
2019-07-28 11:07:07 - [sway/main.c:152] VERSION="19.04 (Disco Dingo)"
2019-07-28 11:07:07 - [sway/main.c:152] ID=ubuntu
@pedrocr
pedrocr / gist:535e2380a303660c426505e56b489de6
Created Jul 27, 2019
sway: popup clicks don't work when popup is drawn over another container
View gist:535e2380a303660c426505e56b489de6
2019-07-27 12:24:21 - [sway/main.c:152] Linux coulson 5.0.0-20-generic #21-Ubuntu SMP Mon Jun 24 09:32:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
2019-07-27 12:24:21 - [sway/main.c:168] Contents of /etc/lsb-release:
2019-07-27 12:24:21 - [sway/main.c:152] DISTRIB_ID=Ubuntu
2019-07-27 12:24:21 - [sway/main.c:152] DISTRIB_RELEASE=19.04
2019-07-27 12:24:21 - [sway/main.c:152] DISTRIB_CODENAME=disco
2019-07-27 12:24:21 - [sway/main.c:152] DISTRIB_DESCRIPTION="Ubuntu 19.04"
2019-07-27 12:24:21 - [sway/main.c:168] Contents of /etc/os-release:
2019-07-27 12:24:21 - [sway/main.c:152] NAME="Ubuntu"
2019-07-27 12:24:21 - [sway/main.c:152] VERSION="19.04 (Disco Dingo)"
2019-07-27 12:24:21 - [sway/main.c:152] ID=ubuntu
You can’t perform that action at this time.