diff --git a/config/alacritty/alacritty.yml b/config/alacritty/alacritty.yml new file mode 100644 index 0000000..a57965b --- /dev/null +++ b/config/alacritty/alacritty.yml @@ -0,0 +1,34 @@ +# ╔═╗╦ ╔═╗╔═╗╦═╗╦╔╦╗╔╦╗╦ ╦ ╔═╗╔═╗╔╗╔╔═╗╦╔═╗ +# ╠═╣║ ╠═╣║ ╠╦╝║ ║ ║ ╚╦╝ ║ ║ ║║║║╠╣ ║║ ╦ - Config by z0mbi3 +# ╩ ╩╩═╝╩ ╩╚═╝╩╚═╩ ╩ ╩ ╩ ╚═╝╚═╝╝╚╝╚ ╩╚═╝ - https://github.com/gh0stzk/dotfiles +# General configuration + +import: + - ~/.config/alacritty/rice-colors.yml + - ~/.config/alacritty/fonts.yml + +window: + padding: + x: 15 + y: 15 + + decorations: none + + opacity: 1.0 + dynamic_title: true + + history: 10000 + multiplier: 3 + +selection: + save_to_clipboard: false + +cursor: + style: + shape: Block + blinking: On + + unfocused_hollow: false + blink_interval: 550 + +live_config_reload: true diff --git a/config/alacritty/fonts.yml b/config/alacritty/fonts.yml new file mode 100644 index 0000000..85b27a9 --- /dev/null +++ b/config/alacritty/fonts.yml @@ -0,0 +1,19 @@ +# Font configuration +font: + normal: + family: JetBrainsMono Nerd Font + #style: Regular + + bold: + family: JetBrainsMono Nerd Font + #style: Bold + + italic: + family: JetBrainsMono Nerd Font + #style: Italic + + bold_italic: + family: JetBrainsMono Nerd Font + #style: Bold Italic + + size: 6 diff --git a/config/alacritty/rice-colors.yml b/config/alacritty/rice-colors.yml new file mode 100644 index 0000000..48bb3b0 --- /dev/null +++ b/config/alacritty/rice-colors.yml @@ -0,0 +1,326 @@ +# ██████╗ ██╗ ██████╗███████╗ ██████╗ ██████╗ ██╗ ██████╗ ██████╗ ███████╗ +# ██╔══██╗██║██╔════╝██╔════╝ ██╔════╝██╔═══██╗██║ ██╔═══██╗██╔══██╗██╔════╝ +# ██████╔╝██║██║ █████╗ ██║ ██║ ██║██║ ██║ ██║██████╔╝███████╗ +# ██╔══██╗██║██║ ██╔══╝ ██║ ██║ ██║██║ ██║ ██║██╔══██╗╚════██║ +# ██║ ██║██║╚██████╗███████╗ ╚██████╗╚██████╔╝███████╗╚██████╔╝██║ ██║███████║ +# ╚═╝ ╚═╝╚═╝ ╚═════╝╚══════╝ ╚═════╝ ╚═════╝ ╚══════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝ +# Author : z0mbi3 +# url : https://github.com/gh0stzk/dotfiles +# Info : Alacritty Colorschemes for the 12 rices. + +schemes: +# Colors (Pencil light) Aline Rice + aline_pencil_light: &aline_pencil_light + primary: + background: '#e5eafe' + foreground: '#51576d' + normal: + black: '#212121' + red: '#c30771' + green: '#10a778' + yellow: '#a89c14' + blue: '#008ec4' + magenta: '#523c79' + cyan: '#20a5ba' + white: '#51576d' + bright: + black: '#212121' + red: '#fb007a' + green: '#5fd7af' + yellow: '#f3e430' + blue: '#20bbfc' + magenta: '#6855de' + cyan: '#4fb8cc' + white: '#51576d' + cursor: + cursor: '#20bbfc' + text: '#e5eafe' +# Colors Andrea Rice + andrea_color_scheme: &andrea_color_scheme + primary: + background: '#F5EEE6' + foreground: '#6d6a78' + normal: + black: '#80859d' + red: '#c04364' + green: '#abd77a' + yellow: '#ffcc57' + blue: '#67d4f1' + magenta: '#7a7498' + cyan: '#9bf4d5' + white: '#b0b0b0' + bright: + black: '#80859d' + red: '#c03f61' + green: '#a1d16c' + yellow: '#f2be47' + blue: '#50bfdc' + magenta: '#605692' + cyan: '#83edc8' + white: '#b0b0b0' + cursor: + cursor: '#7a7498' + text: '#F5EEE6' +# Colors (Rose-Pine Moon) Cristina Rice + cristina_rose_pine: &cristina_rose_pine + primary: + background: '#1f1d29' + foreground: '#eaeaea' + normal: + black: '#6f6e85' + red: '#ea6f91' + green: '#9bced7' + yellow: '#f1ca93' + blue: '#34738e' + magenta: '#c3a5e6' + cyan: '#eabbb9' + white: '#faebd7' + bright: + black: '#6f6e85' + red: '#ea6f91' + green: '#9bced7' + yellow: '#f1ca93' + blue: '#34738e' + magenta: '#c3a5e6' + cyan: '#ebbcba' + white: '#e0def4' + cursor: + cursor: '#c3a5e6' + text: '#1f1d29' +# Colors Cynthia Rice + cynthia_color_scheme: &cynthia_color_scheme + primary: + background: '#1f2329' + foreground: '#b8bfe5' + normal: + black: '#0f1319' + red: '#644d66' + green: '#375759' + yellow: '#736871' + blue: '#3f5273' + magenta: '#543f66' + cyan: '#324f66' + white: '#b3b3b3' + bright: + black: '#b3b3b3' + red: '#735771' + green: '#3f6566' + yellow: '#807476' + blue: '#465b80' + magenta: '#533969' + cyan: '#385a73' + white: '#e5e5e5' + cursor: + cursor: '#465b80' + text: '#e5e5e5' +# Colors (Tokyo Night) Emilia Rice + emilia_tokyo_night: &emilia_tokyo_night + primary: + background: '#1a1b26' + foreground: '#c0caf5' + normal: + black: '#414868' + red: '#f7768e' + green: '#9ece6a' + yellow: '#e0af68' + blue: '#7aa2f7' + magenta: '#bb9af7' + cyan: '#7dcfff' + white: '#787c99' + bright: + black: '#414868' + red: '#f7768e' + green: '#9ece6a' + yellow: '#e0af68' + blue: '#7aa2f7' + magenta: '#bb9af7' + cyan: '#7dcfff' + white: '#c0caf5' + cursor: + cursor: '#bb9af7' + text: '#1a1b26' +# Colors (Onedark) Isabel Rice + isabel_onedark: &isabel_onedark + primary: + background: '#14171c' + foreground: '#b8bfe5' + normal: + black: '#5c6370' + red: '#be5046' + green: '#81ae5f' + yellow: '#d19a66' + blue: '#4889be' + magenta: '#7560d3' + cyan: '#49919a' + white: '#c5cddb' + bright: + black: '#5c6370' + red: '#e06c75' + green: '#98c379' + yellow: '#e5c07b' + blue: '#61afef' + magenta: '#8677cf' + cyan: '#56b6c2' + white: '#abb2bf' + cursor: + cursor: '#abb2bf' + text: '#14171c' +# Colors (CyberPunk) Jan Rice + jan_cyberpunk: &jan_cyberpunk + primary: + background: '#070219' + foreground: '#c0caf5' + normal: + black: '#626483' + red: '#fb007a' + green: '#a6e22e' + yellow: '#f3e430' + blue: '#58AFC2' + magenta: '#583794' + cyan: '#926BCA' + white: '#d9d9d9' + bright: + black: '#626483' + red: '#fb007a' + green: '#a6e22e' + yellow: '#f3e430' + blue: '#58AFC2' + magenta: '#472575' + cyan: '#926BCA' + white: '#f1f1f1' + cursor: + cursor: '#fb007a' + text: '#070219' +# Colors (Zombie-Night color scheme) Karla Rice + karla_z0mbi3_night: &karla_z0mbi3_night + primary: + background: '#0E1113' + foreground: '#afb1db' + normal: + black: '#2d2b36' + red: '#e7034a' + green: '#61b33e' + yellow: '#ffb964' + blue: '#5884d4' + magenta: '#7a44e3' + cyan: '#7df0f0' + white: '#faf7ff' + bright: + black: '#373542' + red: '#e71c5b' + green: '#6fb352' + yellow: '#ffb964' + blue: '#5f90ea' + magenta: '#8656e3' + cyan: '#97f0f0' + white: '#fdfcff' + cursor: + cursor: '#8656e3' + text: '#0b0b12' +# Colors (Nord) Melissa Rice + melissa_nord: &melissa_nord + primary: + background: '#2e3440' + foreground: '#d8dee9' + normal: + black: '#4c566a' + red: '#bf616a' + green: '#a3be8c' + yellow: '#ebcb8b' + blue: '#81a1c1' + magenta: '#b48ead' + cyan: '#88c0d0' + white: '#e5e9f0' + bright: + black: '#4c566a' + red: '#bf616a' + green: '#a3be8c' + yellow: '#ebcb8b' + blue: '#81a1c1' + magenta: '#b48ead' + cyan: '#8fbcbb' + white: '#eceff4' + cursor: + cursor: '#81a1c1' + text: '#2e3440' +# Colors (Elenapan) Pamela Rice + pamela_color_scheme: &pamela_color_scheme + primary: + background: '#1D1F28' + foreground: '#FDFDFD' + normal: + black: '#3D4C5F' + red: '#F37F97' + green: '#5ADECD' + yellow: '#F2A272' + blue: '#8897F4' + magenta: '#C574DD' + cyan: '#79E6F3' + white: '#FDFDFD' + bright: + black: '#56687E' + red: '#FF4971' + green: '#18E3C8' + yellow: '#FF8037' + blue: '#556FFF' + magenta: '#B043D1' + cyan: '#3FDCEE' + white: '#BEBEC1' + cursor: + cursor: '#FF4971' + text: '#1D1F28' +# Colors (Gruvbox) Silvia Rice + silvia_gruvbox: &silvia_gruvbox + primary: + background: '#282828' + foreground: '#fbf1c7' + normal: + black: '#a89984' + red: '#cc241d' + green: '#98971a' + yellow: '#d79921' + blue: '#458588' + magenta: '#b16286' + cyan: '#689d6a' + white: '#ebdbb2' + bright: + black: '#a89984' + red: '#fb4934' + green: '#b8bb26' + yellow: '#fabd2f' + blue: '#83a598' + magenta: '#d3869b' + cyan: '#8ec07c' + white: '#ebdbb2' + cursor: + cursor: '#fbf1c7' + text: '#282828' +# Colors (Decay, decayce variant) z0mbi3 Rice + z0mbi3_decay: &z0mbi3_decay + primary: + background: '#0d0f18' + foreground: '#a5b6cf' + normal: + black: '#3d414f' + red: '#dd6777' + green: '#90ceaa' + yellow: '#ecd3a0' + blue: '#86aaec' + magenta: '#c296eb' + cyan: '#93cee9' + white: '#cbced3' + bright: + black: '#3d414f' + red: '#dd6777' + green: '#90ceaa' + yellow: '#ecd3a0' + blue: '#86aaec' + magenta: '#c296eb' + cyan: '#93cee9' + white: '#cbced3' + cursor: + cursor: '#a5b6cf' + text: '#0d0f18' + +# Set the color scheme for the actual rice. +colors: *karla_z0mbi3_night diff --git a/config/bspwm/assets/brightness.svg b/config/bspwm/assets/brightness.svg new file mode 100644 index 0000000..85c44c1 --- /dev/null +++ b/config/bspwm/assets/brightness.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/config/bspwm/assets/cancel.svg b/config/bspwm/assets/cancel.svg new file mode 100644 index 0000000..666d5dd --- /dev/null +++ b/config/bspwm/assets/cancel.svg @@ -0,0 +1,39 @@ + + + + + + + + + + \ No newline at end of file diff --git a/config/bspwm/assets/fallback.webp b/config/bspwm/assets/fallback.webp new file mode 100644 index 0000000..5498859 Binary files /dev/null and b/config/bspwm/assets/fallback.webp differ diff --git a/config/bspwm/assets/ka-rofi.webp b/config/bspwm/assets/ka-rofi.webp new file mode 100644 index 0000000..c03ad78 Binary files /dev/null and b/config/bspwm/assets/ka-rofi.webp differ diff --git a/config/bspwm/assets/mute.png b/config/bspwm/assets/mute.png new file mode 100644 index 0000000..41cf959 Binary files /dev/null and b/config/bspwm/assets/mute.png differ diff --git a/config/bspwm/assets/profile.png b/config/bspwm/assets/profile.png new file mode 100644 index 0000000..e6fdf2b Binary files /dev/null and b/config/bspwm/assets/profile.png differ diff --git a/config/bspwm/assets/reload.svg b/config/bspwm/assets/reload.svg new file mode 100644 index 0000000..691de0f --- /dev/null +++ b/config/bspwm/assets/reload.svg @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/config/bspwm/assets/screenshot.svg b/config/bspwm/assets/screenshot.svg new file mode 100644 index 0000000..342a4a6 --- /dev/null +++ b/config/bspwm/assets/screenshot.svg @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/config/bspwm/assets/vol.png b/config/bspwm/assets/vol.png new file mode 100644 index 0000000..7e388f6 Binary files /dev/null and b/config/bspwm/assets/vol.png differ diff --git a/config/bspwm/bspwmrc b/config/bspwm/bspwmrc new file mode 100755 index 0000000..f24ae64 --- /dev/null +++ b/config/bspwm/bspwmrc @@ -0,0 +1,92 @@ +#!/usr/bin/env bash +# ╔╗ ╔═╗╔═╗╦ ╦╔╦╗ - z0mbi3 +# ╠╩╗╚═╗╠═╝║║║║║║ - https://github.com/gh0stzk/dotfiles +# ╚═╝╚═╝╩ ╚╩╝╩ ╩ - z0mbi3.zk@protonmail.com + + +# ┬┌┬┐┌─┐┌─┐┬─┐┌┬┐┌─┐┌┐┌┌┬┐ ┬ ┬┌─┐┬─┐┬┌─┐┌┐ ┬ ┌─┐┌─┐ +# ││││├─┘│ │├┬┘ │ ├─┤│││ │ └┐┌┘├─┤├┬┘│├─┤├┴┐│ ├┤ └─┐ +# ┴┴ ┴┴ └─┘┴└─ ┴ ┴ ┴┘└┘ ┴ └┘ ┴ ┴┴└─┴┴ ┴└─┘┴─┘└─┘└─┘ + + +PATH="$HOME/.config/bspwm/scripts:$PATH" +rice_dir="$HOME/.config/bspwm/karla" + +## Fix java applications +export _JAVA_AWT_WM_NONREPARENTING=1 + +# ┬ ┬┌─┐┬─┐┬┌─┌─┐┌─┐┌─┐┌─┐┌─┐┌─┐ +# ││││ │├┬┘├┴┐└─┐├─┘├─┤│ ├┤ └─┐ +# └┴┘└─┘┴└─┴ ┴└─┘┴ ┴ ┴└─┘└─┘└─┘ + +workspaces() { + name=1 + for monitor in $(bspc query -M); do + bspc monitor "${monitor}" -n "$name" -d '1' '2' '3' '4' '5' '6' + #bspc monitor ${monitor} -n "$name" -d '' '' '' '' '' '' + (( name++ )) + done +} + +workspaces + +# ┌┐ ┌─┐┌─┐┬ ┬┌┬┐ ┌─┐┌─┐┌┐┌┌─┐┬┌─┐ +# ├┴┐└─┐├─┘││││││ │ │ ││││├┤ ││ ┬ +# └─┘└─┘┴ └┴┘┴ ┴ └─┘└─┘┘└┘└ ┴└─┘ + +bspc config external_rules_command $HOME/.config/bspwm/scripts/ExternalRules + +bspc config split_ratio 0.51 +bspc config single_monocle true +bspc config borderless_monocle false +bspc config gapless_monocle false + +bspc config focus_follows_pointer true +bspc config pointer_follows_focus false +bspc config pointer_motion_interval 5 +bspc config pointer_modifier mod4 +bspc config pointer_action1 move +bspc config pointer_action2 resize_side +bspc config pointer_action3 resize_corner + +#bspc wm --adopt-orphans +bspc rule -a scratch sticky=on state=floating focus=on + +# ┬ ┌─┐┬ ┬┌┐┌┌─┐┬ ┬ ┌─┐┌─┐─┐ ┬┬ ┬ ┬─┐┬┌─┐┌─┐┌─┐ +# │ ├─┤│ │││││ ├─┤ └─┐├┤ ┌┴┬┘└┬┘ ├┬┘││ ├┤ └─┐ +# ┴─┘┴ ┴└─┘┘└┘└─┘┴ ┴ └─┘└─┘┴ └─ ┴ ┴└─┴└─┘└─┘└─┘ + +# Set system vars for polybar +. SetSysVars + +# Terminate already running polybar,picom, sxhkd and dunst instances +processes=("picom" "polybar" "sxhkd" "dunst") + +for process in "${processes[@]}"; do + if pidof -q "$process"; then + pkill -9 -x "$process" > /dev/null; sleep 0.1 + fi +done + +# Load colors, dunst, bars and/or eww widgets +. ${rice_dir}/Theme.sh + +# Launch picom // If you have old hardware or encounter problems +# uncomment the picom "--legacy-backends" line and comment the current one. +picom --config "$HOME"/.config/bspwm/picom.conf & +#picom --legacy-backends --config "$HOME"/.config/bspwm/picom.conf & + +# Launch dunst notification daemon +dunst -config "$HOME"/.config/bspwm/dunstrc & + +# Set random wallpaper for actual rice +feh -z --no-fehbg --bg-fill ${rice_dir}/walls + +# Reload sxhkd daemon +sxhkd -c "$HOME"/.config/bspwm/sxhkdrc & + +# Launch polkit +pidof -q polkit-gnome-authentication-agent-1 || { /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & } + +# Fix cursor +xsetroot -cursor_name left_ptr diff --git a/config/bspwm/dunstrc b/config/bspwm/dunstrc new file mode 100644 index 0000000..e1b2cec --- /dev/null +++ b/config/bspwm/dunstrc @@ -0,0 +1,68 @@ +# ╔╦╗╦ ╦╔╗╔╔═╗╔╦╗ ╔═╗╔═╗╔╗╔╔═╗╦╔═╗ +# ║║║ ║║║║╚═╗ ║ ║ ║ ║║║║╠╣ ║║ ╦ +# ═╩╝╚═╝╝╚╝╚═╝ ╩ ╚═╝╚═╝╝╚╝╚ ╩╚═╝ + +[global] +title = Dunst +class = Dunst +monitor = 0 +follow = mouse +width = 300 +height = 300 +origin = top-right +offset = 10x92 +indicate_hidden = yes +shrink = yes + +transparency = 8 +separator_height = 2 +padding = 8 +horizontal_padding = 11 +frame_width = 6 +frame_color = "#0E1113" +separator_color = "#353c52" + +font = JetBrainsMono Nerd Font Medium 9 + +line_height = 0 +markup = full +format = "%s\n%b" +alignment = center + +idle_threshold = 120 +show_age_threshold = 60 +sort = no +word_wrap = yes +ignore_newline = no +stack_duplicates = false +hide_duplicate_count = yes +show_indicators = no +sticky_history = no +history_length = 20 +always_run_script = true +corner_radius = 4 +icon_position = left +max_icon_size = 80 + +icon_path = /usr/share/icons/Papirus-Dark/48x48/actions/:/usr/share/icons/Papirus-Dark/48x48/apps/:/usr/share/icons/Papirus-Dark/48x48/devices/:/usr/share/icons/Papirus-Dark/48x48/emblems/:/usr/share/icons/Papirus-Dark/48x48/emotes/:/usr/share/icons/Papirus-Dark/48x48/mimetypes/:/usr/share/icons/Papirus-Dark/48x48/places/:/usr/share/icons/Papirus-Dark/48x48/status/ + +browser = firefox + +mouse_left_click = close_current +mouse_middle_click = do_action +mouse_right_click = close_all + +[urgency_low] +timeout = 3 +background = "#0E1113" +foreground = "#afb1db" + +[urgency_normal] +timeout = 6 +background = "#0E1113" +foreground = "#afb1db" + +[urgency_critical] +timeout = 0 +background = "#0E1113" +foreground = "#afb1db" diff --git a/config/bspwm/karla/Theme.sh b/config/bspwm/karla/Theme.sh new file mode 100755 index 0000000..31c554a --- /dev/null +++ b/config/bspwm/karla/Theme.sh @@ -0,0 +1,90 @@ +#!/usr/bin/env bash +# ██╗ ██╗ █████╗ ██████╗ ██╗ █████╗ ██████╗ ██╗ ██████╗███████╗ +# ██║ ██╔╝██╔══██╗██╔══██╗██║ ██╔══██╗ ██╔══██╗██║██╔════╝██╔════╝ +# █████╔╝ ███████║██████╔╝██║ ███████║ ██████╔╝██║██║ █████╗ +# ██╔═██╗ ██╔══██║██╔══██╗██║ ██╔══██║ ██╔══██╗██║██║ ██╔══╝ +# ██║ ██╗██║ ██║██║ ██║███████╗██║ ██║ ██║ ██║██║╚██████╗███████╗ +# ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═════╝╚══════╝ +# Author : z0mbi3 +# Url : https://github.com/gh0stzk/dotfiles +# About : This file will configure and launch the rice. +# + +# Set bspwm configuration for Karla +set_bspwm_config() { + bspc config border_width 3 + bspc config top_padding 48 + bspc config bottom_padding 2 + bspc config normal_border_color "#21222c" + bspc config active_border_color "#353c52" + bspc config focused_border_color "#353c52" + bspc config presel_feedback_color "#ff79c6" + bspc config left_padding 2 + bspc config right_padding 2 + bspc config window_gap 6 +} + +# Reload terminal colors +set_term_config() { + sed -i "$HOME"/.config/alacritty/fonts.yml \ + -e "s/family: .*/family: JetBrainsMono Nerd Font/g" \ + -e "s/size: .*/size: 6/g" + + sed -i "$HOME"/.config/alacritty/rice-colors.yml \ + -e "s/colors: .*/colors: *karla_z0mbi3_night/" +} + +# Set compositor configuration +set_picom_config() { + sed -i "$HOME"/.config/bspwm/picom.conf \ + -e "s/normal = .*/normal = { fade = false; shadow = false; }/g" \ + -e "s/shadow-color = .*/shadow-color = \"#000000\"/g" \ + -e "s/corner-radius = .*/corner-radius = 0/g" \ + -e "s/\".*:class_g = 'Alacritty'\"/\"95:class_g = 'Alacritty'\"/g" \ + -e "s/\".*:class_g = 'FloaTerm'\"/\"95:class_g = 'FloaTerm'\"/g" +} + +# Set dunst notification daemon config +set_dunst_config() { + sed -i "$HOME"/.config/bspwm/dunstrc \ + -e "s/transparency = .*/transparency = 8/g" \ + -e "s/frame_color = .*/frame_color = \"#0E1113\"/g" \ + -e "s/separator_color = .*/separator_color = \"#353c52\"/g" \ + -e "s/font = .*/font = JetBrainsMono Nerd Font Medium 9/g" \ + -e "s/foreground='.*'/foreground='#7a44e3'/g" + + sed -i '/urgency_low/Q' "$HOME"/.config/bspwm/dunstrc + cat >> "$HOME"/.config/bspwm/dunstrc <<- _EOF_ + [urgency_low] + timeout = 3 + background = "#0E1113" + foreground = "#afb1db" + + [urgency_normal] + timeout = 6 + background = "#0E1113" + foreground = "#afb1db" + + [urgency_critical] + timeout = 0 + background = "#0E1113" + foreground = "#afb1db" +_EOF_ +} + +# Launch the bar +launch_bars() { + polybar -q karla-bar -c ${rice_dir}/config.ini & + polybar -q karla-bar2 -c ${rice_dir}/config.ini & + polybar -q karla-bar3 -c ${rice_dir}/config.ini & +} + + + +### ---------- Apply Configurations ---------- ### + +set_bspwm_config +set_term_config +set_picom_config +set_dunst_config +launch_bars diff --git a/config/bspwm/karla/config.ini b/config/bspwm/karla/config.ini new file mode 100644 index 0000000..d3044f7 --- /dev/null +++ b/config/bspwm/karla/config.ini @@ -0,0 +1,195 @@ +; ____ _ _ +;| _ \ ___ | |_ _| |__ __ _ _ __ +;| |_) / _ \| | | | | '_ \ / _` | '__| +;| __/ (_) | | |_| | |_) | (_| | | +;|_| \___/|_|\__, |_.__/ \__,_|_| +; |___/ + +[global/wm] + +margin-bottom = 0 +margin-top = 0 + +include-file = ~/.config/bspwm/scripts/system.ini +include-file = ~/.config/bspwm/scripts/colors.ini +include-file = modules.ini + +[bar/karla-bar] + +monitor-strict = false + +override-redirect = false + +bottom = false +fixed-center = true + +width = 38% +height = 37 + +offset-x = 1% +offset-y = 5 + +background = ${karla.bg} +foreground = ${karla.fg} + +radius = 12.0 + +line-size = 2 +line-color = ${karla.blue} + +border-size = 2 +border-color = ${karla.bc} + +padding = 2 + +module-margin-left = 0 +module-margin-right = 0 + +; Text +font-0 = "JetBrainsMono:style=Bold:size=9;2" +; Icons +font-1 = "Material Design Icons Desktop:size=13;3" +font-2 = "Font Awesome 6 Free Solid:size=10;2" + +;dpi = 96 + +modules-left = launcher +modules-center = cpu memory filesystem +modules-right = weather + +separator = " | " +dim-value = 1.0 + +;;locale = es_MX.UTF-8 +wm-restack = bspwm +enable-ipc = true + +cursor-click = pointer +cursor-scroll = + +[bar/karla-bar2] + +monitor-strict = false + +override-redirect = false + +bottom = false +fixed-center = true + +width = 38% +height = 37 + +offset-x = 61% +offset-y = 5 + +background = ${karla.bg} +foreground = ${karla.fg} + +radius = 12.0 + +line-size = 2 +line-color = ${karla.blue} + +border-size = 2 +border-color = ${karla.bc} + +padding = 3 + +module-margin-left = 0 +module-margin-right = 0 + +; Text +font-0 = "JetBrainsMono:style=Bold:size=9;2" +; Icons +font-1 = "Font Awesome 6 Free Solid:size=10;3" +;dpi = 96 + +modules-left = mpd_control +modules-center = brightness battery network pulseaudio updates +modules-right = date + +separator = " | " +dim-value = 1.0 + +;;locale = es_MX.UTF-8 + + +tray-position = right +tray-detached = false +tray-maxsize = 16 +tray-background = ${karla.bg} +tray-offset-x = 0 +tray-offset-y = 0 +tray-padding = 0 +tray-scale = 1.0 + +wm-restack = bspwm +enable-ipc = true + +cursor-click = pointer +cursor-scroll = + +[bar/karla-bar3] + +monitor-strict = false + +override-redirect = false + +bottom = false +fixed-center = true + +width = 20% +height = 37 + +offset-x = 40% +offset-y = 5 + +background = ${karla.bg} +foreground = ${karla.fg} + +radius = 12.0 + +line-size = 2 +line-color = ${karla.blue} + +border-size = 2 +border-color = ${karla.bc} + +padding = 3 + +module-margin-left = 0 +module-margin-right = 0 + +; Text +font-0 = "JetBrainsMono:style=Bold:size=9;2" +; Icons +font-1 = "Material Design Icons Desktop:size=13;3" +;dpi = 96 + +modules-left = +modules-center = bspwm +modules-right = + +separator = "" +dim-value = 1.0 + +;;locale = es_MX.UTF-8 + +wm-restack = bspwm +enable-ipc = true + +cursor-click = pointer +cursor-scroll = + + +[settings] + +screenchange-reload = false + +compositing-background = source +compositing-foreground = over +compositing-overline = over +compositing-underline = over +compositing-border = over + +pseudo-transparency = false diff --git a/config/bspwm/karla/launcher.rasi b/config/bspwm/karla/launcher.rasi new file mode 100644 index 0000000..c6b19d6 --- /dev/null +++ b/config/bspwm/karla/launcher.rasi @@ -0,0 +1,172 @@ + + +/** Original Work + * Author : Aditya Shakya (adi1090x) + * Github : https://github.com/adi1090x/rofi + **/ + +configuration { + modi: "drun"; + icon-theme: "Papirus-Dark"; + application-fallback-icon: "Adwaita"; + show-icons: true; + drun-display-format: "{name}"; + disable-history: true; + sidebar-mode: false; + + hover-select: true; + me-select-entry: ""; + me-accept-entry: "MousePrimary"; +} + +/*****----- Global Properties -----*****/ +* { + font: "JetBrainsMono Nerd Font Bold 9"; + background: #0E1113F7; + background-alt: #0E1113; + foreground: #afb1db; + selected: #3d7fea; +} + +/*****----- Main Window -----*****/ +window { + /* properties for window widget */ + transparency: "real"; + location: center; + anchor: center; + fullscreen: false; + width: 550px; + x-offset: 0px; + y-offset: 0px; + + /* properties for all widgets */ + enabled: true; + border-radius: 6px; + cursor: "default"; + background-color: @background; +} + +/*****----- Main Box -----*****/ +mainbox { + enabled: true; + spacing: 0px; + background-color: transparent; + orientation: vertical; + children: [ "inputbar", "listbox" ]; +} + +listbox { + spacing: 10px; + padding: 10px 5px 10px 5px; + background-color: transparent; + orientation: vertical; + children: [ "message", "listview" ]; +} + +/*****----- Inputbar -----*****/ +inputbar { + enabled: true; + spacing: 10px; + padding: 40px 40px 45px; + background-color: transparent; + background-image: url("~/.config/bspwm/assets/ka-rofi.webp", width); + text-color: @foreground; + orientation: horizontal; + children: [ "textbox-prompt-colon", "entry" ]; +} +textbox-prompt-colon { + enabled: true; + expand: false; + str: ""; + padding: 12px 15px; + border-radius: 8px; + background-color: @background-alt; + text-color: inherit; +} +entry { + enabled: true; + expand: true; + padding: 12px 16px; + border-radius: 8px; + background-color: @background-alt; + text-color: inherit; + cursor: text; + placeholder: "Search"; + placeholder-color: inherit; +} +dummy { + expand: true; + background-color: transparent; +} + + + +/*****----- Listview -----*****/ +listview { + enabled: true; + columns: 3; + lines: 5; + cycle: true; + dynamic: true; + scrollbar: false; + layout: vertical; + reverse: false; + fixed-height: true; + fixed-columns: true; + + spacing: 1px; + background-color: transparent; + text-color: @foreground; + cursor: "default"; +} + +/*****----- Elements -----*****/ +element { + enabled: true; + spacing: 10px; + padding: 8px; + border-radius: 4px; + background-color: transparent; + text-color: @foreground; + cursor: pointer; +} +element normal.normal { + background-color: inherit; + text-color: inherit; +} +element selected.normal { + background-image: linear-gradient(0deg,#353c52,#7a44e3); + text-color: @background; +} +element-icon { + background-color: transparent; + text-color: inherit; + size: 24px; + cursor: inherit; +} +element-text { + background-color: transparent; + text-color: inherit; + cursor: inherit; + vertical-align: 0.5; + horizontal-align: 0.0; +} + +/*****----- Message -----*****/ +message { + background-color: transparent; +} +textbox { + padding: 12px; + border-radius: 5px; + background-color: @background-alt; + text-color: @foreground; + vertical-align: 0.5; + horizontal-align: 0.0; +} +error-message { + padding: 12px; + border-radius: 5px; + background-color: @background; + text-color: @foreground; +} diff --git a/config/bspwm/karla/modules.ini b/config/bspwm/karla/modules.ini new file mode 100644 index 0000000..d062738 --- /dev/null +++ b/config/bspwm/karla/modules.ini @@ -0,0 +1,272 @@ +; __ __ _ _ +;| \/ | ___ __| |_ _| | ___ ___ +;| |\/| |/ _ \ / _` | | | | |/ _ \/ __| +;| | | | (_) | (_| | |_| | | __/\__ \ +;|_| |_|\___/ \__,_|\__,_|_|\___||___/ +; + + +[module/date] +type = internal/date + +interval = 1.0 + +time = %I:%M %P +date-alt = " %a, %d %b %y" + +format =