Skip to content

Instantly share code, notes, and snippets.

View TaylanTatli's full-sized avatar
👋

Taylan Tatlı TaylanTatli

👋
View GitHub Profile
@TaylanTatli
TaylanTatli / riot.sh
Created February 10, 2021 21:32 — forked from jzbor/riot.sh
Simple script to provide rio-like drawing functionallity for any X-WM (only works if the window is already floating)
#!/bin/sh
#
# Author: jzbor
# Dependencies: xdo, xwininfo (optional), xdg-xmenu (optional), xmenu (optional
#
# Usage:
# riot.sh
# riot.sh xterm
# riot.sh --focused
# riot.sh --select
@TaylanTatli
TaylanTatli / github_topics_dark.css
Last active February 7, 2021 16:40
Github Topics Dark Mode Userstyle
body {
background-color: #06090F !important;
color: #c9d1d9 !important;
}
a {
color: #58a6ff;
text-decoration: none;
}
@TaylanTatli
TaylanTatli / my-settings.json
Last active January 29, 2021 21:54
mdanki user settings
{
"code":{
"defaultLanguage":"bash",
"template":"dark"
},
"card":{
"separator":"(?=^##\\s)",
"frontBackSeparator":"%",
"tagPattern":"^\\[#(.*)\\]"
},
@TaylanTatli
TaylanTatli / emojis
Created January 26, 2021 23:59
Emoji List for Rofi
😀 Grinning Face
😃 Grinning Face with Big Eyes
😄 Grinning Face with Smiling Eyes
😁 Beaming Face with Smiling Eyes
😆 Grinning Squinting Face
😅 Grinning Face with Sweat
🤣 Rolling on the Floor Laughing
😂 Face with Tears of Joy
🙂 Slightly Smiling Face
@TaylanTatli
TaylanTatli / check-capslock-status-linux.cpp
Created January 7, 2021 00:27 — forked from eromatiya/check-capslock-status-linux.cpp
Check CapsLock Status Programatically in Linux
#include <stdio.h>
#include <stdlib.h>
#include <X11/XKBlib.h>
/* Compile this with -lX11 */
int main ()
{
Display *display;
Status status;
@TaylanTatli
TaylanTatli / openbox-3.6.2-rounded-corners.patch
Created June 14, 2020 11:16
Openbox Rounded Corners patch
diff --git a/openbox/config.c b/openbox/config.c
index dad5d1bf..a387335c 100644
--- a/openbox/config.c
+++ b/openbox/config.c
@@ -48,6 +48,8 @@ StrutPartial config_margins;
gchar *config_theme;
gboolean config_theme_keepborder;
guint config_theme_window_list_icon_size;
+guint config_theme_cornerradius;
+gboolean config_theme_menuradius;
@TaylanTatli
TaylanTatli / README.md
Created May 5, 2020 19:25 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@TaylanTatli
TaylanTatli / cwm-tt.patch
Last active April 7, 2024 10:05
CWM patch
diff --git a/calmwm.h b/calmwm.h
index b28b454..0793c92 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -78,6 +78,16 @@ size_t strlcpy(char *, const char *, size_t);
#define CWM_BIGAMOUNT 0x0010
#define DIRECTIONMASK (CWM_UP | CWM_DOWN | CWM_LEFT | CWM_RIGHT)
+#define CWM_TOP_LEFT 0x0001
+#define CWM_BOTTOM_LEFT 0x0002
@TaylanTatli
TaylanTatli / weather.sh
Created March 26, 2017 16:48
weather script for polybar
#!/bin/dash
#depends: jq, siji
city="Nazilli"
api_key="39214b9803f123f428d81d0e38c1af9c"
lang="tr"
unit="metric"
api="http://api.openweathermap.org/data/2.5/weather"
url="$api?q=$city&lang=$lang&APPID=$api_key&units=$unit"
weather=$(curl -s $url | jq -r '. | "\(.weather[].main)"')
#!/bin/sh
# I have brightness bug with sony vaio, so I have to set my
# brightness manually.
# To run this script without root
# edit your /etc/sudoers file with visudo
# and add this line:
# username ALL=(ALL) NOPASSWD: /usr/bin/tee /sys/class/backlight/nv_backlight/brightness
# change username with your username
# brightness + : brightness up
# brightness - : brightness down