Merge pull request #1 from balajsra/dwm-flexipatch

Update dotfiles for Garuda Linux and dwm-flexipatch
This commit is contained in:
Sravan Balaji
2021-08-27 12:09:18 -04:00
committed by GitHub
108 changed files with 11808 additions and 739 deletions

View File

@@ -19,28 +19,6 @@
#define CYAN2 #9AEDFE
#define ORANGE #FFB86C
! Regular DPI Parameters
#define DPI 96
#define BAR_HEIGHT 25
#define MODULE_MARGIN 2
#define TRAY_MAXSIZE 15
#define TRAY_SCALE 1
#define BORDER_SIZE 2
#define INNER_GAPS 20
#define OUTER_GAPS 10
#define MAXLEN 75
! ! HiDPI Parameters
! #define DPI 192
! #define BAR_HEIGHT 50
! #define MODULE_MARGIN 1
! #define TRAY_MAXSIZE 30
! #define TRAY_SCALE 1
! #define BORDER_SIZE 4
! #define INNER_GAPS 40
! #define OUTER_GAPS 20
! #define MAXLEN 45
! Dracula Xresources Palette
*.foreground: FOREGROUND
*.background: BACKGROUND
@@ -62,13 +40,26 @@
*.color15: WHITE1
*.color16: ORANGE
! System76 Oryx Pro 7 DPI Parameters
#define DPI 96
#define BAR_HEIGHT 25
#define MODULE_MARGIN 1
#define MODULE_PADDING 2
#define TRAY_MAXSIZE 20
#define TRAY_SCALE 1
#define BORDER_SIZE 2
#define INNER_GAPS 20
#define OUTER_GAPS 10
#define MAXLEN 50
#define CURSOR_SIZE 16
! DWM
dwm.normbgcolor: BACKGROUND
dwm.normbordercolor: BLACK2
dwm.normbgcolor: BACKGROUND
dwm.normfgcolor: FOREGROUND
dwm.selfgcolor: BACKGROUND
dwm.selbordercolor: PURPLE1
dwm.selbgcolor: PURPLE1
dwm.selfgcolor: BACKGROUND
dwm.borderpx: BORDER_SIZE
dwm.gappih: INNER_GAPS
dwm.gappiv: INNER_GAPS
@@ -83,7 +74,7 @@ polybar.tray-scale: TRAY_SCALE
polybar.maxlen: MAXLEN
! Dunst
dunst.geometry-x: OUTER_GAPS
dunst.geometry-x: 0
dunst.geometry-y: BAR_HEIGHT
dunst.sep-height: BORDER_SIZE
dunst.padding: OUTER_GAPS
@@ -92,13 +83,14 @@ dunst.max-icon-size: DPI
dunst.frame-width: BORDER_SIZE
dunst.low-background: BACKGROUND
dunst.low-foreground: FOREGROUND
dunst.low-frame: PURPLE1
dunst.low-frame: GREEN1
dunst.normal-background: BACKGROUND
dunst.normal-foreground: FOREGROUND
dunst.normal-frame: PURPLE1
dunst.normal-frame: GREEN1
dunst.critical-background: RED1
dunst.critical-foreground: FOREGROUND
dunst.critical-frame: PURPLE1
dunst.critical-frame: GREEN1
! Display Scaling
*.dpi: DPI
Xcursor.size: CURSOR_SIZE

15
.bashrc
View File

@@ -116,15 +116,16 @@ if ! shopt -oq posix; then
fi
fi
# Run neofetch when opening terminal
neofetch
# ALIASES
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
# EXPORTS
export EDITOR="code -w"
# ENVIRONMENT VARIABLES
export EDITOR="emacs"
export TERM=xterm-256color
export QT_STYLE_OVERRIDE=kvantum
export XDG_CONFIG_HOME=$HOME/.config
# Starship Prompt
eval "$(starship init bash)"
# Greeting
clear
pokemon-colorscripts -r
echo "bash shell"

View File

@@ -1,26 +1,45 @@
################### File Generated by GOverlay ###################
toggle_fps_limit=F1
cpu_stats
cpu_temp
cpu_color=2e97cb
cpu_text=CPU
legacy_layout=false
gpu_stats
gpu_temp
gpu_core_clock
gpu_mem_clock
vulkan_driver
gpu_name
gpu_color=2e9762
gpu_power
gpu_load_change
gpu_load_value=50,90
gpu_load_color=FFFFFF,FF7800,CC0000
gpu_text=GPU
cpu_stats
cpu_temp
cpu_power
cpu_mhz
cpu_load_change
core_load_change
cpu_load_value=50,90
cpu_load_color=FFFFFF,FF7800,CC0000
cpu_color=2e97cb
cpu_text=CPU
io_stats
io_read
io_write
io_color=a491d3
swap
vram
vram_color=ad64c1
ram
ram_color=c26693
io_color=a491d3
fps
engine_color=eb5b5b
gpu_name
gpu_color=2e9762
vulkan_driver
wine
wine_color=eb5b5b
frame_timing=1
frametime_color=00ff00
media_player_color=ffffff
background_alpha=0.4
font_size=24
background_color=020202
@@ -28,5 +47,5 @@ position=top-left
text_color=ffffff
toggle_hud=Shift_R+F12
toggle_logging=Shift_L+F2
output_file=/home/sravan/mangohud_log_
output_folder=/home/sravan
media_player_name=spotify

View File

@@ -0,0 +1,583 @@
# 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: alacritty
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: 5
y: 5
# Spread additional padding evenly around the terminal content.
#dynamic_padding: false
# 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: 10000
# Number of lines the viewport will move for every line scrolled when
# scrollback is enabled (history > 0).
#multiplier: 3
# Font configuration
font:
# Normal (roman) font face
normal:
# Font family
#
# Default:
# - (macOS) Menlo
# - (Linux/BSD) monospace
# - (Windows) Consolas
family: Fira Code 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: Fira Code 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: monospace
# 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: monospace
# The `style` can be specified to pick a specific face.
#style: Bold Italic
# Point size
size: 8.0
# 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: 0
# 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: false
colors:
# Default colors
primary:
background: "0x22212c"
foreground: "0xf8f8f2"
# Bright and dim foreground colors
#
# The dimmed foreground color is calculated automatically if it is not present.
# If the bright foreground color is not set, or `draw_bold_text_with_bright_colors`
# is `false`, the normal foreground color will be used.
#dim_foreground: '0x9a9a9a'
#bright_foreground: '0xffffff'
# Cursor colors
#
# Colors which should be used to draw the terminal cursor. If these are unset,
# the cursor color will be the inverse of the cell color.
cursor:
text: "0x454158"
cursor: "0xf8f8f2"
# Selection colors
#
# Colors which should be used to draw the selection area. If selection
# background is unset, selection color will be the inverse of the cell colors.
# If only text is unset the cell text color will remain the same.
selection:
text: "0xf8f8f2"
background: "0x454158"
# Normal colors
normal:
black: "0x22212c"
red: "0xff9580"
green: "0x8aff80"
yellow: "0xffff80"
blue: "0x9580ff"
magenta: "0xff80bf"
cyan: "0x80ffea"
white: "0xf8f8f2"
# Bright colors
bright:
black: "0x22212c"
red: "0xffaa99"
green: "0xa2ff99"
yellow: "0xffff99"
blue: "0xaa99ff"
magenta: "0xff99cc"
cyan: "0x99ffee"
white: "0xffffff"
# 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: []
# Bell
#
# The bell is rung every time the BEL control character is received.
#bell:
# Visual Bell Animation
#
# Animation effect for flashing the screen when the visual bell is rung.
#
# Values for `animation`:
# - Ease
# - EaseOut
# - EaseOutSine
# - EaseOutQuad
# - EaseOutCubic
# - EaseOutQuart
# - EaseOutQuint
# - EaseOutExpo
# - EaseOutCirc
# - Linear
#animation: EaseOutExpo
# Duration of the visual bell flash in milliseconds. A `duration` of `0` will
# disable the visual bell animation.
#duration: 0
# Visual bell animation color.
#color: '#ffffff'
# Bell Command
#
# This program is executed whenever the bell is rung.
#
# When set to `command: None`, no command will be executed.
#
# Example:
# command:
# program: notify-send
# args: ["Hello, World!"]
#
#command: None
# 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.8
#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: /usr/bin/fish
# args:
# - -l
# - -c
# - "tmux attach || tmux"
# 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
# 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
# Regex hints
#
# Terminal hints can be used to find text in the visible part of the terminal
# and pipe it to other applications.
#hints:
# Keys used for the hint labels.
#alphabet: "jfkdls;ahgurieowpq"
# List with all available hints
#
# Each hint must have a `regex` and either an `action` or a `command` field.
# The fields `mouse`, `binding` and `post_processing` are optional.
#
# The fields `command`, `binding.key`, `binding.mods` and `mouse.mods` accept
# the same values as they do in the `key_bindings` section.
#
# The `mouse.enabled` field controls if the hint should be underlined while
# the mouse with all `mouse.mods` keys held or the vi mode cursor is above it.
#
# If the `post_processing` field is set to `true`, heuristics will be used to
# shorten the match if there are characters likely not to be part of the hint
# (e.g. a trailing `.`). This is most useful for URIs.
#
# Values for `action`:
# - Copy
# Copy the hint's text to the clipboard.
# - Paste
# Paste the hint's text to the terminal or search.
# - Select
# Select the hint's text.
# - MoveViModeCursor
# Move the vi mode cursor to the beginning of the hint.
#enabled:
# - regex: "(mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\
# [^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`]+"
# command: xdg-open
# post_processing: true
# mouse:
# enabled: true
# mods: None
# binding:
# key: U
# mods: Control|Shift
# Mouse bindings
#
# Mouse bindings are specified as a list of objects, much like the key
# bindings further below.
#
# To trigger mouse bindings when an application running within Alacritty captures the mouse, the
# `Shift` modifier is automatically added as a requirement.
#
# 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.
#
# If the same trigger is assigned to multiple actions, all of them are executed
# at once.
#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: Add, mods: Control, action: IncreaseFontSize }
#- { key: Subtract, mods: Control, action: DecreaseFontSize }
#- { key: Minus, mods: Control, action: DecreaseFontSize }
# (Windows only)
#- { key: Return, mods: Alt, action: ToggleFullscreen }
# (macOS only)
#- { key: Key0, mods: Command, action: ResetFontSize }
#- { key: Equals, mods: Command, action: IncreaseFontSize }
#- { key: Add, mods: Command, action: IncreaseFontSize }
#- { key: Minus, mods: Command, action: DecreaseFontSize }
#- { key: K, mods: Command, action: ClearHistory }
#- { key: K, mods: Command, chars: "\x0c" }
#- { key: V, mods: Command, action: Paste }
#- { key: C, mods: Command, action: Copy }
#- { key: H, mods: Command, action: Hide }
#- { key: M, mods: Command, action: Minimize }
#- { key: Q, mods: Command, action: Quit }
#- { key: W, mods: Command, action: Quit }
#- { key: F, mods: Command|Control, action: ToggleFullscreen }
#- { key: Paste, action: Paste }
#- { key: Copy, action: Copy }
#- { key: L, mods: Control, action: ClearLogNotice }
#- { key: L, mods: Control, chars: "\x0c" }
#- { key: PageUp, mods: Shift, action: ScrollPageUp, mode: ~Alt }
#- { key: PageDown, mods: Shift, action: ScrollPageDown, mode: ~Alt }
#- { key: Home, mods: Shift, action: ScrollToTop, mode: ~Alt }
#- { key: End, mods: Shift, action: ScrollToBottom, mode: ~Alt }
#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

3
.config/autorandr/postswitch Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
/usr/bin/nitrogen --restore # Restore wallpaper
/home/sravan/.scripts/session.sh --restart # Restart dwm

View File

@@ -0,0 +1,41 @@
display_on=0
span_image=false
lock_timeout=300
fx_list=(dim blur dimblur pixel dimpixel color)
dim_level=40
blur_level=1
pixel_scale=10,1000
solid_color=333333
wallpaper_cmd="feh --bg-fill"
# i3lockcolor_bin="i3lock-color" # Manually set command for i3lock-color
loginbox=282a36ff
loginshadow=282a36ff
locktext="Enter password to unlock..."
font="sans-serif"
ringcolor=44475aff
insidecolor=00000000
separatorcolor=00000000
ringvercolor=50fa7bff
insidevercolor=50fa7bff
ringwrongcolor=ff5555ff
insidewrongcolor=ff5555ff
timecolor=f8f8f2ff
time_format="%X"
greetercolor=f8f8f2ff
layoutcolor=f8f8f2ff
keyhlcolor=bd93f9ff
bshlcolor=8be9fdff
verifcolor=50fa7bff
wrongcolor=ff5555ff
modifcolor=ff5555ff
bgcolor=282a36ff
prelock() {
/home/sravan/.scripts/deadd.sh --pause
}
# custom postlock
postlock() {
/home/sravan/.scripts/deadd.sh --unpause
}

95
.config/conky/conky-shcts Normal file
View File

@@ -0,0 +1,95 @@
conky.config = {
background = true,
update_interval = 1,
cpu_avg_samples = 2,
net_avg_samples = 2,
temperature_unit = 'celsius',
if_up_strictness = 'address',
double_buffer = true,
no_buffers = true,
text_buffer_size = 2048,
own_window = true,
own_window_class = 'conky',
own_window_type = 'override',
own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager,below',
--own_window_colour = '#555555',
own_window_transparent = true,
own_window_argb_visual = true,
own_window_argb_value = 0,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
alignment = 'top_right',
gap_x = 50,
--von oben |
gap_y = 50,
minimum_width = 350,
minimum_height = 450,
maximum_width = 400,
border_inner_margin = 0,
border_outer_margin = 20,
--xinerama_head = 0,
override_utf8_locale = true,
use_xft = true,
font = 'monospace:size=8',
xftalpha = 0.8,
uppercase = false,
-- Defining colors
default_color = '#FFFFFF',
-- Shades of Gray
color1 = '#DDDDDD',
color2 = '#AAAAAA',
color3 = '#FFFFFF',
-- Orange EF5A29 green 159a7f
color4 = '#808080',
-- Green Pihole
color5 = '#EF5A29',
--color0
color6='#b2c8d8',
-- color1
color7='#b2c8d8',
color8 = '#697987', -- DeepSkyBlue 00BFFF grau=323232
color9 = '#2d3b41', -- CadetBlue 5F9EA0, light grey
}
conky.text = [[
${font Play:size=10:style=normal}
${color2}open terminal - ${alignr}${color}super+enter
${color2}open browser - ${alignr}${color}super+F1
${color2}open mail - ${alignr}${color}super+F2
${color2}open filemanager - ${alignr}${color}super+F3
${color2}open text - ${alignr}${color}super+F4
#rofi
${color2}application launcher ... - ${alignr}${color}super+d
${color2}screenshot - ${alignr}${color}print
${color2}resize window - ${alignr}${color}super+r
${color2}kill focused - ${alignr}${color}super+c | super+q
${color2}toggle split direction - ${alignr}${color}super+shift+q
${color2}toggle floating - ${alignr}${color}super+space
${color2}toggle fullscreen - ${alignr}${color}super+f
# switch to workspace
${color2}switch to workspace 1-8 - ${alignr}${color}super+1-8
# move focused container to workspace
${color2}send to workspace 1-8 - ${alignr}${color}super+shift+1-8
# Move to workspace with focused container
${color2}move to workspace 1-8 - ${alignr}${color}alt+shift+1-8
${color2}navigate workspaces - ${alignr}${color}super+ctrl+arrowkeys
${color2}navigate windows - ${alignr}${color}super+shift+arrowkeys
${color2}change focus - ${alignr}${color}super+arrowkeys
${color2}restart i3 inplace - ${alignr}${color}super+shift+r
${color2}reload config file - ${alignr}${color}super+shift+c
${color2}logout, reboot, shutdown ... - ${alignr}${color}super+0
]];

157
.config/conky/conky.conf Normal file
View File

