Skip to content

Commit

Permalink
Add
Browse files Browse the repository at this point in the history
  • Loading branch information
naufal-yafi committed Feb 14, 2022
1 parent afabaa5 commit 2954fd0
Show file tree
Hide file tree
Showing 40 changed files with 2,786 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .config/bspwm/alacritty/alacritty.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
## Copyright (C) 2020-2021 Aditya Shakya <adi1090x@gmail.com>
## Everyone is permitted to copy and distribute copies of this file under GNU-GPL3

## Configuration for Alacritty, the GPU enhanced terminal emulator.
## It's a very basic and simple config file, for full configuration...
## See, /usr/share/doc/alacritty/example/alacritty.yml

## Import files (Colors, Fonts, Etc)
import:
- ~/.config/bspwm/alacritty/colors.yml
- ~/.config/bspwm/alacritty/fonts.yml

## Set environment variables
env:
TERM: alacritty
WINIT_X11_SCALE_FACTOR: '1.0'

## Terminal window settings
window:
dimensions:
columns: 82
lines: 25

padding:
x: 10
y: 10

decorations: full
startup_mode: Windowed
dynamic_title: true

## scrolling
history: 10000
multiplier: 3

## Background opacity
opacity: 1.0

## Cursor
cursor:
style:
shape: Block
blinking: On

unfocused_hollow: false

## Live config reload
live_config_reload: true
28 changes: 28 additions & 0 deletions .config/bspwm/alacritty/colors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
## Colors configuration
colors:
# Default colors
primary:
background: '#1C1C1C'
foreground: '#DDCCBB'

# Normal colors
normal:
black: '#3D352A'
red: '#CD5C5C'
green: '#86AF80'
yellow: '#E8AE5B'
blue: '#6495ED'
magenta: '#DEB887'
cyan: '#B0C4DE'
white: '#BBAA99'

# Bright colors
bright:
black: '#554444'
red: '#CC5533'
green: '#88AA22'
yellow: '#FFA75D'
blue: '#87CEEB'
magenta: '#996600'
cyan: '#B0C4DE'
white: '#DDCCBB'
37 changes: 37 additions & 0 deletions .config/bspwm/alacritty/fonts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## Copyright (C) 2020-2021 Aditya Shakya <adi1090x@gmail.com>
## Everyone is permitted to copy and distribute copies of this file under GNU-GPL3

# Font configuration
font:
# Normal (roman) font face
normal:
family: "Iosevka Custom"
#style: Regular

# Bold font face
bold:
family: "Iosevka Custom"
#style: Bold

# Italic font face
italic:
family: "Iosevka Custom"
#style: Italic

# Bold italic font face
bold_italic:
family: "Iosevka Custom"
#style: Bold Italic

# Point size
size: 9

# Offset
#offset:
# x: 0
# y: 0

# Glyph offset
#glyph_offset:
# x: 0
# y: 0
Binary file added .config/bspwm/background/3d.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
108 changes: 108 additions & 0 deletions .config/bspwm/bspwmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
#!/usr/bin/env bash

export PATH="${PATH}:$HOME/.config/bspwm/bin"

$HOME/.config/bspwm/polybar/launch.sh

# Get Colors
xrdb ~/.Xresources
getcolors() {
FOREGROUND=$(xrdb -query | grep 'foreground:'| awk '{print $NF}')
BACKGROUND=$(xrdb -query | grep 'background:'| awk '{print $NF}')
BLACK=$(xrdb -query | grep 'color0:'| awk '{print $NF}')
RED=$(xrdb -query | grep 'color1:'| awk '{print $NF}')
GREEN=$(xrdb -query | grep 'color2:'| awk '{print $NF}')
YELLOW=$(xrdb -query | grep 'color3:'| awk '{print $NF}')
BLUE=$(xrdb -query | grep 'color4:'| awk '{print $NF}')
MAGENTA=$(xrdb -query | grep 'color5:'| awk '{print $NF}')
CYAN=$(xrdb -query | grep 'color6:'| awk '{print $NF}')
WHITE=$(xrdb -query | grep 'color7:'| awk '{print $NF}')
}
getcolors

# Configurations Tab Workspaces
workspaces() {
name=1
for monitor in `bspc query -M`; do
bspc monitor ${monitor} -n "$name" -d '' '' '' '' '' '' '' ''
let name++
done
}
workspaces

bspc config border_width 1
bspc config window_gap 10
bspc config split_ratio 0.50

bspc config focused_border_color "$BLUE"
bspc config normal_border_color "$BACKGROUND"
bspc config active_border_color "$MAGENTA"
bspc config presel_feedback_color "$GREEN"

bspc config borderless_monocle true
bspc config gapless_monocle true
bspc config paddingless_monocle true
bspc config single_monocle false
bspc config focus_follows_pointer true

# WORKSPACE GEANY [8]
declare -a code=(Geany code-oss)
for i in ${code[@]}; do
bspc rule -a $i desktop='^8' follow=on focus=on; done

# WORKSPACE FILE MANAGER [7]
declare -a files=(Pcmanfm Thunar qBittorrent)
for i in ${files[@]}; do
bspc rule -a $i desktop='^7' follow=on focus=on; done

# Window rules
# Remove all rules first
bspc rule -r *:*

# Special rules
declare -a floating=(alacritty-float Pcmanfm Onboard Yad 'Firefox:Places' \
Viewnior feh Nm-connection-editor)
for i in ${floating[@]}; do
bspc rule -a $i state=floating follow=on focus=on; done

