cleaning trash

This commit is contained in:
mangeshrex 2021-09-24 16:10:56 +05:30
parent ecf975d5f5
commit 8080168362
16 changed files with 1 additions and 1448 deletions

View File

@ -9,7 +9,7 @@ case "$(readlink -f /sbin/init)" in
esac
cmds="\
󱎜 lock slock
󱎜 lock slock
󰁬 leave bsp kill -TERM $(pkill bspwm sxhkd)
󱋑 hibernate slock ${hib:-systemctl suspend-then-hibernate -i}
󰻹 reboot ${reb:-sudo -A reboot}

View File

@ -22,9 +22,6 @@
# Nord Bspwm Screenshot
![Nord](https://user-images.githubusercontent.com/82205152/119094670-f6fd7600-ba2e-11eb-934d-b494e6714c6e.png)
# uWu >.<
![uWuu](https://github.com/Mangeshrex/bspdots/blob/main/assets/uwu-nvchad.png)
# Bspwm-Dots
This is a repo of my dotfiles contain's all the cli-tools or apps I use.

BIN
onedark/wall/lol.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@ -1,29 +0,0 @@
*background: #0f1315
*foreground: #C5C8C9
! Black + DarkGrey
*color0: #2F3131
*color8: #343636
! DarkRed + Red
*color1: #e74c4c
*color9: #c26f6f
! DarkGreen + Green
*color2: #6bb05d
*color10: #8dc776
! DarkYellow + Yellow
*color3: #e59e67
*color11: #e7ac7e
! DarkBlue + Blue
*color4: #5b98a9
*color12: #7ab3c3
! DarkMagenta + Magenta
*color5: #ef7cbb
*color13: #d3869b
! DarkCyan + Cyan
*color6: #51a39f
*color14: #6db0ad
! LightGrey + White
*color7: #c4c4c4
*color15: #bfbfbf

View File

@ -1,93 +0,0 @@
#!/usr/bin/env bash
## Uncomment to disable git info
#POWERLINE_GIT=0
__powerline() {
# Colors
COLOR_RESET='\[\033[m\]'
COLOR_CWD=${COLOR_CWD:-'\[\033[0;34m\]'} # blue
COLOR_GIT=${COLOR_GIT:-'\[\033[0;36m\]'} # cyan
COLOR_SUCCESS=${COLOR_SUCCESS:-'\[\033[0;32m\]'} # green
COLOR_FAILURE=${COLOR_FAILURE:-'\[\033[0;31m\]'} # red
# Symbols
SYMBOL_GIT_BRANCH=${SYMBOL_GIT_BRANCH:-}
SYMBOL_GIT_MODIFIED=${SYMBOL_GIT_MODIFIED:-*}
SYMBOL_GIT_PUSH=${SYMBOL_GIT_PUSH:-}
SYMBOL_GIT_PULL=${SYMBOL_GIT_PULL:-}
if [[ -z "$PS_SYMBOL" ]]; then
case "$(uname)" in
Darwin) PS_SYMBOL='';;
Linux) PS_SYMBOL='';;
*) PS_SYMBOL='%';;
esac
fi
__git_info() {
[[ $POWERLINE_GIT = 0 ]] && return # disabled
hash git 2>/dev/null || return # git not found
local git_eng="env LANG=C git" # force git output in English to make our work easier
# get current branch name
local ref=$($git_eng symbolic-ref --short HEAD 2>/dev/null)
if [[ -n "$ref" ]]; then
# prepend branch symbol
ref=$SYMBOL_GIT_BRANCH$ref
else
# get tag name or short unique hash
ref=$($git_eng describe --tags --always 2>/dev/null)
fi
[[ -n "$ref" ]] || return # not a git repo
local marks
# scan first two lines of output from `git status`
while IFS= read -r line; do
if [[ $line =~ ^## ]]; then # header line
[[ $line =~ ahead\ ([0-9]+) ]] && marks+=" $SYMBOL_GIT_PUSH${BASH_REMATCH[1]}"
[[ $line =~ behind\ ([0-9]+) ]] && marks+=" $SYMBOL_GIT_PULL${BASH_REMATCH[1]}"
else # branch is modified if output contains more lines after the header line
marks="$SYMBOL_GIT_MODIFIED$marks"
break
fi
done < <($git_eng status --porcelain --branch 2>/dev/null) # note the space between the two <
# print the git branch segment without a trailing newline
printf " $ref$marks"
}
ps1() {
# Check the exit code of the previous command and display different
# colors in the prompt accordingly.
if [ $? -eq 0 ]; then
local symbol="$COLOR_SUCCESS$PS_SYMBOL $COLOR_RESET"
else
local symbol="$COLOR_FAILURE$PS_SYMBOL $COLOR_RESET"
fi
local cwd="$COLOR_CWD\w$COLOR_RESET"
# Bash by default expands the content of PS1 unless promptvars is disabled.
# We must use another layer of reference to prevent expanding any user
# provided strings, which would cause security issues.
# POC: https://github.com/njhartwell/pw3nage
# Related fix in git-bash: https://github.com/git/git/blob/9d77b0405ce6b471cb5ce3a904368fc25e55643d/contrib/completion/git-prompt.sh#L324
if shopt -q promptvars; then
__powerline_git_info="$(__git_info)"
local git="$COLOR_GIT\${__powerline_git_info}$COLOR_RESET"
else
# promptvars is disabled. Avoid creating unnecessary env var.
local git="$COLOR_GIT$(__git_info)$COLOR_RESET"
fi
PS1="\e[1;31m\e[0m $cwd$git \e[1;35m\e[0m\e[1;33m\e[0m$symbol"
}
PROMPT_COMMAND="ps1${PROMPT_COMMAND:+; $PROMPT_COMMAND}"
}
__powerline
unset __powerline

View File

@ -1,20 +0,0 @@
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='logo-ls'
alias la='logo-ls -A'
alias ll='logo-ls -al'
# equivalents with Git Status on by Default
alias lsg='logo-ls -D'
alias lag='logo-ls -AD'
alias llg='logo-ls -alD'
alias xw='xwallpaper --zoom'
source ~/.bash-powerline.sh
alias load="kill -USR1 $(pidof st)"
alias use="xrdb merge"

View File

@ -1,562 +0,0 @@
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will
# check the local terminfo database and use `alacritty` if it is
# available, otherwise `xterm-256color` is used.
TERM: xterm-256color
window:
# Window dimensions (changes require restart)
#
# Specified in number of columns/lines, not pixels.
# If both are `0`, this setting is ignored.
#dimensions:
# columns: 0
# lines: 0
# Window position (changes require restart)
#
# Specified in number of pixels.
# If the position is not set, the window manager will handle the placement.
#position:
# x: 0
# y: 0
# Window padding (changes require restart)
#
# Blank space added around the window in pixels. This padding is scaled
# by DPI and the specified value is always added at both opposing sides.
padding:
x: 20
y: 10
# Spread additional padding evenly around the terminal content.
dynamic_padding: true
# Window decorations
#
# Values for `decorations`:
# - full: Borders and title bar
# - none: Neither borders nor title bar
#
# Values for `decorations` (macOS only):
# - transparent: Title bar, transparent background and title bar buttons
# - buttonless: Title bar, transparent background, but no title bar buttons
#decorations: full
# Startup Mode (changes require restart)
#
# Values for `startup_mode`:
# - Windowed
# - Maximized
# - Fullscreen
#
# Values for `startup_mode` (macOS only):
# - SimpleFullscreen
#startup_mode: Windowed
# Window title
title: Alacritty
# Window class (Linux/BSD only):
class:
# Application instance name
instance: Alacritty
# General application class
general: Alacritty
# GTK theme variant (Linux/BSD only)
#
# Override the variant of the GTK theme. Commonly supported values are `dark` and `light`.
# Set this to `None` to use the default theme variant.
#gtk_theme_variant: None
scrolling:
# Maximum number of lines in the scrollback buffer.
# Specifying '0' will disable scrolling.
history: 5000
# Number of lines the viewport will move for every line scrolled when
# scrollback is enabled (history > 0).
#multiplier: 3
# Scroll to the bottom when new text is written to the terminal.
#auto_scroll: false
# Spaces per Tab (changes require restart)
#
# This setting defines the width of a tab in cells.
#
# Some applications, like Emacs, rely on knowing about the width of a tab.
# To prevent unexpected behavior in these applications, it's also required to
# change the `it` value in terminfo when altering this setting.
#tabspaces: 8
# Font configuration
font:
# Normal (roman) font face
normal:
# Font family
#
# Default:
# - (macOS) Menlo
# - (Linux/BSD) monospace
# - (Windows) Consolas
family: Iosevka Nerd Font
# family: CodeNewRoman Nerd Font
# family: RobotoMono Nerd Font
# family: Hack
# family: JetBrains Mono
# family: UbuntuMono Nerd Font
# family: Monofur Nerd Font
# family: TerminessTTF Nerd Font
# family: Mononoki Nerd Font
# The `style` can be specified to pick a specific face.
style: Regular
# Bold font face
bold:
# Font family
#
# If the bold family is not specified, it will fall back to the
# value specified for the normal font.
family: Iosevka Nerd Font
# family: CodeNewRoman Nerd Font
# family: RobotoMono Nerd Font
# family: Hack
# family: JetBrains Mono
# family: UbuntuMono Nerd Font
# family: Monofur Nerd Font
# family: TerminessTTF Nerd Font
# family: Mononoki Nerd Font
# The `style` can be specified to pick a specific face.
style: Bold
# Italic font face
italic:
# Font family
#
# If the italic family is not specified, it will fall back to the
# value specified for the normal font.
family: Iosevka Nerd Font
# family: CodeNewRoman Nerd Font
# family: RobotoMono Nerd Font
# family: Hack
# family: JetBrains Mono
# family: UbuntuMono Nerd Font
# family: Monofuritalic Nerd Font Mono
# family: TerminessTTF Nerd Font
# family: Mononoki Nerd Font
# The `style` can be specified to pick a specific face.
style: Italic
# Bold italic font face
bold_italic:
# Font family
#
# If the bold italic family is not specified, it will fall back to the
# value specified for the normal font.
family: Iosevka Nerd Font
# family: CodeNewRoman Nerd Font
# family: RobotoMono Nerd Font
# family: Hack
# family: JetBrains Mono
# family: UbuntuMono Nerd Font
# family: Monofuritalic Nerd Font Mono
# family: TerminessTTF Nerd Font
# family: Mononoki Nerd Font
# The `style` can be specified to pick a specific face.
style: Bold Italic
# Point size
size: 9.5
# Offset is the extra space around each character. `offset.y` can be thought of
# as modifying the line spacing, and `offset.x` as modifying the letter spacing.
offset:
x: 0
y: 1
# Glyph offset determines the locations of the glyphs within their cells with
# the default being at the bottom. Increasing `x` moves the glyph to the right,
# increasing `y` moves the glyph upwards.
#glyph_offset:
# x: 0
# y: 0
# Thin stroke font rendering (macOS only)
#
#Thin strokes are suitable for retina displays, but for non-retina screens
# it is recommended to set `use_thin_strokes` to `false`
#
# macOS >= 10.14.x:
#
# If the font quality on non-retina display looks bad then set
# `use_thin_strokes` to `true` and enable font smoothing by running the
# following command:
# `defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO`
#
# This is a global setting and will require a log out or restart to take
# effect.
#use_thin_strokes: true
# If `true`, bold text is drawn using the bright color variants.
draw_bold_text_with_bright_colors: true
colors:
# Default colors
primary:
background: '0x0f1315'
foreground: '0xC5C8C9'
# Colors the cursor will use if `custom_cursor_colors` is true
cursor:
text: '0xd6d6d6'
cursor: '0x303435'
# Normal colors
normal:
black: '0x303435'
red: '0xe74c4c'
green: '0x6bb05d'
yellow: '0xe59e67'
blue: '0x5b98a9'
magenta: '0xef7cbb'
cyan: '0x51a39f'
white: '0xc4c4c4'
# Bright colors
bright:
black: '0x3a3c3d'
red: '0xc26f6f'
green: '0x8dc776'
yellow: '0xe7ac7e'
blue: '0x7ab3c3'
magenta: '0xd3869b'
cyan: '0x6db0ad'
white: '0xbfbfbf'
# Dim colors
#
# If the dim colors are not set, they will be calculated automatically based
# on the `normal` colors.
#dim:
# black: '0x000000'
# red: '0x8c3336'
# green: '0x7a8530'
# yellow: '0x97822e'
# blue: '0x506d8f'
# magenta: '0x80638e'
# cyan: '0x497e7a'
# white: '0x9a9a9a'
# Indexed Colors
#
# The indexed colors include all colors from 16 to 256.
# When these are not set, they're filled with sensible defaults.
#
# Example:
# `- { index: 16, color: '0xff00ff' }`
#
#indexed_colors: []
# Visual Bell
#
# Any time the BEL code is received, Alacritty "rings" the visual bell. Once
# rung, the terminal background will be set to white and transition back to the
# default background color. You can control the rate of this transition by
# setting the `duration` property (represented in milliseconds). You can also
# configure the transition function by setting the `animation` property.
#
# Values for `animation`:
# - Ease
# - EaseOut
# - EaseOutSine
# - EaseOutQuad
# - EaseOutCubic
# - EaseOutQuart
# - EaseOutQuint
# - EaseOutExpo
# - EaseOutCirc
# - Linear
#
# Specifying a `duration` of `0` will disable the visual bell.
#visual_bell:
# animation: EaseOutExpo
# duration: 0
# color: '0xffffff'
# Background opacity
#
# Window opacity as a floating point number from `0.0` to `1.0`.
# The value `0.0` is completely transparent and `1.0` is opaque.
background_opacity: 1.0
# background_opacity: 0.80
#selection:
#semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"
# When set to `true`, selected text will be copied to the primary clipboard.
#save_to_clipboard: false
# Allow terminal applications to change Alacritty's window title.
#dynamic_title: true
#cursor:
# Cursor style
#
# Values for `style`:
# - ▇ Block
# - _ Underline
# - | Beam
style: Beam
# If this is `true`, the cursor will be rendered as a hollow box when the
# window is not focused.
#unfocused_hollow: true
# Live config reload (changes require restart)
live_config_reload: true
# Shell
#
# You can set `shell.program` to the path of your favorite shell, e.g. `/bin/fish`.
# Entries in `shell.args` are passed unmodified as arguments to the shell.
#
# Default:
# - (macOS) /bin/bash --login
# - (Linux/BSD) user login shell
# - (Windows) powershell
#shell:
# program: /bin/bash
# args:
# - --login
# Startup directory
#
# Directory the shell is started in. If this is unset, or `None`, the working
# directory of the parent process will be used.
#working_directory: None
# WinPTY backend (Windows only)
#
# Alacritty defaults to using the newer ConPTY backend if it is available,
# since it resolves a lot of bugs and is quite a bit faster. If it is not
# available, the the WinPTY backend will be used instead.
#
# Setting this option to `true` makes Alacritty use the legacy WinPTY backend,
# even if the ConPTY backend is available.
#winpty_backend: false
# Send ESC (\x1b) before characters when alt is pressed.
#alt_send_esc: true
#debug:
# Display the time it takes to redraw each frame.
#render_timer: false
# Keep the log file after quitting Alacritty.
#persistent_logging: false
# Log level
#
# Values for `log_level`:
# - None
# - Error
# - Warn
# - Info
# - Debug
# - Trace
#log_level: Warn
# Print all received window events.
#print_events: false
# Record all characters and escape sequences as test data.
#ref_test: false
#mouse:
# Click settings
#
# The `double_click` and `triple_click` settings control the time
# alacritty should wait for accepting multiple clicks as one double
# or triple click.
#double_click: { threshold: 300 }
#triple_click: { threshold: 300 }
# If this is `true`, the cursor is temporarily hidden when typing.
#hide_when_typing: false
#url:
# URL launcher
#
# This program is executed when clicking on a text which is recognized as a URL.
# The URL is always added to the command as the last parameter.
#
# When set to `None`, URL launching will be disabled completely.
#
# Default:
# - (macOS) open
# - (Linux/BSD) xdg-open
# - (Windows) explorer
#launcher:
# program: xdg-open
# args: []
# URL modifiers
#
# These are the modifiers that need to be held down for opening URLs when clicking
# on them. The available modifiers are documented in the key binding section.
#modifiers: None
# Mouse bindings
#
# Mouse bindings are specified as a list of objects, much like the key
# bindings further below.
#
# Each mouse binding will specify a:
#
# - `mouse`:
#
# - Middle
# - Left
# - Right
# - Numeric identifier such as `5`
#
# - `action` (see key bindings)
#
# And optionally:
#
# - `mods` (see key bindings)
#mouse_bindings:
# - { mouse: Middle, action: PasteSelection }
# Key bindings
#
# Key bindings are specified as a list of objects. For example, this is the
# default paste binding:
#
# `- { key: V, mods: Control|Shift, action: Paste }`
#
# Each key binding will specify a:
#
# - `key`: Identifier of the key pressed
#
# - A-Z
# - F1-F24
# - Key0-Key9
#
# A full list with available key codes can be found here:
# https://docs.rs/glutin/*/glutin/event/enum.VirtualKeyCode.html#variants
#
# Instead of using the name of the keys, the `key` field also supports using
# the scancode of the desired key. Scancodes have to be specified as a
# decimal number. This command will allow you to display the hex scancodes
# for certain keys:
#
# `showkey --scancodes`.
#
# Then exactly one of:
#
# - `chars`: Send a byte sequence to the running application
#
# The `chars` field writes the specified string to the terminal. This makes
# it possible to pass escape sequences. To find escape codes for bindings
# like `PageUp` (`"\x1b[5~"`), you can run the command `showkey -a` outside
# of tmux. Note that applications use terminfo to map escape sequences back
# to keys. It is therefore required to update the terminfo when changing an
# escape sequence.
#
# - `action`: Execute a predefined action
#
# - Copy
# - Paste
# - PasteSelection
# - IncreaseFontSize
# - DecreaseFontSize
# - ResetFontSize
# - ScrollPageUp
# - ScrollPageDown
# - ScrollLineUp
# - ScrollLineDown
# - ScrollToTop
# - ScrollToBottom
# - ClearHistory
# - Hide
# - Minimize
# - Quit
# - ToggleFullscreen
# - SpawnNewInstance
# - ClearLogNotice
# - ReceiveChar
# - None
#
# (macOS only):
# - ToggleSimpleFullscreen: Enters fullscreen without occupying another space
#
# - `command`: Fork and execute a specified command plus arguments
#
# The `command` field must be a map containing a `program` string and an
# `args` array of command line parameter strings. For example:
# `{ program: "alacritty", args: ["-e", "vttest"] }`
#
# And optionally:
#
# - `mods`: Key modifiers to filter binding actions
#
# - Command
# - Control
# - Option
# - Super
# - Shift
# - Alt
#
# Multiple `mods` can be combined using `|` like this:
# `mods: Control|Shift`.
# Whitespace and capitalization are relevant and must match the example.
#
# - `mode`: Indicate a binding for only specific terminal reported modes
#
# This is mainly used to send applications the correct escape sequences
# when in different modes.
#
# - AppCursor
# - AppKeypad
# - Alt
#
# A `~` operator can be used before a mode to apply the binding whenever
# the mode is *not* active, e.g. `~Alt`.
#
# Bindings are always filled by default, but will be replaced when a new
# binding with the same triggers is defined. To unset a default binding, it can
# be mapped to the `ReceiveChar` action. Alternatively, you can use `None` for
# a no-op if you do not wish to receive input characters for that binding.
key_bindings:
# (Windows, Linux, and BSD only)
- { key: V, mods: Control|Shift, action: Paste }
- { key: C, mods: Control|Shift, action: Copy }
- { key: Insert, mods: Shift, action: PasteSelection }
- { key: Key0, mods: Control, action: ResetFontSize }
- { key: Equals, mods: Control, action: IncreaseFontSize }
- { key: Plus, mods: Control, action: IncreaseFontSize }
- { key: Minus, mods: Control, action: DecreaseFontSize }
- { key: Minus, mods: Control, action: DecreaseFontSize }
- { key: F11, mods: None, action: ToggleFullscreen }
- { key: Paste, mods: None, action: Paste }
- { key: Copy, mods: None, action: Copy }
- { key: L, mods: Control, action: ClearLogNotice }
- { key: L, mods: Control, chars: "\x0c" }
- { key: PageUp, mods: None, action: ScrollPageUp, mode: ~Alt }
- { key: PageDown, mods: None, action: ScrollPageDown, mode: ~Alt }
- { key: Home, mods: Shift, action: ScrollToTop, mode: ~Alt }
- { key: End, mods: Shift, action: ScrollToBottom, mode: ~Alt }

View File

@ -1,42 +0,0 @@
font_family CascadiaMono
bold_font JetBrainsMono-Bold
italic_font JetBrainsMono-Italic
bold_italic_font JetBrainsMono-BoldItalic
font_size 10
# The window padding (in pts) (blank area between the text and the window border)
window_padding_width 10
#opactiy
background_opacity 3.50
#: The width (in pts) of window borders. Will be rounded to the
#: nearest number of pixels based on screen resolution. Note that
#: borders are displayed only when more than one window is visible.
#: They are meant to separate multiple windows.
window_margin_width 5
foreground #C5C8C9
background #0f1315
cursor #2F3131
color0 #2F3131
color1 #e74c4c
color2 #6bb05d
color3 #e59e67
color4 #5b98a9
color5 #ef7cbb
color6 #51a39f
color7 #c4c4c4
color8 #343636
color9 #c26f6f
color10 #8dc776
color11 #e7ac7e
color12 #7ab3c3
color13 #d3869b
color14 #6db0ad
color15 #bfbfbf
selection_foreground #282c34
selection_background #979eab

View File

@ -1,390 +0,0 @@
[colors]
background = ${xrdb:background}
foreground = ${xrdb:foreground}
color0 = ${xrdb:color0}
color1 = ${xrdb:color1}
color2 = ${xrdb:color2}
color3 = ${xrdb:color3}
color4 = ${xrdb:color4}
color5 = ${xrdb:color5}
color6 = ${xrdb:color6}
color7 = ${xrdb:color7}
color8 = ${xrdb:color8}
color9 = ${xrdb:color9}
color10 = ${xrdb:color10}
color11 = ${xrdb:color11}
color12 = ${xrdb:color12}
color13 = ${xrdb:color13}
color14 = ${xrdb:color14}
color15 = ${xrdb:color15}
dark-light = #272A2B
active-light = #313435
[bar/example]
;monitor = LVDS1
width = 100%
height = 20
padding-left = 1
padding-right = 1
background = ${colors.background}
foreground = ${colors.foreground}
bottom = false
border-top-size = 7
border-bottom-size = 7
border-top-color = ${colors.background}
border-bottom-color = ${colors.background}
line-size = 1
wm-restack = bspwm
modules-left = bspwm
modules-center = polywins
modules-right = alsa battery spaces mem wlan time
font-0 = Iosevka Nerd Font:style=Bold:pixelsize=11;3
font-1 = JetBrainsMono Nerd Font:size=15;3
font-2 = Material Design Icons:style=Bold:size=13;3
font-3 = Dejavu Serif:fontformat=truetype:size=10:antialias=true;3
[module/mpd]
type = internal/mpd
interval = 2
format-online = <icon-prev><toggle><icon-next>
icon-play-foreground = ${colors.color1}
icon-play = 󰐊
icon-pause-foreground = ${colors.color1}
icon-pause = 󰏥
icon-stop-foreground = ${colors.color1}
icon-stop = 󰓛
icon-prev-foreground = ${colors.color4}
icon-prev = 󰒮
icon-next-foreground = ${colors.color4}
icon-next = 󰒭
icon-play-underline = ${colors.color3}
icon-next-underline = ${colors.color3}
icon-pause-underline = ${colors.color3}
icon-prev-underline = ${colors.color3}
[module/alsa]
type = internal/alsa
format-volume = <label-volume>
label-volume = 墳 %percentage%
label-volume-foreground = ${colors.color1}
format-muted-foreground = ${colors.foreground}
label-muted = 󰚙
format-muted-padding = 1
format-muted-background = #2b2f37
bar-volume-width = 9
bar-volume-foreground-0 = #61afef
bar-volume-foreground-1 = #61afef
bar-volume-foreground-2 = #61afef
bar-volume-foreground-3 = #61afef
bar-volume-foreground-4 = #61afef
bar-volume-foreground-5 = #61afef
bar-volume-foreground-6 = #61afef
bar-volume-gradient = true
bar-volume-indicator =
bar-volume-indicator-foreground = #61afef
bar-volume-indicator-font = 1
bar-volume-fill =
bar-volume-fill-foreground = #61afef
bar-volume-fill-font = 1
bar-volume-empty =
bar-volume-empty-font = 1
bar-volume-empty-foreground = ${colors.foreground}
format-volume-padding = 1
[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 65
label-foreground = ${colors.color7}
format = <ramp> <label>
;format-underline = #b48ead
format-warn = <ramp> <label-warn>
format-warn-underline = #b48ead
;format-background = ${colors.color8}
label = %temperature-c%
label-warn = %temperature-c%
label-warn-backgroud = #b48ead
format-padding = 0
ramp-0 = 󰸁
ramp-foreground = ${colors.color11}
[module/polywins]
type = custom/script
exec = ~/.config/polybar/scripts/polywins.sh 2>/dev/null
format = <label>
label = %output%
label-padding = 1
tail = true
;label-background = ${colors.color6}
[module/spaces]
type = custom/text
content = %{T3} %{T-}
[module/bspwm]
type = internal/bspwm
pin-workspaces = true
inline-mode = true
enable-click = true
enable-scroll = true
reverse-scroll = false
format = <label-state>
label-focused-underline = ${colors.color4}
label-focused = 󰮯
label-focused-foreground = ${colors.color3}
label-focused-padding = 1
label-focused-background = ${colors.background}
label-occupied = 󰊠
label-occupied-foreground = ${colors.color2}
label-occupied-padding = 1
label-occupied-background = ${colors.background}
label-empty =
label-empty-foreground = ${colors.color0}
label-empty-padding = 1
label-empty-background = ${colors.background}
label-urgent =
label-urgent-foreground = ${colors.color8{
label-urgent-padding = 1
label-urgent-background = ${colors.background}
;label-separator = "ﭳ
;label-separator-background = #1e222a
;label-separator-foreground = #
;2b2f37
[module/sl]
type = custom/text
content = %{T2} %{T-}
content-foreground = #3b4252
[module/sr]
type = custom/text
content = %{T2} %{T-}
content-foreground = #3b4252
[module/sl-l]
type = custom/text
content = %{T2} %{T-}
content-foreground =
[module/sr-r]
type = custom/text
content = %{T2} %{T-}
content-foreground = #3b4252
[module/pulseaudio]
type = internal/pulseaudio
;format-volume = <ramp-volume> <bar-volume>
format-volume = <label-volume> <bar-volume>
;label-volume = VOL %percentage%%
label-volume = 󰎆
label-volume-foreground =${colors.color12}
;extra added
;format-volume-background = ${colors.yellow}
format-volume-background = ${colors.background}
format-volume-padding = 1
label-muted-padding = 1
;ramp-volume-0 = 󰕿
;ramp-volume-1 = 󰖀
;ramp-volume-2 = 󰕾
;ramp-volume-foreground = ${colors.background}
;will remove
label-muted = 󰎆 muted
label-muted-foreground = #666
bar-volume-width = 10
bar-volume-foreground-0 =
bar-volume-foreground-1 = #61afef
bar-volume-foreground-2 = #61afef
bar-volume-foreground-3 = #61afef
bar-volume-foreground-4 = #61afef
bar-volume-foreground-5 = #61afef
bar-volume-foreground-6 = #61afef
bar-volume-gradient = false
bar-volume-indicator =
bar-volume-indicator-font = 4
bar-volume-fill =
bar-volume-fill-font = 4
bar-volume-empty =
bar-volume-empty-font = 4
bar-volume-empty-foreground = ${colors.foreground}
[module/time]
type = internal/date
interval = 60
format = <label>
date = %{F#0f1315}󰥔 %{F-}%{F#0f1315}%H:%M%{F-}
time-alt = %{F#0f1315}󰃭 %{F-}%{F#0f1315}%a, %b %d%{F-}
format-background = #8dc776
label = %date%%time%
label-padding = 1
# For users having Void Linux
[module/updates]
type = custom/script
exec = ~/.config/polybar/scripts/xbps-updates
format = <label>
label = 󰬬 %output%
label-padding =1
;label-background = ${colors.color8}
label-foreground = ${colors.color1}
# For users using arch linux
[module/pacup]
type = custom/script
exec = ~/.config/polybar/scripts/pacup.sh
format = <label>
label = 󰬬 %output%
label-padding =1
label-background = ${colors.color8}
label-foreground = ${colors.color1}
[module/mem]
type = custom/script
exec = free -m | sed -n 's/^Mem:\s\+[0-9]\+\s\+\([0-9]\+\)\s.\+/\1/p'
format = <label>
format-prefix = 󰍛
;format-background = ${colors.color6}
format-padding = 0
label = %output%M used
label-padding = 1
format-prefix-foreground = ${colors.color3}
format-margin = 0
label-foreground = ${colors.color3}
[module/menu]
type = custom/text
content = 󱓞
;content-background = #81A1C1
content-foreground = #61afef
click-left = rofi -show drun
;content-underline = #4C566A
content-padding= 1
[module/powermenu]
type = custom/text
content = 󰐥
click-left = ~/.config/polybar/scripts/dmenu.sh
;content-background = #81A1C1
content-foreground = ${colors.foreground}
content-padding = 1
content-margin = 0
[module/sysmenu]
type = custom/text
content =
content-foreground = ${colors.color13}
content-padding = 1
click-left = ~/.config/polybar/scripts/powermenu.sh
[module/xbacklight]
type = internal/xbacklight
format = <label>
format-prefix = " "
label = %percentage%
format-prefix-foreground = #e5c07b
label-foreground = #abb2bf
format-padding = 1
[module/wlan]
type = internal/network
interface = enp0s3
interval = 3.0
format-connected = <label-connected>
label-connected-padding = 1
label-disconnected-padding = 1
label-connected = 󰤧
label-connected-foreground = ${colors.color4}
label-disconnected = "󰤭 "
label-disconnedted-foreground = ${colors.color4}
label-connected-background = ${colors.background}
label-disconnected-bacoground = ${colors.background}
[module/battery]
type = internal/battery
battery = BAT0
adapter = AC0
full-at = 98
format-charging = <animation-charging> <label-charging>
label-charging = %percentage%%
format-charging-foreground = ${colors.color4}
format-charging-background = ${colors.background}
format-discharging = <ramp-capacity> <label-discharging>
label-discharging = %percentage%%
format-discharging-foreground = ${colors.foreground}
format-discharging-background = ${colors.background}
format-full-prefix = " "
format-full-prefix-foreground = #A0E8A2
format-foreground = ${colors.color4}
format-background = ${colors.background}
label-discharging-foreground = ${colors.foreground}
ramp-capacity-foreground = #A0E8A2
label-charging-foreground = ${colors.foreground}
label-padding = 1
format-full-padding = 1
ramp-capacity-0 = " "
ramp-capacity-1 = " "
ramp-capacity-2 = " "
ramp-capacity-3 = " "
ramp-capacity-4 = " "
animation-charging-0 = " "
animation-charging-1 = " "
animation-charging-2 = " "
animation-charging-3 = " "
animation-charging-4 = " "
animation-charging-foreground = ${colors.color13}
animation-charging-framerate = 750
format-charging-padding = 1
format-discharging-padding = 1
[module/cpu]
type = internal/cpu
interval = 2.5
format = <label>
format-padding = 1
format-margin = 0
label = %{F#98c379}󰻟 %{F-}%percentage%%
;format-backgoound = ${colors.color12}
format-foreground =${colors.color7}
[module/xwindow]
type = internal/xwindow
label = %title%
label-maxlen = 20
label-foreground = ${colors.foreground}
label-padding = 1
; Used instead of label when there is no window title
label-empty = ""
;label-empty-foreground = ${color.blue-light}
label-empty-padding = 2

View File

@ -1,21 +0,0 @@
#!/bin/sh
# A dmenu wrapper script for system functions.
# For non-systemd init systems.
case "$(readlink -f /sbin/init)" in
*runit*) hib="sudo -A zzz" ;;
*openrc*) reb="sudo -A openrc-shutdown -r"; shut="sudo -A openrc-shutdown -p 0" ;;
esac
cmds="\
󱎜 lock slimlock
󰁬 leave bsp kill -TERM $(pkill bspwm sxhkd)
󱋑 hibernate slock ${hib:-systemctl suspend-then-hibernate -i}
󰻹 reboot ${reb:-sudo -A reboot}
󰧵 shutdown ${shut:- sudo shutdown now}
󰔱 display off xset dpms force off"
choice="$(echo "$cmds" | cut -d' ' -f 1 | dmenu -p BYE -l 7 )" || exit 1
`echo "$cmds" | grep "^$choice " | cut -d ' ' -f2-`

View File

@ -1,9 +0,0 @@
#!/bin/bash
updates=$(pacman -Qu | wc -l)
if [ -z "$updates" ]; then
echo "Fully Updated"
else
echo "$updates"
fi

View File

@ -1,254 +0,0 @@
#!/bin/sh
# POLYWINS
# SETTINGS {{{ ---
active_text_color="#e74c5c"
active_bg=
active_underline=
inactive_text_color="#6bb05d"
inactive_bg= "#e74c4c"
inactive_underline=
separator="•"
separator_text_color="#303435"
show="icon" # options: window_title, window_class, window_classname, icon
forbidden_classes="Polybar Conky Gmrun"
empty_desktop_message=
char_limit=20
max_windows=15
char_case="normal" # normal, upper, lower
add_spaces="true"
resize_increment=16
wm_border_width=1 # setting this might be required for accurate resize position
# --- }}}
main() {
# If no argument passed...
if [ -z "$2" ]; then
# ...print new window list every time
# the active window changes or
# a window is opened or closed
xprop -root -spy _NET_CLIENT_LIST _NET_ACTIVE_WINDOW |
while IFS= read -r _; do
generate_window_list
done
# If arguments are passed, run requested on-click function
else
"$@"
fi
}
# ON-CLICK FUNCTIONS {{{ ---
raise_or_minimize() {
if [ "$(get_active_wid)" = "$1" ]; then
bspc node $1 -g hidden=on
#wmctrl -ir "$1" -b toggle,hidden
else
bspc node $1 -g hidden=off -f
#wmctrl -ia "$1"
fi
}
close() {
wmctrl -ic "$1"
}
slop_resize() {
wmctrl -ia "$1"
wmctrl -ir "$1" -e "$(slop -f 0,%x,%y,%w,%h)"
}
increment_size() {
while IFS="[ .]" read -r wid ws wx wy ww wh _; do
test "$wid" != "$1" && continue
x=$((wx - wm_border_width * 2 - resize_increment / 2))
y=$((wy - wm_border_width * 2 - resize_increment / 2))
w=$((ww + resize_increment))
h=$((wh + resize_increment))
done <<-EOF
$(wmctrl -lG)
EOF
wmctrl -ir "$1" -e "0,$x,$y,$w,$h"
}
decrement_size() {
while IFS="[ .]" read -r wid ws wx wy ww wh _; do
test "$wid" != "$1" && continue
x=$((wx - wm_border_width * 2 + resize_increment / 2))
y=$((wy - wm_border_width * 2 + resize_increment / 2))
w=$((ww - resize_increment))
h=$((wh - resize_increment))
done <<-EOF
$(wmctrl -lG)
EOF
wmctrl -ir "$1" -e "0,$x,$y,$w,$h"
}
# --- }}}
# WINDOW LIST SETUP {{{ ---
active_left="%{F$active_text_color}"
active_right="%{F-}"
inactive_left="%{F$inactive_text_color}"
inactive_right="%{F-}"
separator="%{F$inactive_text_color}$separator%{F-}"
if [ -n "$active_underline" ]; then
active_left="${active_left}%{+u}%{u$active_underline}"
active_right="%{-u}${active_right}"
fi
if [ -n "$active_bg" ]; then
active_left="${active_left}%{B$active_bg}"
active_right="%{B-}${active_right}"
fi
if [ -n "$inactive_underline" ]; then
inactive_left="${inactive_left}%{+u}%{u$inactive_underline}"
inactive_right="%{-u}${inactive_right}"
fi
if [ -n "$inactive_bg" ]; then
inactive_left="${inactive_left}%{B$inactive_bg}"
inactive_right="%{B-}${inactive_right}"
fi
get_active_wid() {
active_wid=$(xprop -root _NET_ACTIVE_WINDOW)
active_wid="${active_wid#*\# }"
active_wid="${active_wid%,*}" # Necessary for XFCE
while [ ${#active_wid} -lt 10 ]; do
active_wid="0x0${active_wid#*x}"
done
echo "$active_wid"
}
get_active_workspace() {
wmctrl -d |
while IFS="[ .]" read -r number active_status _; do
test "$active_status" = "*" && echo "$number" && break
done
}
generate_window_list() {
active_workspace=$(get_active_workspace)
active_wid=$(get_active_wid)
window_count=0
on_click="$0"
# Format each window name one by one
# Space and . are both used as IFS,
# because classname and class are separated by '.'
while IFS="[ .\.]" read -r wid ws cname cls host title; do
# Don't show the window if on another workspace (-1 = sticky)
if [ "$ws" != "$active_workspace" ] && [ "$ws" != "-1" ]; then
continue
fi
# Don't show the window if its class is forbidden
case "$forbidden_classes" in
*$cls*) continue ;;
esac
# If max number of windows reached, just increment
# the windows counter
if [ "$window_count" -ge "$max_windows" ]; then
window_count=$((window_count + 1))
continue
fi
# Show the user-selected window property
case "$show" in
"window_class") w_name="$cls" ;;
"window_classname") w_name="$cname" ;;
"window_title") w_name="$title" ;;
"icon")
case "$cls" in
Alacritty) w_name='>.<' ;;
Chromium) w_name='' ;;
Firefox) w_name='' ;;
TelegramDesktop) w_name=' ' ;;
Pcmanfm) w_name='' ;;
obs-studio) w_name='' ;;
Spotify) w_name='󰓇 ';;
*) w_name="$cls" ;;
esac
;;
esac
if [ "$show" != "icon" ]; then
# Use user-selected character case
case "$char_case" in
"lower") w_name=$(
echo "$w_name" | tr '[:upper:]' '[:lower:]'
) ;;
"upper") w_name=$(
echo "$w_name" | tr '[:lower:]' '[:upper:]'
) ;;
esac
# Truncate displayed name to user-selected limit
if [ "${#w_name}" -gt "$char_limit" ]; then
w_name="$(echo "$w_name" | cut -c1-$((char_limit - 1)))"
fi
fi
# Apply add-spaces setting
if [ "$add_spaces" = "true" ]; then
w_name=" $w_name "
fi
# Add left and right formatting to displayed name
if [ "$wid" = "$active_wid" ]; then
w_name="${active_left}${w_name}${active_right}"
else
w_name="${inactive_left}${w_name}${inactive_right}"
fi
# Add separator unless the window is first in list
if [ "$window_count" != 0 ]; then
printf "%s" "$separator"
fi
# Add on-click action Polybar formatting
printf "%s" "%{A1:$on_click raise_or_minimize $wid:}"
printf "%s" "%{A2:$on_click close $wid:}"
printf "%s" "%{A3:$on_click slop_resize $wid:}"
printf "%s" "%{A4:$on_click increment_size $wid:}"
printf "%s" "%{A5:$on_click decrement_size $wid:}"
# Print the final window name
printf "%s" "$w_name"
printf "%s" "%{A}%{A}%{A}%{A}%{A}"
window_count=$((window_count + 1))
done <<-EOF
$(wmctrl -lx)
EOF
# After printing all the windows,
# print number of hidden windows
if [ "$window_count" -gt "$max_windows" ]; then
printf "%s" "+$((window_count - max_windows))"
fi
# Print empty desktop message if no windows are open
if [ "$window_count" = 0 ]; then
printf "%s" "$empty_desktop_message"
fi
# Print newline
echo ""
}
# --- }}}
main "$@"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 658 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 KiB

View File

@ -1,24 +0,0 @@
# My One-Dark themed Zathura Settings
set default-bg "#0f1315"
set default-fg "#C5C8C9"
set statusbar-fg "#C5C8C9"
set statusbar-bg "#2F3131"
set inputbar-fg "#C5C8C9"
set notification-error-bg "#0f1315"
set notification-error-fg "#C5C8C9"
set highlight-color "#2F3131"
set highlight-active-color "#6bb05d"
set notification-bg "#0f1315"
set notification-fg "#C5C8C9"
set recolor-lightcolor "#2F3131"
set recolor-darkcolor "#2F3131"
set recolor "true"
set font "SpaceMono Nerd Font Mono 12"