@@ -0,0 +1,157 @@
--[[
Conky, a system monitor, based on torsmo
Any original torsmo code is licensed under the BSD license
All code written since the fork of torsmo is licensed under the GPL
Please see COPYING for details
Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
Copyright (c) 2005-2021 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
All rights reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
]]
conky.config ={
-- CONKY SETTINGS
background = true,
update_interval = 1,
update_interval_on_battery = 5,
total_run_times = 0,
cpu_avg_samples = 2,
net_avg_samples = 2,
override_utf8_locale = true,
double_buffer = true,
no_buffers = true,
text_buffer_size = 32768,
-- CONKY: WINDOW SPECIFICATIONS
own_window = true,
own_window_argb_value = 192,
own_window_argb_visual = true,
own_window_class = 'conky-semi',
-- own_window_colour = '#0b0d18',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_transparent = true,
own_window_type = 'dock',
border_inner_margin = 6,
border_width = 5,
minimum_height = 1020,
minimum_width = 280,
maximum_width = 280,
alignment = 'bottom_left',
gap_x = 10,
gap_y = 0,
-- GRAPHICS SETTINGS
draw_outline = true,
draw_outline = false,
draw_borders = false,
draw_graph_borders = true,
-- draw_graph_borders = false,
-- TEXT SETTINGS
use_xft = true,
font = 'Montserrat Regular:size=10',
xftalpha = 0.2,
uppercase = false,
-- Pad percentages to this many decimals (0 = no padding)
pad_percents = 2,
-- COLOUR SETTINGS
default_color = 'AAAAAA',
default_shade_color = '333333',
-- default_outline_color = '111111',
default_outline_color = '010101',
color1 = '999999',
color2 = 'CCCCCC',
color3 = 'EEEEEE',
color4 = '444444',
color5 = '555555',
color6 = '666666',
color7 = '3b71a1',
};
conky.text = [[
${alignc}${color1}${font Montserrat Bold:size=20}${time %X (%Z)}${font}${color}${alignc}
${voffset -9}
${alignc}${font Montserrat Light:size=10}${time %A %d %B %Y}${font}${alignc}
${color6}${hr 2}${color}
${voffset -6}
${font Montserrat Light:size=8}${color1}SYSTEM:${color}${font} ${alignr}$sysname $nodename
${font Montserrat Light:size=8}${color1}UPTIME:${color}${font} ${alignr}$uptime_short
${font Montserrat Light:size=8}${color1}KERNEL:${color}${font} ${alignr}$kernel ${voffset 5}
${font :size=11}${color}CPUs ${color}${hr 2}${color}
${voffset -15}
${font Montserrat Light:size=10}${color1}CPU:${color}${font} ${alignr}${color}${execi 300 cat /proc/cpuinfo | grep 'model name' | cut -c 14-40 | uniq}${color}${font}
${font Montserrat Light:size=9}${color1}Used: ${alignr}${color}${font}${cpu cpu0}%
${font :size=11}${color}${cpubar cpu0}${color}
${voffset -15}
${font Montserrat Light:size=9}${color1}01 - 04:${color}${font} ${goto 100}${cpu cpu1}% ${goto 150}${cpu cpu2 }% ${goto 200}${cpu cpu3 }% ${goto 250}${cpu cpu4 }%
${font Montserrat Light:size=9}${color1}05 - 08:${color}${font} ${goto 100}${cpu cpu5}% ${goto 150}${cpu cpu6 }% ${goto 200}${cpu cpu7 }% ${goto 250}${cpu cpu8 }%
${font Montserrat Light:size=9}${color1}09 - 12:${color}${font} ${goto 100}${cpu cpu9}% ${goto 150}${cpu cpu10}% ${goto 200}${cpu cpu11}% ${goto 250}${cpu cpu12}%
${voffset -8}
${font Montserrat Light:size=9}${color1}CPU TEMP:${color}${font} ${font :size=10}${alignr}${hwmon 1 temp 1}°${color4}C${color}${voffset 5}
${font :size=11}${color}Network ${color}${hr 2}${color}
${voffset -15}
# ${font Montserrat Light:size=10}${color1}IP ADDRESS:${color}${font} ${alignr}${addr wlp0s20f3}
${if_match "${addr wlp0s20f3}"!="No Address"}${voffset 5}${font Montserrat Light:size=10}${font}Download ${alignr}${downspeedf wlp0s20f3}k/s (${totaldown wlp0s20f3})
${color3}${downspeedgraph wlp0s20f3 50,280 ADFF2F 32CD32 -t}
${font Montserrat Light:size=10}${font}Upload ${alignr}${upspeedf wlp0s20f3}k/s (${totalup wlp0s20f3})
${color3}${upspeedgraph wlp0s20f3 50,280 FF0000 8B0000 -t}
${endif}${voffset 5}${font :size=11}${color}HDD ${color}${hr 2}${color}
${color1}Used: ${color3}${fs_used /}${color1}${goto 190}Free:${goto 230}${color3}${fs_free /}
${color2}${fs_bar /}
${font Montserrat Light:size=8}${color1}DISK I/O:${color}${font} ${alignr}$diskio
${voffset 2}${font Montserrat Light:size=8}${color1}READ: ${color}${font} ${goto 80}${color4}${diskiograph_read 15,210 ADFF2F 32CD32 750}${color}
${voffset 2}${font Montserrat Light:size=8}${color1}WRITE:${color}${font} ${goto 80}${color4}${diskiograph_write 15,210 FF0000 8B0000 750}${color}
${font :size=11}${color}Memory ${color}${hr 2}${color}${voffset 2}
$font${color DimGray}RAM $alignc $mem / $memmax $alignr ${color 188f18}$memperc%
${color 188f18}$membar${voffset 1}
${font :size=11}${color}GPU ${color}${hr 2}${color}${voffset 2}
${font Montserrat Light:size=9}${color1}GPU Freq.: $alignr ${color}${font}${nvidia gpufreq} Mhz${voffset 3}
${font Montserrat Light:size=9}${color1}Memory Freq.: $alignr ${color}${font}${nvidia memfreq} Mhz${voffset 3}
${font Montserrat Light:size=9}${color1}Temperature: $alignr ${color}${font}${nvidia temp}°C ${voffset 3}
${voffset 3}${font :size=11}${color}Processes ${color}${hr 2}${color}
${voffset -15}
${font :size=10}${font Montserrat Light:size=8}${color1}TOTAL:${color}${font} ${alignr}${processes}
${voffset -10}
${font Montserrat Light:size=9}${color1}APP NAME: ${goto 160}MEMORY: ${goto 245}CPU: ${color}${font}
${voffset -16}
${font Montserrat Light:size=9}${color1}${top_mem name 1} ${color}${font} ${goto 160}${top mem 1} % ${goto 235}${top cpu 1} %
${font Montserrat Light:size=9}${color1}${top_mem name 2} ${color}${font} ${goto 160}${top mem 2} % ${goto 235}${top cpu 2} %
${font Montserrat Light:size=9}${color1}${top_mem name 3} ${color}${font} ${goto 160}${top mem 3} % ${goto 235}${top cpu 3} %
${font Montserrat Light:size=9}${color1}${top_mem name 4} ${color}${font} ${goto 160}${top mem 4} % ${goto 235}${top cpu 4} %
${font Montserrat Light:size=9}${color1}${top_mem name 5} ${color}${font} ${goto 160}${top mem 5} % ${goto 235}${top cpu 5} %
${font Montserrat Light:size=9}${color1}${top_mem name 6} ${color}${font} ${goto 160}${top mem 6} % ${goto 235}${top cpu 6} %
${font Montserrat Light:size=9}${color1}${top_mem name 7} ${color}${font} ${goto 160}${top mem 7} % ${goto 235}${top cpu 7} %
${font Montserrat Light:size=9}${color1}${top_mem name 8} ${color}${font} ${goto 160}${top mem 8} % ${goto 235}${top cpu 8} %
${font Montserrat Light:size=9}${color1}${top_mem name 9} ${color}${font} ${goto 160}${top mem 9} % ${goto 235}${top cpu 9} %
${font Montserrat Light:size=9}${color1}${top_mem name 10} ${color}${font} ${goto 160}${top mem 10} % ${goto 235}${top cpu 10} %
# ${font Montserrat Light:size=10}${color1}${alignr}by: Mo Abdrabou${color}${font}
]];

78
.config/deadd/deadd.conf Normal file
View File

@@ -0,0 +1,78 @@
[notification-center]
hideOnMouseLeave = false
marginTop = 25
marginBottom = 0
marginRight = 0
width = 700
monitor = 0
followMouse = true
# startupCommand = "deadd-notification-center-startup"
newFirst = true
useActionIcons = true
ignoreTransient = false
useMarkup = true
parseHtmlEntities = true
configSendNotiClosedDbusMessage = false
guessIconFromAppname = true
#match = "title=Abc;body=abc":"app=notify-send"
#modify = "transient=false"
#run = "":"killall notify-send"
[notification-center-notification-popup]
notiDefaultTimeout = 10000
distanceTop = 25
distanceRight = 0
distanceBetween = 10
width = 400
monitor = 0
followMouse = true
iconSize = 25
maxImageSize = 100
imageMarginTop = 10
imageMarginBottom = 10
imageMarginLeft = 0
imageMarginRight = 0
shortenBody = 5
dismissButton = mouse1
defaultActionButton = mouse3
[buttons]
buttonsPerRow = 5
buttonHeight = 60
buttonMargin = 2
# labels = "VPN":"Bluetooth":"Wifi":"Screensaver"
# commands = "sudo vpnToggle":"bluetoothToggle":"wifiToggle":"screensaverToggle"

132
.config/deadd/deadd.css Normal file
View File

@@ -0,0 +1,132 @@
.blurredBG, #main_window, .blurredBG.low, .blurredBG.normal {
background: rgba(40, 42, 54, 0.8);
border: 2pt #50fa7b solid;
border-radius: 10px;
}
.noti-center.time {
font-size: 32px;
}
.title {
font-weight: bold;
font-size: 16px;
}
.appname {
font-size: 12px;
}
.time {
font-size: 12px;
}
.blurredBG.notification {
background: rgba(40, 42, 54, 0.8);
border: 2pt #50fa7b solid;
border-radius: 10px;
}
.blurredBG.notification.critical {
background: rgba(255, 85, 85, 0.8);
border: 2pt #50fa7b solid;
border-radius: 10px;
}
.notificationInCenter.critical {
background: rgba(255, 85, 85, 0.8);
}
label {
color: #f8f8f2;
}
label.notification {
color: #f8f8f2;
}
label.critical {
color: #f8f8f2;
}
.notificationInCenter label.critical {
color: #f8f8f2;
}
button {
background: transparent;
color: #f8f8f2;
border-radius: 10px;
border-width: 2px;
background-position: 0px 0px;
text-shadow: none;
}
button:hover {
border-radius: 10px;
background: rgba(68, 71, 90, 0.8);
border-width: 2px;
border-top: transparent;
border-color: #50fa7b;
color: #282a36;
}
.userbutton {
background: transparent;
border-radius: 10px;
border-width: 2px;
background-position: 0px 0px;
text-shadow: none;
}
.userbutton:hover {
border-radius: 10px;
background: rgba(68, 71, 90, 0.8);
border-width: 2px;
border-top: transparent;
border-color: #50fa7b;
}
.userbuttonlabel {
color: #f8f8f2;
font-size: 12px;
}
.userbuttonlabel:hover {
color: #f8f8f2;
}
button.buttonState1 {
background: rgba(20,0,0,0.5);
}
.userbuttonlabel.buttonState1 {
color: #fff;
}
button.buttonState1:hover {
background: rgba(20,0,0, 0.4);
}
.userbuttonlabel.buttonState1:hover {
color: #111;
}
button.buttonState2 {
background: rgba(255,255,255,0.3);
}
.userbuttonlabel.buttonState2 {
color: #111;
}
button.buttonState2:hover {
background: rgba(20,0,0, 0.3);
}
.userbuttonlabel.buttonState2:hover {
color: #000;
}
image.deadd-noti-center.notification.image {
margin-left: 10px;
}

View File

@@ -189,7 +189,7 @@
### Misc/Advanced ###
# dmenu path.
dmenu = /usr/bin/rofi -dmenu -p dunst:
dmenu = /usr/bin/rofi -dmenu -i -p dunst:
# Browser for opening urls in context menu.
browser = /usr/bin/vivaldi-stable

View File

@@ -1,38 +0,0 @@
#!/bin/bash
# Get values from Xresources
config=~/.config/dunst/dunstrc
geometry_x=$(xgetres dunst.geometry-x)
geometry_y=$(xgetres dunst.geometry-y)
separator_height=$(xgetres dunst.sep-height)
padding=$(xgetres dunst.padding)
horizontal_padding=$(xgetres dunst.horiz-padding)
max_icon_size=$(xgetres dunst.max-icon-size)
frame_width=$(xgetres dunst.frame-width)
lb=$(xgetres dunst.low-background)
lf=$(xgetres dunst.low-foreground)
lfr=$(xgetres dunst.low-frame)
nb=$(xgetres dunst.normal-background)
nf=$(xgetres dunst.normal-foreground)
nfr=$(xgetres dunst.normal-frame)
cb=$(xgetres dunst.critical-background)
cf=$(xgetres dunst.critical-foreground)
cfr=$(xgetres dunst.critical-frame)
# Kill and running dunst instances and start
killall dunst;/usr/bin/dunst -config $config \
-geometry "0x0-$geometry_x+$geometry_y" \
-separator_height "$separator_height" \
-padding "$padding" \
-horizontal_padding "$horizontal_padding" \
-max_icon_size "$max_icon_size" \
-frame_width "$frame_width" \
-lb "$lb" \
-lf "$lf" \
-lfr "$lfr" \
-nb "$nb" \
-nf "$nf" \
-nfr "$nfr" \
-cb "$cb" \
-cf "$cf" \
-cfr "$cfr"

Submodule .config/dwm deleted from 8e4f659772

1
.config/emacs Submodule

Submodule .config/emacs added at 1307b78a5c

View File

@@ -13,13 +13,13 @@ set -l pink ff79c6
# Syntax Highlighting Colors
set -g fish_color_normal $foreground
set -g fish_color_command $cyan
set -g fish_color_keyword $pink
set -g fish_color_quote $yellow
set -g fish_color_redirection $foreground
set -g fish_color_end $orange
set -g fish_color_error $red
set -g fish_color_param $purple
set -g fish_color_comment $comment
set -g fish_color_match --background=$selection
set -g fish_color_selection --background=$selection
set -g fish_color_search_match --background=$selection
set -g fish_color_operator $green

View File

@@ -1,27 +1,11 @@
############
# GREETING #
############
function fish_greeting
# Indices of colorscripts that don't block prompt
set colorscript_indices 2 3 5 6 7 13 14 15 16 17 18 19 20 21 22 23 25 26 27 28 29 30 31 36 37 38 39 40 41 43 44 46 47 48 49 50 51
# Get length of array
set length (count $colorscript_indices)
# Randomly select array index
set i (math (random) % $length + 1)
# Output randomly selected colorscript from approved list
colorscript -e $colorscript_indices[$i]
# Output swimming fish string
clear
pokemon-colorscripts -r
echo "¸.·´¯`·.´¯`·.¸¸.·´¯`·.¸><(((º>"
end
#############
# VARIABLES #
#############
set -U fish_user_paths $fish_user_paths $HOME/.local/bin/
###########
# ALIASES #
###########
# pacman and paru
alias pacsyu='sudo pacman -Syyu' # update only standard pkgs
alias parusua='paru -Sua --noconfirm' # update only AUR pkgs
@@ -54,12 +38,6 @@ alias gpg-retrieve="gpg2 --keyserver-options auto-key-retrieve --receive-keys"
# bare git repo alias for dotfiles
alias config="GIT_WORK_TREE=~ GIT_DIR=~/.cfg"
# ssh fix for kitty terminal
alias ssh="kitty +kitten ssh"
#######
# TTY #
#######
if [ "$TERM" = "linux" ]
then
printf %b '\e[40m' '\e[8]' # set default background to color 0 'dracula-bg'
@@ -83,8 +61,5 @@ if [ "$TERM" = "linux" ]
clear
end
##########
# PROMPT #
##########
# Starship Prompt
starship init fish | source

View File

@@ -23,7 +23,7 @@ softrealtime=off
; GameMode can renice game processes. You can put any value between 0 and 20 here, the value
; will be negated and applied as a nice value (0 means no change). Defaults to 0.
renice=0
renice=10
; By default, GameMode adjusts the iopriority of clients to BE/0, you can put any value
; between 0 and 7 here (with 0 being highest priority), or one of the special values

View File

@@ -7,4 +7,4 @@ Config {
blacklistedApps = [],
trimSpaceFromSelection = True,
enableImageSupport = True
}
}

19
.config/kitty/diff.conf Normal file
View File

@@ -0,0 +1,19 @@
foreground #f8f8f2
background #282a36
title_fg #f8f8f2
title_bg #282a36
margin_bg #6272a4
margin_fg #44475a
removed_bg #ff5555
highlight_removed_bg #ff5555
removed_margin_bg #ff5555
added_bg #50fa7b
highlight_added_bg #50fa7b
added_margin_bg #50fa7b
filler_bg #44475a
hunk_margin_bg #44475a
hunk_bg #bd93f9
search_bg #8be9fd
search_fg #282a36
select_bg #f1fa8c
select_fg #282a36

View File

@@ -1,5 +1,3 @@
# vim:fileencoding=utf-8:ft=conf:foldmethod=marker
#: Fonts {{{
#: kitty has very powerful font management. You can configure
@@ -427,7 +425,7 @@ window_resize_step_lines 2
#: resizing windows. The cells value is used for horizontal resizing
#: and the lines value for vertical resizing.
window_border_width 0.5pt
window_border_width 0.5
#: The width of window borders. Can be either in pixels (px) or pts
#: (pt). Values in pts will be rounded to the nearest number of pixels
@@ -763,7 +761,7 @@ mark3_background #f274bc
#: Advanced {{{
shell .
shell fish
#: The shell program to execute. The default value of . means to use
#: whatever shell is set as the default shell for the current user.
@@ -1029,6 +1027,8 @@ clear_all_shortcuts no
#: kitty +kitten hints --hints-offset to zero for all mappings,
#: including the builtin ones.
#: }}}
#: Clipboard {{{
map kitty_mod+c copy_to_clipboard
@@ -1309,6 +1309,4 @@ map kitty_mod+delete clear_terminal reset active
#: }}}
# }}}
include dracula.conf
include dracula.conf