bspc rule -a Conky state=floating manage=off
bspc rule -a stalonetray state=floating manage=off

# Autostart
# Kill if already running
killall -9 xsettingsd sxhkd dunst ksuperkey xfce4-power-manager

# Lauch xsettingsd daemon
xsettingsd &

# polkit agent
if [[ ! `pidof xfce-polkit` ]]; then
/usr/lib/xfce-polkit/xfce-polkit &
fi

# Lauch keybindings daemon
sxhkd &

# Enable Super Keys For Menu
ksuperkey -e 'Super_L=Alt_L|F1' &
ksuperkey -e 'Super_R=Alt_L|F1' &

# Enable power management
xfce4-power-manager &

# Fix cursor
xsetroot -cursor_name left_ptr

# Restore wallpaper
bash $HOME/.fehbg

# Start mpd
exec mpd &

# Start bspwm scripts
bspcolors
bspbar
bspcomp
bspdunst
bspfloat &

28 changes: 28 additions & 0 deletions .config/bspwm/my-color-scheme/colors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
## Colors configuration
colors:
# Default colors
primary:
background: '#1C1C1C'
foreground: '#DDCCBB'

# Normal colors
normal:
black: '#3D352A'
red: '#CD5C5C'
green: '#86AF80'
yellow: '#E8AE5B'
blue: '#6495ED'
magenta: '#DEB887'
cyan: '#B0C4DE'
white: '#BBAA99'

# Bright colors
bright:
black: '#554444'
red: '#CC5533'
green: '#88AA22'
yellow: '#FFA75D'
blue: '#87CEEB'
magenta: '#996600'
cyan: '#B0C4DE'
white: '#DDCCBB'
134 changes: 134 additions & 0 deletions .config/bspwm/picom.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@

# ------------- #
# CORNER
# ------------- #
corner-radius = 1;
rounded-corners-exclude = [
"window_type = 'normal'",
"class_g ?= 'rofi'",
"class_g ?= 'polybar'",
"class_g ?= 'tint2'"
];

round-borders = 1;
round-borders-exclude = [
"class_g = 'TelegramDesktop'"
];

round-borders-rule = [
"2:class_g ?= 'URxvt'",
"2:class_g ?= 'Alacritty'",
"0:class_g ?= 'firefox'"
];

# ------------- #
# SHADOW
# ------------- #
shadow = true;
shadow-radius = 14;
shadow-opacity = 0.30;
shadow-offset-x = -12;
shadow-offset-y = -12;
# shadow-red = 0
# shadow-green = 0
# shadow-blue = 0
# shadow-color = "#000000"

shadow-exclude = [
"class_g = 'Cairo-clock'",
"class_g = 'CoverGloobus'",
"class_g = 'Tilda'",
"name ?= 'gnome-pie'",
"class_g ?= 'Plank'",
"name *= 'recordmydesktop'",
"name = 'Notification'",
"name = 'Docky'",
"name = 'Kupfer'",
"name = 'xfce4-notifyd'",
"name *= 'VLC'",
"name *= 'Chromium'",
"name *= 'Chrome'",
"class_g = 'Conky'",
"class_g = 'Kupfer'",
"class_g = 'Synapse'",
"class_g ?= 'Notify-osd'",
"class_g ?= 'Cairo-dock'",
"class_g ?= 'Xfce4-notifyd'",
"class_g ?= 'Xfce4-power-manager'",
"_GTK_FRAME_EXTENTS@:c",
"_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
];

# ------------- #
# FADING
# ------------- #
fading = true;
fade-in-step = 0.03;
fade-out-step = 0.03;
fade-delta = 5;

fade-exclude = [
"class_g = 'slop'"
]

no-fading-openclose = false
no-fading-destroyed-argb = true

# ------------- #
# OPACITY
# ------------- #
inactive-opacity = 1;
frame-opacity = 1;
inactive-opacity-override = false;
active-opacity = 1;

focus-exclude = [
"class_g = 'Cairo-clock'",
"class_g = 'Bar'",
"class_g = 'slop'"
];

opacity-rule = [
"100:class_g = 'Bar'",
"100:class_g = 'slop'",
"100:class_g = 'XTerm'",
"100:class_g = 'URxvt'",
"100:class_g = 'kitty'",
"100:class_g = 'Alacritty'",
"100:class_g = 'Polybar'",
"100:class_g = 'code-oss'",
"100:class_g = 'Meld'",
"100:class_g = 'TelegramDesktop'",
"100:class_g = 'Joplin'",
"100:class_g = 'firefox'",
"100:class_g = 'Thunderbird'"
];

# ------------- #
# SETTING
# ------------- #
experimental-backends = true;
backend = "xrender";
glx-no-stencil = true;

vsync = true;
refresh-rate = 0;
use-damage = true;
log-level = "info";

mark-wmwin-focused = true;
mark-ovredir-focused = true;

detect-rounded-corners = true;
detect-client-opacity = true;
detect-transient = true;
detect-client-leader = true;


wintypes:
{
tooltip = { fade=true; shadow=true; opacity=0.95; focus=true; full-shadow=false; };
popup_menu = { opacity=1.0; }
dropdown_menu = { opacity=1.0; }
utility = { shadow=false; opacity=1.0; }
};
Empty file added .config/bspwm/polybar/.module
Empty file.
Empty file added .config/bspwm/polybar/.system
Empty file.
Loading

0 comments on commit 2954fd0

Please sign in to comment.