diff --git a/.bashrc b/.bashrc new file mode 100644 index 0000000..d2c62a7 --- /dev/null +++ b/.bashrc @@ -0,0 +1,33 @@ +# +# ~/.bashrc +# + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +alias ls='ls --color=auto' +#alias neofetch='neofetch | lolcat' +alias vim='nvim' + +# colors +BLACK="\[$(tput setaf 0)\]" +RED="\[$(tput setaf 1)\]" +GREEN="\[$(tput setaf 2)\]" +ORANGE="\[$(tput setaf 3)\]" +BLUE="\[$(tput setaf 4)\]" +VIOLET="\[$(tput setaf 5)\]" +CYAN="\[$(tput setaf 6)\]" +GRAY="\[$(tput setaf 7)\]" +RESET="\[$(tput sgr0)\]" + +# bg colors +BLUE_BG="\[$(tput setab 12)\]" +VIOLET_BG="\[$(tput setab 13)\]" + + +# PS1="${BLUE}\u${GREEN}@${RED}\h ${GREEN}\W${RESET} > " +PS1="${VIOLET_BG}${BLACK}\[$(tput bold)\][ \W ]${RESET} " +# + +GTK_THEME=materia-gtk-theme + diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml new file mode 100644 index 0000000..da3c4a2 --- /dev/null +++ b/.config/alacritty/alacritty.yml @@ -0,0 +1,79 @@ +# alacritty themes +# +# + +background_opacity: 0.35 + +schemes: + # Tokyo Night theme, based on both: + # https://github.com/ghifarit53/tokyonight-vim + # https://github.com/enkia/tokyo-night-vscode-theme + tokyo-night: &tokyo-night + # Default colors + primary: + background: '0x1a1b26' + foreground: '0xa9b1d6' + + # Normal colors + normal: + black: '0x32344a' + red: '0xf7768e' + green: '0x9ece6a' + yellow: '0xe0af68' + blue: '0x7aa2f7' + magenta: '0xad8ee6' + cyan: '0x449dab' + white: '0x787c99' + + # Bright colors + bright: + black: '0x444b6a' + red: '0xff7a93' + green: '0xb9f27c' + yellow: '0xff9e64' + blue: '0x7da6ff' + magenta: '0xbb9af7' + cyan: '0x0db9d7' + white: '0xacb0d0' + + tokyo-night-storm: &tokyo-night-storm + # Default colors + primary: + background: '0x24283b' + foreground: '0xa9b1d6' + + # Normal colors + normal: + black: '0x32344a' + red: '0xf7768e' + green: '0x9ece6a' + yellow: '0xe0af68' + blue: '0x7aa2f7' + magenta: '0xad8ee6' + cyan: '0x449dab' + white: '0x9699a8' + + # Bright colors + bright: + black: '0x444b6a' + red: '0xff7a93' + green: '0xb9f27c' + yellow: '0xff9e64' + blue: '0x7da6ff' + magenta: '0xbb9af7' + cyan: '0x0db9d7' + white: '0xacb0d0' + + + +colors: *tokyo-night + + +font: + normal: + family: mononoki Nerd Font Mono + style: Regular + + +# bg opacity +opacity: 0.5 diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc new file mode 100755 index 0000000..7e92941 --- /dev/null +++ b/.config/bspwm/bspwmrc @@ -0,0 +1,41 @@ +#!/bin/bash + +# Set current monitor config to something, otherwise default to 7 +CURRENT_MONITOR_CONFIG=${1:-7} + +if [[ "${CURRENT_MONITOR_CONFIG}" -eq 4 ]]; then + echo "BSPWM is 4" + bspc monitor DP-2 -d I II III IV V & + bspc monitor HDMI-0 -d VI VII VIII IX X +elif [[ "${CURRENT_MONITOR_CONFIG}" -eq 5 ]]; then + echo "BSPWM is 5" + bspc monitor DP-2 -d I II III IV V & + bspc monitor DP-4 -d VI VII VIII IX X +elif [[ "${CURRENT_MONITOR_CONFIG}" -eq 6 ]]; then + echo "BSPWM is 6" + bspc monitor HDMI-0 -d VI VII VIII IX X & + bspc monitor DP-4 -d I II III IV V +elif [[ "${CURRENT_MONITOR_CONFIG}" -eq 7 ]]; then + echo "BSPWM is 7" + bspc monitor DP-4 -d I II III & + bspc monitor HDMI-0 -d IV V VI & + bspc monitor DP-2 -d VII VIII IX X +else + echo "BSPWM is default: ${CURRENT_MONITOR_CONFIG}" + bspc monitor -d I II III IV V VI VII VIII IX X +fi + +pgrep -x sxhkd > /dev/null || sxhkd & +$HOME/.config/polybar/launch.sh $CURRENT_MONITOR_CONFIG & + +# + +#bspc config border_width 2 +bspc config border_width 0 +bspc config window_gap 15 + +bspc config split_ratio 0.52 +bspc config borderless_monocle true +bspc config gapless_monocle true + + diff --git a/.config/bspwm/bspwmrc.bak b/.config/bspwm/bspwmrc.bak new file mode 100755 index 0000000..9cefdd8 --- /dev/null +++ b/.config/bspwm/bspwmrc.bak @@ -0,0 +1,45 @@ +#!/bin/bash + +# Set current monitor configuration to something, otherwise default to 7 +CURRENT_MONITOR_CONFIG=${1:-7} + +if [[ ${CURRENT_MONTIOR_CONFIG} -eq 4 ]];then + echo "Going with 4 for BSPWM" + bspc monitor DP-1 -d I II III IV V & + bspc monitor HDMI-1 -d VI VII VIII IX X & +elif [[ ${CURRENT_MONTIOR_CONFIG} -eq 5 ]];then + echo "Going with 5 for BSPWM" + bspc monitor DP-1 -d I II III IV V & + bspc monitor DP-2 -d VI VII VIII IX X & +elif [[ ${CURRENT_MONTIOR_CONFIG} -eq 6 ]];then + echo "Going with 6 for BSPWM" + bspc monitor HDMI-1 -d I II III IV V & + bspc monitor DP-2 -d VI VII VIII IX X & +elif [[ ${CURRENT_MONTIOR_CONFIG} -eq 7 ]];then + echo "Going with 7 for BSPWM" + bspc monitor DP-1 -d I II III IV & + bspc monitor HDMI-1 -d V VI VII & + bspc monitor DP-2 -d VIII IX X & +else + echo "Going with default:$CURRENT_MONITOR_CONFIG for BSPWM" + bspc monitor -d I II III IV V VI VII VIII IX X & +fi + +pgrep -x sxhkd > /dev/null || sxhkd & +$HOME/.config/polybar/launch.sh $CURRENT_MONITOR_CONFIG & + +#bspc query --names | xargs -n1 -I{} bspc monitor {} -d 1 2 3 4 5 6 7 8 9 0 + +bspc config border_width 2 +bspc config window_gap 15 + +bspc config split_ratio 0.52 +bspc config borderless_monocle true +bspc config gapless_monocle true + +#bspc rule -a Gimp desktop='^8' +#state=floating follow=on +#bspc rule -a librewolf desktop='^2' +#bspc rule -a mplayer2 state=floating +#bspc rule -a Kupfer.py focus=on +#bspc rule -a Screenkey manage=off diff --git a/.config/bspwm/launch.sh b/.config/bspwm/launch.sh new file mode 100755 index 0000000..7339334 --- /dev/null +++ b/.config/bspwm/launch.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +# Terminate already running bar instances +killall -q polybar + +# Wait until the processes have been killed +while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done + +CURRENT_MONITOR_CONFIG=${1:-7} + +# Launch Polybar using default config location +# ~/.config/polybar/config +if [[ "${CURRENT_MONITOR_CONFIG}" -eq 4 ]];then + echo "Going with 4 for polybar" + polybar primary & + polybar secondary & +elif [[ "${CURRENT_MONITOR_CONFIG}" -eq 5 ]];then + echo "Going with 5 for polybar" + polybar primary & + polybar tertiary & +elif [[ "${CURRENT_MONITOR_CONFIG}" -eq 6 ]];then + echo "Going with 6 for polybar" + polybar secondary & + polybar tertiary & +elif [[ "${CURRENT_MONITOR_CONFIG}" -eq 7 ]];then + echo "Going with 7 for polybar" + polybar primary & + polybar secondary & + polybar tertiary & +else + echo "Going with default for polybar" + polybar example & +fi + + +echo "Polybar launched..." diff --git a/.config/neofetch/config.conf b/.config/neofetch/config.conf new file mode 100644 index 0000000..cc5937d --- /dev/null +++ b/.config/neofetch/config.conf @@ -0,0 +1,868 @@ +# See this wiki page for more info: +# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info +print_info() { + info title + info underline + + info " OS" distro +#  +# info " Host" model + info " Kernel" kernel + info " Uptime" uptime +# + info " Packages" packages +#  + info " Shell" shell + # info " Resolution" resolution + # info " DE" de + info " WM" wm +# info " WM Theme" wm_theme +# info " Theme" theme +# info " Icons" icons + info " Terminal" term +#  + info " Terminal Font" term_font + info " CPU" cpu + info "菉GPU" gpu + info " Memory" memory + + # info "GPU Driver" gpu_driver # Linux/macOS only + # info "CPU Usage" cpu_usage + # info "Disk" disk + # info "Battery" battery + # info "Font" font + # info " Song" song + # [[ "$player" ]] && prin " Music Player" "$player" + # info "Local IP" local_ip + # info "Public IP" public_ip + # info "Users" users + # info "Locale" locale # This only works on glibc systems. + + info cols +} + +# Title + + +# Hide/Show Fully qualified domain name. +# +# Default: 'off' +# Values: 'on', 'off' +# Flag: --title_fqdn +title_fqdn="off" + + +# Kernel + + +# Shorten the output of the kernel function. +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --kernel_shorthand +# Supports: Everything except *BSDs (except PacBSD and PC-BSD) +# +# Example: +# on: '4.8.9-1-ARCH' +# off: 'Linux 4.8.9-1-ARCH' +kernel_shorthand="on" + + +# Distro + + +# Shorten the output of the distro function +# +# Default: 'off' +# Values: 'on', 'tiny', 'off' +# Flag: --distro_shorthand +# Supports: Everything except Windows and Haiku +distro_shorthand="off" + +# Show/Hide OS Architecture. +# Show 'x86_64', 'x86' and etc in 'Distro:' output. +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --os_arch +# +# Example: +# on: 'Arch Linux x86_64' +# off: 'Arch Linux' +os_arch="on" + + +# Uptime + + +# Shorten the output of the uptime function +# +# Default: 'on' +# Values: 'on', 'tiny', 'off' +# Flag: --uptime_shorthand +# +# Example: +# on: '2 days, 10 hours, 3 mins' +# tiny: '2d 10h 3m' +# off: '2 days, 10 hours, 3 minutes' +uptime_shorthand="on" + + +# Memory + + +# Show memory pecentage in output. +# +# Default: 'off' +# Values: 'on', 'off' +# Flag: --memory_percent +# +# Example: +# on: '1801MiB / 7881MiB (22%)' +# off: '1801MiB / 7881MiB' +memory_percent="off" + +# Change memory output unit. +# +# Default: 'mib' +# Values: 'kib', 'mib', 'gib' +# Flag: --memory_unit +# +# Example: +# kib '1020928KiB / 7117824KiB' +# mib '1042MiB / 6951MiB' +# gib: ' 0.98GiB / 6.79GiB' +memory_unit="mib" + + +# Packages + + +# Show/Hide Package Manager names. +# +# Default: 'tiny' +# Values: 'on', 'tiny' 'off' +# Flag: --package_managers +# +# Example: +# on: '998 (pacman), 8 (flatpak), 4 (snap)' +# tiny: '908 (pacman, flatpak, snap)' +# off: '908' +package_managers="on" + + +# Shell + + +# Show the path to $SHELL +# +# Default: 'off' +# Values: 'on', 'off' +# Flag: --shell_path +# +# Example: +# on: '/bin/bash' +# off: 'bash' +shell_path="off" + +# Show $SHELL version +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --shell_version +# +# Example: +# on: 'bash 4.4.5' +# off: 'bash' +shell_version="on" + + +# CPU + + +# CPU speed type +# +# Default: 'bios_limit' +# Values: 'scaling_cur_freq', 'scaling_min_freq', 'scaling_max_freq', 'bios_limit'. +# Flag: --speed_type +# Supports: Linux with 'cpufreq' +# NOTE: Any file in '/sys/devices/system/cpu/cpu0/cpufreq' can be used as a value. +speed_type="bios_limit" + +# CPU speed shorthand +# +# Default: 'off' +# Values: 'on', 'off'. +# Flag: --speed_shorthand +# NOTE: This flag is not supported in systems with CPU speed less than 1 GHz +# +# Example: +# on: 'i7-6500U (4) @ 3.1GHz' +# off: 'i7-6500U (4) @ 3.100GHz' +speed_shorthand="off" + +# Enable/Disable CPU brand in output. +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --cpu_brand +# +# Example: +# on: 'Intel i7-6500U' +# off: 'i7-6500U (4)' +cpu_brand="on" + +# CPU Speed +# Hide/Show CPU speed. +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --cpu_speed +# +# Example: +# on: 'Intel i7-6500U (4) @ 3.1GHz' +# off: 'Intel i7-6500U (4)' +cpu_speed="on" + +# CPU Cores +# Display CPU cores in output +# +# Default: 'logical' +# Values: 'logical', 'physical', 'off' +# Flag: --cpu_cores +# Support: 'physical' doesn't work on BSD. +# +# Example: +# logical: 'Intel i7-6500U (4) @ 3.1GHz' (All virtual cores) +# physical: 'Intel i7-6500U (2) @ 3.1GHz' (All physical cores) +# off: 'Intel i7-6500U @ 3.1GHz' +cpu_cores="logical" + +# CPU Temperature +# Hide/Show CPU temperature. +# Note the temperature is added to the regular CPU function. +# +# Default: 'off' +# Values: 'C', 'F', 'off' +# Flag: --cpu_temp +# Supports: Linux, BSD +# NOTE: For FreeBSD and NetBSD-based systems, you'll need to enable +# coretemp kernel module. This only supports newer Intel processors. +# +# Example: +# C: 'Intel i7-6500U (4) @ 3.1GHz [27.2°C]' +# F: 'Intel i7-6500U (4) @ 3.1GHz [82.0°F]' +# off: 'Intel i7-6500U (4) @ 3.1GHz' +cpu_temp="off" + + +# GPU + + +# Enable/Disable GPU Brand +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --gpu_brand +# +# Example: +# on: 'AMD HD 7950' +# off: 'HD 7950' +gpu_brand="on" + +# Which GPU to display +# +# Default: 'all' +# Values: 'all', 'dedicated', 'integrated' +# Flag: --gpu_type +# Supports: Linux +# +# Example: +# all: +# GPU1: AMD HD 7950 +# GPU2: Intel Integrated Graphics +# +# dedicated: +# GPU1: AMD HD 7950 +# +# integrated: +# GPU1: Intel Integrated Graphics +gpu_type="all" + + +# Resolution + + +# Display refresh rate next to each monitor +# Default: 'off' +# Values: 'on', 'off' +# Flag: --refresh_rate +# Supports: Doesn't work on Windows. +# +# Example: +# on: '1920x1080 @ 60Hz' +# off: '1920x1080' +refresh_rate="off" + + +# Gtk Theme / Icons / Font + + +# Shorten output of GTK Theme / Icons / Font +# +# Default: 'off' +# Values: 'on', 'off' +# Flag: --gtk_shorthand +# +# Example: +# on: 'Numix, Adwaita' +# off: 'Numix [GTK2], Adwaita [GTK3]' +gtk_shorthand="off" + + +# Enable/Disable gtk2 Theme / Icons / Font +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --gtk2 +# +# Example: +# on: 'Numix [GTK2], Adwaita [GTK3]' +# off: 'Adwaita [GTK3]' +gtk2="on" + +# Enable/Disable gtk3 Theme / Icons / Font +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --gtk3 +# +# Example: +# on: 'Numix [GTK2], Adwaita [GTK3]' +# off: 'Numix [GTK2]' +gtk3="on" + + +# IP Address + + +# Website to ping for the public IP +# +# Default: 'http://ident.me' +# Values: 'url' +# Flag: --ip_host +public_ip_host="http://ident.me" + +# Public IP timeout. +# +# Default: '2' +# Values: 'int' +# Flag: --ip_timeout +public_ip_timeout=2 + + +# Desktop Environment + + +# Show Desktop Environment version +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --de_version +de_version="on" + + +# Disk + + +# Which disks to display. +# The values can be any /dev/sdXX, mount point or directory. +# NOTE: By default we only show the disk info for '/'. +# +# Default: '/' +# Values: '/', '/dev/sdXX', '/path/to/drive'. +# Flag: --disk_show +# +# Example: +# disk_show=('/' '/dev/sdb1'): +# 'Disk (/): 74G / 118G (66%)' +# 'Disk (/mnt/Videos): 823G / 893G (93%)' +# +# disk_show=('/'): +# 'Disk (/): 74G / 118G (66%)' +# +disk_show=('/') + +# Disk subtitle. +# What to append to the Disk subtitle. +# +# Default: 'mount' +# Values: 'mount', 'name', 'dir', 'none' +# Flag: --disk_subtitle +# +# Example: +# name: 'Disk (/dev/sda1): 74G / 118G (66%)' +# 'Disk (/dev/sdb2): 74G / 118G (66%)' +# +# mount: 'Disk (/): 74G / 118G (66%)' +# 'Disk (/mnt/Local Disk): 74G / 118G (66%)' +# 'Disk (/mnt/Videos): 74G / 118G (66%)' +# +# dir: 'Disk (/): 74G / 118G (66%)' +# 'Disk (Local Disk): 74G / 118G (66%)' +# 'Disk (Videos): 74G / 118G (66%)' +# +# none: 'Disk: 74G / 118G (66%)' +# 'Disk: 74G / 118G (66%)' +# 'Disk: 74G / 118G (66%)' +disk_subtitle="mount" + +# Disk percent. +# Show/Hide disk percent. +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --disk_percent +# +# Example: +# on: 'Disk (/): 74G / 118G (66%)' +# off: 'Disk (/): 74G / 118G' +disk_percent="on" + + +# Song + + +# Manually specify a music player. +# +# Default: 'auto' +# Values: 'auto', 'player-name' +# Flag: --music_player +# +# Available values for 'player-name': +# +# amarok +# audacious +# banshee +# bluemindo +# clementine +# cmus +# deadbeef +# deepin-music +# dragon +# elisa +# exaile +# gnome-music +# gmusicbrowser +# gogglesmm +# guayadeque +# io.elementary.music +# iTunes +# juk +# lollypop +# mocp +# mopidy +# mpd +# muine +# netease-cloud-music +# olivia +# playerctl +# pogo +# pragha +# qmmp +# quodlibet +# rhythmbox +# sayonara +# smplayer +# spotify +# strawberry +# tauonmb +# tomahawk +# vlc +# xmms2d +# xnoise +# yarock +music_player="auto" + +# Format to display song information. +# +# Default: '%artist% - %album% - %title%' +# Values: '%artist%', '%album%', '%title%' +# Flag: --song_format +# +# Example: +# default: 'Song: Jet - Get Born - Sgt Major' +song_format="%artist% - %album% - %title%" + +# Print the Artist, Album and Title on separate lines +# +# Default: 'off' +# Values: 'on', 'off' +# Flag: --song_shorthand +# +# Example: +# on: 'Artist: The Fratellis' +# 'Album: Costello Music' +# 'Song: Chelsea Dagger' +# +# off: 'Song: The Fratellis - Costello Music - Chelsea Dagger' +song_shorthand="off" + +# 'mpc' arguments (specify a host, password etc). +# +# Default: '' +# Example: mpc_args=(-h HOST -P PASSWORD) +mpc_args=() + + +# Text Colors + + +# Text Colors +# +# Default: 'distro' +# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num' +# Flag: --colors +# +# Each number represents a different part of the text in +# this order: 'title', '@', 'underline', 'subtitle', 'colon', 'info' +# +# Example: +# colors=(distro) - Text is colored based on Distro colors. +# colors=(4 6 1 8 8 6) - Text is colored in the order above. +colors=(distro) + + +# Text Options + + +# Toggle bold text +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --bold +bold="on" + +# Enable/Disable Underline +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --underline +underline_enabled="on" + +# Underline character +# +# Default: '-' +# Values: 'string' +# Flag: --underline_char +underline_char="─" + + +# Info Separator +# Replace the default separator with the specified string. +# +# Default: ':' +# Flag: --separator +# +# Example: +# separator="->": 'Shell-> bash' +# separator=" =": 'WM = dwm' +separator=" " + + +# Color Blocks + + +# Color block range +# The range of colors to print. +# +# Default: '0', '15' +# Values: 'num' +# Flag: --block_range +# +# Example: +# +# Display colors 0-7 in the blocks. (8 colors) +# neofetch --block_range 0 7 +# +# Display colors 0-15 in the blocks. (16 colors) +# neofetch --block_range 0 15 +block_range=(0 15) + +# Toggle color blocks +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --color_blocks +color_blocks="on" + +# Color block width in spaces +# +# Default: '3' +# Values: 'num' +# Flag: --block_width +block_width=3 + +# Color block height in lines +# +# Default: '1' +# Values: 'num' +# Flag: --block_height +block_height=1 + +# Color Alignment +# +# Default: 'auto' +# Values: 'auto', 'num' +# Flag: --col_offset +# +# Number specifies how far from the left side of the terminal (in spaces) to +# begin printing the columns, in case you want to e.g. center them under your +# text. +# Example: +# col_offset="auto" - Default behavior of neofetch +# col_offset=7 - Leave 7 spaces then print the colors +col_offset="auto" + +# Progress Bars + + +# Bar characters +# +# Default: '-', '=' +# Values: 'string', 'string' +# Flag: --bar_char +# +# Example: +# neofetch --bar_char 'elapsed' 'total' +# neofetch --bar_char '-' '=' +bar_char_elapsed="-" +bar_char_total="=" + +# Toggle Bar border +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --bar_border +bar_border="on" + +# Progress bar length in spaces +# Number of chars long to make the progress bars. +# +# Default: '15' +# Values: 'num' +# Flag: --bar_length +bar_length=15 + +# Progress bar colors +# When set to distro, uses your distro's logo colors. +# +# Default: 'distro', 'distro' +# Values: 'distro', 'num' +# Flag: --bar_colors +# +# Example: +# neofetch --bar_colors 3 4 +# neofetch --bar_colors distro 5 +bar_color_elapsed="distro" +bar_color_total="distro" + + +# Info display +# Display a bar with the info. +# +# Default: 'off' +# Values: 'bar', 'infobar', 'barinfo', 'off' +# Flags: --cpu_display +# --memory_display +# --battery_display +# --disk_display +# +# Example: +# bar: '[---=======]' +# infobar: 'info [---=======]' +# barinfo: '[---=======] info' +# off: 'info' +cpu_display="off" +memory_display="off" +battery_display="off" +disk_display="off" + + +# Backend Settings + + +# Image backend. +# +# Default: 'ascii' +# Values: 'ascii', 'caca', 'chafa', 'jp2a', 'iterm2', 'off', +# 'pot', 'termpix', 'pixterm', 'tycat', 'w3m', 'kitty' +# Flag: --backend +image_backend="ascii" + +# Image Source +# +# Which image or ascii file to display. +# +# Default: 'auto' +# Values: 'auto', 'ascii', 'wallpaper', '/path/to/img', '/path/to/ascii', '/path/to/dir/' +# 'command output (neofetch --ascii "$(fortune | cowsay -W 30)")' +# Flag: --source +# +# NOTE: 'auto' will pick the best image source for whatever image backend is used. +# In ascii mode, distro ascii art will be used and in an image mode, your +# wallpaper will be used. +image_source="auto" + + +# Ascii Options + + +# Ascii distro +# Which distro's ascii art to display. +# +# Default: 'auto' +# Values: 'auto', 'distro_name' +# Flag: --ascii_distro +# NOTE: AIX, Alpine, Anarchy, Android, Antergos, antiX, "AOSC OS", +# "AOSC OS/Retro", Apricity, ArcoLinux, ArchBox, ARCHlabs, +# ArchStrike, XFerience, ArchMerge, Arch, Artix, Arya, Bedrock, +# Bitrig, BlackArch, BLAG, BlankOn, BlueLight, bonsai, BSD, +# BunsenLabs, Calculate, Carbs, CentOS, Chakra, ChaletOS, +# Chapeau, Chrom*, Cleanjaro, ClearOS, Clear_Linux, Clover, +# Condres, Container_Linux, CRUX, Cucumber, Debian, Deepin, +# DesaOS, Devuan, DracOS, DarkOs, DragonFly, Drauger, Elementary, +# EndeavourOS, Endless, EuroLinux, Exherbo, Fedora, Feren, FreeBSD, +# FreeMiNT, Frugalware, Funtoo, GalliumOS, Garuda, Gentoo, Pentoo, +# gNewSense, GNOME, GNU, GoboLinux, Grombyang, Guix, Haiku, Huayra, +# Hyperbola, janus, Kali, KaOS, KDE_neon, Kibojoe, Kogaion, +# Korora, KSLinux, Kubuntu, LEDE, LFS, Linux_Lite, +# LMDE, Lubuntu, Lunar, macos, Mageia, MagpieOS, Mandriva, +# Manjaro, Maui, Mer, Minix, LinuxMint, MX_Linux, Namib, +# Neptune, NetBSD, Netrunner, Nitrux, NixOS, Nurunner, +# NuTyX, OBRevenge, OpenBSD, openEuler, OpenIndiana, openmamba, +# OpenMandriva, OpenStage, OpenWrt, osmc, Oracle, OS Elbrus, PacBSD, +# Parabola, Pardus, Parrot, Parsix, TrueOS, PCLinuxOS, Peppermint, +# popos, Porteus, PostMarketOS, Proxmox, Puppy, PureOS, Qubes, Radix, +# Raspbian, Reborn_OS, Redstar, Redcore, Redhat, Refracted_Devuan, +# Regata, Rosa, sabotage, Sabayon, Sailfish, SalentOS, Scientific, +# Septor, SereneLinux, SharkLinux, Siduction, Slackware, SliTaz, +# SmartOS, Solus, Source_Mage, Sparky, Star, SteamOS, SunOS, +# openSUSE_Leap, openSUSE_Tumbleweed, openSUSE, SwagArch, Tails, +# Trisquel, Ubuntu-Budgie, Ubuntu-GNOME, Ubuntu-MATE, Ubuntu-Studio, +# Ubuntu, Venom, Void, Obarun, windows10, Windows7, Xubuntu, Zorin, +# and IRIX have ascii logos +# NOTE: Arch, Ubuntu, Redhat, and Dragonfly have 'old' logo variants. +# Use '{distro name}_old' to use the old logos. +# NOTE: Ubuntu has flavor variants. +# Change this to Lubuntu, Kubuntu, Xubuntu, Ubuntu-GNOME, +# Ubuntu-Studio, Ubuntu-Mate or Ubuntu-Budgie to use the flavors. +# NOTE: Arcolinux, Dragonfly, Fedora, Alpine, Arch, Ubuntu, +# CRUX, Debian, Gentoo, FreeBSD, Mac, NixOS, OpenBSD, android, +# Antrix, CentOS, Cleanjaro, ElementaryOS, GUIX, Hyperbola, +# Manjaro, MXLinux, NetBSD, Parabola, POP_OS, PureOS, +# Slackware, SunOS, LinuxLite, OpenSUSE, Raspbian, +# postmarketOS, and Void have a smaller logo variant. +# Use '{distro name}_small' to use the small variants. +ascii_distro="auto" + +# Ascii Colors +# +# Default: 'distro' +# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num' +# Flag: --ascii_colors +# +# Example: +# ascii_colors=(distro) - Ascii is colored based on Distro colors. +# ascii_colors=(4 6 1 8 8 6) - Ascii is colored using these colors. +ascii_colors=(distro) + +# Bold ascii logo +# Whether or not to bold the ascii logo. +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --ascii_bold +ascii_bold="on" + + +# Image Options + + +# Image loop +# Setting this to on will make neofetch redraw the image constantly until +# Ctrl+C is pressed. This fixes display issues in some terminal emulators. +# +# Default: 'off' +# Values: 'on', 'off' +# Flag: --loop +image_loop="off" + +# Thumbnail directory +# +# Default: '~/.cache/thumbnails/neofetch' +# Values: 'dir' +thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch" + +# Crop mode +# +# Default: 'normal' +# Values: 'normal', 'fit', 'fill' +# Flag: --crop_mode +# +# See this wiki page to learn about the fit and fill options. +# https://github.com/dylanaraps/neofetch/wiki/What-is-Waifu-Crop%3F +crop_mode="normal" + +# Crop offset +# Note: Only affects 'normal' crop mode. +# +# Default: 'center' +# Values: 'northwest', 'north', 'northeast', 'west', 'center' +# 'east', 'southwest', 'south', 'southeast' +# Flag: --crop_offset +crop_offset="center" + +# Image size +# The image is half the terminal width by default. +# +# Default: 'auto' +# Values: 'auto', '00px', '00%', 'none' +# Flags: --image_size +# --size +image_size="auto" + +# Gap between image and text +# +# Default: '3' +# Values: 'num', '-num' +# Flag: --gap +gap=3 + +# Image offsets +# Only works with the w3m backend. +# +# Default: '0' +# Values: 'px' +# Flags: --xoffset +# --yoffset +yoffset=0 +xoffset=0 + +# Image background color +# Only works with the w3m backend. +# +# Default: '' +# Values: 'color', 'blue' +# Flag: --bg_color +background_color= + + +# Misc Options + +# Stdout mode +# Turn off all colors and disables image backend (ASCII/Image). +# Useful for piping into another command. +# Default: 'off' +# Values: 'on', 'off' +stdout="off" diff --git a/.config/neofetch/dotfiles b/.config/neofetch/dotfiles new file mode 160000 index 0000000..d075344 --- /dev/null +++ b/.config/neofetch/dotfiles @@ -0,0 +1 @@ +Subproject commit d07534453a7d28939a17c8f02eabf731b77539d3 diff --git a/.config/nitrogen/bg-saved.cfg b/.config/nitrogen/bg-saved.cfg new file mode 100644 index 0000000..fc1e225 --- /dev/null +++ b/.config/nitrogen/bg-saved.cfg @@ -0,0 +1,4 @@ +[xin_-1] +file=/home/hornet/Pictures/bg/america.png +mode=5 +bgcolor=#000000 diff --git a/.config/nitrogen/nitrogen.cfg b/.config/nitrogen/nitrogen.cfg new file mode 100644 index 0000000..184fc6b --- /dev/null +++ b/.config/nitrogen/nitrogen.cfg @@ -0,0 +1,12 @@ +[geometry] +posx=2175 +posy=55 +sizex=1886 +sizey=1006 + +[nitrogen] +view=icon +recurse=true +sort=alpha +icon_caps=false +dirs=/home/hornet/Pictures/bg; diff --git a/.config/nitrogen/randomize-wallpaper.sh b/.config/nitrogen/randomize-wallpaper.sh new file mode 100755 index 0000000..8a4556c --- /dev/null +++ b/.config/nitrogen/randomize-wallpaper.sh @@ -0,0 +1 @@ +nitrogen --random --set-zoom-fill diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim new file mode 100644 index 0000000..4992b9c --- /dev/null +++ b/.config/nvim/init.vim @@ -0,0 +1,119 @@ +set nocompatible +set showmatch +set ignorecase +set hlsearch +set tabstop=4 +set softtabstop=4 +set shiftwidth=4 +set autoindent +set number +set wildmode=longest,list +set cc=80 +syntax on +set mouse=a +set clipboard=unnamedplus +set ttyfast + +set splitright +set splitbelow + +call plug#begin("~/.vim/plugged") + " Plugin section + " Code Completion +" Plug 'neoclide/coc.nvim', {'branch': 'release'} + " Theme + Plug 'ghifarit53/tokyonight-vim' + " Snippets Engine + Plug 'honza/vim-snippets' + " Icons for nerdtree +" Plug 'ryanoasis/vim-devicons' + " Mass comment + Plug 'preservim/nerdcommenter' + " Nerd tree for file exploring +" Plug 'scrooloose/nerdtree' + " Telescope for... uh... + Plug 'nvim-telescope/telescope.nvim' + " Start splash screen +" Plug 'mhinz/vim-startify' + " i guess that colored icons need web devicons? + Plug 'kyazdani42/nvim-web-devicons' + " also bufferline makes better tabs + Plug 'akinsho/bufferline.nvim' + "new nerdtree + Plug 'kyazdani42/nvim-tree.lua' +call plug#end() + +"color schemes +let g:tokyonight_style = 'night' +let g:tokyonight_enable_italic = 1 +colorscheme tokyonight +if (has("termguicolors")) + set termguicolors +endif +syntax enable + + +" move split panes around +nnoremap H +nnoremap J +nnoremap K +nnoremap L + +" move between panes +nnoremap h +nnoremap j +nnoremap k +nnoremap l + +" open NERDtree +nnoremap n :NvimTreeFocus +nnoremap :NvimTreeOpen +nnoremap :NvimTreeToggle +nnoremap :NvimTreeFind + + +autocmd VimEnter * NvimTreeOpen +"autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif + +lua << EOF +require("bufferline").setup{ + options = { + offsets = { { filetype = "NvimTree", text = "", padding = 1 } }, + } +} +require'nvim-tree'.setup{ + open_on_setup = true; + auto_close = true; + diagnostics = { enable = false }; + disable_netrw = true; + hijack_cursor = true; +} +EOF + +"let g:nvim_tree_auto_open = 1 +"let g:nvim_tree_auto_close = 0 +"let g:nvim_tree_auto_ignore_ft = ['startify', 'dashboard'] +"let g:nvim_tree_quit_on_open = 0 +"let g:nvim_tree_follow_update_path = 1 +"let g:nvim_tree_indent_markers = 1 +"let g:nvim_tree_hide_dotfiles = 0 +"let g:nvim_tree_git_hl = "1 +"let g:nvim_tree_highlight_opened_files = 1 +"let g:nvim_tree_root_folder_modifier = ':~' +"let g:nvim_tree_tab_open = 1 +"let g:nvim_tree_auto_resize = 0 +"let g:nvim_tree_disable_netrw = 1 +"let g:nvim_tree_hijack_netrw = 0 +"let g:nvim_tree_add_trailing = 1 +"let g:nvim_tree_group_empty = 1 +"let g:nvim_tree_lsp_diagnostics = 1 +"let g:nvim_tree_icon_padding = ' ' +"let g:nvim_tree_symlink_arrow = ' >>' +"let g:nvim_tree_special_files = { 'README.md': 1, 'Makefile': 1, 'MAKEFILE': 1 } +"let g:nvim_tree_show_icons = { +" \ 'git': 1, +" \ 'folders': 1, +" \ 'files': 1, +" \ 'folder_arrows': 0 +" \ } + diff --git a/.config/picom/launch.sh b/.config/picom/launch.sh new file mode 100755 index 0000000..4dfc219 --- /dev/null +++ b/.config/picom/launch.sh @@ -0,0 +1,2 @@ +killall -q picom +picom -b --config $HOME/.config/picom/picom.conf --experimental-backends diff --git a/.config/picom/picom.conf b/.config/picom/picom.conf new file mode 100644 index 0000000..6527807 --- /dev/null +++ b/.config/picom/picom.conf @@ -0,0 +1,32 @@ +# Corners +corner-radius = 25.0; +rounded-corners-exclude = [ + "class_g = 'Polybar'" +]; +round-borders = 1; + +# Shadows +shadow = true; + +# Fading +fading = true; +fade-delta = 5; + +# blur +backend = "glx"; + +active-opacity = 1; +inactive-opacity = 0.6; +opacity-rule = [ + "100:class_g = 'rofi-menu'", + "100:class_g = 'librewolf'", + "100:class_g = 'alacritty'", + "100:class_g = 'Polybar'", + "50:class_g = 'Bspwm' && class_i = 'presel_feedback'" +]; + +blur-kern = "3x3box"; +blur-method = "dual_kawase"; +blur_strength = 15; +blur-background-exclude = [ +]; diff --git a/.config/picom/picom.conf.bak b/.config/picom/picom.conf.bak new file mode 100644 index 0000000..b6bcc98 --- /dev/null +++ b/.config/picom/picom.conf.bak @@ -0,0 +1,463 @@ + +################################# +# Corners # +################################# +# requires: https://github.com/sdhand/compton +corner-radius = 5.0; +round-borders = 1; + +rounded-corners-exclude = [ + # "class_g = 'Polybar'" +] + +################################# +# Shadows # +################################# + + +# Enabled client-side shadows on windows. Note desktop windows +# (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow, +# unless explicitly requested using the wintypes option. +# +# shadow = false +shadow = false; + +# The blur radius for shadows, in pixels. (defaults to 12) +# shadow-radius = 12 +# shadow-radius = 14; +shadow-radius = 20; +# shadow-radius = 40; + +# The opacity of shadows. (0.0 - 1.0, defaults to 0.75) +shadow-opacity = .75 +# shadow-opacity = .25 + +# The left offset for shadows, in pixels. (defaults to -15) +# shadow-offset-x = -15 +# shadow-offset-x = -40; +shadow-offset-x = -20; + +# The top offset for shadows, in pixels. (defaults to -15) +# shadow-offset-y = -15 +# shadow-offset-y = -10; +shadow-offset-y = -20; + +# Avoid drawing shadows on dock/panel windows. This option is deprecated, +# you should use the *wintypes* option in your config file instead. +# + +# Don't draw shadows on drag-and-drop windows. This option is deprecated, +# you should use the *wintypes* option in your config file instead. +# +# no-dnd-shadow = false + +# Red color value of shadow (0.0 - 1.0, defaults to 0). +# shadow-red = 0 + +# Green color value of shadow (0.0 - 1.0, defaults to 0). +# shadow-green = 0 + +# Blue color value of shadow (0.0 - 1.0, defaults to 0). +# shadow-blue = 0 + +# Do not paint shadows on shaped windows. Note shaped windows +# here means windows setting its shape through X Shape extension. +# Those using ARGB background is beyond our control. +# Deprecated, use +# shadow-exclude = 'bounding_shaped' +# or +# shadow-exclude = 'bounding_shaped && !rounded_corners' +# instead. +# +# shadow-ignore-shaped = true + +# Specify a list of conditions of windows that should have no shadow. +# +# examples: +# shadow-exclude = "n:e:Notification"; +# +# shadow-exclude = [ "class_g='Polybar'" ] + +# Specify a X geometry that describes the region in which shadow should not +# be painted in, such as a dock window region. Use +# shadow-exclude-reg = "x10+0+0" +# for example, if the 10 pixels on the bottom of the screen should not have shadows painted on. +# +# shadow-exclude-reg = "" + +# Crop shadow of a window fully on a particular Xinerama screen to the screen. +# xinerama-shadow-crop = false + + +################################# +# Fading # +################################# + + +# Fade windows in/out when opening/closing and when opacity changes, +# unless no-fading-openclose is used. +# fading = false +fading = true; + +# Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028) +fade-in-step = 0.028 + +# Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03) +fade-out-step = 0.03 + +# The time between steps in fade step, in milliseconds. (> 0, defaults to 10) +fade-delta = 4 + +# Specify a list of conditions of windows that should not be faded. +# don't need this, we disable fading for all normal windows with wintypes: {} +# fading-exclue = [ "class_g='polybar'"] + +# Do not fade on window open/close. +# no-fading-openclose = true + +# Do not fade destroyed ARGB windows with WM frame. Workaround of bugs in Openbox, Fluxbox, etc. +# no-fading-destroyed-argb = false + + +################################# +# Transparency / Opacity # +################################# + + +# Opacity of inactive windows. (0.1 - 1.0, defaults to 1.0) +# inactive-opacity = 0.8 +# inactive-opacity = 0.8; +# inactive-opacity = 0.9; + +# Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default) +frame-opacity = 1; +# frame-opacity = 0.7; + +# Default opacity for dropdown menus and popup menus. (0.0 - 1.0, defaults to 1.0) +# menu-opacity = 1.0 + +# Let inactive opacity set by -i override the '_NET_WM_OPACITY' values of windows. +# inactive-opacity-override = true +inactive-opacity-override = false; + +# Default opacity for active windows. (0.0 - 1.0, defaults to 1.0) +active-opacity = 1; + +# Dim inactive windows. (0.0 - 1.0, defaults to 0.0) +# inactive-dim = 0.2; + +# Specify a list of conditions of windows that should always be considered focused. +focus-exclude = [ + "class_g = 'slop'", + "class_g = 'Dmenu'", + "class_g = 'Rofi'" + ] + +# Use fixed inactive dim value, instead of adjusting according to window opacity. +# inactive-dim-fixed = 1.0 + +# Specify a list of opacity rules, in the format `PERCENT:PATTERN`, +# like `50:name *= "Firefox"`. picom-trans is recommended over this. +# Note we don't make any guarantee about possible conflicts with other +# programs that set '_NET_WM_WINDOW_OPACITY' on frame or client windows. +# example: +# opacity-rule = [ "80:class_g = 'URxvt'" ]; +# +opacity-rule = [ + "75:class_g = 'Rofi'", + "100:class_g = 'zoom'", +]; + + +################################# +# Background-Blurring # +################################# + + +# Parameters for background blurring, see the *BLUR* section for more information. +# blur-method = +# blur-size = 12 +# +# blur-deviation = false + +# Blur background of semi-transparent / ARGB windows. +# Bad in performance, with driver-dependent behavior. +# The name of the switch may change without prior notifications. +# +# blur-background = true; + +# Blur background of windows when the window frame is not opaque. +# Implies: +# blur-background +# Bad in performance, with driver-dependent behavior. The name may change. +# +# blur-background-frame = false; + + +# Use fixed blur strength rather than adjusting according to window opacity. +# blur-background-fixed = false; + + +# Specify the blur convolution kernel, with the following format: +# example: +# blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"; +# +# blur-kern = '' +# blur-kern = "3x3box"; + +# blur: { +# # requires: https://github.com/ibhagwan/picom +# method = "kawase"; +# #method = "kernel"; +# strength = 10; +# # deviation = 1.0; +# # kernel = "11x11gaussian"; +# background = true; +# background-frame = false; +# background-fixed = false; +# kern = "3x3box"; +# } + +blur: { + method = "dual_kawase"; + strength = 5; + background = true; + background-frame = false; + background-fixed = false; +} + +# Exclude conditions for background blur. +blur-background-exclude = [ + "window_type = 'dock'", + "class_g = 'slop'", + "class_g = 'rofi'", + #"class_g = 'polybar'" + #"class_g = 'zoom'", +]; + + +################################# +# General Settings # +################################# + +# Daemonize process. Fork to background after initialization. Causes issues with certain (badly-written) drivers. +daemon = false + +# Specify the backend to use: `xrender`, `glx`, or `xr_glx_hybrid`. +# `xrender` is the default one. +# +experimental-backends = true; +#backend = "xr_glx_hybrid"; +backend = "glx"; + + +# Enable/disable VSync. +# vsync = false +vsync = true + +# Enable remote control via D-Bus. See the *D-BUS API* section below for more details. +# dbus = false + +# Try to detect WM windows (a non-override-redirect window with no +# child that has 'WM_STATE') and mark them as active. +# +# mark-wmwin-focused = false +mark-wmwin-focused = false; + +# Mark override-redirect windows that doesn't have a child window with 'WM_STATE' focused. +# mark-ovredir-focused = false +mark-ovredir-focused = true; + +# Try to detect windows with rounded corners and don't consider them +# shaped windows. The accuracy is not very high, unfortunately. +# +# detect-rounded-corners = false +detect-rounded-corners = false; + +# Detect '_NET_WM_OPACITY' on client windows, useful for window managers +# not passing '_NET_WM_OPACITY' of client windows to frame windows. +# +# detect-client-opacity = false +detect-client-opacity = false; + +# Specify refresh rate of the screen. If not specified or 0, picom will +# try detecting this with X RandR extension. +# +# refresh-rate = 60 +refresh-rate = 0 + +# Limit picom to repaint at most once every 1 / 'refresh_rate' second to +# boost performance. This should not be used with +# vsync drm/opengl/opengl-oml +# as they essentially does sw-opti's job already, +# unless you wish to specify a lower refresh rate than the actual value. +# +# sw-opti = + +# Use EWMH '_NET_ACTIVE_WINDOW' to determine currently focused window, +# rather than listening to 'FocusIn'/'FocusOut' event. Might have more accuracy, +# provided that the WM supports it. +# +# use-ewmh-active-win = false + +# Unredirect all windows if a full-screen opaque window is detected, +# to maximize performance for full-screen windows. Known to cause flickering +# when redirecting/unredirecting windows. paint-on-overlay may make the flickering less obvious. +# +unredir-if-possible = true + +# Delay before unredirecting the window, in milliseconds. Defaults to 0. +# unredir-if-possible-delay = 0 + +# Conditions of windows that shouldn't be considered full-screen for unredirecting screen. +# unredir-if-possible-exclude = [] + +# Use 'WM_TRANSIENT_FOR' to group windows, and consider windows +# in the same group focused at the same time. +# +# detect-transient = false +detect-transient = true + +# Use 'WM_CLIENT_LEADER' to group windows, and consider windows in the same +# group focused at the same time. 'WM_TRANSIENT_FOR' has higher priority if +# detect-transient is enabled, too. +# +# detect-client-leader = false +detect-client-leader = true + +# Resize damaged region by a specific number of pixels. +# A positive value enlarges it while a negative one shrinks it. +# If the value is positive, those additional pixels will not be actually painted +# to screen, only used in blur calculation, and such. (Due to technical limitations, +# with use-damage, those pixels will still be incorrectly painted to screen.) +# Primarily used to fix the line corruption issues of blur, +# in which case you should use the blur radius value here +# (e.g. with a 3x3 kernel, you should use `--resize-damage 1`, +# with a 5x5 one you use `--resize-damage 2`, and so on). +# May or may not work with *--glx-no-stencil*. Shrinking doesn't function correctly. +# +# resize-damage = 1 + +# Specify a list of conditions of windows that should be painted with inverted color. +# Resource-hogging, and is not well tested. +# +# invert-color-include = [] + +# GLX backend: Avoid using stencil buffer, useful if you don't have a stencil buffer. +# Might cause incorrect opacity when rendering transparent content (but never +# practically happened) and may not work with blur-background. +# My tests show a 15% performance boost. Recommended. +# +glx-no-stencil = true + +# GLX backend: Avoid rebinding pixmap on window damage. +# Probably could improve performance on rapid window content changes, +# but is known to break things on some drivers (LLVMpipe, xf86-video-intel, etc.). +# Recommended if it works. +# +# glx-no-rebind-pixmap = false + +# Disable the use of damage information. +# This cause the whole screen to be redrawn everytime, instead of the part of the screen +# has actually changed. Potentially degrades the performance, but might fix some artifacts. +# The opposing option is use-damage +# +# no-use-damage = false +use-damage = true + +# Use X Sync fence to sync clients' draw calls, to make sure all draw +# calls are finished before picom starts drawing. Needed on nvidia-drivers +# with GLX backend for some users. +# +xrender-sync-fence = false + +# GLX backend: Use specified GLSL fragment shader for rendering window contents. +# See `compton-default-fshader-win.glsl` and `compton-fake-transparency-fshader-win.glsl` +# in the source tree for examples. +# +# glx-fshader-win = '' + +# Force all windows to be painted with blending. Useful if you +# have a glx-fshader-win that could turn opaque pixels transparent. +# +# force-win-blend = false + +# Do not use EWMH to detect fullscreen windows. +# Reverts to checking if a window is fullscreen based only on its size and coordinates. +# +# no-ewmh-fullscreen = false + +# Dimming bright windows so their brightness doesn't exceed this set value. +# Brightness of a window is estimated by averaging all pixels in the window, +# so this could comes with a performance hit. +# Setting this to 1.0 disables this behaviour. Requires --use-damage to be disabled. (default: 1.0) +# +# max-brightness = 1.0 + +# Make transparent windows clip other windows like non-transparent windows do, +# instead of blending on top of them. +# +# transparent-clipping = false + +# Set the log level. Possible values are: +# "trace", "debug", "info", "warn", "error" +# in increasing level of importance. Case doesn't matter. +# If using the "TRACE" log level, it's better to log into a file +# using *--log-file*, since it can generate a huge stream of logs. +# +# log-level = "debug" +log-level = "debug"; + +# Set the log file. +# If *--log-file* is never specified, logs will be written to stderr. +# Otherwise, logs will to written to the given file, though some of the early +# logs might still be written to the stderr. +# When setting this option from the config file, it is recommended to use an absolute path. +# +# log-file = '/path/to/your/log/file' + +# Show all X errors (for debugging) +# show-all-xerrors = false + +# Write process ID to a file. +# write-pid-path = '/path/to/your/log/file' + +# Window type settings +# +# 'WINDOW_TYPE' is one of the 15 window types defined in EWMH standard: +# "unknown", "desktop", "dock", "toolbar", "menu", "utility", +# "splash", "dialog", "normal", "dropdown_menu", "popup_menu", +# "tooltip", "notification", "combo", and "dnd". +# +# Following per window-type options are available: :: +# +# fade, shadow::: +# Controls window-type-specific shadow and fade settings. +# +# opacity::: +# Controls default opacity of the window type. +# +# focus::: +# Controls whether the window of this type is to be always considered focused. +# (By default, all window types except "normal" and "dialog" has this on.) +# +# full-shadow::: +# Controls whether shadow is drawn under the parts of the window that you +# normally won't be able to see. Useful when the window has parts of it +# transparent, and you want shadows in those areas. +# +# redir-ignore::: +# Controls whether this type of windows should cause screen to become +# redirected again after been unredirected. If you have unredir-if-possible +# set, and doesn't want certain window to cause unnecessary screen redirection, +# you can set this to `true`. +# +wintypes: +{ + # tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; }; + dock = { fade = false; shadow = false; full-shadow = false; } + # dnd = { shadow = false; } + # popup_menu = { opacity = 0.8; } + # dropdown_menu = { opacity = 0.8; } +}; + diff --git a/.config/polybar/config b/.config/polybar/config new file mode 100644 index 0000000..8ecfd59 --- /dev/null +++ b/.config/polybar/config @@ -0,0 +1,581 @@ +;========================================================== +; +; +; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ +; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ +; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ +; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ +; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ +; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ +; +; +; To learn more about how to configure Polybar +; go to https://github.com/polybar/polybar +; +; The README contains a lot of information +; +;========================================================== + +[colors] + +black = #32344a +red = #f7768e +green = #9ece6a +yellow = #e0af68 +blue = #7aa2f7 +magenta = #ad8ee6 +cyan = #449dab +white = #787c99 + +;background = ${xrdb:color0:#222} +background = #1a1b26 +background-alt = #444 +;foreground = ${xrdb:color7:#222} +foreground = #a9b1d6 +foreground-alt = #555 +primary = ${colors.magenta} +secondary = ${colors.yellow} +alert = ${colors.red} + +[bar/example] +;monitor = ${env:monitor:hdmi-1} +width = 100% +height = 27 +;offset-x = 1% +;offset-y = 1% +;radius = 6.0 +fixed-center = false + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 3 +line-color = #f00 + +;border-size = 4 +;border-color = #00000000 + +padding-left = 0 +padding-right = 2 + +module-margin-left = 1 +module-margin-right = 2 + +font-0 = fixed:pixelsize=10;1 +font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 +font-2 = siji:pixelsize=10;1 + +modules-left = bspwm +;modules-center = mpd +modules-right = filesystem xbacklight pulseaudio xkeyboard memory cpu wlan eth battery temperature date powermenu + +tray-position = center +tray-padding = 4 +;tray-background = #0063ff + +;wm-restack = bspwm +;wm-restack = i3 + +;override-redirect = true + +;scroll-up = bspwm-desknext +;scroll-down = bspwm-deskprev + +;scroll-up = i3wm-wsnext +;scroll-down = i3wm-wsprev + +cursor-click = pointer +cursor-scroll = ns-resize + +[bar/primary] +bottom = false +monitor = DP-2 + +modules-left = bspwm +;modules-center = mpd +modules-right = pulseaudio xkeyboard memory cpu wlan eth date + +;monitor = ${env:monitor:hdmi-1} +width = 100% +height = 27 +;offset-x = 1% +;offset-y = 1% +;radius = 6.0 +fixed-center = false + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 3 +line-color = #f00 + +;border-size = 4 +;border-color = #00000000 + +padding-left = 0 +padding-right = 2 + +module-margin-left = 1 +module-margin-right = 2 + +font-0 = fixed:pixelsize=10;1 +font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 +font-2 = siji:pixelsize=10;1 + +tray-position = center +tray-padding = 4 +;tray-background = #0063ff + +;wm-restack = bspwm +;wm-restack = i3 + +;override-redirect = true + +;scroll-up = bspwm-desknext +;scroll-down = bspwm-deskprev + +;scroll-up = i3wm-wsnext +;scroll-down = i3wm-wsprev + +cursor-click = pointer +cursor-scroll = ns-resize + +[bar/secondary] +bottom = false +monitor = DP-4 + +modules-left = bspwm +modules-right = pulseaudio date + +width = 100% +height = 45 +;offset-x = 1% +;offset-y = 1% +;radius = 6.0 +fixed-center = false + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 3 +line-color = #f00 + +;border-size = 4 +;border-color = #00000000 + +padding-left = 0 +padding-right = 2 + +module-margin-left = 1 +module-margin-right = 2 + +font-0 = fixed:pixelsize=16;1 +font-1 = unifont:fontformat=truetype:size=12:antialias=false;0 +font-2 = siji:pixelsize=16;1 + +tray-position = right +tray-padding = 2 +;tray-background = #0063ff + +cursor-click = pointer +cursor-scroll = ns-resize + +[bar/tertiary] +bottom = false +monitor = HDMI-0 + +modules-left = bspwm +modules-center = mpd +modules-right = pulseaudio date + +;monitor = ${env:monitor:hdmi-1} +width = 100% +height = 27 +;offset-x = 1% +;offset-y = 1% +;radius = 6.0 +fixed-center = false + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 3 +line-color = #f00 + +;border-size = 4 +;border-color = #00000000 + +padding-left = 0 +padding-right = 2 + +module-margin-left = 1 +module-margin-right = 2 + +font-0 = fixed:pixelsize=10;1 +font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 +font-2 = siji:pixelsize=10;1 + +;tray-position = right +;tray-padding = 2 +;tray-background = #0063ff + +;wm-restack = bspwm +;wm-restack = i3 + +;override-redirect = true + +;scroll-up = bspwm-desknext +;scroll-down = bspwm-deskprev + +;scroll-up = i3wm-wsnext +;scroll-down = i3wm-wsprev + +cursor-click = pointer +cursor-scroll = ns-resize + + +[module/xwindow] +type = internal/xwindow +label = %title:0:30:...% + +[module/xkeyboard] +type = internal/xkeyboard +blacklist-0 = num lock + +format-prefix = " " +format-prefix-foreground = ${colors.foreground-alt} +format-prefix-underline = ${colors.secondary} + +label-layout = %layout% +label-layout-underline = ${colors.secondary} + +label-indicator-padding = 2 +label-indicator-margin = 1 +label-indicator-background = ${colors.secondary} +label-indicator-underline = ${colors.secondary} + +[module/filesystem] +type = internal/fs +interval = 25 + +mount-0 = / + +label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%% +label-unmounted = %mountpoint% not mounted +label-unmounted-foreground = ${colors.foreground-alt} + +[module/bspwm] +type = internal/bspwm +pin-workspaces = true + +label-focused = %name% +label-focused-background = ${colors.background-alt} +label-focused-underline= ${colors.primary} +label-focused-padding = 2 + +label-occupied = %name% +label-occupied-padding = 2 + +label-urgent = %name%! +label-urgent-background = ${colors.alert} +label-urgent-padding = 2 + +label-empty = %name% +label-empty-foreground = ${colors.foreground-alt} +label-empty-padding = 2 + +; Separator in between workspaces +; label-separator = | + +[module/i3] +type = internal/i3 +format = +index-sort = true +wrapping-scroll = false + +; Only show workspaces on the same output as the bar +;pin-workspaces = true + +label-mode-padding = 2 +label-mode-foreground = #000 +label-mode-background = ${colors.primary} + +; focused = Active workspace on focused monitor +label-focused = %index% +label-focused-background = ${colors.background-alt} +label-focused-underline= ${colors.primary} +label-focused-padding = 2 + +; unfocused = Inactive workspace on any monitor +label-unfocused = %index% +label-unfocused-padding = 2 + +; visible = Active workspace on unfocused monitor +label-visible = %index% +label-visible-background = ${self.label-focused-background} +label-visible-underline = ${self.label-focused-underline} +label-visible-padding = ${self.label-focused-padding} + +; urgent = Workspace with urgency hint set +label-urgent = %index% +label-urgent-background = ${colors.alert} +label-urgent-padding = 2 + +; Separator in between workspaces +; label-separator = | + + +;[module/mpd] +;type = internal/mpd +;format-online = +; +;icon-prev =  +;icon-stop =  +;icon-play =  +;icon-pause =  +;icon-next =  + +;label-song-maxlen = 25 +;label-song-ellipsis = true + +[module/xbacklight] +type = internal/xbacklight + +format =