View File

@@ -1,45 +0,0 @@
# default options
display_on=0
span_image=false
lock_timeout=300
fx_list=(dim blur dimblur pixel dimpixel color)
dim_level=40
blur_level=1
pixel_scale=10,1000
solid_color=333333
# # default theme options
# loginbox=00000066
# loginshadow=00000000
# locktext="Type password to unlock..."
# font="sans-serif"
# ringcolor=ffffffff
# insidecolor=00000000
# separatorcolor=00000000
# ringvercolor=ffffffff
# insidevercolor=00000000
# ringwrongcolor=ffffffff
# insidewrongcolor=d23c3dff
# keyhlcolor=d23c3dff
# bshlcolor=d23c3dff
# verifcolor=ffffffff
# timecolor=ffffffff
# datecolor=ffffffff
# Dracula theme options
loginbox=282a3666
loginshadow=282a3600
locktext="Type password to unlock..."
font="sans-serif"
ringcolor=8be9fdff
insidecolor=00000000
separatorcolor=00000000
ringvercolor=50fa7bff
insidevercolor=50fa7bff
ringwrongcolor=ff5555ff
insidewrongcolor=ff5555ff
keyhlcolor=bd93f9ff
bshlcolor=bd93f9ff
verifcolor=ffffffff
timecolor=f8f8f2ff
datecolor=f8f8f2ff

View File

@@ -10,7 +10,7 @@ print_info() {
info "Uptime" uptime
info "Packages" packages
info "Shell" shell
info "Resolution" resolution
# info "Resolution" resolution
info "DE" de
info "WM" wm
info "WM Theme" wm_theme
@@ -20,11 +20,11 @@ print_info() {
info "Terminal Font" term_font
info "CPU" cpu
info "GPU" gpu
info "Memory" memory
info "GPU Driver" gpu_driver # Linux/macOS only
# info "GPU Driver" gpu_driver # Linux/macOS only
# info "CPU Usage" cpu_usage
# info "Memory" memory
# info "Disk" disk
info "Battery" battery
# info "Battery" battery
info "Font" font
# info "Song" song
# [[ "$player" ]] && prin "Music Player" "$player"
@@ -32,12 +32,9 @@ print_info() {
# info "Public IP" public_ip
# info "Users" users
# info "Locale" locale # This only works on glibc systems.
# info cols
info cols
}
# Title
# Hide/Show Fully qualified domain name.
#
# Default: 'off'
@@ -45,10 +42,6 @@ print_info() {
# Flag: --title_fqdn
title_fqdn="off"
# Kernel
# Shorten the output of the kernel function.
#
# Default: 'on'
@@ -61,10 +54,6 @@ title_fqdn="off"
# off: 'Linux 4.8.9-1-ARCH'
kernel_shorthand="on"
# Distro
# Shorten the output of the distro function
#
# Default: 'off'
@@ -85,10 +74,6 @@ distro_shorthand="off"
# off: 'Arch Linux'
os_arch="on"
# Uptime
# Shorten the output of the uptime function
#
# Default: 'on'
@@ -101,10 +86,6 @@ os_arch="on"
# off: '2 days, 10 hours, 3 minutes'
uptime_shorthand="on"
# Memory
# Show memory pecentage in output.
#
# Default: 'off'
@@ -116,10 +97,6 @@ uptime_shorthand="on"
# off: '1801MiB / 7881MiB'
memory_percent="on"
# Packages
# Show/Hide Package Manager names.
#
# Default: 'tiny'
@@ -132,10 +109,6 @@ memory_percent="on"
# off: '908'
package_managers="on"
# Shell
# Show the path to $SHELL
#
# Default: 'off'
@@ -158,10 +131,6 @@ shell_path="off"
# off: 'bash'
shell_version="on"
# CPU
# CPU speed type
#
# Default: 'bios_limit'
@@ -237,10 +206,6 @@ cpu_cores="logical"
# off: 'Intel i7-6500U (4) @ 3.1GHz'
cpu_temp="F"
# GPU
# Enable/Disable GPU Brand
#
# Default: 'on'
@@ -271,10 +236,6 @@ gpu_brand="on"
# GPU1: Intel Integrated Graphics
gpu_type="all"
# Resolution
# Display refresh rate next to each monitor
# Default: 'off'
# Values: 'on', 'off'
@@ -286,10 +247,6 @@ gpu_type="all"
# off: '1920x1080'
refresh_rate="on"
# Gtk Theme / Icons / Font
# Shorten output of GTK Theme / Icons / Font
#
# Default: 'off'
@@ -324,10 +281,6 @@ gtk2="on"
# off: 'Numix [GTK2]'
gtk3="on"
# IP Address
# Website to ping for the public IP
#
# Default: 'http://ident.me'
@@ -342,10 +295,6 @@ public_ip_host="http://ident.me"
# Flag: --ip_timeout
public_ip_timeout=2
# Desktop Environment
# Show Desktop Environment version
#
# Default: 'off'
@@ -353,10 +302,6 @@ public_ip_timeout=2
# 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 '/'.
@@ -411,10 +356,6 @@ disk_subtitle="mount"
# off: 'Disk (/): 74G / 118G'
disk_percent="on"
# Song
# Manually specify a music player.
#
# Default: 'auto'
@@ -493,10 +434,6 @@ song_shorthand="off"
# Example: mpc_args=(-h HOST -P PASSWORD)
mpc_args=()
# Text Colors
# Text Colors
#
# Default: 'distro'
@@ -511,10 +448,6 @@ mpc_args=()
# colors=(4 6 1 8 8 6) - Text is colored in the order above.
colors=(distro)
# Text Options
# Toggle bold text
#
# Default: 'on'
@@ -548,10 +481,6 @@ underline_char="-"
# separator=" =": 'WM = dwm'
separator=":"
# Color Blocks
# Color block range
# The range of colors to print.
#
@@ -603,9 +532,6 @@ block_height=1
# col_offset=7 - Leave 7 spaces then print the colors
col_offset="auto"
# Progress Bars
# Bar characters
#
# Default: '-', '='
@@ -646,7 +572,6 @@ bar_length=15
bar_color_elapsed="distro"
bar_color_total="distro"
# Info display
# Display a bar with the info.
#
@@ -667,10 +592,6 @@ memory_display="off"
battery_display="off"
disk_display="off"
# Backend Settings
# Image backend.
#
# Default: 'ascii'
@@ -693,10 +614,6 @@ image_backend="ascii"
# wallpaper will be used.
image_source="auto"
# Ascii Options
# Ascii distro
# Which distro's ascii art to display.
#
@@ -764,10 +681,6 @@ ascii_colors=(distro)
# 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.
@@ -836,9 +749,6 @@ xoffset=0
# 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.

View File

@@ -1,6 +1,3 @@
################################
# Animations #
#################################
# requires https://github.com/jonaburg/picom
# length of animation in milliseconds (default: 300)
@@ -30,10 +27,6 @@ spawn-center = true;
# Whether to animate down scaling (some programs handle this poorly) (default: false)
no-scale-down = true;
#################################
# Corners #
#################################
# requires: https://github.com/sdhand/compton or https://github.com/jonaburg/picom
corner-radius = 10.0;
rounded-corners-exclude = [
@@ -44,6 +37,8 @@ rounded-corners-exclude = [
# "class_g = 'kitty'",
# "class_g = 'Alacritty'",
"class_g = 'Polybar'",
"class_g = 'Rofi'",
"class_g = 'deadd-notification-center'",
# "class_g = 'code-oss'",
#"class_g = 'TelegramDesktop'",
# "class_g = 'firefox'",
@@ -54,11 +49,6 @@ round-borders-exclude = [
#"class_g = 'TelegramDesktop'",
];
#################################
# 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.
@@ -137,11 +127,6 @@ shadow-exclude = [
# 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
@@ -171,11 +156,6 @@ 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 = 1
# inactive-opacity = 0.8;
@@ -194,7 +174,6 @@ popup_menu = { opacity = 1.0; }
# dropdown_menu = { opacity = 0.8; }
dropdown_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;
@@ -240,11 +219,6 @@ opacity-rule = [
# "100:class_g = 'Thunderbird'"
];
#################################
# Background-Blurring #
#################################
# Parameters for background blurring, see the *BLUR* section for more information.
# blur-method =
# blur-size = 12
@@ -298,15 +272,13 @@ blur-background-exclude = [
# prevents picom from blurring the background
# when taking selection screenshot with `main`
# https://github.com/naelstrof/maim/issues/130
"class_g = 'peek'",
"class_g = 'Peek'",
"class_g = 'slop'",
"class_g = 'zoom'",
"_GTK_FRAME_EXTENTS@:c"
];
#################################
# General Settings #
#################################
# Daemonize process. Fork to background after initialization. Causes issues with certain (badly-written) drivers.
# daemon = false
@@ -372,6 +344,10 @@ refresh-rate = 0
# when redirecting/unredirecting windows. paint-on-overlay may make the flickering less obvious.
#
# unredir-if-possible = false
unredir-if-possible = true;
# unredir-if-possible-exclude = [
# "class_g = 'looking-glass-client' && !focused"
# ]
# Delay before unredirecting the window, in milliseconds. Defaults to 0.
# unredir-if-possible-delay = 0
@@ -524,7 +500,7 @@ log-level = "info";
wintypes:
{
normal = { fade = false; shadow = false; }
tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; };
tooltip = { fade = true; shadow = true; opacity = 1.0; focus = true; full-shadow = false; };
dock = { shadow = false; }
dnd = { shadow = false; }
# popup_menu = { opacity = 0.8; }

View File

@@ -1,66 +0,0 @@
#!/bin/bash
helpmenu() {
echo "Script to toggle picom ON/OFF. Use only one argument at a time."
echo "Usage: toggle_picom.sh [--toggle | -t] [--on] [--off] [--help | -h]"
echo " - Toggle: toggle_picom.sh OR toggle_picom.sh --toggle OR toggle_picom.sh -t"
echo " - Turn On: toggle_picom.sh --on"
echo " - Turn Off: toggle_picom.sh --off"
echo " - Help: toggle_picom.sh --help OR toggle_picom.sh -h"
}
check_running() {
if pgrep -x picom >/dev/null; then
echo 1
else
echo 0
fi
}
turn_on() {
notify-send "Turning Picom ON"
if [ $(check_running) -eq '0' ]; then
picom --config /home/sravan/.config/picom/picom.conf &
fi
}
turn_off() {
notify-send "Turning Picom OFF"
if [ $(check_running) -eq '1' ]; then
killall picom
fi
}
toggle() {
if [ $(check_running) -eq '1' ]; then
turn_off
else
turn_on
fi
}
main() {
if [ $# -eq 0 ]; then
# No arguments
toggle
else
case $1 in
--help | -h)
helpmenu
;;
--toggle | -t)
toggle
;;
--on)
turn_on
;;
--off)
turn_off
;;
esac
fi
}
main $@

Submodule .config/polybar deleted from 13a0ee5c2b

View File

@@ -1,17 +1,17 @@
configuration {
modi: "drun,run,clipboard:greenclip print,ssh";
modi: "window,drun,combi,run,clipboard:greenclip print,ssh";
/* width: 50;*/
/* lines: 15;*/
/* columns: 1;*/
font: "NotoSans Nerd Font 12";
font: "NotoSans Nerd Font 12";
/* bw: 1;*/
/* location: 0;*/
/* padding: 5;*/
/* yoffset: 0;*/
/* xoffset: 0;*/
/* fixed-num-lines: true;*/
show-icons: true;
terminal: "kitty";
show-icons: true;
terminal: "kitty";
/* ssh-client: "ssh";*/
/* ssh-command: "{terminal} -e {ssh-client} {host} [-p {port}]";*/
/* run-command: "{cmd}";*/
@@ -19,7 +19,7 @@ configuration {
/* run-shell-command: "{terminal} -e {cmd}";*/
/* window-command: "wmctrl -i -R {window}";*/
/* window-match-fields: "all";*/
icon-theme: "Papirus-Dark";
icon-theme: "Papirus-Dark";
/* drun-match-fields: "name,generic,exec,categories";*/
/* drun-show-actions: false;*/
/* drun-display-format: "{name} [<span weight='light' size='small'><i>({generic})</i></span>]";*/
@@ -34,7 +34,7 @@ configuration {
/* auto-select: false;*/
/* parse-hosts: false;*/
/* parse-known-hosts: true;*/
/* combi-modi: "window,run";*/
combi-modi: "window,drun";
/* matching: "normal";*/
/* tokenize: true;*/
/* m: "-5";*/
@@ -82,19 +82,19 @@ configuration {
/* kb-remove-word-back: "Control+Alt+h,Control+BackSpace";*/
/* kb-remove-word-forward: "Control+Alt+d";*/
/* kb-remove-char-forward: "Delete,Control+d";*/
/* kb-remove-char-back: "BackSpace,Shift+BackSpace,Control+h";*/
/* kb-remove-to-eol: "Control+k";*/
kb-remove-char-back: "BackSpace";
kb-remove-to-eol: "Control+Shift+e";
/* kb-remove-to-sol: "Control+u";*/
/* kb-accept-entry: "Control+j,Control+m,Return,KP_Enter";*/
kb-accept-entry: "Control+m,Return,KP_Enter";
/* kb-accept-custom: "Control+Return";*/
/* kb-accept-alt: "Shift+Return";*/
/* kb-delete-entry: "Shift+Delete";*/
/* kb-mode-next: "Shift+Right,Control+Tab";*/
/* kb-mode-previous: "Shift+Left,Control+ISO_Left_Tab";*/
kb-mode-next: "Shift+Right,Control+Tab,Control+l";
kb-mode-previous: "Shift+Left,Control+ISO_Left_Tab,Control+h";
/* kb-row-left: "Control+Page_Up";*/
/* kb-row-right: "Control+Page_Down";*/
/* kb-row-up: "Up,Control+p,ISO_Left_Tab";*/
/* kb-row-down: "Down,Control+n";*/
kb-row-up: "Up,Control+k,Control+p,ISO_Left_Tab";
kb-row-down: "Down,Control+j,Control+n";
/* kb-row-tab: "Tab";*/
/* kb-page-prev: "Page_Up";*/
/* kb-page-next: "Page_Down";*/
@@ -143,4 +143,10 @@ configuration {
/* me-accept-entry: "MouseDPrimary";*/
/* me-accept-custom: "Control+MouseDPrimary";*/
}
@import "./themes/dracula-blurry-full.rasi"
@import "./themes/centertab-dracula.rasi"
/* @import "./themes/dmenu-dracula.rasi" */
/* @import "./themes/dracula-blurry-full.rasi" */
/* @import "./themes/dracula.rasi" */
/* @import "./themes/sidetab-dracula.rasi" */
/* @import "./themes/slate-dracula.rasi" */

View File

@@ -0,0 +1,144 @@
/**
* ROFI Color theme: centertab-dracula
* User: balajsra
* Copyright: deadguy & Sravan Balaji
*/
configuration {
display-drun: "launch";
display-run: "execute";
display-window: "window";
display-combi: "combi";
show-icons: true;
sidebar-mode: false;
font: "NotoSans Nerd Font 12";
}
* {
background-color: #282a36;
text-color: #f8f8f2;
selbg: #8be9fd;
actbg: #44475a;
urgbg: #ff5555;
winbg: #8be9fd;
selected-normal-foreground: @winbg;
normal-foreground: @text-color;
selected-normal-background: @actbg;
normal-background: @background-color;
selected-urgent-foreground: @background-color;
urgent-foreground: @text-color;
selected-urgent-background: @urgbg;
urgent-background: @background-color;
selected-active-foreground: @winbg;
active-foreground: @background-color;
selected-active-background: @actbg;
active-background: @selbg;
line-margin: 2;
line-padding: 2;
separator-style: "none";
hide-scrollbar: "true";
margin: 0;
padding: 0;
}
window {
location: center;
anchor: center;
height: 75%;
width: 75%;
orientation: horizontal;
children: [mainbox];
border: 2;
border-color: @winbg;
}
mainbox {
spacing: 0.8em;
children: [ entry, listview, mode-switcher ];
}
button {
padding: 5px 2px;
}
button selected {
background-color: @active-background;
text-color: @background-color;
}
inputbar {
padding: 5px;
spacing: 5px;
}
listview {
spacing: 0.5em;
dynamic: false;
cycle: true;
}
element {
padding: 10px;
}
element-icon {
size: 2.00ch;
}
entry {
expand: false;
text-color: @normal-foreground;
vertical-align: 1;
padding: 5px;
}
element normal.normal {
background-color: @normal-background;
text-color: @normal-foreground;
}
element normal.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
}
element normal.active {
background-color: @active-background;
text-color: @active-foreground;
}
element selected.normal {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
border: 0 5px solid 0 0;
border-color: @active-background;
}
element selected.urgent {
background-color: @selected-urgent-background;
text-color: @selected-urgent-foreground;
}
element selected.active {
background-color: @selected-active-background;
text-color: @selected-active-foreground;
}
element alternate.normal {
background-color: @normal-background;
text-color: @normal-foreground;
}
element alternate.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
}
element alternate.active {
background-color: @active-background;
text-color: @active-foreground;
}

View File

@@ -3,40 +3,41 @@
* User: balajsra
* Copyright: Sravan Balaji
*/
* {
background-color: #282a36;
text-color: #f8f8f2;
font: "NotoSans Nerd Font 12";
background-color: #282a36;
text-color: #f8f8f2;
font: "NotoSans Nerd Font 12";
}
#window {
anchor: north;
location: north;
width: 100%;
padding: 2px 5px 2px 5px; /* top right bottom left */
children: [ horibox ];
anchor: north;
location: north;
width: 100%;
padding: 2px 5px 2px 5px; /* top right bottom left */
children: [ horibox ];
}
#horibox {
orientation: horizontal;
children: [ prompt, entry, listview ];
orientation: horizontal;
children: [ prompt, entry, listview ];
}
#listview {
layout: horizontal;
spacing: 10px;
lines: 100;
layout: horizontal;
spacing: 10px;
lines: 100;
}
#entry {
expand: false;
width: 10em;
expand: false;
width: 10em;
}
#element {
padding: 1px 5px 1px 5px; /* top right bottom left */
padding: 1px 5px 1px 5px; /* top right bottom left */
}
#element selected {
background-color: #bd93f9;
text-color: #282a36;
background-color: #bd93f9;
text-color: #282a36;
}

