Skip to content

Instantly share code, notes, and snippets.

View eightpigs's full-sized avatar
🙃
I may be slow to respond.

eightpigs eightpigs

🙃
I may be slow to respond.
View GitHub Profile
@97-109-107
97-109-107 / i3-get-current-screen.py
Last active September 19, 2019 15:46
get the size of current screen in i3wm
#!/usr/bin/env python
import i3
def getCurrentScreen():
workspace = [ws for ws in i3.get_workspaces() if ws['focused']][0]
screen_w =str(workspace['rect']['width'])
screen_h =str(workspace['rect']['height'])
print(screen_w, screen_h);
@RobertAudi
RobertAudi / ideavimrc
Created July 28, 2014 08:46
System clipboard support in IdeaVim
nnoremap yy "+yy
vnoremap y "+y
nnoremap p "+p
vnoremap p "+p
nnoremap P "+P
vnoremap P "+P