mirror of https://github.com/balkian/dotfiles.git
parent
d1067cbb00
commit
f395ed8f03
@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if command -v myrofi >/dev/null 2>&1;
|
||||||
|
then
|
||||||
|
program="myrofi -no-show-icons -dmenu"
|
||||||
|
else
|
||||||
|
program="dmenu"
|
||||||
|
fi
|
||||||
|
|
||||||
|
bluetoothctl power on
|
||||||
|
bluetoothctl agent on
|
||||||
|
bluetoothctl default-agent
|
||||||
|
# bluetoothctl scan on
|
||||||
|
list=$(bluetoothctl paired-devices);
|
||||||
|
device=$(echo -ne "$list" | cut -d' ' -f 3- | $program "$@" )
|
||||||
|
|
||||||
|
addr=$(echo "$list" | grep "$device" | cut -d' ' -f2)
|
||||||
|
|
||||||
|
bluetoothctl connect "$addr"
|
@ -0,0 +1,2 @@
|
|||||||
|
#1/bin/sh
|
||||||
|
rofi -theme ~/.bin/rofi-slate-theme.rasi -i "$@"
|
@ -0,0 +1,36 @@
|
|||||||
|
/* -- Gray -- */
|
||||||
|
|
||||||
|
* {
|
||||||
|
shade1: #000000;
|
||||||
|
shade2: #050505;
|
||||||
|
shade3: #101010;
|
||||||
|
shade4: #151515;
|
||||||
|
shade5: #202020;
|
||||||
|
shade6: #252525;
|
||||||
|
shade7: #303030;
|
||||||
|
shade8: #353535;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**** Comment One First To Use Another ****/
|
||||||
|
|
||||||
|
/* -- Dark -- */
|
||||||
|
* {
|
||||||
|
border: @shade2;
|
||||||
|
border-alt: @shade3;
|
||||||
|
background: @shade4;
|
||||||
|
background-alt: @shade5;
|
||||||
|
selected: @shade5;
|
||||||
|
foreground: #ffffff;
|
||||||
|
urgent: #DA4453;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -- light -- */
|
||||||
|
* {
|
||||||
|
border: @shade8;
|
||||||
|
border-alt: @shade7;
|
||||||
|
background: @shade6;
|
||||||
|
background-alt: @shade6;
|
||||||
|
selected: @shade5;
|
||||||
|
foreground: #ffffff;
|
||||||
|
urgent: #DA4453;
|
||||||
|
}
|
@ -0,0 +1,139 @@
|
|||||||
|
/*
|
||||||
|
* Based on a theme by:
|
||||||
|
*
|
||||||
|
* Author : Aditya Shakya
|
||||||
|
* Mail : adi1090x@gmail.com
|
||||||
|
* Github : @adi1090x
|
||||||
|
* Twitter : @adi1090x
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
configuration {
|
||||||
|
font: "FantasqueSansMono Nerd Font 10";
|
||||||
|
show-icons: true;
|
||||||
|
icon-theme: "Papirus";
|
||||||
|
display-drun: "";
|
||||||
|
drun-display-format: "{name}";
|
||||||
|
disable-history: false;
|
||||||
|
fullscreen: false;
|
||||||
|
hide-scrollbar: false;
|
||||||
|
sidebar-mode: false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@import "rofi-black-colors.rasi"
|
||||||
|
|
||||||
|
window {
|
||||||
|
transparency: "real";
|
||||||
|
background-color: @background;
|
||||||
|
text-color: @foreground;
|
||||||
|
border: 2% 1% 2% 1%;
|
||||||
|
border-color: @border;
|
||||||
|
border-radius: 0% 0% 0% 0%;
|
||||||
|
height: 70%;
|
||||||
|
width: 70%;
|
||||||
|
location: center;
|
||||||
|
x-offset: 0;
|
||||||
|
y-offset: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
prompt {
|
||||||
|
enabled: true;
|
||||||
|
padding: 0% 1% 0% 0%;
|
||||||
|
background-color: @background;
|
||||||
|
text-color: @foreground;
|
||||||
|
font: "FantasqueSansMono Nerd Font 12";
|
||||||
|
}
|
||||||
|
|
||||||
|
entry {
|
||||||
|
background-color: @background;
|
||||||
|
text-color: @foreground;
|
||||||
|
placeholder-color: @foreground;
|
||||||
|
expand: true;
|
||||||
|
horizontal-align: 0;
|
||||||
|
placeholder: "Search";
|
||||||
|
padding: 0.15% 0% 0% 0%;
|
||||||
|
blink: true;
|
||||||
|
}
|
||||||
|
|
||||||
|
inputbar {
|
||||||
|
children: [ prompt, entry ];
|
||||||
|
background-color: @background;
|
||||||
|
text-color: @foreground;
|
||||||
|
expand: false;
|
||||||
|
border: 0% 0% 0.3% 0%;
|
||||||
|
border-radius: 0% 0% 0% 0%;
|
||||||
|
border-color: @border-alt;
|
||||||
|
margin: 0% 38.25% 0% 0%;
|
||||||
|
padding: 1%;
|
||||||
|
position: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
listview {
|
||||||
|
background-color: @background;
|
||||||
|
columns: 8;
|
||||||
|
spacing: 1%;
|
||||||
|
cycle: false;
|
||||||
|
dynamic: true;
|
||||||
|
layout: vertical;
|
||||||
|
}
|
||||||
|
|
||||||
|
mainbox {
|
||||||
|
background-color: @background;
|
||||||
|
border: 2% 1% 2% 1%;
|
||||||
|
border-radius: 0% 0% 0% 0%;
|
||||||
|
border-color: @border-alt;
|
||||||
|
children: [ inputbar, listview ];
|
||||||
|
spacing: 2%;
|
||||||
|
padding: 6% 3% 6% 3%;
|
||||||
|
}
|
||||||
|
|
||||||
|
element {
|
||||||
|
background-color: @background;
|
||||||
|
text-color: @foreground;
|
||||||
|
orientation: vertical;
|
||||||
|
border-radius: 0%;
|
||||||
|
padding: 1% 0% 1% 0%;
|
||||||
|
}
|
||||||
|
|
||||||
|
element-icon {
|
||||||
|
size: 64px;
|
||||||
|
border: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
element-text {
|
||||||
|
expand: true;
|
||||||
|
horizontal-align: 0.5;
|
||||||
|
vertical-align: 0.5;
|
||||||
|
margin: 0.5% 1% 0% 1%;
|
||||||
|
}
|
||||||
|
|
||||||
|
element normal.urgent,
|
||||||
|
element alternate.urgent {
|
||||||
|
background-color: @urgent;
|
||||||
|
text-color: @foreground;
|
||||||
|
border-radius: 1%;
|
||||||
|
}
|
||||||
|
|
||||||
|
element normal.active,
|
||||||
|
element alternate.active {
|
||||||
|
background-color: @background-alt;
|
||||||
|
text-color: @foreground;
|
||||||
|
}
|
||||||
|
|
||||||
|
element selected {
|
||||||
|
background-color: @selected;
|
||||||
|
text-color: @foreground;
|
||||||
|
border: 0% 0% 0.3% 0%;
|
||||||
|
border-radius: 0% 0% 0% 0%;
|
||||||
|
border-color: @border-alt;
|
||||||
|
}
|
||||||
|
|
||||||
|
element selected.urgent {
|
||||||
|
background-color: @urgent;
|
||||||
|
text-color: @foreground;
|
||||||
|
}
|
||||||
|
|
||||||
|
element selected.active {
|
||||||
|
background-color: @background-alt;
|
||||||
|
color: @foreground;
|
||||||
|
}
|
Loading…
Reference in New Issue