View File

@@ -11,128 +11,128 @@
*/
configuration {
drun-display-format: "{name}";
threads: 0;
scroll-method: 0;
disable-history: false;
fullscreen: false;
hide-scrollbar: true;
sidebar-mode: false;
drun-display-format: "{name}";
threads: 0;
scroll-method: 0;
disable-history: false;
fullscreen: false;
hide-scrollbar: true;
sidebar-mode: false;
}
* {
background: #00000000;
background-color: #282a36cc;
background-entry: #44475acc;
background-alt: #44475acc;
foreground: #f8f8f2cc;
foreground-selected: #50fa7bcc;
urgent: #ff5555cc;
urgent-selected: #ff5555cc;
background: #00000000;
background-color: #282a36cc;
background-entry: #44475acc;
background-alt: #44475acc;
foreground: #f8f8f2cc;
foreground-selected: #50fa7bcc;
urgent: #ff5555cc;
urgent-selected: #ff5555cc;
}
window {
transparency: "real";
background-color: @background;
text-color: @foreground;
height: 100%;
width: 100%;
location: northwest;
anchor: northwest;
x-offset: 0;
y-offset: 0;
transparency: "real";
background-color: @background;
text-color: @foreground;
height: 100%;
width: 100%;
location: northwest;
anchor: northwest;
x-offset: 0;
y-offset: 0;
}
prompt {
enabled: false;
enabled: false;
}
inputbar {
background-color: @background-alt;
text-color: @foreground;
expand: false;
border-radius: 6px;
margin: 0px 430px 0px 430px;
padding: 10px 10px 10px 10px;
position: north;
background-color: @background-alt;
text-color: @foreground;
expand: false;
border-radius: 6px;
margin: 0px 430px 0px 430px;
padding: 10px 10px 10px 10px;
position: north;
}
entry {
background-color: @background;
text-color: @foreground;
placeholder-color: @foreground;
expand: true;
horizontal-align: 0.5;
placeholder: "Search applications";
blink: true;
background-color: @background;
text-color: @foreground;
placeholder-color: @foreground;
expand: true;
horizontal-align: 0.5;
placeholder: "Search applications";
blink: true;
}
case-indicator {
background-color: @background;
text-color: @foreground;
spacing: 0;
background-color: @background;
text-color: @foreground;
spacing: 0;
}
listview {
background-color: @background;
columns: 7;
spacing: 4px;
cycle: false;
dynamic: true;
layout: vertical;
background-color: @background;
columns: 7;
spacing: 4px;
cycle: false;
dynamic: true;
layout: vertical;
}
mainbox {
background-color: @background-color;
children: [ inputbar, listview ];
spacing: 25px;
padding: 70px 135px 55px 135px;
background-color: @background-color;
children: [ inputbar, listview ];
spacing: 25px;
padding: 70px 135px 55px 135px;
}
element {
background-color: @background;
text-color: @foreground;
orientation: vertical;
border-radius: 9px;
padding: 20px 0px 20px 0px;
background-color: @background;
text-color: @foreground;
orientation: vertical;
border-radius: 9px;
padding: 20px 0px 20px 0px;
}
element-icon {
size: 65px;
border: 0px;
size: 65px;
border: 0px;
}
element-text {
expand: true;
horizontal-align: 0.5;
vertical-align: 0.5;
margin: 5px 10px 0px 10px;
expand: true;
horizontal-align: 0.5;
vertical-align: 0.5;
margin: 5px 10px 0px 10px;
}
element normal.urgent,
element alternate.urgent {
background-color: @urgent;
text-color: @foreground;
border-radius: 9px;
background-color: @urgent;
text-color: @foreground;
border-radius: 9px;
}
element normal.active,
element alternate.active {
background-color: @background-alt;
text-color: @foreground;
background-color: @background-alt;
text-color: @foreground;
}
element selected {
background-color: @background-alt;
text-color: @foreground-selected;
background-color: @background-alt;
text-color: @foreground-selected;
}
element selected.urgent {
background-color: @urgent-selected;
text-color: @foreground;
background-color: @urgent-selected;
text-color: @foreground;
}
element selected.active {
background-color: @background-alt;
color: @foreground-selected;
background-color: @background-alt;
color: @foreground-selected;
}

View File

@@ -1,137 +1,137 @@
/**
* ROFI Color theme: dmenu-dracula
* ROFI Color theme: sidetab-dracula
* User: balajsra
* Copyright: deadguy & Sravan Balaji
*/
configuration {
display-drun: "Activate";
display-run: "Execute";
display-window: "Window";
show-icons: true;
sidebar-mode: true;
font: "NotoSans Nerd Font 12";
display-drun: "Launch";
display-run: "Execute";
display-window: "Window";
show-icons: true;
sidebar-mode: true;
font: "NotoSans Nerd Font 12";
}
* {
background-color: #282a36;
text-color: #f8f8f2;
selbg: #bd93f9;
actbg: #44475a;
urgbg: #ff5555;
winbg: #50fa7b;
background-color: #282a36;
text-color: #f8f8f2;
selbg: #bd93f9;
actbg: #44475a;
urgbg: #ff5555;
winbg: #50fa7b;
selected-normal-foreground: @winbg;
normal-foreground: @text-color;
selected-normal-background: @actbg;
normal-background: @background-color;
selected-normal-foreground: @winbg;
normal-foreground: @text-color;
selected-normal-background: @actbg;
normal-background: @background-color;
selected-urgent-foreground: @background-color;
urgent-foreground: @text-color;
selected-urgent-background: @urgbg;
urgent-background: @background-color;
selected-urgent-foreground: @background-color;
urgent-foreground: @text-color;
selected-urgent-background: @urgbg;
urgent-background: @background-color;
selected-active-foreground: @winbg;
active-foreground: @text-color;
selected-active-background: @actbg;
active-background: @selbg;
selected-active-foreground: @winbg;
active-foreground: @text-color;
selected-active-background: @actbg;
active-background: @selbg;
line-margin: 2;
line-padding: 2;
separator-style: "none";
hide-scrollbar: "true";
margin: 0;
padding: 0;
line-margin: 2;
line-padding: 2;
separator-style: "none";
hide-scrollbar: "true";
margin: 0;
padding: 0;
}
window {
location: west;
anchor: west;
height: 100%;
width: 25%;
orientation: horizontal;
children: [mainbox];
location: west;
anchor: west;
height: 100%;
width: 25%;
orientation: horizontal;
children: [mainbox];
}
mainbox {
spacing: 0.8em;
children: [ entry, listview, mode-switcher ];
spacing: 0.8em;
children: [ entry, listview, mode-switcher ];
}
button {
padding: 5px 2px;
padding: 5px 2px;
}
button selected {
background-color: @active-background;
text-color: @background-color;
background-color: @active-background;
text-color: @background-color;
}
inputbar {
padding: 5px;
spacing: 5px;
padding: 5px;
spacing: 5px;
}
listview {
spacing: 0.5em;
dynamic: false;
cycle: true;
spacing: 0.5em;
dynamic: false;
cycle: true;
}
element {
padding: 10px;
padding: 10px;
}
entry {
expand: false;
text-color: @normal-foreground;
vertical-align: 1;
padding: 5px;
expand: false;
text-color: @normal-foreground;
vertical-align: 1;
padding: 5px;
}
element normal.normal {
background-color: @normal-background;
text-color: @normal-foreground;
background-color: @normal-background;
text-color: @normal-foreground;
}
element normal.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
background-color: @urgent-background;
text-color: @urgent-foreground;
}
element normal.active {
background-color: @active-background;
text-color: @active-foreground;
background-color: @active-background;
text-color: @active-foreground;
}
element selected.normal {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
border: 0 5px solid 0 0;
border-color: @active-background;
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
border: 0 5px solid 0 0;
border-color: @active-background;
}
element selected.urgent {
background-color: @selected-urgent-background;
text-color: @selected-urgent-foreground;
background-color: @selected-urgent-background;
text-color: @selected-urgent-foreground;
}
element selected.active {
background-color: @selected-active-background;
text-color: @selected-active-foreground;
background-color: @selected-active-background;
text-color: @selected-active-foreground;
}
element alternate.normal {
background-color: @normal-background;
text-color: @normal-foreground;
background-color: @normal-background;
text-color: @normal-foreground;
}
element alternate.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
background-color: @urgent-background;
text-color: @urgent-foreground;
}
element alternate.active {
background-color: @active-background;
text-color: @active-foreground;
background-color: @active-background;
text-color: @active-foreground;
}

View File

@@ -1,50 +1,51 @@
/**
* ROFI Color theme: dmenu-dracula
* ROFI Color theme: slate-dracula
* User: balajsra
* Copyright: Sravan Balaji
*/
* {
background-color: #282a36;
border-color: #bd93f9;
text-color: #f8f8f2;
spacing: 0;
width: 1024px;
font: "NotoSans Nerd Font 12";
background-color: #282a36;
border-color: #bd93f9;
text-color: #f8f8f2;
spacing: 0;
width: 1024px;
font: "NotoSans Nerd Font 12";
}
inputbar {
border: 0 0 1px 0; /* top right bottom left */
children: [prompt, entry];
border: 0 0 1px 0; /* top right bottom left */
children: [prompt, entry];
}
prompt {
padding: 16px;
border: 2px 1px 0 2px; /* top right bottom left */
padding: 16px;
border: 2px 1px 0 2px; /* top right bottom left */
}
textbox {
background-color: #282a36;
border: 0 0 1px 0; /* top right bottom left */
border-color: #bd93f9;
padding: 8px 16px 8px 16px; /* top right bottom left */
background-color: #282a36;
border: 0 0 1px 0; /* top right bottom left */
border-color: #bd93f9;
padding: 8px 16px 8px 16px; /* top right bottom left */
}
entry {
border: 2px 2px 0px 0; /* top right bottom left */
padding: 16px;
border: 2px 2px 0px 0; /* top right bottom left */
padding: 16px;
}
listview {
cycle: true;
margin: 0 0 0px 0; /* top right bottom left */
scrollbar: true;
cycle: true;
margin: 0 0 0px 0; /* top right bottom left */
scrollbar: true;
}
element {
border: 0 2px 1px 2px; /* top right bottom left */
padding: 16px;
border: 0 2px 1px 2px; /* top right bottom left */
padding: 16px;
}
element selected {
background-color: #44475a;
background-color: #44475a;
}

View File

@@ -1,5 +1,3 @@
# ~/.config/starship.toml
# Don't print a new line at the start of the prompt
add_newline = false
@@ -34,7 +32,7 @@ truncate_to_repo = false
truncation_symbol = "…/"
read_only = ""
[docker]
[docker_context]
symbol = " "
[elixir]
@@ -49,8 +47,8 @@ symbol = " "
[golang]
symbol = " "
[haskell]
symbol = " "
# [haskell]
# symbol = " "
[hg_branch]
symbol = " "

View File

@@ -0,0 +1,3 @@
casSharpness=1.0
toggleKey = Home
effects = cas

View File

@@ -1,7 +1,72 @@
# Sravan Balaji's Git Configuration
# Based on: https://gist.github.com/tdd/470582
[user]
email = balajsra@umich.edu
name = Sravan Balaji
email = balajsra@umich.edu
name = Sravan Balaji
[color]
# Enable colors in color-supporting terminals
ui = auto
[pull]
rebase = false
rebase = true
[alias]
tree = log --all --decorate --oneline --graph
# List available aliases
aliases = !git config --get-regexp alias | sed -re 's/alias\\.(\\S*)\\s(.*)$/\\1 = \\2/g'
# Command shortcuts
ci = commit
co = checkout
st = status
# Display tree-like log, because default log is a pain…
lg = log --graph --date=relative --pretty=tformat:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%an %ad)%Creset'
# Useful when you have to update your last commit
# with staged files without editing the commit message.
oops = commit --amend --no-edit
# Ensure that force-pushing won't lose someone else's work (only mine).
push-with-lease = push --force-with-lease
# Rebase wont trigger hooks on each "replayed" commit.
# This is an ugly hack that will replay each commit during rebase with the
# standard `commit` command which will trigger hooks.
rebase-with-hooks = rebase -x 'git reset --soft HEAD~1 && git commit -C HEAD@{1}'
# List local commits that were not pushed to remote repository
review-local = "!git lg @{push}.."
# Edit last commit message
reword = commit --amend
# Undo last commit but keep changed files in stage
uncommit = reset --soft HEAD~1
# Remove file(s) from Git but not from disk
untrack = rm --cache --
[core]
# Emacs
editor = "emacs"
# Don't consider trailing space change as a cause for merge conflicts
whitespace = -trailing-space
[diff]
# Use better, descriptive initials (c, i, w) instead of a/b.
mnemonicPrefix = true
# Show renames/moves as such
renames = true
# When using --word-diff, assume --word-diff-regex=.
wordRegex = .
# Display submodule-related information (commit listings)
submodule = log
[fetch]
# Auto-fetch submodule changes (sadly, won't auto-update)
recurseSubmodules = on-demand
[grep]
break = true
heading = true
lineNumber = true
# Consider most regexes to be ERE
extendedRegexp = true
[log]
# Use abbrev SHAs whenever possible/relevant instead of full 40 chars
abbrevCommit = true
# Automatically --follow when given a single path
follow = true
# Disable decorate for reflog
# (because there is no dedicated `reflog` section available)
decorate = false
[status]
# Display submodule rev change summaries in status
submoduleSummary = true
# Recursively traverse untracked directories to display all contents
showUntrackedFiles = all

3
.gitignore vendored
View File

@@ -1 +1,2 @@
.cfg
.cfg
*~

85
.gitmodules vendored
View File

@@ -1,15 +1,76 @@
[submodule ".vim/pack/themes/start/dracula"]
path = .vim/pack/themes/start/dracula
url = https://github.com/dracula/vim.git
[submodule ".themes/Dracula"]
path = .themes/Dracula
url = git@github.com:dracula/vim.git
branch = master
[submodule ".themes/dracula-blender"]
path = .themes/dracula-blender
url = git@github.com:dracula/blender.git
branch = master
[submodule ".themes/dracula-freecad"]
path = .themes/dracula-freecad
url = git@github.com:dracula/freecad.git
branch = master
[submodule ".themes/dracula-gnome-terminal"]
path = .themes/dracula-gnome-terminal
url = git@github.com:dracula/gnome-terminal.git
branch = master
[submodule ".themes/dracula-xournalpp"]
path = .themes/dracula-xournalpp
url = git@github.com:dracula/xournalpp.git
branch = master
[submodule ".themes/dracula-steam"]
path = .themes/dracula-steam
url = git@github.com:dracula/steam.git
branch = master
[submodule ".themes/dracula-gtk"]
path = .themes/dracula-gtk
url = git@github.com:dracula/gtk.git
[submodule ".config/dwm"]
path = .config/dwm
url = https://github.com/balajsra/dwm.git
[submodule ".config/polybar"]
path = .config/polybar
url = git@github.com:balajsra/polybar.git
[submodule "/home/sravan/.local/share/Steam/skins/Dracula"]
path = /home/sravan/.local/share/Steam/skins/Dracula
url = https://github.com/dracula/steam.git
branch = master
[submodule ".themes/dracula-fish"]
path = .themes/dracula-fish
url = git@github.com:dracula/fish.git
branch = master
[submodule ".themes/dracula-kitty"]
path = .themes/dracula-kitty
url = git@github.com:dracula/kitty.git
branch = master
[submodule ".themes/dracula-libreoffice"]
path = .themes/dracula-libreoffice
url = git@github.com:dracula/libreoffice.git
branch = master
[submodule ".themes/dracula-tty"]
path = .themes/dracula-tty
url = git@github.com:dracula/tty.git
branch = master
[submodule ".themes/dracula-latex"]
path = .themes/dracula-latex
url = git@github.com:dracula/latex.git
branch = master
[submodule ".themes/dracula-matplotlib"]
path = .themes/dracula-matplotlib
url = git@github.com:dracula/matplotlib.git
branch = master
[submodule ".themes/dracula-matlab"]
path = .themes/dracula-matlab
url = git@github.com:dracula/matlab.git
branch = master
[submodule ".xmonad"]
path = .xmonad
url = git@github.com:balajsra/xmonad.git
branch = master
[submodule ".themes/dracula-qbittorrent"]
path = .themes/dracula-qbittorrent
url = git@github.com:dracula/qbittorrent.git
branch = master
[submodule ".config/dwm-flexipatch"]
path = .config/dwm-flexipatch
url = git@github.com:balajsra/dwm-flexipatch.git
branch = master
[submodule ".themes/fallout-grub-theme"]
path = .themes/fallout-grub-theme
url = git@github.com:shvchk/fallout-grub-theme.git
branch = master
[submodule ".config/emacs"]
path = .config/emacs
url = git@github.com:balajsra/emacs.git
branch = main

72
.scripts/control-center.sh Executable file
View File

@@ -0,0 +1,72 @@
#!/bin/bash
help_menu() {
echo "Main script to launch sub-menu scripts. Use only one argument at a time."
# echo " - Play / Pause: playerctl.sh --play-pause"
# echo " - Next: playerctl.sh --next"
# echo " - Previous: playerctl.sh --prev"
# echo " - Change Player: playerctl.sh --change"
# echo " - Rofi Menu: playerctl.sh --rofi"
# echo " - Help: playerctl.sh --help OR playerctl.sh -h"
}
rofi_menu() {
declare -a options=(
" Compositor - picom"
" Notifications - deadd"
" Media - playerctl"
"墳Volume - pactl"
" Startup Processes - startup"
" Hardware - system76-power"
" Power Menu - session"
" Back - back"
" Quit - quit"
)
choice=$(printf '%s\n' "${options[@]}" | rofi -dmenu -i)
option=$(printf '%s\n' "${choice}" | awk '{print $NF}')
if [[ "$option" == "quit" ]]; then
kilall rofi
elif [[ "$option" != "back" ]]; then
main "--$option" && main "--rofi"
fi
}
main() {
if [ $# -eq 0 ]; then
# No arguments
help_menu
else
case $1 in
--help | -h)
help_menu
;;
--picom)
/home/sravan/.scripts/picom.sh --rofi
;;
--deadd)
/home/sravan/.scripts/deadd.sh --rofi
;;
--playerctl)
/home/sravan/.scripts/playerctl.sh --rofi
;;
--pactl)
/home/sravan/.scripts/pactl.sh --rofi
;;
--startup)
/home/sravan/.scripts/startup.sh --rofi
;;
--system76-power)
/home/sravan/.scripts/system76-power.sh --rofi
;;
--session)
/home/sravan/.scripts/session.sh --rofi
;;
--rofi)
rofi_menu
;;
esac
fi
}
main $@

102
.scripts/deadd.sh Executable file
View File

@@ -0,0 +1,102 @@
#!/bin/bash
help_menu() {
echo "Script to interact with deadd. Use only one argument at a time."
echo " - Toggle On/Off: deadd.sh OR deadd.sh --toggle OR deadd.sh -t"
echo " - Turn On: deadd.sh --on"
echo " - Turn Off: deadd.sh --off"
echo " - Toggle Notification Center: deadd.sh --toggle-center"
echo " - Pause Popup Notifications: deadd.sh --pause"
echo " - Unpause Popup Notifications: deadd.sh --unpause"
echo " - Rofi Menu: deadd.sh --rofi"
echo " - Help: deadd.sh --help OR deadd.sh -h"
}
is_running() {
if pgrep -x deadd-notificat >/dev/null; then
echo 1
else
echo 0
fi
}
rofi_menu() {
declare -a options=(
"⏼ Toggle - toggle"
" Turn On - on"
" Turn Off - off"
" Toggle Notification Center - toggle-center"
" Pause Popup Notifications - pause"
" Unpause Popup Notifications - unpause"
" Back - back"
" Quit - quit"
)
choice=$(printf '%s\n' "${options[@]}" | rofi -dmenu -i)
option=$(printf '%s\n' "${choice}" | awk '{print $NF}')
if [[ "$option" == "quit" ]]; then
kilall rofi
elif [[ "$option" != "back" ]]; then
main "--$option" && main "--rofi"
fi
}
main() {
if [ $# -eq 0 ]; then
# No arguments
help_menu
else
case $1 in
--help | -h)
help_menu
;;
--toggle)
if [ $(is_running) -eq '1' ]; then
main --off
else
main --on
fi
;;
--on)
if [ $(is_running) -eq '1' ]; then
killall deadd-notificat
fi
/home/sravan/.local/bin/notify-send.py a --hint \
boolean:deadd-notification-center:true \
string:type:reloadStyle
notify-send "Turning Deadd ON"
;;
--off)
notify-send "Turning Deadd OFF"
if [ $(is_running) -eq '1' ]; then
killall deadd-notificat
fi
;;
--toggle-center)
kill -s USR1 $(pidof deadd-notification-center)
;;
--pause)
notify-send "Pausing Notifications"
/home/sravan/.local/bin/notify-send.py a --hint \
boolean:deadd-notification-center:true \
string:type:pausePopups > /dev/null 2>&1
;;
--unpause)
/home/sravan/.local/bin/notify-send.py a --hint \
boolean:deadd-notification-center:true \
string:type:unpausePopups > /dev/null 2>&1
notify-send "Unpausing Notifications"
;;
--rofi)
rofi_menu
;;
esac
fi
}
main $@

132
.scripts/dunst.sh Executable file
View File

@@ -0,0 +1,132 @@
#!/bin/bash
help_menu() {
echo "Script to interact with dunst. Use only one argument at a time."
echo " - Toggle On/Off: dunst.sh OR dunst.sh --toggle OR dunst.sh -t"
echo " - Turn On: dunst.sh --on"
echo " - Turn Off: dunst.sh --off"
echo " - Context Menu: dunst.sh --context"
echo " - Close Notification: dunst.sh --close"
echo " - History Pop: dunst.sh --history"
echo " - Toggle Do Not Disturb: dunst.sh --dnd"
echo " - Rofi Menu: dunst.sh --rofi"
echo " - Help: dunst.sh --help OR dunst.sh -h"
}
is_running() {
if pgrep -x dunst >/dev/null; then
echo 1
else
echo 0
fi
}
rofi_menu() {
declare -a options=(
"⏼ Toggle - toggle"
" Turn On - on"
" Turn Off - off"
" Open Actions - context"
" Close Notification - close"
" View History - history"
" Toggle Do Not Disturb - dnd"
" Back - back"
" Quit - quit"
)
choice=$(printf '%s\n' "${options[@]}" | rofi -dmenu -i)
option=$(printf '%s\n' "${choice}" | awk '{print $NF}')
if [[ "$option" == "quit" ]]; then
kilall rofi
elif [[ "$option" != "back" ]]; then
main "--$option" && main "--rofi"
fi
}
main() {
if [ $# -eq 0 ]; then
# No arguments
help_menu
else
case $1 in
--help | -h)
help_menu
;;
--toggle)
if [ $(is_running) -eq '1' ]; then
main --off
else
main --on
fi
;;
--on)
# Get values from Xresources
config=~/.config/dunst/dunstrc
geometry_x=$(xgetres dunst.geometry-x)
geometry_y=$(xgetres dunst.geometry-y)
separator_height=$(xgetres dunst.sep-height)
padding=$(xgetres dunst.padding)
horizontal_padding=$(xgetres dunst.horiz-padding)
max_icon_size=$(xgetres dunst.max-icon-size)
frame_width=$(xgetres dunst.frame-width)
lb=$(xgetres dunst.low-background)
lf=$(xgetres dunst.low-foreground)
lfr=$(xgetres dunst.low-frame)
nb=$(xgetres dunst.normal-background)
nf=$(xgetres dunst.normal-foreground)
nfr=$(xgetres dunst.normal-frame)
cb=$(xgetres dunst.critical-background)
cf=$(xgetres dunst.critical-foreground)
cfr=$(xgetres dunst.critical-frame)
if [ $(is_running) -eq '1' ]; then
killall dunst
fi
# Start Dunst
/usr/bin/dunst -config $config \
-geometry "0x0-$geometry_x+$geometry_y" \
-separator_height "$separator_height" \
-padding "$padding" \
-horizontal_padding "$horizontal_padding" \
-max_icon_size "$max_icon_size" \
-frame_width "$frame_width" \
-lb "$lb" \
-lf "$lf" \
-lfr "$lfr" \
-nb "$nb" \
-nf "$nf" \
-nfr "$nfr" \
-cb "$cb" \
-cf "$cf" \
-cfr "$cfr" &
notify-send "Turning Dunst ON"
;;
--off)
notify-send "Turning Dunst OFF"
if [ $(is_running) -eq '1' ]; then
killall dunst
fi
;;
--context)
dunstctl context
;;
--close)
dunstctl close
;;
--history)
dunstctl history-pop
;;
--dnd)
dunstctl set-paused toggle
;;
--rofi)
rofi_menu
;;
esac
fi
}
main $@

2
.scripts/game_exit.sh Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
/home/sravan/.scripts/deadd.sh --unpause

2
.scripts/game_launch.sh Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
/home/sravan/.scripts/deadd.sh --pause

60
.scripts/pactl.sh Executable file
View File

@@ -0,0 +1,60 @@
#!/bin/bash
help_menu() {
echo "Script to interact with pactl. Use only one argument at a time."
# echo " - Play / Pause: playerctl.sh --play-pause"
# echo " - Next: playerctl.sh --next"
# echo " - Previous: playerctl.sh --prev"
# echo " - Change Player: playerctl.sh --change"
# echo " - Rofi Menu: playerctl.sh --rofi"
# echo " - Help: playerctl.sh --help OR playerctl.sh -h"
}
rofi_menu() {
declare -a options=(
" Raise Volume - raise"
" Lower Volume - lower"
" Mute - mute"
" Mixer - mixer"
" Back - back"
" Quit - quit"
)
choice=$(printf '%s\n' "${options[@]}" | rofi -dmenu -i)
option=$(printf '%s\n' "${choice}" | awk '{print $NF}')
if [[ "$option" == "quit" ]]; then
kilall rofi
elif [[ "$option" != "back" ]]; then
main "--$option" && main "--rofi"
fi
}
main() {
if [ $# -eq 0 ]; then
# No arguments
help_menu
else
case $1 in
--help | -h)
help_menu
;;
--raise)
pactl set-sink-volume @DEFAULT_SINK@ +5%
;;
--lower)
pactl set-sink-volume @DEFAULT_SINK@ -5%
;;
--mute)
pactl set-sink-mute @DEFAULT_SINK@ toggle
;;
--mixer)
pavucontrol
;;
--rofi)
rofi_menu
;;
esac
fi
}
main $@

76
.scripts/picom.sh Executable file
View File

@@ -0,0 +1,76 @@
#!/bin/bash
help_menu() {
echo "Script to interact with picom. Use only one argument at a time."
echo " - Toggle On/Off: picom.sh OR picom.sh --toggle OR picom.sh -t"
echo " - Turn On: picom.sh --on"
echo " - Turn Off: picom.sh --off"
echo " - Help: picom.sh --help OR picom.sh -h"
}
is_running() {
if pgrep -x picom >/dev/null; then
echo 1
else
echo 0
fi
}
rofi_menu() {
declare -a options=(
"⏼ Toggle - toggle"
" Turn On - on"
" Turn Off - off"
" Back - back"
" Quit - quit"
)
choice=$(printf '%s\n' "${options[@]}" | rofi -dmenu -i)
option=$(printf '%s\n' "${choice}" | awk '{print $NF}')
if [[ "$option" == "quit" ]]; then
kilall rofi
elif [[ "$option" != "back" ]]; then
main "--$option" && main "--rofi"
fi
}
main() {
if [ $# -eq 0 ]; then
# No arguments
help_menu
else
case $1 in
--help | -h)
help_menu
;;
--toggle)
if [ $(is_running) -eq '1' ]; then
main --off
else
main --on
fi
;;
--on)
if [ $(is_running) -eq '1' ]; then
killall picom
fi
picom --config /home/sravan/.config/picom/picom.conf &
notify-send "Turning Picom ON"
;;
--off)
if [ $(is_running) -eq '1' ]; then
killall picom
fi
notify-send "Turning Picom OFF"
;;
--rofi)
rofi_menu
;;
esac
fi
}
main $@

60
.scripts/playerctl.sh Executable file
View File

@@ -0,0 +1,60 @@
#!/bin/bash
help_menu() {
echo "Script to interact with playerctl. Use only one argument at a time."
echo " - Play / Pause: playerctl.sh --play-pause"
echo " - Next: playerctl.sh --next"
echo " - Previous: playerctl.sh --prev"
echo " - Change Player: playerctl.sh --change"
echo " - Rofi Menu: playerctl.sh --rofi"
echo " - Help: playerctl.sh --help OR playerctl.sh -h"
}
rofi_menu() {
declare -a options=(
"懶 Play / Pause - play-pause"
"怜 Next - next"
"玲 Previous - prev"
" Change Source - change"
" Back - back"
" Quit - quit"
)
choice=$(printf '%s\n' "${options[@]}" | rofi -dmenu -i)
option=$(printf '%s\n' "${choice}" | awk '{print $NF}')
if [[ "$option" == "quit" ]]; then
kilall rofi
elif [[ "$option" != "back" ]]; then
main "--$option" && main "--rofi"
fi
}
main() {
if [ $# -eq 0 ]; then
# No arguments
help_menu
else
case $1 in
--help | -h)
help_menu
;;
--play-pause)
playerctl --player=playerctld play-pause
;;
--next)
playerctl --player=playerctld next
;;
--prev)
playerctl --player=playerctld previous
;;
--change)
playerctld shift
;;
--rofi)
rofi_menu
;;
esac
fi
}
main $@

79
.scripts/session.sh Executable file
View File

@@ -0,0 +1,79 @@
#!/bin/bash
help_menu() {
echo "Script to interact with desktop session. Use only one argument at a time."
# echo " - Play / Pause: playerctl.sh --play-pause"
# echo " - Next: playerctl.sh --next"
# echo " - Previous: playerctl.sh --prev"
# echo " - Change Player: playerctl.sh --change"
# echo " - Rofi Menu: playerctl.sh --rofi"
# echo " - Help: playerctl.sh --help OR playerctl.sh -h"
}
rofi_menu() {
declare -a options=(
"勒 Restart Dwm - restart"
" Logout - logout"
" Lock - lock"
"⏾ Sleep - sleep"
" Reboot - reboot"
" Shutdown - shutdown"
"鈴 Hibernate - hibernate"
" Back - back"
" Quit - quit"
)
choice=$(printf '%s\n' "${options[@]}" | rofi -dmenu -i)
option=$(printf '%s\n' "${choice}" | awk '{print $NF}')
if [[ "$option" == "quit" ]]; then
kilall rofi
elif [[ "$option" != "back" ]]; then
main "--$option" && killall rofi
fi
}
main() {
if [ $# -eq 0 ]; then
# No arguments
help_menu
else
case $1 in
--help | -h)
help_menu
;;
--logout)
notify-send "Session Control" "Logging Out of Dwm"
xdotool key Super+Shift_L+q
;;
--lock)
notify-send "Session Control" "Locking Session"
loginctl lock-session
;;
--sleep)
notify-send "Session Control" "Going to Sleep"
systemctl suspend
;;
--reboot)
notify-send "Session Control" "Rebooting System"
reboot
;;
--shutdown)
notify-send "Session Control" "Shutting Down System"
shutdown now
;;
--hibernate)
notify-send "Session Control" "Hibernating System"
systemctl hibernate
;;
--restart)
notify-send "Session Control" "Restarting Dwm"
xdotool key Super+Control_L+Shift_L+q
;;
--rofi)
rofi_menu
;;
esac
fi
}
main $@

142
.scripts/startup.sh Executable file
View File

