Skip to content

Instantly share code, notes, and snippets.

View embik's full-sized avatar
🏠
Working from home

Marvin Beckers embik

🏠
Working from home
View GitHub Profile
@embik
embik / main.rs
Created June 18, 2017 14:14
C vs Rust Wayland Code
#[macro_use] extern crate wayland_client;
//#[macro_use] extern crate wayland_sys;
use wayland_client::{EventQueueHandle, default_connect};
use wayland_client::protocol::wl_registry;
struct RegistryHandler { /* ... */ }
impl wl_registry::Handler for RegistryHandler {
fn global(
[~] rofi -dump-xresources
The script command 'window' has 1 options, but needs 2: <name>:<script>.
Invalid script switcher: window
! Enabled modi
rofi.modi: window,run,ssh
! Window opacity
rofi.opacity: 100
! Window width
rofi.width: 50
! Number of lines
#!/usr/bin/env bash
# handle being called from systemd service
if [ -z "$XDG_RUNTIME_DIR" ] && [ -z "$SWAYSOCK"]; then
uid=$(id -u $USER)
export XDG_RUNTIME_DIR="/run/user/"$uid"/"
export SWAYSOCK=$(find $XDG_RUNTIME_DIR -iname sway*sock)
fi
swaygrab /home/$USER/lockscreen.png
@embik
embik / keybase.md
Created February 21, 2016 16:23
Keybase proof

Keybase proof

I hereby claim:

  • I am embik on github.
  • I am embik (https://keybase.io/embik) on keybase.
  • I have a public key ASDKSXqfp_9tdmeLdHlEdpb3WLpyPBVdKiKwhJLkvQDXBwo

To claim this, I am signing this object: