Skip to content

Instantly share code, notes, and snippets.

View nocke's full-sized avatar

Frank Nocke nocke

View GitHub Profile
#!/usr/bin/env bash
xset +dpms
xset dpms force standby
sleep 1
xset dpms force suspend
sleep 1
xset dpms force off
sleep 1
xset dpms force on
#!/usr/bin/env bash
xset dpms force off
sleep 1
xset dpms force on
sleep 1
#xrandr -q | grep "connected"
xrandr --output LVDS1 --brightness 0.2
sleep 1
xrandr --output LVDS1 --brightness 1.0
@nocke
nocke / FRANK_AHK_2019.ahk
Last active December 20, 2019 08:58
Ubuntu-ish hotkeys under Windows 10 (using AutoHotKey)
; toggle next, previous (virtual) desktop
^!Up::
Send ^#{Left}
return
^!Down::
Send ^#{Right}
return
; open “Terminal”
@nocke
nocke / Language Code's for SO syntax coloring...
Last active November 22, 2017 14:08
SO-syntax-coloring.md
A long list, based on [this info](https://pastebin.com/AWMtu5rK)
Usage, see advice below!
[actionscript] = lang-js
[ant] = lang-xml
[boost] = lang-c
[c#-4.0] = lang-cs
[c#] = lang-cs
[c++] = lang-c
[c] = lang-c
@nocke
nocke / breakpoint.sass
Created November 17, 2017 16:28
breakpoint macros (Sass)
// =below($size)
// @media only screen and (max-width: $size)
// @content
// =above($size)
// @media only screen and (min-width: $size)
// @content
// =lower($size)
// @media only screen and (max-height: $size)