@@ -0,0 +1,142 @@
#!/bin/bash
declare -a startup_array=(\
# Background Processes
"bash /home/sravan/.scripts/deadd.sh --on" \ # Deadd Notification Center
"bash /home/sravan/.scripts/picom.sh --on" \ # Picom Compositor
"/usr/bin/greenclip daemon" \ # Greenclip Clipboard Manager
"/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1" \ # GNOME Polkit Authentication Agent
"/usr/bin/xss-lock -l -- betterlockscreen --lock" \ # Session Lock Utility
"/usr/lib/kdeconnectd --replace" \ # KDE Connect Daemon
"/usr/bin/redshift -x" \ # Redshift Blue Light Filter
)
declare -a kill_startup_array=(\
# Background Processes
"killall deadd-notificat" \ # Deadd Notification Center
"killall picom" \ # Picom Compositor
"killall greenclip" \ # Greenclip Clipboard Manager
"killall polkit" \ # GNOME Polkit Authentication Agent
"killall xss-lock" \ # Session Lock Utility
"killall kdeconnectd" \ # KDE Connect Daemon
"killall redshift" \ # Redshift Blue Light Filter
)
declare -a delay_array=(\
# System Tray Applications
"/usr/bin/redshift-gtk" \ # Redshift Blue Light Filter
"/usr/bin/blueman-applet" \ # Blueman Bluetooth Manager
"/usr/bin/nm-applet" \ # Network Manager Applet
"/usr/bin/kdeconnect-indicator" \ # KDE Connect Indicator
"/usr/bin/flameshot" \ # Flameshot Screenshot Tool
"/usr/bin/xfce4-power-manager" \ # XFCE4 Power Manager
"/usr/bin/volctl" \ # PulseAudio Volume Control
"/usr/bin/nyrna" \ # Nyrna
# System Restore Processes
"/usr/bin/autorandr --change --force" \ # Auto restore screen layout
"/usr/bin/numlockx on" \ # Enable numlock
)
declare -a kill_delay_array=(\
# System Tray Applications
"killall redshift" \ # Redshift Blue Light Filter
"killall blueman-applet" \ # Blueman Bluetooth Manager
"killall nm-applet" \ # Network Manager Applet
"killall kdeconnect-indicator" \ # KDE Connect Indicator
"killall flameshot" \ # Flameshot Screenshot Tool
"killall xfce4-power-manager" \ # XFCE4 Power Manager
"killall volctl" \ # PulseAudio Volume Control
"killall nyrna" \ # Nyrna
)
help_menu() {
echo "Main script to launch and kill startup processes. Use only one argument at a time."
# echo " - Play / Pause: playerctl.sh --play-pause"
# echo " - Next: playerctl.sh --next"
# echo " - Previous: playerctl.sh --prev"
# echo " - Change Player: playerctl.sh --change"
# echo " - Rofi Menu: playerctl.sh --rofi"
# echo " - Help: playerctl.sh --help OR playerctl.sh -h"
}
rofi_menu() {
declare -a options=(
" Launch Startup Processes - startup"
"羽 Launch Delayed Processes - delay"
" Kill Startup Processes - kill-startup"
" Kill Delayed Processes - kill-delay"
" Back - back"
" Quit - quit"
)
choice=$(printf '%s\n' "${options[@]}" | rofi -dmenu -i)
option=$(printf '%s\n' "${choice}" | awk '{print $NF}')
if [[ "$option" == "quit" ]]; then
kilall rofi
elif [[ "$option" != "back" ]]; then
main "--$option" && main "--rofi"
fi
}
main() {
if [ $# -eq 0 ]; then
# No arguments
help_menu
else
case $1 in
--help | -h)
help_menu
;;
--startup)
for i in "${startup_array[@]}"
do
if ! command -v $i > /dev/null
then
do_nothing() { :; }
else
$i &
fi
done
;;
--delay)
for i in "${delay_array[@]}"
do
if ! command -v $i > /dev/null
then
do_nothing() { :; }
else
$i &
fi
done
;;
--kill-startup)
for i in "${kill_startup_array[@]}"
do
if ! command -v $i > /dev/null
then
do_nothing() { :; }
else
$i &
fi
done
;;
--kill-delay)
for i in "${kill_delay_array[@]}"
do
if ! command -v $i > /dev/null
then
do_nothing() { :; }
else
$i &
fi
done
;;
--rofi)
rofi_menu
;;
esac
fi
}
main $@

133
.scripts/system76-power.sh Executable file
View File

@@ -0,0 +1,133 @@
#!/bin/bash
help_menu() {
echo "Script to interact with system76-power. Use only one argument at a time."
# echo " - Play / Pause: playerctl.sh --play-pause"
# echo " - Next: playerctl.sh --next"
# echo " - Previous: playerctl.sh --prev"
# echo " - Change Player: playerctl.sh --change"
# echo " - Rofi Menu: playerctl.sh --rofi"
# echo " - Help: playerctl.sh --help OR playerctl.sh -h"
}
rofi_menu() {
declare -a options=(
" Switchable Graphics - rofi-graphics"
" Performance Profile - rofi-profile"
" Back - back"
" Quit - quit"
)
choice=$(printf '%s\n' "${options[@]}" | rofi -dmenu -i)
option=$(printf '%s\n' "${choice}" | awk '{print $NF}')
if [[ "$option" == "quit" ]]; then
kilall rofi
elif [[ "$option" != "back" ]]; then
main "--$option" && main "--rofi"
fi
}
rofi_graphics_menu() {
declare -a options=(
"Query Current Graphics - graphics-query"
"Switch to Compute Mode - graphics-compute"
"Switch to Hybrid Mode - graphics-hybrid"
"Switch to Integrated Mode - graphics-integrated"
"Switch to Nvidia Mode - graphics-nvidia"
" Back - back"
" Quit - quit"
)
choice=$(printf '%s\n' "${options[@]}" | rofi -dmenu -i)
option=$(printf '%s\n' "${choice}" | awk '{print $NF}')
if [[ "$option" == "quit" ]]; then
kilall rofi
elif [[ "$option" != "back" ]]; then
main "--$option" && main "--rofi-graphics"
fi
}
rofi_profile_menu() {
declare -a options=(
"Query Current Profile - profile-query"
"Switch to Battery Mode - profile-battery"
"Switch to Balanced Mode - profile-balanced"
"Switch to Performance Mode - profile-performance"
" Back - back"
" Quit - quit"
)
choice=$(printf '%s\n' "${options[@]}" | rofi -dmenu -i)
option=$(printf '%s\n' "${choice}" | awk '{print $NF}')
if [[ "$option" == "quit" ]]; then
kilall rofi
elif [[ "$option" != "back" ]]; then
main "--$option" && main "--rofi-profile"
fi
}
main() {
if [ $# -eq 0 ]; then
# No arguments
help_menu
else
case $1 in
--help | -h)
help_menu
;;
--rofi-graphics)
rofi_graphics_menu
;;
--graphics-query)
current_graphics=$(pkexec system76-power graphics)
notify-send "System76-Power Graphics" "$current_graphics"
;;
--graphics-compute)
notify-send "System76-Power Graphics" "Switching to Compute Graphics..."
pkexec system76-power graphics compute
notify-send -u critical -t 0 "System76-Power Graphics" "Please restart computer to switch graphics"
;;
--graphics-hybrid)
notify-send "System76-Power Graphics" "Switching to Hybrid Graphics..."
pkexec system76-power graphics hybrid
notify-send -u critical -t 0 "System76-Power Graphics" "Please restart computer to switch graphics"
;;
--graphics-integrated)
notify-send "System76-Power Graphics" "Switching to Integrated Graphics..."
pkexec system76-power graphics integrated
notify-send -u critical -t 0 "System76-Power Graphics" "Please restart computer to switch graphics"
;;
--graphics-nvidia)
notify-send "System76-Power Graphics" "Switching to Nvidia Graphics..."
pkexec system76-power graphics nvidia
notify-send -u critical -t 0 "System76-Power Graphics" "Please restart computer to switch graphics"
;;
--rofi-profile)
rofi_profile_menu
;;
--profile-query)
current_profile=$(pkexec system76-power profile)
notify-send "System76-Power Profile" "$current_profile"
;;
--profile-battery)
pkexec system76-power profile battery
notify-send "System76-Power Profile" "Switched to Battery Profile"
;;
--profile-balanced)
pkexec system76-power profile balanced
notify-send "System76-Power Profile" "Switched to Balanced Profile"
;;
--profile-performance)
pkexec system76-power profile performance
notify-send "System76-Power Profile" "Switched to Performance Profile"
;;
--rofi)
rofi_menu
;;
esac
fi
}
main $@

11
.scripts/trackpad.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
trackpad_id=13
if xinput list-props $trackpad_id | grep "Device Enabled (.*):.*1" >/dev/null
then
xinput disable $trackpad_id
notify-send -u low -i mouse "Trackpad disabled"
else
xinput enable $trackpad_id
notify-send -u low -i mouse "Trackpad enabled"
fi

Submodule .themes/Dracula deleted from ab2efe3ff5

1
.themes/dracula-fish Submodule

Submodule .themes/dracula-fish added at 28db361b55

1
.themes/dracula-gtk Submodule

Submodule .themes/dracula-gtk added at e369c8e230

1
.themes/dracula-kitty Submodule

Submodule .themes/dracula-kitty added at 6d6239abe9

1
.themes/dracula-latex Submodule

Submodule .themes/dracula-latex added at bff3dbbffd

1
.themes/dracula-tty Submodule

Submodule .themes/dracula-tty added at f0aa77e238

Binary file not shown.

View File

@@ -0,0 +1 @@
doc/tags

View File

@@ -0,0 +1,63 @@
### [Vim](http://www.vim.org/)
#### Install
These are the default instructions using Vim 8's `|packages|` feature.
1. Create theme folder (in case you don't have yet):
```
mkdir -p ~/.vim/pack/themes/start
```
In case you're using NeoVim:
```
mkdir -p ~/.local/share/nvim/site/pack/themes/start
```
2. Copy the `vim` folder and rename to "dracula_pro":
```
cp -r vim ~/.vim/pack/themes/start/dracula_pro
```
**NeoVim**
In case you're using NeoVim, here are the instructions.
1. Create theme folder (in case you don't have yet):
```
mkdir -p ~/.local/share/nvim/site/pack/themes/start
```
2. Copy the `vim` folder and rename to "dracula_pro":
```
cp -r vim ~/.local/share/nvim/site/pack/themes/start/dracula_pro
```
#### Activate
1. Create configuration file (in case you don't have yet):
```
vim ~/.vimrc
```
Or `.nvimrc` if you're using NeoVim.
2. Edit the `~/.vimrc` file with the following content:
```
packadd! dracula_pro
syntax enable
let g:dracula_colorterm = 0
colorscheme dracula_pro
```
P.S.: You need a 256-color or truecolor terminal and you may want one that supports xterm sequences for :terminal.

View File

@@ -0,0 +1,45 @@
if dracula_pro#should_abort()
finish
endif
" Fzf: {{{
if exists('g:loaded_fzf') && ! exists('g:fzf_colors')
let g:fzf_colors = {
\ 'fg': ['fg', 'Normal'],
\ 'bg': ['bg', 'Normal'],
\ 'hl': ['fg', 'Search'],
\ 'fg+': ['fg', 'Normal'],
\ 'bg+': ['bg', 'Normal'],
\ 'hl+': ['fg', 'DraculaOrange'],
\ 'info': ['fg', 'DraculaPurple'],
\ 'border': ['fg', 'Ignore'],
\ 'prompt': ['fg', 'DraculaGreen'],
\ 'pointer': ['fg', 'Exception'],
\ 'marker': ['fg', 'Keyword'],
\ 'spinner': ['fg', 'Label'],
\ 'header': ['fg', 'Comment'],
\}
endif
"}}}
" ALE: {{{
if exists('g:ale_enabled')
hi! link ALEError DraculaErrorLine
hi! link ALEWarning DraculaWarnLine
hi! link ALEInfo DraculaInfoLine
hi! link ALEErrorSign DraculaRed
hi! link ALEWarningSign DraculaOrange
hi! link ALEInfoSign DraculaCyan
hi! link ALEVirtualTextError Comment
hi! link ALEVirtualTextWarning Comment
endif
" }}}
" CtrlP: {{{
if exists('g:loaded_ctrlp')
hi! link CtrlPMatch IncSearch
hi! link CtrlPBufferHid Normal
endif
" }}}
" vim: fdm=marker ts=2 sts=2 sw=2 fdl=0:

View File

@@ -0,0 +1,15 @@
if dracula_pro#should_abort('css')
finish
endif
hi! link cssAttrComma Delimiter
hi! link cssAttrRegion DraculaPink
hi! link cssAttributeSelector DraculaGreenItalic
hi! link cssBraces Delimiter
hi! link cssFunctionComma Delimiter
hi! link cssNoise DraculaPink
hi! link cssProp DraculaCyan
hi! link cssPseudoClass DraculaPink
hi! link cssPseudoClassId DraculaGreenItalic
hi! link cssUnitDecorators DraculaPink
hi! link cssVendor DraculaGreenItalic

View File

@@ -0,0 +1,12 @@
if dracula_pro#should_abort('gitcommit')
finish
endif
" The following two are misnomers. Colors are correct.
hi! link diffFile DraculaGreen
hi! link diffNewFile DraculaRed
hi! link diffAdded DraculaGreen
hi! link diffLine DraculaCyanItalic
hi! link diffRemoved DraculaRed

View File

@@ -0,0 +1,9 @@
if dracula_pro#should_abort('html')
finish
endif
hi! link htmlTag DraculaFg
hi! link htmlArg DraculaGreenItalic
hi! link htmlTitle DraculaFg
hi! link htmlH1 DraculaFg
hi! link htmlSpecialChar DraculaPurple

View File

@@ -0,0 +1,25 @@
if dracula_pro#should_abort('javascript')
finish
endif
hi! link javaScriptBraces Delimiter
hi! link javaScriptNumber Constant
hi! link javaScriptNull Constant
hi! link javaScriptFunction Keyword
" pangloss/vim-javascript {{{
hi! link jsArrowFunction Operator
hi! link jsClassMethodType Keyword
hi! link jsDestructuringAssignment DraculaOrangeItalic
hi! link jsDocParam DraculaOrangeItalic
hi! link jsDocTags Keyword
hi! link jsDocType Type
hi! link jsDocTypeBrackets DraculaCyan
hi! link jsFuncArgOperator Operator
hi! link jsFunction Keyword
hi! link jsTemplateBraces Special
"}}}
" vim: fdm=marker ts=2 sts=2 sw=2 fdl=0:

View File

@@ -0,0 +1,6 @@
if dracula_pro#should_abort('json')
finish
endif
hi! link jsonKeyword DraculaCyan
hi! link jsonKeywordMatch DraculaPink

View File

@@ -0,0 +1,50 @@
if dracula_pro#should_abort('markdown', 'mkd')
finish
endif
if b:current_syntax ==# 'mkd'
" plasticboy/vim-markdown {{{1
hi! link htmlBold DraculaOrangeBold
hi! link htmlBoldItalic DraculaOrangeBoldItalic
hi! link htmlH1 DraculaPurpleBold
hi! link htmlItalic DraculaYellowItalic
hi! link mkdBlockquote DraculaYellowItalic
hi! link mkdBold DraculaOrangeBold
hi! link mkdBoldItalic DraculaOrangeBoldItalic
hi! link mkdCode DraculaGreen
hi! link mkdCodeEnd DraculaGreen
hi! link mkdCodeStart DraculaGreen
hi! link mkdHeading DraculaPurpleBold
hi! link mkdInlineUrl DraculaLink
hi! link mkdItalic DraculaYellowItalic
hi! link mkdLink DraculaPink
hi! link mkdListItem DraculaCyan
hi! link mkdRule DraculaComment
hi! link mkdUrl DraculaLink
"}}}1
elseif b:current_syntax ==# 'markdown'
" Builtin: {{{1
hi! link markdownBlockquote DraculaCyan
hi! link markdownBold DraculaOrangeBold
hi! link markdownBoldItalic DraculaOrangeBoldItalic
hi! link markdownCodeBlock DraculaGreen
hi! link markdownCode DraculaGreen
hi! link markdownCodeDelimiter DraculaGreen
hi! link markdownH1 DraculaPurpleBold
hi! link markdownH2 markdownH1
hi! link markdownH3 markdownH1
hi! link markdownH4 markdownH1
hi! link markdownH5 markdownH1
hi! link markdownH6 markdownH1
hi! link markdownHeadingDelimiter markdownH1
hi! link markdownHeadingRule markdownH1
hi! link markdownItalic DraculaYellowItalic
hi! link markdownLinkText DraculaPink
hi! link markdownListMarker DraculaCyan
hi! link markdownOrderedListMarker DraculaCyan
hi! link markdownRule DraculaComment
hi! link markdownUrl DraculaLink
"}}}
endif
" vim: fdm=marker ts=2 sts=2 sw=2 fdl=0:

View File

@@ -0,0 +1,7 @@
if dracula_pro#should_abort('ocaml')
finish
endif
hi! link ocamlModule Type
hi! link ocamlModPath Normal
hi! link ocamlLabel DraculaOrangeItalic

View File

@@ -0,0 +1,38 @@
if dracula_pro#should_abort('perl')
finish
endif
" Regex
hi! link perlMatchStartEnd DraculaRed
" Builtin functions
hi! link perlOperator DraculaCyan
hi! link perlStatementFiledesc DraculaCyan
hi! link perlStatementFiles DraculaCyan
hi! link perlStatementFlow DraculaCyan
hi! link perlStatementHash DraculaCyan
hi! link perlStatementIOfunc DraculaCyan
hi! link perlStatementIPC DraculaCyan
hi! link perlStatementList DraculaCyan
hi! link perlStatementMisc DraculaCyan
hi! link perlStatementNetwork DraculaCyan
hi! link perlStatementNumeric DraculaCyan
hi! link perlStatementProc DraculaCyan
hi! link perlStatementPword DraculaCyan
hi! link perlStatementRegexp DraculaCyan
hi! link perlStatementScalar DraculaCyan
hi! link perlStatementSocket DraculaCyan
hi! link perlStatementTime DraculaCyan
hi! link perlStatementVector DraculaCyan
" Highlighting for quoting constructs, tied to existing option in vim-perl
if get(g:, 'perl_string_as_statement', 0)
hi! link perlStringStartEnd DraculaRed
endif
" Signatures
hi! link perlSignature DraculaOrangeItalic
hi! link perlSubPrototype DraculaOrangeItalic
" Hash keys
hi! link perlVarSimpleMemberName DraculaPurple

View File

@@ -0,0 +1,10 @@
if dracula_pro#should_abort('php')
finish
endif
hi! link phpClass Type
hi! link phpClasses Type
hi! link phpDocTags DraculaCyanItalic
hi! link phpFunction Function
hi! link phpParent Normal
hi! link phpSpecialFunction DraculaCyan

View File

@@ -0,0 +1,13 @@
if dracula_pro#should_abort('plantuml')
finish
endif
hi! link plantumlClassPrivate SpecialKey
hi! link plantumlClassProtected DraculaOrange
hi! link plantumlClassPublic Function
hi! link plantumlColonLine String
hi! link plantumlDirectedOrVerticalArrowLR Constant
hi! link plantumlDirectedOrVerticalArrowRL Constant
hi! link plantumlHorizontalArrow Constant
hi! link plantumlSkinParamKeyword DraculaCyan
hi! link plantumlTypeKeyword Keyword

View File

@@ -0,0 +1,11 @@
if dracula_pro#should_abort('python')
finish
endif
hi! link pythonBuiltinObj Type
hi! link pythonBuiltinObject Type
hi! link pythonBuiltinType Type
hi! link pythonClassVar DraculaPurpleItalic
hi! link pythonExClass Type
hi! link pythonNone Type
hi! link pythonRun Comment

View File

@@ -0,0 +1,16 @@
if dracula_pro#should_abort('ruby')
finish
endif
if ! exists('g:ruby_operators')
let g:ruby_operators=1
endif
hi! link rubyBlockArgument DraculaOrangeItalic
hi! link rubyBlockParameter DraculaOrangeItalic
hi! link rubyCurlyBlock DraculaPink
hi! link rubyGlobalVariable DraculaPurple
hi! link rubyInstanceVariable DraculaPurpleItalic
hi! link rubyInterpolationDelimiter DraculaPink
hi! link rubyRegexpDelimiter DraculaRed
hi! link rubyStringDelimiter DraculaYellow

View File

@@ -0,0 +1,5 @@
if dracula_pro#should_abort('rust')
finish
endif
hi! link rustCommentLineDoc Comment

View File

@@ -0,0 +1,12 @@
if dracula_pro#should_abort('sass')
finish
endif
hi! link sassClass cssClassName
hi! link sassClassChar cssClassNameDot
hi! link sassId cssIdentifier
hi! link sassIdChar cssIdentifier
hi! link sassInterpolationDelimiter DraculaPink
hi! link sassMixinName Function
hi! link sassProperty cssProp
hi! link sassVariableAssignment Operator

View File

@@ -0,0 +1,8 @@
if dracula_pro#should_abort('bash', 'ksh', 'posix', 'sh')
finish
endif
hi! link shCommandSub NONE
hi! link shEscape DraculaRed
hi! link shParen NONE
hi! link shParenError NONE

View File

@@ -0,0 +1,17 @@
if dracula_pro#should_abort('tex')
finish
endif
hi! link texBeginEndName DraculaOrangeItalic
hi! link texBoldItalStyle DraculaOrangeBoldItalic
hi! link texBoldStyle DraculaOrangeBold
hi! link texInputFile DraculaOrangeItalic
hi! link texItalStyle DraculaYellowItalic
hi! link texLigature DraculaPurple
hi! link texMath DraculaPurple
hi! link texMathMatcher DraculaPurple
hi! link texMathSymbol DraculaPurple
hi! link texRefZone DraculaBgDarker
hi! link texSpecialChar DraculaPurple
hi! link texSubscripts DraculaPurple
hi! link texTitle DraculaFgBold

View File

@@ -0,0 +1,57 @@
if dracula_pro#should_abort('typescript', 'typescriptreact')
finish
endif
" HerringtonDarkholme/yats.vim {{{
hi! link typescriptAliasDeclaration Type
hi! link typescriptArrayMethod Function
hi! link typescriptArrowFunc Operator
hi! link typescriptArrowFuncArg DraculaOrangeItalic
hi! link typescriptAssign Operator
hi! link typescriptBOMWindowProp Constant
hi! link typescriptBinaryOp Operator
hi! link typescriptBraces Delimiter
hi! link typescriptCall typescriptArrowFuncArg
hi! link typescriptClassHeritage Type
hi! link typescriptClassName Type
hi! link typescriptDateMethod DraculaCyan
hi! link typescriptDateStaticMethod Function
hi! link typescriptDecorator DraculaGreenItalic
hi! link typescriptDefaultParam Operator
hi! link typescriptES6SetMethod DraculaCyan
hi! link typescriptEndColons Delimiter
hi! link typescriptEnum Type
hi! link typescriptEnumKeyword Keyword
hi! link typescriptFuncComma Delimiter
hi! link typescriptFuncKeyword Keyword
hi! link typescriptFuncType DraculaOrangeItalic
hi! link typescriptFuncTypeArrow Operator
hi! link typescriptGlobal Type
hi! link typescriptGlobalMethod DraculaCyan
hi! link typescriptGlobalObjects Type
hi! link typescriptIdentifier DraculaPurpleItalic
hi! link typescriptInterfaceHeritage Type
hi! link typescriptInterfaceName Type
hi! link typescriptInterpolationDelimiter Keyword
hi! link typescriptKeywordOp Keyword
hi! link typescriptLogicSymbols Operator
hi! link typescriptMember Identifier
hi! link typescriptMemberOptionality Special
hi! link typescriptObjectColon Special
hi! link typescriptObjectLabel Identifier
hi! link typescriptObjectSpread Operator
hi! link typescriptOperator Operator
hi! link typescriptParamImpl DraculaOrangeItalic
hi! link typescriptParens Delimiter
hi! link typescriptPredefinedType Type
hi! link typescriptRestOrSpread Operator
hi! link typescriptTernaryOp Operator
hi! link typescriptTypeAnnotation Special
hi! link typescriptTypeCast Operator
hi! link typescriptTypeParameter DraculaOrangeItalic
hi! link typescriptTypeReference Type
hi! link typescriptUnaryOp Operator
hi! link typescriptVariable Keyword
" }}}

View File

@@ -0,0 +1,10 @@
if dracula_pro#should_abort('typescriptreact')
finish
endif
runtime! syntax/typescript.vim
hi! link tsxAttrib DraculaGreenItalic
hi! link tsxEqual Operator
hi! link tsxIntrinsicTagName Keyword
hi! link tsxTagName Type

View File

@@ -0,0 +1,14 @@
if dracula_pro#should_abort('vim')
finish
endif
hi! link vimAutoCmdSfxList Type
hi! link vimAutoEventList Type
hi! link vimEnvVar Constant
hi! link vimFunction Function
hi! link vimHiBang Keyword
hi! link vimOption Type
hi! link vimSetMod Keyword
hi! link vimSetSep Delimiter
hi! link vimUserAttrbCmpltFunc Function
hi! link vimUserFunc Function

View File

@@ -0,0 +1,13 @@
if dracula_pro#should_abort('xml')
finish
endif
hi! link xmlAttrib DraculaGreenItalic
hi! link xmlEqual Operator
hi! link xmlTag Delimiter
hi! link xmlTagName Statement
" Fixes missing highlight over end tags
syn region xmlTagName
\ matchgroup=xmlTag start=+</[^ /!?<>"']\@=+
\ matchgroup=xmlTag end=+>+

View File

@@ -0,0 +1,12 @@
if dracula_pro#should_abort('yaml')
finish
endif
hi! link yamlAlias DraculaGreenItalicUnderline
hi! link yamlAnchor DraculaPinkItalic
hi! link yamlBlockMappingKey DraculaCyan
hi! link yamlFlowCollection DraculaPink
hi! link yamlFlowIndicator Delimiter
hi! link yamlNodeTag DraculaPink
hi! link yamlPlainScalar DraculaYellow

View File

@@ -0,0 +1,150 @@
" Helpers: {{{
" Takes a foreground color name, background color name, and optionally one or
" more attr-list items as input, transforms it to the format accepted by
" airline#themes#generate_color_map and returns that value
func! s:clr(fg, bg, ...)
let l:fg = g:dracula_pro#palette[a:fg]
let l:bg = g:dracula_pro#palette[a:bg]
return [ l:fg[0], l:bg[0], l:fg[1], l:bg[1] ] +
\ filter(copy(a:000), 'type(v:val) == 1 && len(v:val) > 0')
endfunc
" Takes three ['fg', 'bg'] color lists and optionally a dictionary of extra
" key-value pairs and returns the value generated by
" airline#themes#generate_color_map after optionally merging the dictionary of
" extra key-value pairs.
"
" a:a -> airline_a, airline_x
" a:b -> airline_b, airline_y
" a:c -> airline_c, airline_z
func! s:color_map(a, b, c, ...)
if a:0 == 0
return call('airline#themes#generate_color_map', [call('s:clr', a:a), call('s:clr', a:b), call('s:clr', a:c)])
else
return call('extend', [ call('airline#themes#generate_color_map', [call('s:clr', a:a), call('s:clr', a:b), call('s:clr', a:c)]) ] + a:000)
endif
endfunc
"}}}
let g:airline#themes#dracula_pro#palette = {
\ 'normal': s:color_map(
\ ['bg', 'purple'],
\ ['fg', 'comment'],
\ ['fg', 'selection'],
\ {
\ 'airline_warning': s:clr('bg', 'orange'),
\ 'airline_error': s:clr('bg', 'red'),
\ },
\ ),
\ 'normal_modified': s:color_map(
\ ['bg', 'purple'],
\ ['fg', 'comment'],
\ ['fg', 'bgdark'],
\ {
\ 'airline_warning': s:clr('bg', 'orange'),
\ 'airline_error': s:clr('bg', 'red'),
\ },
\ ),
\ 'insert': s:color_map(
\ ['bg', 'green'],
\ ['fg', 'comment'],
\ ['fg', 'selection'],
\ {
\ 'airline_warning': s:clr('bg', 'orange'),
\ 'airline_error': s:clr('bg', 'red'),
\ },
\ ),
\ 'insert_modified': s:color_map(
\ ['bg', 'green'],
\ ['fg', 'comment'],
\ ['fg', 'bgdark'],
\ {
\ 'airline_warning': s:clr('bg', 'orange'),
\ 'airline_error': s:clr('bg', 'red'),
\ },
\ ),
\ 'replace': s:color_map(
\ ['bg', 'orange'],
\ ['fg', 'comment'],
\ ['fg', 'selection'],
\ {
\ 'airline_warning': s:clr('bg', 'orange'),
\ 'airline_error': s:clr('bg', 'red'),
\ },
\ ),
\ 'replace_modified': s:color_map(
\ ['bg', 'orange'],
\ ['fg', 'comment'],
\ ['fg', 'bgdark'],
\ {
\ 'airline_warning': s:clr('bg', 'orange'),
\ 'airline_error': s:clr('bg', 'red'),
\ },
\ ),
\ 'visual': s:color_map(
\ ['bg', 'yellow'],
\ ['fg', 'comment'],
\ ['fg', 'selection'],
\ {
\ 'airline_warning': s:clr('bg', 'orange'),
\ 'airline_error': s:clr('bg', 'red'),
\ },
\ ),
\ 'visual_modified': s:color_map(
\ ['bg', 'yellow'],
\ ['fg', 'comment'],
\ ['fg', 'bgdark'],
\ {
\ 'airline_warning': s:clr('bg', 'orange'),
\ 'airline_error': s:clr('bg', 'red'),
\ },
\ ),
\ 'inactive': s:color_map(
\ ['bg', 'comment'],
\ ['fg', 'bgdark'],
\ ['fg', 'selection'],
\ {
\ 'airline_warning': s:clr('bg', 'orange'),
\ 'airline_error': s:clr('bg', 'red'),
\ },
\ ),
\ 'terminal': s:color_map(
\ ['bg', 'purple'],
\ ['fg', 'comment'],
\ ['fg', 'selection'],
\ {
\ 'airline_term': s:clr('fg', 'selection'),
\ },
\ ),
\}
" Extensions: {{{
" Tabline: {{{
if get(g:, 'airline#extensions#tabline#enabled', 0)
let g:airline#themes#dracula_pro#palette.tabline = {
\ 'airline_tabfill': s:clr('bg', 'bglight'),
\
\ 'airline_tab': s:clr('comment', 'bg'),
\ 'airline_tabsel': s:clr('bg', 'purple'),
\ 'airline_tabmod': s:clr('green', 'bg'),
\
\ 'airline_tab_right': s:clr('comment', 'bg'),
\ 'airline_tabsel_right': s:clr('fg', 'bg', ),
\ 'airline_tabmod_right': s:clr('green', 'bg'),
\}
endif
"}}}
" CtrlP: {{{2
if exists('g:loaded_ctrlp')
let g:airline#themes#dracula_pro#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
\ s:clr('fg', 'selection'),
\ s:clr('fg', 'comment'),
\ s:clr('fg', 'purple'),
\)
endif
"}}}2
"}}}
" vim: fdm=marker ts=2 sts=2 sw=2 fdl=0:

View File

@@ -0,0 +1,57 @@
" Palette: {{{
let g:dracula_pro#palette = {}
let g:dracula_pro#palette.fg = ['#F8F8F2', 231]
let g:dracula_pro#palette.bglighter = ['#393649', 59]
let g:dracula_pro#palette.bglight = ['#2E2B3B', 59]
let g:dracula_pro#palette.bg = ['#22212C', 59]
let g:dracula_pro#palette.bgdark = ['#17161D', 17]
let g:dracula_pro#palette.bgdarker = ['#0B0B0F', 16]
let g:dracula_pro#palette.comment = ['#7970A9', 103]
let g:dracula_pro#palette.selection = ['#454158', 60]
let g:dracula_pro#palette.subtle = ['#424450', 60]
let g:dracula_pro#palette.cyan = ['#80FFEA', 159]
let g:dracula_pro#palette.green = ['#8AFF80', 157]
let g:dracula_pro#palette.orange = ['#FFCA80', 223]
let g:dracula_pro#palette.pink = ['#FF80BF', 218]
let g:dracula_pro#palette.purple = ['#9580FF', 147]
let g:dracula_pro#palette.red = ['#FF9580', 217]
let g:dracula_pro#palette.yellow = ['#FFFF80', 229]
"
" ANSI
"
let g:dracula_pro#palette.color_0 = '#454158'
let g:dracula_pro#palette.color_1 = '#FF9580'
let g:dracula_pro#palette.color_2 = '#8AFF80'
let g:dracula_pro#palette.color_3 = '#FFFF80'
let g:dracula_pro#palette.color_4 = '#9580FF'
let g:dracula_pro#palette.color_5 = '#FF80BF'
let g:dracula_pro#palette.color_6 = '#80FFEA'
let g:dracula_pro#palette.color_7 = '#F8F8F2'
let g:dracula_pro#palette.color_8 = '#7970A9'
let g:dracula_pro#palette.color_9 = '#FFAA99'
let g:dracula_pro#palette.color_10 = '#A2FF99'
let g:dracula_pro#palette.color_11 = '#FFFF99'
let g:dracula_pro#palette.color_12 = '#AA99FF'
let g:dracula_pro#palette.color_13 = '#FF99CC'
let g:dracula_pro#palette.color_14 = '#99FFEE'
let g:dracula_pro#palette.color_15 = '#FFFFFF'
" }}}
" Helper function that takes a variadic list of filetypes as args and returns
" whether or not the execution of the ftplugin should be aborted.
func! dracula_pro#should_abort(...)
if ! exists('g:colors_name') || g:colors_name !~# 'dracula_pro.*'
return 1
elseif a:0 > 0 && (! exists('b:current_syntax') || index(a:000, b:current_syntax) == -1)
return 1
endif
return 0
endfunction
" vim: fdm=marker ts=2 sts=2 sw=2 fdl=0:

View File

@@ -0,0 +1,35 @@
let s:black = g:dracula_pro#palette.bg
let s:gray = g:dracula_pro#palette.selection
let s:white = g:dracula_pro#palette.fg
let s:darkblue = g:dracula_pro#palette.comment
let s:cyan = g:dracula_pro#palette.cyan
let s:green = g:dracula_pro#palette.green
let s:orange = g:dracula_pro#palette.orange
let s:purple = g:dracula_pro#palette.purple
let s:red = g:dracula_pro#palette.red
let s:yellow = g:dracula_pro#palette.yellow
if exists('g:lightline')
let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
let s:p.normal.left = [ [ s:black, s:purple ], [ s:cyan, s:gray ] ]
let s:p.normal.right = [ [ s:black, s:purple ], [ s:white, s:darkblue ] ]
let s:p.inactive.right = [ [ s:black, s:darkblue ], [ s:white, s:black ] ]
let s:p.inactive.left = [ [ s:cyan, s:black ], [ s:white, s:black ] ]
let s:p.insert.left = [ [ s:black, s:green ], [ s:cyan, s:gray ] ]
let s:p.replace.left = [ [ s:black, s:red ], [ s:cyan, s:gray ] ]
let s:p.visual.left = [ [ s:black, s:orange ], [ s:cyan, s:gray ] ]
let s:p.normal.middle = [ [ s:white, s:gray ] ]
let s:p.inactive.middle = [ [ s:white, s:gray ] ]
let s:p.tabline.left = [ [ s:darkblue, s:gray ] ]
let s:p.tabline.tabsel = [ [ s:cyan, s:black ] ]
let s:p.tabline.middle = [ [ s:darkblue, s:gray ] ]
let s:p.tabline.right = copy(s:p.normal.right)
let s:p.normal.error = [ [ s:red, s:black ] ]
let s:p.normal.warning = [ [ s:yellow, s:black ] ]
let g:lightline#colorscheme#dracula_pro#palette = lightline#colorscheme#flatten(s:p)
endif
" vim: fdm=marker ts=2 sts=2 sw=2 fdl=0:

View File

@@ -0,0 +1,14 @@
runtime autoload/dracula_pro.vim
let g:dracula_pro#palette.comment = ['#7970A9', 103]
let g:dracula_pro#palette.selection = ['#454158', 60]
let g:dracula_pro#palette.bglighter = ['#393649', 59]
let g:dracula_pro#palette.bglight = ['#2E2B3B', 59]
let g:dracula_pro#palette.bg = ['#22212C', 59]
let g:dracula_pro#palette.bgdark = ['#17161D', 17]
let g:dracula_pro#palette.bgdarker = ['#0B0B0F', 16]
runtime colors/dracula_pro_base.vim
let g:colors_name = 'dracula_pro'

View File

@@ -0,0 +1,301 @@
" Configuration: {{{
if v:version > 580
highlight clear
if exists('syntax_on')
syntax reset
endif
endif
let g:colors_name = 'dracula_pro'
if !(has('termguicolors') && &termguicolors) && !has('gui_running') && &t_Co != 256
finish
endif
" Palette: {{{2
let s:fg = g:dracula_pro#palette.fg
let s:bglighter = g:dracula_pro#palette.bglighter
let s:bglight = g:dracula_pro#palette.bglight
let s:bg = g:dracula_pro#palette.bg
let s:bgdark = g:dracula_pro#palette.bgdark
let s:bgdarker = g:dracula_pro#palette.bgdarker
let s:comment = g:dracula_pro#palette.comment
let s:selection = g:dracula_pro#palette.selection
let s:subtle = g:dracula_pro#palette.subtle
let s:cyan = g:dracula_pro#palette.cyan
let s:green = g:dracula_pro#palette.green
let s:orange = g:dracula_pro#palette.orange
let s:pink = g:dracula_pro#palette.pink
let s:purple = g:dracula_pro#palette.purple
let s:red = g:dracula_pro#palette.red
let s:yellow = g:dracula_pro#palette.yellow
let s:none = ['NONE', 'NONE']
if has('nvim')
for s:i in range(16)
let g:terminal_color_{s:i} = g:dracula_pro#palette['color_' . s:i]
endfor
endif
if has('terminal')
let g:terminal_ansi_colors = []
for s:i in range(16)
call add(g:terminal_ansi_colors, g:dracula_pro#palette['color_' . s:i])
endfor
endif
" }}}2
" User Configuration: {{{2
if !exists('g:dracula_bold')
let g:dracula_bold = 1
endif
if !exists('g:dracula_italic')
let g:dracula_italic = 1
endif
if !exists('g:dracula_underline')
let g:dracula_underline = 1
endif
if !exists('g:dracula_undercurl') && g:dracula_underline != 0
let g:dracula_undercurl = 1
endif
if !exists('g:dracula_inverse')
let g:dracula_inverse = 1
endif
if !exists('g:dracula_colorterm')
let g:dracula_colorterm = 1
endif
"}}}2
" Script Helpers: {{{2
let s:attrs = {
\ 'bold': g:dracula_bold == 1 ? 'bold' : 0,
\ 'italic': g:dracula_italic == 1 ? 'italic' : 0,
\ 'underline': g:dracula_underline == 1 ? 'underline' : 0,
\ 'undercurl': g:dracula_undercurl == 1 ? 'undercurl' : 0,
\ 'inverse': g:dracula_inverse == 1 ? 'inverse' : 0,
\}
function! s:h(scope, fg, ...) " bg, attr_list, special
let l:fg = copy(a:fg)
let l:bg = get(a:, 1, ['NONE', 'NONE'])
let l:attr_list = filter(get(a:, 2, ['NONE']), 'type(v:val) == 1')
let l:attrs = len(l:attr_list) > 0 ? join(l:attr_list, ',') : 'NONE'
" Falls back to coloring foreground group on terminals because
" nearly all do not support undercurl
let l:special = get(a:, 3, ['NONE', 'NONE'])
if l:special[0] !=# 'NONE' && l:fg[0] ==# 'NONE' && !has('gui_running')
let l:fg[0] = l:special[0]
let l:fg[1] = l:special[1]
endif
let l:hl_string = [
\ 'highlight!', a:scope,
\ 'guifg=' . l:fg[0], 'ctermfg=' . l:fg[1],
\ 'guibg=' . l:bg[0], 'ctermbg=' . l:bg[1],
\ 'gui=' . l:attrs, 'cterm=' . l:attrs,
\ 'guisp=' . l:special[0],
\]
execute join(l:hl_string, ' ')
endfunction
"}}}2
" Dracula Highlight Groups: {{{2
call s:h('DraculaBgLight', s:none, s:bglight)
call s:h('DraculaBgLighter', s:none, s:bglighter)
call s:h('DraculaBgDark', s:none, s:bgdark)
call s:h('DraculaBgDarker', s:none, s:bgdarker)
call s:h('DraculaFg', s:fg)
call s:h('DraculaFgUnderline', s:fg, s:none, [s:attrs.underline])
call s:h('DraculaFgBold', s:fg, s:none, [s:attrs.bold])
call s:h('DraculaComment', s:comment)
call s:h('DraculaCommentBold', s:comment, s:none, [s:attrs.bold])
call s:h('DraculaSelection', s:none, s:selection)
call s:h('DraculaSubtle', s:subtle)
call s:h('DraculaCyan', s:cyan)
call s:h('DraculaCyanItalic', s:cyan, s:none, [s:attrs.italic])
call s:h('DraculaGreen', s:green)
call s:h('DraculaGreenBold', s:green, s:none, [s:attrs.bold])
call s:h('DraculaGreenItalic', s:green, s:none, [s:attrs.italic])
call s:h('DraculaGreenItalicUnderline', s:green, s:none, [s:attrs.italic, s:attrs.underline])
call s:h('DraculaOrange', s:orange)
call s:h('DraculaOrangeBold', s:orange, s:none, [s:attrs.bold])
call s:h('DraculaOrangeItalic', s:orange, s:none, [s:attrs.italic])
call s:h('DraculaOrangeBoldItalic', s:orange, s:none, [s:attrs.bold, s:attrs.italic])
call s:h('DraculaOrangeInverse', s:bg, s:orange)
call s:h('DraculaPink', s:pink)
call s:h('DraculaPinkItalic', s:pink, s:none, [s:attrs.italic])
call s:h('DraculaPurple', s:purple)
call s:h('DraculaPurpleBold', s:purple, s:none, [s:attrs.bold])
call s:h('DraculaPurpleItalic', s:purple, s:none, [s:attrs.italic])
call s:h('DraculaRed', s:red)
call s:h('DraculaRedInverse', s:fg, s:red)
call s:h('DraculaYellow', s:yellow)
call s:h('DraculaYellowItalic', s:yellow, s:none, [s:attrs.italic])
call s:h('DraculaError', s:red, s:none, [], s:red)
call s:h('DraculaErrorLine', s:none, s:none, [s:attrs.undercurl], s:red)
call s:h('DraculaWarnLine', s:none, s:none, [s:attrs.undercurl], s:orange)
call s:h('DraculaInfoLine', s:none, s:none, [s:attrs.undercurl], s:cyan)
call s:h('DraculaTodo', s:cyan, s:none, [s:attrs.bold, s:attrs.inverse])
call s:h('DraculaSearch', s:green, s:none, [s:attrs.inverse])
call s:h('DraculaBoundary', s:comment, s:bgdark)
call s:h('DraculaLink', s:cyan, s:none, [s:attrs.underline])
call s:h('DraculaDiffChange', s:orange, s:none)
call s:h('DraculaDiffText', s:bg, s:orange)
call s:h('DraculaDiffDelete', s:red, s:bgdark)
" }}}2
" }}}
" User Interface: {{{
set background=dark
" Required as some plugins will overwrite
call s:h('Normal', s:fg, g:dracula_colorterm || has('gui_running') ? s:bg : s:none )
call s:h('StatusLine', s:none, s:bglighter, [s:attrs.bold])
call s:h('StatusLineNC', s:none, s:bglight)
call s:h('StatusLineTerm', s:none, s:bglighter, [s:attrs.bold])
call s:h('StatusLineTermNC', s:none, s:bglight)
call s:h('WildMenu', s:bg, s:purple, [s:attrs.bold])
call s:h('CursorLine', s:none, s:subtle)
hi! link ColorColumn DraculaBgDark
hi! link CursorColumn CursorLine
hi! link CursorLineNr DraculaYellow
hi! link DiffAdd DraculaGreen
hi! link DiffAdded DiffAdd
hi! link DiffChange DraculaDiffChange
hi! link DiffDelete DraculaDiffDelete
hi! link DiffRemoved DiffDelete
hi! link DiffText DraculaDiffText
hi! link Directory DraculaPurpleBold
hi! link ErrorMsg DraculaRedInverse
hi! link FoldColumn DraculaSubtle
hi! link Folded DraculaBoundary
hi! link IncSearch DraculaOrangeInverse
call s:h('LineNr', s:comment)
hi! link MoreMsg DraculaFgBold
hi! link NonText DraculaSubtle
hi! link Pmenu DraculaBgDark
hi! link PmenuSbar DraculaBgDark
hi! link PmenuSel DraculaSelection
hi! link PmenuThumb DraculaSelection
hi! link Question DraculaFgBold
hi! link Search DraculaSearch
call s:h('SignColumn', s:comment)
hi! link TabLine DraculaBoundary
hi! link TabLineFill DraculaBgDarker
hi! link TabLineSel Normal
hi! link Title DraculaGreenBold
hi! link VertSplit DraculaBoundary
hi! link Visual DraculaSelection
hi! link VisualNOS Visual
hi! link WarningMsg DraculaOrangeInverse
" }}}
" Syntax: {{{
" Required as some plugins will overwrite
call s:h('MatchParen', s:green, s:none, [s:attrs.underline])
call s:h('Conceal', s:cyan, s:none)
" Neovim uses SpecialKey for escape characters only. Vim uses it for that, plus whitespace.
if has('nvim')
hi! link SpecialKey DraculaRed
hi! link LspDiagnosticsUnderline DraculaFgUnderline
hi! link LspDiagnosticsInformation DraculaCyan
hi! link LspDiagnosticsHint DraculaCyan
hi! link LspDiagnosticsError DraculaError
hi! link LspDiagnosticsWarning DraculaOrange
hi! link LspDiagnosticsUnderlineError DraculaErrorLine
hi! link LspDiagnosticsUnderlineHint DraculaInfoLine
hi! link LspDiagnosticsUnderlineInformation DraculaInfoLine
hi! link LspDiagnosticsUnderlineWarning DraculaWarnLine
else
hi! link SpecialKey DraculaSubtle
endif
hi! link Comment DraculaComment
hi! link Underlined DraculaFgUnderline
hi! link Todo DraculaTodo
hi! link Error DraculaError
hi! link SpellBad DraculaErrorLine
hi! link SpellLocal DraculaWarnLine
hi! link SpellCap DraculaInfoLine
hi! link SpellRare DraculaInfoLine
hi! link Constant DraculaPurple
hi! link String DraculaYellow
hi! link Character DraculaPink
hi! link Number Constant
hi! link Boolean Constant
hi! link Float Constant
hi! link Identifier DraculaFg
hi! link Function DraculaGreen
hi! link Statement DraculaPink
hi! link Conditional DraculaPink
hi! link Repeat DraculaPink
hi! link Label DraculaPink
hi! link Operator DraculaPink
hi! link Keyword DraculaPink
hi! link Exception DraculaPink
hi! link PreProc DraculaPink
hi! link Include DraculaPink
hi! link Define DraculaPink
hi! link Macro DraculaPink
hi! link PreCondit DraculaPink
hi! link StorageClass DraculaPink
hi! link Structure DraculaPink
hi! link Typedef DraculaPink
hi! link Type DraculaCyanItalic
hi! link Delimiter DraculaFg
hi! link Special DraculaPink
hi! link SpecialComment DraculaCyanItalic
hi! link Tag DraculaCyan
hi! link helpHyperTextJump DraculaLink
hi! link helpCommand DraculaPurple
hi! link helpExample DraculaGreen
hi! link helpBacktick Special
"}}}
" vim: fdm=marker ts=2 sts=2 sw=2 fdl=0 et:

View File

@@ -0,0 +1,14 @@
runtime autoload/dracula_pro.vim
let g:dracula_pro#palette.comment = ['#70A99F', 109]
let g:dracula_pro#palette.selection = ['#415854', 66]
let g:dracula_pro#palette.bglighter = ['#364946', 59]
let g:dracula_pro#palette.bglight = ['#2B3B38', 59]
let g:dracula_pro#palette.bg = ['#212C2A', 59]
let g:dracula_pro#palette.bgdark = ['#161D1C', 23]
let g:dracula_pro#palette.bgdarker = ['#0B0F0E', 16]
runtime colors/dracula_pro_base.vim
let g:colors_name = 'dracula_pro_blade'

View File

@@ -0,0 +1,14 @@
runtime autoload/dracula_pro.vim
let g:dracula_pro#palette.comment = ['#9F70A9', 139]
let g:dracula_pro#palette.selection = ['#544158', 96]
let g:dracula_pro#palette.bglighter = ['#463649', 59]
let g:dracula_pro#palette.bglight = ['#382B3B', 59]
let g:dracula_pro#palette.bg = ['#2A212C', 59]
let g:dracula_pro#palette.bgdark = ['#1C161D', 53]
let g:dracula_pro#palette.bgdarker = ['#0E0B0F', 16]
runtime colors/dracula_pro_base.vim
let g:colors_name = 'dracula_pro_buffy'

View File

@@ -0,0 +1,14 @@
runtime autoload/dracula_pro.vim
let g:dracula_pro#palette.comment = ['#A99F70', 144]
let g:dracula_pro#palette.selection = ['#585441', 101]
let g:dracula_pro#palette.bglighter = ['#494636', 59]
let g:dracula_pro#palette.bglight = ['#3B382B', 59]
let g:dracula_pro#palette.bg = ['#2C2A21', 59]
let g:dracula_pro#palette.bgdark = ['#1D1C16', 58]
let g:dracula_pro#palette.bgdarker = ['#0F0E0B', 16]
runtime colors/dracula_pro_base.vim
let g:colors_name = 'dracula_pro_lincoln'

View File

@@ -0,0 +1,14 @@
runtime autoload/dracula_pro.vim
let g:dracula_pro#palette.comment = ['#A97079', 138]
let g:dracula_pro#palette.selection = ['#584145', 95]
let g:dracula_pro#palette.bglighter = ['#493639', 59]
let g:dracula_pro#palette.bglight = ['#3B2B2E', 59]
let g:dracula_pro#palette.bg = ['#2C2122', 59]
let g:dracula_pro#palette.bgdark = ['#1D1617', 52]
let g:dracula_pro#palette.bgdarker = ['#0F0B0B', 16]
runtime colors/dracula_pro_base.vim
let g:colors_name = 'dracula_pro_morbius'

Some files were not shown because too many files have changed in this diff Show More