mirror of
https://github.com/ksyasuda/rice.git
synced 2024-11-22 03:19:58 -08:00
move config files to new directory
This commit is contained in:
commit
58f9300f1e
5
README.md
Normal file
5
README.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Sudacode Dotfiles
|
||||||
|
|
||||||
|
A collection of my Linux (Arch btw) dotfiles such as `.zshrc`, `.vimrc`,
|
||||||
|
and `.bash_aliases`. The configiration files for other software such as `cava`,
|
||||||
|
`alacritty`, and `polybar` can be found [here](https://github.com/ksyasuda/Sudacode-Rice)
|
785
alacritty/alacritty.yml
Normal file
785
alacritty/alacritty.yml
Normal file
@ -0,0 +1,785 @@
|
|||||||
|
# Configuration for Alacritty, the GPU enhanced terminal emulator.
|
||||||
|
|
||||||
|
# Import additional configuration files
|
||||||
|
#
|
||||||
|
# These configuration files will be loaded in order, replacing values in files
|
||||||
|
# loaded earlier with those loaded later in the chain. The file itself will
|
||||||
|
# always be loaded last.
|
||||||
|
#import:
|
||||||
|
# - /path/to/alacritty.yml
|
||||||
|
|
||||||
|
# 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)
|
||||||
|
#
|
||||||
|
# Number of lines/columns (not pixels) in the terminal. The number of columns
|
||||||
|
# must be at least `2`, while using a value of `0` for columns and lines will
|
||||||
|
# fall back to the window manager's recommended size.
|
||||||
|
#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: 10
|
||||||
|
y: 10
|
||||||
|
|
||||||
|
# Spread additional padding evenly around the terminal content.
|
||||||
|
dynamic_padding: true
|
||||||
|
|
||||||
|
# Window decorations
|
||||||
|
#
|
||||||
|
# Values for `decorations`:
|
||||||
|
# - full: Borders and title bar
|
||||||
|
# - none: Neither borders nor title bar
|
||||||
|
#
|
||||||
|
# Values for `decorations` (macOS only):
|
||||||
|
# - transparent: Title bar, transparent background and title bar buttons
|
||||||
|
# - buttonless: Title bar, transparent background and 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
|
||||||
|
|
||||||
|
# Allow terminal applications to change Alacritty's window title.
|
||||||
|
window.dynamic_title: true
|
||||||
|
|
||||||
|
# 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: dark
|
||||||
|
|
||||||
|
#scrolling:
|
||||||
|
# Maximum number of lines in the scrollback buffer.
|
||||||
|
# Specifying '0' will disable scrolling.
|
||||||
|
#history: 10000
|
||||||
|
|
||||||
|
# Scrolling distance multiplier.
|
||||||
|
#multiplier: 3
|
||||||
|
|
||||||
|
# Font configuration
|
||||||
|
font:
|
||||||
|
# Normal (roman) font face
|
||||||
|
normal:
|
||||||
|
# Font family
|
||||||
|
#
|
||||||
|
# Default:
|
||||||
|
# - (macOS) Menlo
|
||||||
|
# - (Linux/BSD) monospace
|
||||||
|
# - (Windows) Consolas
|
||||||
|
family: "FiraCode 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: "FiraCode 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: "FiraCode Nerd Font"
|
||||||
|
|
||||||
|
# The `style` can be specified to pick a specific face.
|
||||||
|
# style: Italic
|
||||||
|
|
||||||
|
# Bold italic font face
|
||||||
|
#bold_italic:
|
||||||
|
# Font family
|
||||||
|
#
|
||||||
|
# If the bold italic family is not specified, it will fall back to the
|
||||||
|
# value specified for the normal font.
|
||||||
|
# family: "FiraCode Nerd Font"
|
||||||
|
|
||||||
|
# The `style` can be specified to pick a specific face.
|
||||||
|
# style: Bold Italic
|
||||||
|
|
||||||
|
# Point size
|
||||||
|
size: 11.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 upward.
|
||||||
|
#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`.
|
||||||
|
#use_thin_strokes: true
|
||||||
|
|
||||||
|
# If `true`, bold text is drawn using the bright color variants.
|
||||||
|
draw_bold_text_with_bright_colors: true
|
||||||
|
|
||||||
|
# Colors (Tomorrow Night)
|
||||||
|
#colors:
|
||||||
|
# Default colors
|
||||||
|
#primary:
|
||||||
|
# background: '#282c34'
|
||||||
|
# foreground: '#c5c8c6'
|
||||||
|
|
||||||
|
# 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: '#828482'
|
||||||
|
#bright_foreground: '#eaeaea'
|
||||||
|
|
||||||
|
# Cursor colors
|
||||||
|
#
|
||||||
|
# Colors which should be used to draw the terminal cursor.
|
||||||
|
#
|
||||||
|
# Allowed values are CellForeground and CellBackground, which reference the
|
||||||
|
# affected cell, or hexadecimal colors like #ff00ff.
|
||||||
|
#cursor:
|
||||||
|
# text: CellBackground
|
||||||
|
# cursor: CellForeground
|
||||||
|
|
||||||
|
# Vi mode cursor colors
|
||||||
|
#
|
||||||
|
# Colors for the cursor when the vi mode is active.
|
||||||
|
#
|
||||||
|
# Allowed values are CellForeground and CellBackground, which reference the
|
||||||
|
# affected cell, or hexadecimal colors like #ff00ff.
|
||||||
|
#vi_mode_cursor:
|
||||||
|
# text: CellBackground
|
||||||
|
# cursor: CellForeground
|
||||||
|
|
||||||
|
# Selection colors
|
||||||
|
#
|
||||||
|
# Colors which should be used to draw the selection area.
|
||||||
|
#
|
||||||
|
# Allowed values are CellForeground and CellBackground, which reference the
|
||||||
|
# affected cell, or hexadecimal colors like #ff00ff.
|
||||||
|
#selection:
|
||||||
|
# text: CellBackground
|
||||||
|
# background: CellForeground
|
||||||
|
|
||||||
|
# Search colors
|
||||||
|
#
|
||||||
|
# Colors used for the search bar and match highlighting.
|
||||||
|
#search:
|
||||||
|
# Allowed values are CellForeground and CellBackground, which reference the
|
||||||
|
# affected cell, or hexadecimal colors like #ff00ff.
|
||||||
|
#matches:
|
||||||
|
# foreground: '#000000'
|
||||||
|
# background: '#ffffff'
|
||||||
|
|
||||||
|
#bar:
|
||||||
|
# background: '#c5c8c6'
|
||||||
|
# foreground: '#1d1f21'
|
||||||
|
|
||||||
|
# Colors (One Dark)
|
||||||
|
colors:
|
||||||
|
primary:
|
||||||
|
background: '#282c34'
|
||||||
|
foreground: '#abb2bf'
|
||||||
|
cursor:
|
||||||
|
text: CellBackground
|
||||||
|
cursor: '#82aaff' # syntax-cursor-color
|
||||||
|
selection:
|
||||||
|
text: CellForeground
|
||||||
|
background: '#6d6d6d' # syntax-selection-color
|
||||||
|
normal:
|
||||||
|
black: '#464b55'
|
||||||
|
red: '#e06c75'
|
||||||
|
green: '#98c379'
|
||||||
|
yellow: '#e5c07b'
|
||||||
|
blue: '#296dff'
|
||||||
|
magenta: '#ff20ff'
|
||||||
|
cyan: '#56b6c2'
|
||||||
|
white: '#e6e6e6'
|
||||||
|
bright:
|
||||||
|
black: '#282c34'
|
||||||
|
red: '#ff5820'
|
||||||
|
green: '#b1e18b'
|
||||||
|
yellow: '#eee25a'
|
||||||
|
blue: '#2f71ff'
|
||||||
|
magenta: '#ff00ff'
|
||||||
|
cyan: '#63d4e0'
|
||||||
|
white: '#ffffff'
|
||||||
|
|
||||||
|
# Colors (Material Theme)
|
||||||
|
# colors:
|
||||||
|
# # Default colors
|
||||||
|
# primary:
|
||||||
|
# background: '#263238'
|
||||||
|
# foreground: '#eeffff'
|
||||||
|
#
|
||||||
|
# # Normal colors
|
||||||
|
# normal:
|
||||||
|
# black: '#000000' # Arbitrary
|
||||||
|
# red: '#e53935'
|
||||||
|
# green: '#91b859'
|
||||||
|
# yellow: '#ffb62c'
|
||||||
|
# blue: '#6182b8'
|
||||||
|
# magenta: '#ff5370' # Dark pink of the original material theme
|
||||||
|
# cyan: '#39adb5'
|
||||||
|
# white: '#a0a0a0' # Arbitrary
|
||||||
|
#
|
||||||
|
# # Bright colors
|
||||||
|
# bright:
|
||||||
|
# black: '#4e4e4e' # Arbitrary
|
||||||
|
# red: '#ff5370'
|
||||||
|
# green: '#c3e88d'
|
||||||
|
# yellow: '#ffcb6b'
|
||||||
|
# blue: '#82aaff'
|
||||||
|
# magenta: '#f07178' # Pink of the original material theme
|
||||||
|
# cyan: '#89ddff'
|
||||||
|
# white: '#ffffff' # Arbitrary
|
||||||
|
|
||||||
|
# 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: '#ff00ff' }`
|
||||||
|
#
|
||||||
|
#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
|
||||||
|
|
||||||
|
#selection:
|
||||||
|
# This string contains all characters that are used as separators for
|
||||||
|
# "semantic words" in Alacritty.
|
||||||
|
#semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"
|
||||||
|
|
||||||
|
# When set to `true`, selected text will be copied to the primary clipboard.
|
||||||
|
#save_to_clipboard: false
|
||||||
|
|
||||||
|
#cursor:
|
||||||
|
# Cursor style
|
||||||
|
#
|
||||||
|
# Values for `style`:
|
||||||
|
# - ▇ Block
|
||||||
|
# - _ Underline
|
||||||
|
# - | Beam
|
||||||
|
#style: Block
|
||||||
|
|
||||||
|
# Vi mode cursor style
|
||||||
|
#
|
||||||
|
# If the vi mode cursor style is `None` or not specified, it will fall back to
|
||||||
|
# the style of the active value of the normal cursor.
|
||||||
|
#
|
||||||
|
# See `cursor.style` for available options.
|
||||||
|
#vi_mode_style: None
|
||||||
|
|
||||||
|
# If this is `true`, the cursor will be rendered as a hollow box when the
|
||||||
|
# window is not focused.
|
||||||
|
#unfocused_hollow: true
|
||||||
|
|
||||||
|
# Thickness of the cursor relative to the cell width as floating point number
|
||||||
|
# from `0.0` to `1.0`.
|
||||||
|
#thickness: 0.15
|
||||||
|
|
||||||
|
# Live config reload (changes require restart)
|
||||||
|
#live_config_reload: true
|
||||||
|
|
||||||
|
# Shell
|
||||||
|
#
|
||||||
|
# You can set `shell.program` to the path of your favorite shell, e.g.
|
||||||
|
# `/bin/fish`. Entries in `shell.args` are passed unmodified as arguments to the
|
||||||
|
# shell.
|
||||||
|
#
|
||||||
|
# Default:
|
||||||
|
# - (macOS) /bin/bash --login
|
||||||
|
# - (Linux/BSD) user login shell
|
||||||
|
# - (Windows) powershell
|
||||||
|
#shell:
|
||||||
|
# program: /bin/bash
|
||||||
|
# args:
|
||||||
|
# - --login
|
||||||
|
|
||||||
|
# Startup directory
|
||||||
|
#
|
||||||
|
# Directory the shell is started in. If this is unset, or `None`, the working
|
||||||
|
# directory of the parent process will be used.
|
||||||
|
#working_directory: None
|
||||||
|
|
||||||
|
# WinPTY backend (Windows only)
|
||||||
|
#
|
||||||
|
# Alacritty defaults to using the newer ConPTY backend if it is available,
|
||||||
|
# since it resolves a lot of bugs and is quite a bit faster. If it is not
|
||||||
|
# available, the 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
|
||||||
|
|
||||||
|
#url:
|
||||||
|
# URL launcher
|
||||||
|
#
|
||||||
|
# This program is executed when clicking on a text which is recognized as a
|
||||||
|
# URL. The URL is always added to the command as the last parameter.
|
||||||
|
#
|
||||||
|
# When set to `launcher: None`, URL launching will be disabled completely.
|
||||||
|
#
|
||||||
|
# Default:
|
||||||
|
# - (macOS) open
|
||||||
|
# - (Linux/BSD) xdg-open
|
||||||
|
# - (Windows) explorer
|
||||||
|
#launcher:
|
||||||
|
# program: xdg-open
|
||||||
|
# args: []
|
||||||
|
|
||||||
|
# URL modifiers
|
||||||
|
#
|
||||||
|
# These are the modifiers that need to be held down for opening URLs when
|
||||||
|
# clicking on them. The available modifiers are documented in the key
|
||||||
|
# binding section.
|
||||||
|
#modifiers: None
|
||||||
|
|
||||||
|
# Mouse bindings
|
||||||
|
#
|
||||||
|
# Mouse bindings are specified as a list of objects, much like the key
|
||||||
|
# bindings further below.
|
||||||
|
#
|
||||||
|
# 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
|
||||||
|
#
|
||||||
|
# - ToggleViMode
|
||||||
|
# - SearchForward
|
||||||
|
# Start searching toward the right of the search origin.
|
||||||
|
# - SearchBackward
|
||||||
|
# Start searching toward the left of the search origin.
|
||||||
|
# - Copy
|
||||||
|
# - Paste
|
||||||
|
# - IncreaseFontSize
|
||||||
|
# - DecreaseFontSize
|
||||||
|
# - ResetFontSize
|
||||||
|
# - ScrollPageUp
|
||||||
|
# - ScrollPageDown
|
||||||
|
# - ScrollHalfPageUp
|
||||||
|
# - ScrollHalfPageDown
|
||||||
|
# - ScrollLineUp
|
||||||
|
# - ScrollLineDown
|
||||||
|
# - ScrollToTop
|
||||||
|
# - ScrollToBottom
|
||||||
|
# - ClearHistory
|
||||||
|
# Remove the terminal's scrollback history.
|
||||||
|
# - Hide
|
||||||
|
# Hide the Alacritty window.
|
||||||
|
# - Minimize
|
||||||
|
# Minimize the Alacritty window.
|
||||||
|
# - Quit
|
||||||
|
# Quit Alacritty.
|
||||||
|
# - ToggleFullscreen
|
||||||
|
# - SpawnNewInstance
|
||||||
|
# Spawn a new instance of Alacritty.
|
||||||
|
# - ClearLogNotice
|
||||||
|
# Clear Alacritty's UI warning and error notice.
|
||||||
|
# - ClearSelection
|
||||||
|
# Remove the active selection.
|
||||||
|
# - ReceiveChar
|
||||||
|
# - None
|
||||||
|
#
|
||||||
|
# - Vi mode exclusive actions:
|
||||||
|
#
|
||||||
|
# - Open
|
||||||
|
# Open URLs at the cursor location with the launcher configured in
|
||||||
|
# `url.launcher`.
|
||||||
|
# - ToggleNormalSelection
|
||||||
|
# - ToggleLineSelection
|
||||||
|
# - ToggleBlockSelection
|
||||||
|
# - ToggleSemanticSelection
|
||||||
|
# Toggle semantic selection based on `selection.semantic_escape_chars`.
|
||||||
|
#
|
||||||
|
# - Vi mode exclusive cursor motion actions:
|
||||||
|
#
|
||||||
|
# - Up
|
||||||
|
# One line up.
|
||||||
|
# - Down
|
||||||
|
# One line down.
|
||||||
|
# - Left
|
||||||
|
# One character left.
|
||||||
|
# - Right
|
||||||
|
# One character right.
|
||||||
|
# - First
|
||||||
|
# First column, or beginning of the line when already at the first column.
|
||||||
|
# - Last
|
||||||
|
# Last column, or beginning of the line when already at the last column.
|
||||||
|
# - FirstOccupied
|
||||||
|
# First non-empty cell in this terminal row, or first non-empty cell of
|
||||||
|
# the line when already at the first cell of the row.
|
||||||
|
# - High
|
||||||
|
# Top of the screen.
|
||||||
|
# - Middle
|
||||||
|
# Center of the screen.
|
||||||
|
# - Low
|
||||||
|
# Bottom of the screen.
|
||||||
|
# - SemanticLeft
|
||||||
|
# Start of the previous semantically separated word.
|
||||||
|
# - SemanticRight
|
||||||
|
# Start of the next semantically separated word.
|
||||||
|
# - SemanticLeftEnd
|
||||||
|
# End of the previous semantically separated word.
|
||||||
|
# - SemanticRightEnd
|
||||||
|
# End of the next semantically separated word.
|
||||||
|
# - WordLeft
|
||||||
|
# Start of the previous whitespace separated word.
|
||||||
|
# - WordRight
|
||||||
|
# Start of the next whitespace separated word.
|
||||||
|
# - WordLeftEnd
|
||||||
|
# End of the previous whitespace separated word.
|
||||||
|
# - WordRightEnd
|
||||||
|
# End of the next whitespace separated word.
|
||||||
|
# - Bracket
|
||||||
|
# Character matching the bracket at the cursor's location.
|
||||||
|
# - SearchNext
|
||||||
|
# Beginning of the next match.
|
||||||
|
# - SearchPrevious
|
||||||
|
# Beginning of the previous match.
|
||||||
|
# - SearchStart
|
||||||
|
# Start of the match to the left of the vi mode cursor.
|
||||||
|
# - SearchEnd
|
||||||
|
# End of the match to the right of the vi mode cursor.
|
||||||
|
#
|
||||||
|
# - macOS exclusive actions:
|
||||||
|
# - ToggleSimpleFullscreen
|
||||||
|
# Enter fullscreen without occupying another space.
|
||||||
|
#
|
||||||
|
# - Linux/BSD exclusive actions:
|
||||||
|
#
|
||||||
|
# - CopySelection
|
||||||
|
# Copy from the selection buffer.
|
||||||
|
# - PasteSelection
|
||||||
|
# Paste from the selection buffer.
|
||||||
|
#
|
||||||
|
# - `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
|
||||||
|
# - Vi
|
||||||
|
#
|
||||||
|
# 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
|
||||||
|
# in the order they were defined in.
|
||||||
|
#key_bindings:
|
||||||
|
#- { key: Paste, action: Paste }
|
||||||
|
#- { key: Copy, action: Copy }
|
||||||
|
#- { key: L, mods: Control, action: ClearLogNotice }
|
||||||
|
#- { key: L, mods: Control, mode: ~Vi, chars: "\x0c" }
|
||||||
|
#- { key: PageUp, mods: Shift, mode: ~Alt, action: ScrollPageUp, }
|
||||||
|
#- { key: PageDown, mods: Shift, mode: ~Alt, action: ScrollPageDown }
|
||||||
|
#- { key: Home, mods: Shift, mode: ~Alt, action: ScrollToTop, }
|
||||||
|
#- { key: End, mods: Shift, mode: ~Alt, action: ScrollToBottom }
|
||||||
|
|
||||||
|
# Vi Mode
|
||||||
|
#- { key: Space, mods: Shift|Control, mode: Vi, action: ScrollToBottom }
|
||||||
|
#- { key: Space, mods: Shift|Control, action: ToggleViMode }
|
||||||
|
#- { key: Escape, mode: Vi, action: ClearSelection }
|
||||||
|
#- { key: I, mode: Vi, action: ScrollToBottom }
|
||||||
|
#- { key: I, mode: Vi, action: ToggleViMode }
|
||||||
|
#- { key: C, mods: Control, mode: Vi, action: ToggleViMode }
|
||||||
|
#- { key: Y, mods: Control, mode: Vi, action: ScrollLineUp }
|
||||||
|
#- { key: E, mods: Control, mode: Vi, action: ScrollLineDown }
|
||||||
|
#- { key: G, mode: Vi, action: ScrollToTop }
|
||||||
|
#- { key: G, mods: Shift, mode: Vi, action: ScrollToBottom }
|
||||||
|
#- { key: B, mods: Control, mode: Vi, action: ScrollPageUp }
|
||||||
|
#- { key: F, mods: Control, mode: Vi, action: ScrollPageDown }
|
||||||
|
#- { key: U, mods: Control, mode: Vi, action: ScrollHalfPageUp }
|
||||||
|
#- { key: D, mods: Control, mode: Vi, action: ScrollHalfPageDown }
|
||||||
|
#- { key: Y, mode: Vi, action: Copy }
|
||||||
|
#- { key: Y, mode: Vi, action: ClearSelection }
|
||||||
|
#- { key: Copy, mode: Vi, action: ClearSelection }
|
||||||
|
#- { key: V, mode: Vi, action: ToggleNormalSelection }
|
||||||
|
#- { key: V, mods: Shift, mode: Vi, action: ToggleLineSelection }
|
||||||
|
#- { key: V, mods: Control, mode: Vi, action: ToggleBlockSelection }
|
||||||
|
#- { key: V, mods: Alt, mode: Vi, action: ToggleSemanticSelection }
|
||||||
|
#- { key: Return, mode: Vi, action: Open }
|
||||||
|
#- { key: K, mode: Vi, action: Up }
|
||||||
|
#- { key: J, mode: Vi, action: Down }
|
||||||
|
#- { key: H, mode: Vi, action: Left }
|
||||||
|
#- { key: L, mode: Vi, action: Right }
|
||||||
|
#- { key: Up, mode: Vi, action: Up }
|
||||||
|
#- { key: Down, mode: Vi, action: Down }
|
||||||
|
#- { key: Left, mode: Vi, action: Left }
|
||||||
|
#- { key: Right, mode: Vi, action: Right }
|
||||||
|
#- { key: Key0, mode: Vi, action: First }
|
||||||
|
#- { key: Key4, mods: Shift, mode: Vi, action: Last }
|
||||||
|
#- { key: Key6, mods: Shift, mode: Vi, action: FirstOccupied }
|
||||||
|
#- { key: H, mods: Shift, mode: Vi, action: High }
|
||||||
|
#- { key: M, mods: Shift, mode: Vi, action: Middle }
|
||||||
|
#- { key: L, mods: Shift, mode: Vi, action: Low }
|
||||||
|
#- { key: B, mode: Vi, action: SemanticLeft }
|
||||||
|
#- { key: W, mode: Vi, action: SemanticRight }
|
||||||
|
#- { key: E, mode: Vi, action: SemanticRightEnd }
|
||||||
|
#- { key: B, mods: Shift, mode: Vi, action: WordLeft }
|
||||||
|
#- { key: W, mods: Shift, mode: Vi, action: WordRight }
|
||||||
|
#- { key: E, mods: Shift, mode: Vi, action: WordRightEnd }
|
||||||
|
#- { key: Key5, mods: Shift, mode: Vi, action: Bracket }
|
||||||
|
#- { key: Slash, mode: Vi, action: SearchForward }
|
||||||
|
#- { key: Slash, mods: Shift, mode: Vi, action: SearchBackward }
|
||||||
|
#- { key: N, mode: Vi, action: SearchNext }
|
||||||
|
#- { key: N, mods: Shift, mode: Vi, action: SearchPrevious }
|
||||||
|
|
||||||
|
# (Windows, Linux, and BSD only)
|
||||||
|
#- { key: V, mods: Control|Shift, action: Paste }
|
||||||
|
#- { key: C, mods: Control|Shift, action: Copy }
|
||||||
|
#- { key: F, mods: Control|Shift, action: SearchForward }
|
||||||
|
#- { key: B, mods: Control|Shift, action: SearchBackward }
|
||||||
|
#- { key: C, mods: Control|Shift, mode: Vi, action: ClearSelection }
|
||||||
|
#- { key: Insert, mods: Shift, action: PasteSelection }
|
||||||
|
#- { key: Key0, mods: Control, action: ResetFontSize }
|
||||||
|
#- { key: Equals, mods: Control, action: IncreaseFontSize }
|
||||||
|
#- { key: Plus, mods: Control, action: IncreaseFontSize }
|
||||||
|
#- { key: NumpadAdd, mods: Control, action: IncreaseFontSize }
|
||||||
|
#- { key: Minus, mods: Control, action: DecreaseFontSize }
|
||||||
|
#- { key: NumpadSubtract, mods: Control, action: DecreaseFontSize }
|
||||||
|
|
||||||
|
# (Windows only)
|
||||||
|
#- { key: Return, mods: Alt, action: ToggleFullscreen }
|
||||||
|
|
||||||
|
# (macOS only)
|
||||||
|
#- { key: K, mods: Command, mode: ~Vi, chars: "\x0c" }
|
||||||
|
#- { key: Key0, mods: Command, action: ResetFontSize }
|
||||||
|
#- { key: Equals, mods: Command, action: IncreaseFontSize }
|
||||||
|
#- { key: Plus, mods: Command, action: IncreaseFontSize }
|
||||||
|
#- { key: NumpadAdd, mods: Command, action: IncreaseFontSize }
|
||||||
|
#- { key: Minus, mods: Command, action: DecreaseFontSize }
|
||||||
|
#- { key: NumpadSubtract, mods: Command, action: DecreaseFontSize }
|
||||||
|
#- { key: K, mods: Command, action: ClearHistory }
|
||||||
|
#- { key: V, mods: Command, action: Paste }
|
||||||
|
#- { key: C, mods: Command, action: Copy }
|
||||||
|
#- { key: C, mods: Command, mode: Vi, action: ClearSelection }
|
||||||
|
#- { 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: N, mods: Command, action: SpawnNewInstance }
|
||||||
|
#- { key: F, mods: Command|Control, action: ToggleFullscreen }
|
||||||
|
#- { key: F, mods: Command, action: SearchForward }
|
||||||
|
#- { key: B, mods: Command, action: SearchBackward }
|
||||||
|
|
||||||
|
#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
|
169
cava/cavaconfig
Normal file
169
cava/cavaconfig
Normal file
@ -0,0 +1,169 @@
|
|||||||
|
## Configuration file for CAVA. Default values are commented out. Use either ';' or '#' for commenting.
|
||||||
|
|
||||||
|
|
||||||
|
[general]
|
||||||
|
|
||||||
|
# Smoothing mode. Can be 'normal', 'scientific' or 'waves'. DEPRECATED as of 0.6.0
|
||||||
|
mode = scientific
|
||||||
|
|
||||||
|
# Accepts only non-negative values.
|
||||||
|
framerate = 60
|
||||||
|
|
||||||
|
# 'autosens' will attempt to decrease sensitivity if the bars peak. 1 = on, 0 = off
|
||||||
|
# new as of 0.6.0 autosens of low values (dynamic range)
|
||||||
|
# 'overshoot' allows bars to overshoot (in % of terminal height) without initiating autosens. DEPRECATED as of 0.6.0
|
||||||
|
; autosens = 1
|
||||||
|
; overshoot = 20
|
||||||
|
|
||||||
|
# Manual sensitivity in %. Autosens must be turned off for this to take effect.
|
||||||
|
# 200 means double height. Accepts only non-negative values.
|
||||||
|
; sensitivity = 100
|
||||||
|
|
||||||
|
# The number of bars (0-200). 0 sets it to auto (fill up console).
|
||||||
|
# Bars' width and space between bars in number of characters.
|
||||||
|
bars = 0
|
||||||
|
bar_width = 3
|
||||||
|
bar_spacing = 1
|
||||||
|
|
||||||
|
|
||||||
|
# Lower and higher cutoff frequencies for lowest and highest bars
|
||||||
|
# the bandwidth of the visualizer.
|
||||||
|
# Note: there is a minimum total bandwidth of 43Mhz x number of bars.
|
||||||
|
# Cava will automatically increase the higher cutoff if a too low band is specified.
|
||||||
|
; lower_cutoff_freq = 50
|
||||||
|
; higher_cutoff_freq = 10000
|
||||||
|
|
||||||
|
|
||||||
|
# Seconds with no input before cava goes to sleep mode. Cava will not perform FFT or drawing and
|
||||||
|
# only check for input once per second. Cava will wake up once input is detected. 0 = disable.
|
||||||
|
; sleep_timer = 0
|
||||||
|
|
||||||
|
|
||||||
|
[input]
|
||||||
|
|
||||||
|
# Audio capturing method. Possible methods are: 'pulse', 'alsa', 'fifo', 'sndio' or 'shmem'
|
||||||
|
# Defaults to 'pulse', 'alsa' or 'fifo', in that order, dependent on what support cava was built with.
|
||||||
|
#
|
||||||
|
# All input methods uses the same config variable 'source'
|
||||||
|
# to define where it should get the audio.
|
||||||
|
#
|
||||||
|
# For pulseaudio 'source' will be the source. Default: 'auto', which uses the monitor source of the default sink
|
||||||
|
# (all pulseaudio sinks(outputs) have 'monitor' sources(inputs) associated with them).
|
||||||
|
#
|
||||||
|
# For alsa 'source' will be the capture device.
|
||||||
|
# For fifo 'source' will be the path to fifo-file.
|
||||||
|
# For shmem 'source' will be /squeezelite-AA:BB:CC:DD:EE:FF where 'AA:BB:CC:DD:EE:FF' will be squeezelite's MAC address
|
||||||
|
method = pulse
|
||||||
|
source = auto
|
||||||
|
|
||||||
|
; method = alsa
|
||||||
|
; source = hw:Loopback,1
|
||||||
|
|
||||||
|
; method = fifo
|
||||||
|
; source = /tmp/mpd.fifo
|
||||||
|
; sample_rate = 44100
|
||||||
|
; sample_bits = 16
|
||||||
|
|
||||||
|
; method = shmem
|
||||||
|
; source = /squeezelite-AA:BB:CC:DD:EE:FF
|
||||||
|
|
||||||
|
; method = portaudio
|
||||||
|
; source = auto
|
||||||
|
|
||||||
|
|
||||||
|
[output]
|
||||||
|
|
||||||
|
# Output method. Can be 'ncurses', 'noncurses' or 'raw'.
|
||||||
|
# 'noncurses' uses a custom framebuffer technique and draws only changes
|
||||||
|
# from frame to frame. 'ncurses' is default if supported
|
||||||
|
#
|
||||||
|
# 'raw' is an 8 or 16 bit (configurable via the 'bit_format' option) data
|
||||||
|
# stream of the bar heights that can be used to send to other applications.
|
||||||
|
# 'raw' defaults to 200 bars, which can be adjusted in the 'bars' option above.
|
||||||
|
method = ncurses
|
||||||
|
|
||||||
|
# Visual channels. Can be 'stereo' or 'mono'.
|
||||||
|
# 'stereo' mirrors both channels with low frequencies in center.
|
||||||
|
# 'mono' outputs left to right lowest to highest frequencies.
|
||||||
|
# 'mono_option' set mono to either take input from 'left', 'right' or 'average'.
|
||||||
|
; channels = stereo
|
||||||
|
; mono_option = average
|
||||||
|
|
||||||
|
# Raw output target. A fifo will be created if target does not exist.
|
||||||
|
; raw_target = /dev/stdout
|
||||||
|
|
||||||
|
# Raw data format. Can be 'binary' or 'ascii'.
|
||||||
|
data_format = binary
|
||||||
|
|
||||||
|
# Binary bit format, can be '8bit' (0-255) or '16bit' (0-65530).
|
||||||
|
; bit_format = 16bit
|
||||||
|
|
||||||
|
# Ascii max value. In 'ascii' mode range will run from 0 to value specified here
|
||||||
|
; ascii_max_range = 1000
|
||||||
|
|
||||||
|
# Ascii delimiters. In ascii format each bar and frame is separated by a delimiters.
|
||||||
|
# Use decimal value in ascii table (i.e. 59 = ';' and 10 = '\n' (line feed)).
|
||||||
|
; bar_delimiter = 59
|
||||||
|
; frame_delimiter = 10
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[color]
|
||||||
|
|
||||||
|
# Colors can be one of seven predefined: black, blue, cyan, green, magenta, red, white, yellow.
|
||||||
|
# Or defined by hex code '#xxxxxx' (hex code must be within ''). User defined colors requires
|
||||||
|
# ncurses output method and a terminal that can change color definitions such as Gnome-terminal or rxvt.
|
||||||
|
# if supported, ncurses mode will be forced on if user defined colors are used.
|
||||||
|
# default is to keep current terminal color
|
||||||
|
; foreground = blue
|
||||||
|
foreground = red
|
||||||
|
|
||||||
|
# Gradient mode, only hex defined colors (and thereby ncurses mode) are supported,
|
||||||
|
# background must also be defined in hex or remain commented out. 1 = on, 0 = off.
|
||||||
|
# You can define as many as 8 different colors. They range from bottom to top of screen
|
||||||
|
gradient = 1
|
||||||
|
gradient_count = 8
|
||||||
|
gradient_color_1 = '#2d61d7'
|
||||||
|
gradient_color_2 = '#2878af'
|
||||||
|
gradient_color_3 = '#56a7b5'
|
||||||
|
gradient_color_4 = '#a4ce82'
|
||||||
|
gradient_color_5 = '#fc855a'
|
||||||
|
gradient_color_6 = '#ff5820'
|
||||||
|
gradient_color_7 = '#6b2144'
|
||||||
|
gradient_color_8 = '#692737'
|
||||||
|
|
||||||
|
|
||||||
|
[smoothing]
|
||||||
|
|
||||||
|
# Percentage value for integral smoothing. Takes values from 0 - 100.
|
||||||
|
# Higher values means smoother, but less precise. 0 to disable.
|
||||||
|
; integral = 88
|
||||||
|
|
||||||
|
# Disables or enables the so-called "Monstercat smoothing" with or without "waves". Set to 0 to disable.
|
||||||
|
; monstercat = 0
|
||||||
|
; waves = 0
|
||||||
|
|
||||||
|
# Set gravity percentage for "drop off". Higher values means bars will drop faster.
|
||||||
|
# Accepts only non-negative values. 50 means half gravity, 200 means double. Set to 0 to disable "drop off".
|
||||||
|
; gravity = 100
|
||||||
|
|
||||||
|
|
||||||
|
# In bar height, bars that would have been lower that this will not be drawn.
|
||||||
|
; ignore = 0
|
||||||
|
|
||||||
|
|
||||||
|
[eq]
|
||||||
|
|
||||||
|
# This one is tricky. You can have as much keys as you want.
|
||||||
|
# Remember to uncomment more then one key! More keys = more precision.
|
||||||
|
# Look at readme.md on github for further explanations and examples.
|
||||||
|
; 1 = 1 # bass
|
||||||
|
; 2 = 1
|
||||||
|
; 3 = 1 # midtone
|
||||||
|
; 4 = 1
|
||||||
|
; 5 = 1 # treble
|
||||||
|
1=2
|
||||||
|
2=2
|
||||||
|
3=1
|
||||||
|
4=1
|
||||||
|
5=0.6
|
74
doom/config.el
Normal file
74
doom/config.el
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
;; Place your private configuration here! Remember, you do not need to run 'doom
|
||||||
|
;; sync' after modifying this file!
|
||||||
|
|
||||||
|
|
||||||
|
;; Some functionality uses this to identify you, e.g. GPG configuration, email
|
||||||
|
;; clients, file templates and snippets.
|
||||||
|
(setq user-full-name "Kyle Yasuda"
|
||||||
|
user-mail-address "ksyasuda@umich.edu")
|
||||||
|
|
||||||
|
;; Doom exposes five (optional) variables for controlling fonts in Doom. Here
|
||||||
|
;; are the three important ones:
|
||||||
|
;;
|
||||||
|
;; + `doom-font'
|
||||||
|
;; + `doom-variable-pitch-font'
|
||||||
|
;; + `doom-big-font' -- used for `doom-big-font-mode'; use this for
|
||||||
|
;; presentations or streaming.
|
||||||
|
;;
|
||||||
|
;; They all accept either a font-spec, font string ("Input Mono-12"), or xlfd
|
||||||
|
;; font string. You generally only need these two:
|
||||||
|
;; (setq doom-font (font-spec :family "monospace" :size 12 :weight 'semi-light)
|
||||||
|
;; doom-variable-pitch-font (font-spec :family "sans" :size 13))
|
||||||
|
(setq doom-font (font-spec :family "FiraCode Nerd Font" :size 24))
|
||||||
|
|
||||||
|
;; There are two ways to load a theme. Both assume the theme is installed and
|
||||||
|
;; available. You can either set `doom-theme' or manually load a theme with the
|
||||||
|
;; `load-theme' function. This is the default:
|
||||||
|
(setq doom-theme 'doom-material)
|
||||||
|
|
||||||
|
;; If you use `org' and don't want your org files in the default location below,
|
||||||
|
;; change `org-directory'. It must be set before org loads!
|
||||||
|
(setq org-directory "~/org/")
|
||||||
|
|
||||||
|
;; This determines the style of line numbers in effect. If set to `nil', line
|
||||||
|
;; numbers are disabled. For relative line numbers, set this to `relative'.
|
||||||
|
(setq display-line-numbers-type t)
|
||||||
|
|
||||||
|
|
||||||
|
;; Here are some additional functions/macros that could help you configure Doom:
|
||||||
|
;;
|
||||||
|
;; - `load!' for loading external *.el files relative to this one
|
||||||
|
;; - `use-package!' for configuring packages
|
||||||
|
;; - `after!' for running code after a package has loaded
|
||||||
|
;; - `add-load-path!' for adding directories to the `load-path', relative to
|
||||||
|
;; this file. Emacs searches the `load-path' when you load packages with
|
||||||
|
;; `require' or `use-package'.
|
||||||
|
;; - `map!' for binding new keys
|
||||||
|
;;
|
||||||
|
;; To get information about any of these functions/macros, move the cursor over
|
||||||
|
;; the highlighted symbol at press 'K' (non-evil users must press 'C-c c k').
|
||||||
|
;; This will open documentation for it, including demos of how they are used.
|
||||||
|
;;
|
||||||
|
;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
|
||||||
|
;; they are implemented.
|
||||||
|
(use-package wakatime-mode :ensure t)
|
||||||
|
|
||||||
|
(global-wakatime-mode)
|
||||||
|
|
||||||
|
(require 'org-bullets)
|
||||||
|
(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))
|
||||||
|
|
||||||
|
;; enable japanese input in emacs i think
|
||||||
|
;; (require 'mozc)
|
||||||
|
(setq default-input-method "japanese-mozc")
|
||||||
|
(setq mozc-candidate-style 'overlay)
|
||||||
|
|
||||||
|
(use-package! lsp
|
||||||
|
:init
|
||||||
|
(setq lsp-pyls-plugins-pylint-enabled t)
|
||||||
|
(setq lsp-pyls-plugins-autopep8-enabled nil)
|
||||||
|
(setq lsp-pyls-plugins-yapf-enabled t)
|
||||||
|
(setq lsp-pyls-plugins-pyflakes-enabled nil)
|
||||||
|
)
|
12
doom/custom.el
Normal file
12
doom/custom.el
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
(custom-set-variables
|
||||||
|
;; custom-set-variables was added by Custom.
|
||||||
|
;; If you edit it by hand, you could mess it up, so be careful.
|
||||||
|
;; Your init file should contain only one such instance.
|
||||||
|
;; If there is more than one, they won't work right.
|
||||||
|
'(package-selected-packages '(w3m wakatime-mode)))
|
||||||
|
(custom-set-faces
|
||||||
|
;; custom-set-faces was added by Custom.
|
||||||
|
;; If you edit it by hand, you could mess it up, so be careful.
|
||||||
|
;; Your init file should contain only one such instance.
|
||||||
|
;; If there is more than one, they won't work right.
|
||||||
|
)
|
187
doom/init.el
Normal file
187
doom/init.el
Normal file
@ -0,0 +1,187 @@
|
|||||||
|
;;; init.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
;; This file controls what Doom modules are enabled and what order they load
|
||||||
|
;; in. Remember to run 'doom sync' after modifying it!
|
||||||
|
|
||||||
|
;; NOTE Press 'SPC h d h' (or 'C-h d h' for non-vim users) to access Doom's
|
||||||
|
;; documentation. There you'll find a "Module Index" link where you'll find
|
||||||
|
;; a comprehensive list of Doom's modules and what flags they support.
|
||||||
|
|
||||||
|
;; NOTE Move your cursor over a module's name (or its flags) and press 'K' (or
|
||||||
|
;; 'C-c c k' for non-vim users) to view its documentation. This works on
|
||||||
|
;; flags as well (those symbols that start with a plus).
|
||||||
|
;;
|
||||||
|
;; Alternatively, press 'gd' (or 'C-c c d') on a module to browse its
|
||||||
|
;; directory (for easy access to its source code).
|
||||||
|
|
||||||
|
(doom! :input
|
||||||
|
;;chinese
|
||||||
|
japanese
|
||||||
|
;;layout ; auie,ctsrnm is the superior home row
|
||||||
|
|
||||||
|
:completion
|
||||||
|
company ; the ultimate code completion backend
|
||||||
|
;;helm ; the *other* search engine for love and life
|
||||||
|
;;ido ; the other *other* search engine...
|
||||||
|
ivy ; a search engine for love and life
|
||||||
|
|
||||||
|
:ui
|
||||||
|
;;deft ; notational velocity for Emacs
|
||||||
|
doom ; what makes DOOM look the way it does
|
||||||
|
doom-dashboard ; a nifty splash screen for Emacs
|
||||||
|
doom-quit ; DOOM quit-message prompts when you quit Emacs
|
||||||
|
(emoji +unicode) ; 🙂
|
||||||
|
;;fill-column ; a `fill-column' indicator
|
||||||
|
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
|
||||||
|
;;hydra
|
||||||
|
;;indent-guides ; highlighted indent columns
|
||||||
|
ligatures ; ligatures and symbols to make your code pretty again
|
||||||
|
minimap ; show a map of the code on the side
|
||||||
|
modeline ; snazzy, Atom-inspired modeline, plus API
|
||||||
|
;;nav-flash ; blink cursor line after big motions
|
||||||
|
neotree ; a project drawer, like NERDTree for vim
|
||||||
|
ophints ; highlight the region an operation acts on
|
||||||
|
(popup +defaults) ; tame sudden yet inevitable temporary windows
|
||||||
|
;;tabs ; a tab bar for Emacs
|
||||||
|
treemacs ; a project drawer, like neotree but cooler
|
||||||
|
unicode ; extended unicode support for various languages
|
||||||
|
vc-gutter ; vcs diff in the fringe
|
||||||
|
vi-tilde-fringe ; fringe tildes to mark beyond EOB
|
||||||
|
window-select ; visually switch windows
|
||||||
|
workspaces ; tab emulation, persistence & separate workspaces
|
||||||
|
;;zen ; distraction-free coding or writing
|
||||||
|
|
||||||
|
:editor
|
||||||
|
(evil +everywhere); come to the dark side, we have cookies
|
||||||
|
file-templates ; auto-snippets for empty files
|
||||||
|
fold ; (nigh) universal code folding
|
||||||
|
(format +onsave) ; automated prettiness
|
||||||
|
(global-wakatime-mode)
|
||||||
|
;;god ; run Emacs commands without modifier keys
|
||||||
|
;;lispy ; vim for lisp, for people who don't like vim
|
||||||
|
multiple-cursors ; editing in many places at once
|
||||||
|
;;objed ; text object editing for the innocent
|
||||||
|
;;parinfer ; turn lisp into python, sort of
|
||||||
|
;;rotate-text ; cycle region at point between text candidates
|
||||||
|
snippets ; my elves. They type so I don't have to
|
||||||
|
word-wrap ; soft wrapping with language-aware indent
|
||||||
|
|
||||||
|
:emacs
|
||||||
|
dired ; making dired pretty [functional]
|
||||||
|
electric ; smarter, keyword-based electric-indent
|
||||||
|
;;ibuffer ; interactive buffer management
|
||||||
|
undo ; persistent, smarter undo for your inevitable mistakes
|
||||||
|
vc ; version-control and Emacs, sitting in a tree
|
||||||
|
|
||||||
|
:term
|
||||||
|
;;eshell ; the elisp shell that works everywhere
|
||||||
|
;;shell ; simple shell REPL for Emacs
|
||||||
|
;;term ; basic terminal emulator for Emacs
|
||||||
|
vterm ; the best terminal emulation in Emacs
|
||||||
|
|
||||||
|
:checkers
|
||||||
|
syntax ; tasing you for every semicolon you forget
|
||||||
|
spell ; tasing you for misspelling mispelling
|
||||||
|
;;grammar ; tasing grammar mistake every you make
|
||||||
|
|
||||||
|
:tools
|
||||||
|
;;ansible
|
||||||
|
debugger ; FIXME stepping through code, to help you add bugs
|
||||||
|
;;direnv
|
||||||
|
;;docker
|
||||||
|
;;editorconfig ; let someone else argue about tabs vs spaces
|
||||||
|
;;ein ; tame Jupyter notebooks with emacs
|
||||||
|
(eval +overlay) ; run code, run (also, repls)
|
||||||
|
gist ; interacting with github gists
|
||||||
|
lookup ; navigate your code and its documentation
|
||||||
|
;;lsp
|
||||||
|
magit ; a git porcelain for Emacs
|
||||||
|
make ; run make tasks from Emacs
|
||||||
|
;;pass ; password manager for nerds
|
||||||
|
pdf ; pdf enhancements
|
||||||
|
;;prodigy ; FIXME managing external services & code builders
|
||||||
|
rgb ; creating color strings
|
||||||
|
;;taskrunner ; taskrunner for all your projects
|
||||||
|
;;terraform ; infrastructure as code
|
||||||
|
;;tmux ; an API for interacting with tmux
|
||||||
|
;;upload ; map local to remote projects via ssh/ftp
|
||||||
|
|
||||||
|
:os
|
||||||
|
(:if IS-MAC macos) ; improve compatibility with macOS
|
||||||
|
tty ; improve the terminal Emacs experience
|
||||||
|
|
||||||
|
:lang
|
||||||
|
;;agda ; types of types of types of types...
|
||||||
|
cc ; C/C++/Obj-C madness
|
||||||
|
;;clojure ; java with a lisp
|
||||||
|
;;common-lisp ; if you've seen one lisp, you've seen them all
|
||||||
|
;;coq ; proofs-as-programs
|
||||||
|
;;crystal ; ruby at the speed of c
|
||||||
|
;;csharp ; unity, .NET, and mono shenanigans
|
||||||
|
;;data ; config/data formats
|
||||||
|
;;(dart +flutter) ; paint ui and not much else
|
||||||
|
;;elixir ; erlang done right
|
||||||
|
;;elm ; care for a cup of TEA?
|
||||||
|
emacs-lisp ; drown in parentheses
|
||||||
|
;;erlang ; an elegant language for a more civilized age
|
||||||
|
;;ess ; emacs speaks statistics
|
||||||
|
;;faust ; dsp, but you get to keep your soul
|
||||||
|
;;fsharp ; ML stands for Microsoft's Language
|
||||||
|
;;fstar ; (dependent) types and (monadic) effects and Z3
|
||||||
|
;;gdscript ; the language you waited for
|
||||||
|
;;(go +lsp) ; the hipster dialect
|
||||||
|
;;(haskell +dante) ; a language that's lazier than I am
|
||||||
|
;;hy ; readability of scheme w/ speed of python
|
||||||
|
;;idris ; a language you can depend on
|
||||||
|
json ; At least it ain't XML
|
||||||
|
(java +meghanada) ; the poster child for carpal tunnel syndrome
|
||||||
|
javascript ; all(hope(abandon(ye(who(enter(here))))))
|
||||||
|
;;(java +lsp)
|
||||||
|
;;julia ; a better, faster MATLAB
|
||||||
|
;;kotlin ; a better, slicker Java(Script)
|
||||||
|
latex ; writing papers in Emacs has never been so fun
|
||||||
|
;;lean
|
||||||
|
;;factor
|
||||||
|
;;ledger ; an accounting system in Emacs
|
||||||
|
lua ; one-based indices? one-based indices
|
||||||
|
markdown ; writing docs for people to ignore
|
||||||
|
;;nim ; python + lisp at the speed of c
|
||||||
|
nix ; I hereby declare "nix geht mehr!"
|
||||||
|
;;ocaml ; an objective camel
|
||||||
|
org ; organize your plain life in plain text
|
||||||
|
;;php ; perl's insecure younger brother
|
||||||
|
;;plantuml ; diagrams for confusing people more
|
||||||
|
purescript ; javascript, but functional
|
||||||
|
python ; beautiful is better than ugly
|
||||||
|
;;qt ; the 'cutest' gui framework ever
|
||||||
|
;;racket ; a DSL for DSLs
|
||||||
|
;;raku ; the artist formerly known as perl6
|
||||||
|
rest ; Emacs as a REST client
|
||||||
|
;;rst ; ReST in peace
|
||||||
|
;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
|
||||||
|
;;rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
|
||||||
|
;;scala ; java, but good
|
||||||
|
;;scheme ; a fully conniving family of lisps
|
||||||
|
sh ; she sells {ba,z,fi}sh shells on the C xor
|
||||||
|
;;sml
|
||||||
|
;;solidity ; do you need a blockchain? No.
|
||||||
|
;;swift ; who asked for emoji variables?
|
||||||
|
;;terra ; Earth and Moon in alignment for performance.
|
||||||
|
web ; the tubes
|
||||||
|
;;yaml ; JSON, but readable
|
||||||
|
|
||||||
|
:email
|
||||||
|
(mu4e +gmail)
|
||||||
|
;;notmuch
|
||||||
|
;;(wanderlust +gmail)
|
||||||
|
|
||||||
|
:app
|
||||||
|
calendar
|
||||||
|
;;irc ; how neckbeards socialize
|
||||||
|
;;(rss +org) ; emacs as an RSS reader
|
||||||
|
;;twitter ; twitter client https://twitter.com/vnought
|
||||||
|
|
||||||
|
:config
|
||||||
|
;;literate
|
||||||
|
(default +bindings +smartparens))
|
||||||
|
(python +lsp)
|
55
doom/packages.el
Normal file
55
doom/packages.el
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
;; -*- no-byte-compile: t; -*-
|
||||||
|
;;; $DOOMDIR/packages.el
|
||||||
|
|
||||||
|
;; To install a package with Doom you must declare them here and run 'doom sync'
|
||||||
|
;; on the command line, then restart Emacs for the changes to take effect -- or
|
||||||
|
;; use 'M-x doom/reload'.
|
||||||
|
|
||||||
|
|
||||||
|
;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror:
|
||||||
|
;(package! some-package)
|
||||||
|
|
||||||
|
;; To install a package directly from a remote git repo, you must specify a
|
||||||
|
;; `:recipe'. You'll find documentation on what `:recipe' accepts here:
|
||||||
|
;; https://github.com/raxod502/straight.el#the-recipe-format
|
||||||
|
;(package! another-package
|
||||||
|
; :recipe (:host github :repo "username/repo"))
|
||||||
|
|
||||||
|
;; If the package you are trying to install does not contain a PACKAGENAME.el
|
||||||
|
;; file, or is located in a subdirectory of the repo, you'll need to specify
|
||||||
|
;; `:files' in the `:recipe':
|
||||||
|
;(package! this-package
|
||||||
|
; :recipe (:host github :repo "username/repo"
|
||||||
|
; :files ("some-file.el" "src/lisp/*.el")))
|
||||||
|
|
||||||
|
;; If you'd like to disable a package included with Doom, you can do so here
|
||||||
|
;; with the `:disable' property:
|
||||||
|
;(package! builtin-package :disable t)
|
||||||
|
|
||||||
|
;; You can override the recipe of a built in package without having to specify
|
||||||
|
;; all the properties for `:recipe'. These will inherit the rest of its recipe
|
||||||
|
;; from Doom or MELPA/ELPA/Emacsmirror:
|
||||||
|
;(package! builtin-package :recipe (:nonrecursive t))
|
||||||
|
;(package! builtin-package-2 :recipe (:repo "myfork/package"))
|
||||||
|
|
||||||
|
;; Specify a `:branch' to install a package from a particular branch or tag.
|
||||||
|
;; This is required for some packages whose default branch isn't 'master' (which
|
||||||
|
;; our package manager can't deal with; see raxod502/straight.el#279)
|
||||||
|
;(package! builtin-package :recipe (:branch "develop"))
|
||||||
|
|
||||||
|
;; Use `:pin' to specify a particular commit to install.
|
||||||
|
;(package! builtin-package :pin "1a2b3c4d5e")
|
||||||
|
|
||||||
|
|
||||||
|
;; Doom's packages are pinned to a specific commit and updated from release to
|
||||||
|
;; release. The `unpin!' macro allows you to unpin single packages...
|
||||||
|
;(unpin! pinned-package)
|
||||||
|
;; ...or multiple packages
|
||||||
|
;(unpin! pinned-package another-pinned-package)
|
||||||
|
;; ...Or *all* packages (NOT RECOMMENDED; will likely break things)
|
||||||
|
;(unpin! t)
|
||||||
|
(package! wakatime-mode)
|
||||||
|
(package! org-bullets)
|
||||||
|
(package! markdown-mode)
|
||||||
|
(package! auto-complete)
|
||||||
|
(package! mozc)
|
261
dotfiles/.Xmodmap
Normal file
261
dotfiles/.Xmodmap
Normal file
@ -0,0 +1,261 @@
|
|||||||
|
keycode 8 =
|
||||||
|
keycode 9 = Escape NoSymbol Escape NoSymbol Escape
|
||||||
|
keycode 10 = 1 exclam 1 exclam 1 exclam
|
||||||
|
keycode 11 = 2 at 2 at 2 at
|
||||||
|
keycode 12 = 3 numbersign 3 numbersign 3 numbersign
|
||||||
|
keycode 13 = 4 dollar 4 dollar 4 dollar
|
||||||
|
keycode 14 = 5 percent 5 percent 5 percent
|
||||||
|
keycode 15 = 6 asciicircum 6 asciicircum 6 asciicircum
|
||||||
|
keycode 16 = 7 ampersand 7 ampersand 7 ampersand
|
||||||
|
keycode 17 = 8 asterisk 8 asterisk 8 asterisk
|
||||||
|
keycode 18 = 9 parenleft 9 parenleft 9 parenleft
|
||||||
|
keycode 19 = 0 parenright 0 parenright 0 parenright
|
||||||
|
keycode 20 = minus underscore minus underscore minus underscore
|
||||||
|
keycode 21 = equal plus equal plus equal plus
|
||||||
|
keycode 22 = BackSpace BackSpace BackSpace BackSpace NoSymbol NoSymbol Terminate_Server
|
||||||
|
keycode 23 = Tab ISO_Left_Tab Tab ISO_Left_Tab Tab ISO_Left_Tab
|
||||||
|
keycode 24 = q Q q Q q Q
|
||||||
|
keycode 25 = w W w W w W
|
||||||
|
keycode 26 = e E e E e E
|
||||||
|
keycode 27 = r R r R r R
|
||||||
|
keycode 28 = t T t T t T
|
||||||
|
keycode 29 = y Y y Y y Y
|
||||||
|
keycode 30 = u U u U u U
|
||||||
|
keycode 31 = i I i I i I
|
||||||
|
keycode 32 = o O o O o O
|
||||||
|
keycode 33 = p P p P p P
|
||||||
|
keycode 34 = bracketleft braceleft bracketleft braceleft bracketleft braceleft
|
||||||
|
keycode 35 = bracketright braceright bracketright braceright bracketright braceright
|
||||||
|
keycode 36 = Return NoSymbol Return NoSymbol Return
|
||||||
|
keycode 37 = Caps_Lock NoSymbol Caps_Lock NoSymbol Caps_Lock
|
||||||
|
keycode 38 = a A a A a A
|
||||||
|
keycode 39 = s S s S s S
|
||||||
|
keycode 40 = d D d D d D
|
||||||
|
keycode 41 = f F f F f F
|
||||||
|
keycode 42 = g G g G g G
|
||||||
|
keycode 43 = h H h H h H
|
||||||
|
keycode 44 = j J j J j J
|
||||||
|
keycode 45 = k K k K k K
|
||||||
|
keycode 46 = l L l L l L
|
||||||
|
keycode 47 = semicolon colon semicolon colon semicolon colon
|
||||||
|
keycode 48 = apostrophe quotedbl apostrophe quotedbl apostrophe quotedbl
|
||||||
|
keycode 49 = grave asciitilde grave asciitilde grave asciitilde
|
||||||
|
keycode 50 = Shift_L NoSymbol Shift_L NoSymbol Shift_L
|
||||||
|
keycode 51 = backslash bar backslash bar backslash bar
|
||||||
|
keycode 52 = z Z z Z z Z
|
||||||
|
keycode 53 = x X x X x X
|
||||||
|
keycode 54 = c C c C c C
|
||||||
|
keycode 55 = v V v V v V
|
||||||
|
keycode 56 = b B b B b B
|
||||||
|
keycode 57 = n N n N n N
|
||||||
|
keycode 58 = m M m M m M
|
||||||
|
keycode 59 = comma less comma less comma less
|
||||||
|
keycode 60 = period greater period greater period greater
|
||||||
|
keycode 61 = slash question slash question slash question
|
||||||
|
keycode 62 = Shift_R NoSymbol Shift_R NoSymbol Shift_R
|
||||||
|
keycode 63 = KP_Multiply KP_Multiply KP_Multiply KP_Multiply KP_Multiply KP_Multiply XF86ClearGrab
|
||||||
|
keycode 64 = Alt_L Meta_L Alt_L Meta_L Alt_L Meta_L
|
||||||
|
keycode 65 = space NoSymbol space NoSymbol space
|
||||||
|
keycode 66 = Control_L NoSymbol Control_L NoSymbol Control_L
|
||||||
|
keycode 67 = F1 F1 F1 F1 F1 F1 XF86Switch_VT_1
|
||||||
|
keycode 68 = F2 F2 F2 F2 F2 F2 XF86Switch_VT_2
|
||||||
|
keycode 69 = F3 F3 F3 F3 F3 F3 XF86Switch_VT_3
|
||||||
|
keycode 70 = F4 F4 F4 F4 F4 F4 XF86Switch_VT_4
|
||||||
|
keycode 71 = F5 F5 F5 F5 F5 F5 XF86Switch_VT_5
|
||||||
|
keycode 72 = F6 F6 F6 F6 F6 F6 XF86Switch_VT_6
|
||||||
|
keycode 73 = F7 F7 F7 F7 F7 F7 XF86Switch_VT_7
|
||||||
|
keycode 74 = F8 F8 F8 F8 F8 F8 XF86Switch_VT_8
|
||||||
|
keycode 75 = F9 F9 F9 F9 F9 F9 XF86Switch_VT_9
|
||||||
|
keycode 76 = F10 F10 F10 F10 F10 F10 XF86Switch_VT_10
|
||||||
|
keycode 77 = Num_Lock NoSymbol Num_Lock NoSymbol Num_Lock
|
||||||
|
keycode 78 = Scroll_Lock NoSymbol Scroll_Lock NoSymbol Scroll_Lock
|
||||||
|
keycode 79 = KP_Home KP_7 KP_Home KP_7 KP_Home KP_7
|
||||||
|
keycode 80 = KP_Up KP_8 KP_Up KP_8 KP_Up KP_8
|
||||||
|
keycode 81 = KP_Prior KP_9 KP_Prior KP_9 KP_Prior KP_9
|
||||||
|
keycode 82 = KP_Subtract KP_Subtract KP_Subtract KP_Subtract KP_Subtract KP_Subtract XF86Prev_VMode
|
||||||
|
keycode 83 = KP_Left KP_4 KP_Left KP_4 KP_Left KP_4
|
||||||
|
keycode 84 = KP_Begin KP_5 KP_Begin KP_5 KP_Begin KP_5
|
||||||
|
keycode 85 = KP_Right KP_6 KP_Right KP_6 KP_Right KP_6
|
||||||
|
keycode 86 = KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add XF86Next_VMode
|
||||||
|
keycode 87 = KP_End KP_1 KP_End KP_1 KP_End KP_1
|
||||||
|
keycode 88 = KP_Down KP_2 KP_Down KP_2 KP_Down KP_2
|
||||||
|
keycode 89 = KP_Next KP_3 KP_Next KP_3 KP_Next KP_3
|
||||||
|
keycode 90 = KP_Insert KP_0 KP_Insert KP_0 KP_Insert KP_0
|
||||||
|
keycode 91 = KP_Delete KP_Decimal KP_Delete KP_Decimal KP_Delete KP_Decimal
|
||||||
|
keycode 92 = ISO_Level3_Shift NoSymbol ISO_Level3_Shift NoSymbol ISO_Level3_Shift
|
||||||
|
keycode 93 =
|
||||||
|
keycode 94 = less greater less greater bar brokenbar bar
|
||||||
|
keycode 95 = F11 F11 F11 F11 F11 F11 XF86Switch_VT_11
|
||||||
|
keycode 96 = F12 F12 F12 F12 F12 F12 XF86Switch_VT_12
|
||||||
|
keycode 97 =
|
||||||
|
keycode 98 = Katakana NoSymbol Katakana NoSymbol Katakana
|
||||||
|
keycode 99 = Hiragana NoSymbol Hiragana NoSymbol Hiragana
|
||||||
|
keycode 100 = Henkan_Mode NoSymbol Henkan_Mode NoSymbol Henkan_Mode
|
||||||
|
keycode 101 = Hiragana_Katakana NoSymbol Hiragana_Katakana NoSymbol Hiragana_Katakana
|
||||||
|
keycode 102 = Muhenkan NoSymbol Muhenkan NoSymbol Muhenkan
|
||||||
|
keycode 103 =
|
||||||
|
keycode 104 = KP_Enter NoSymbol KP_Enter NoSymbol KP_Enter
|
||||||
|
keycode 105 = Control_R NoSymbol Control_R NoSymbol Control_R
|
||||||
|
keycode 106 = KP_Divide KP_Divide KP_Divide KP_Divide KP_Divide KP_Divide XF86Ungrab
|
||||||
|
keycode 107 = Print Sys_Req Print Sys_Req Print Sys_Req
|
||||||
|
keycode 108 = Alt_R Meta_R Alt_R Meta_R Alt_R Meta_R
|
||||||
|
keycode 109 = Linefeed NoSymbol Linefeed NoSymbol Linefeed
|
||||||
|
keycode 110 = Home NoSymbol Home NoSymbol Home
|
||||||
|
keycode 111 = Up NoSymbol Up NoSymbol Up
|
||||||
|
keycode 112 = Prior NoSymbol Prior NoSymbol Prior
|
||||||
|
keycode 113 = Left NoSymbol Left NoSymbol Left
|
||||||
|
keycode 114 = Right NoSymbol Right NoSymbol Right
|
||||||
|
keycode 115 = End NoSymbol End NoSymbol End
|
||||||
|
keycode 116 = Down NoSymbol Down NoSymbol Down
|
||||||
|
keycode 117 = Next NoSymbol Next NoSymbol Next
|
||||||
|
keycode 118 = Insert NoSymbol Insert NoSymbol Insert
|
||||||
|
keycode 119 = Delete NoSymbol Delete NoSymbol Delete
|
||||||
|
keycode 120 =
|
||||||
|
keycode 121 = XF86AudioMute NoSymbol XF86AudioMute NoSymbol XF86AudioMute
|
||||||
|
keycode 122 = XF86AudioLowerVolume NoSymbol XF86AudioLowerVolume NoSymbol XF86AudioLowerVolume
|
||||||
|
keycode 123 = XF86AudioRaiseVolume NoSymbol XF86AudioRaiseVolume NoSymbol XF86AudioRaiseVolume
|
||||||
|
keycode 124 = XF86PowerOff NoSymbol XF86PowerOff NoSymbol XF86PowerOff
|
||||||
|
keycode 125 = KP_Equal NoSymbol KP_Equal NoSymbol KP_Equal
|
||||||
|
keycode 126 = plusminus NoSymbol plusminus NoSymbol plusminus
|
||||||
|
keycode 127 = Pause Break Pause Break Pause Break
|
||||||
|
keycode 128 = XF86LaunchA NoSymbol XF86LaunchA NoSymbol XF86LaunchA
|
||||||
|
keycode 129 = KP_Decimal KP_Decimal KP_Decimal KP_Decimal KP_Decimal KP_Decimal
|
||||||
|
keycode 130 = Hangul NoSymbol Hangul NoSymbol Hangul
|
||||||
|
keycode 131 = Hangul_Hanja NoSymbol Hangul_Hanja NoSymbol Hangul_Hanja
|
||||||
|
keycode 133 = Super_L NoSymbol Super_L NoSymbol Super_L
|
||||||
|
keycode 134 = Super_R NoSymbol Super_R NoSymbol Super_R
|
||||||
|
keycode 135 = Menu NoSymbol Menu NoSymbol Menu
|
||||||
|
keycode 136 = Cancel NoSymbol Cancel NoSymbol Cancel
|
||||||
|
keycode 137 = Redo NoSymbol Redo NoSymbol Redo
|
||||||
|
keycode 138 = SunProps NoSymbol SunProps NoSymbol SunProps
|
||||||
|
keycode 139 = Undo NoSymbol Undo NoSymbol Undo
|
||||||
|
keycode 140 = SunFront NoSymbol SunFront NoSymbol SunFront
|
||||||
|
keycode 141 = XF86Copy NoSymbol XF86Copy NoSymbol XF86Copy
|
||||||
|
keycode 142 = XF86Open NoSymbol XF86Open NoSymbol XF86Open
|
||||||
|
keycode 143 = XF86Paste NoSymbol XF86Paste NoSymbol XF86Paste
|
||||||
|
keycode 144 = Find NoSymbol Find NoSymbol Find
|
||||||
|
keycode 145 = XF86Cut NoSymbol XF86Cut NoSymbol XF86Cut
|
||||||
|
keycode 146 = Help NoSymbol Help NoSymbol Help
|
||||||
|
keycode 147 = XF86MenuKB NoSymbol XF86MenuKB NoSymbol XF86MenuKB
|
||||||
|
keycode 148 = XF86Calculator NoSymbol XF86Calculator NoSymbol XF86Calculator
|
||||||
|
keycode 149 =
|
||||||
|
keycode 150 = XF86Sleep NoSymbol XF86Sleep NoSymbol XF86Sleep
|
||||||
|
keycode 151 = XF86WakeUp NoSymbol XF86WakeUp NoSymbol XF86WakeUp
|
||||||
|
keycode 152 = XF86Explorer NoSymbol XF86Explorer NoSymbol XF86Explorer
|
||||||
|
keycode 153 = XF86Send NoSymbol XF86Send NoSymbol XF86Send
|
||||||
|
keycode 154 =
|
||||||
|
keycode 155 = XF86Xfer NoSymbol XF86Xfer NoSymbol XF86Xfer
|
||||||
|
keycode 156 = XF86Launch1 NoSymbol XF86Launch1 NoSymbol XF86Launch1
|
||||||
|
keycode 157 = XF86Launch2 NoSymbol XF86Launch2 NoSymbol XF86Launch2
|
||||||
|
keycode 158 = XF86WWW NoSymbol XF86WWW NoSymbol XF86WWW
|
||||||
|
keycode 159 = XF86DOS NoSymbol XF86DOS NoSymbol XF86DOS
|
||||||
|
keycode 160 = XF86ScreenSaver NoSymbol XF86ScreenSaver NoSymbol XF86ScreenSaver
|
||||||
|
keycode 161 = XF86RotateWindows NoSymbol XF86RotateWindows NoSymbol XF86RotateWindows
|
||||||
|
keycode 162 = XF86TaskPane NoSymbol XF86TaskPane NoSymbol XF86TaskPane
|
||||||
|
keycode 163 = XF86Mail NoSymbol XF86Mail NoSymbol XF86Mail
|
||||||
|
keycode 164 = XF86Favorites NoSymbol XF86Favorites NoSymbol XF86Favorites
|
||||||
|
keycode 165 = XF86MyComputer NoSymbol XF86MyComputer NoSymbol XF86MyComputer
|
||||||
|
keycode 166 = XF86Back NoSymbol XF86Back NoSymbol XF86Back
|
||||||
|
keycode 167 = XF86Forward NoSymbol XF86Forward NoSymbol XF86Forward
|
||||||
|
keycode 168 =
|
||||||
|
keycode 169 = XF86Eject NoSymbol XF86Eject NoSymbol XF86Eject
|
||||||
|
keycode 170 = XF86Eject XF86Eject XF86Eject XF86Eject XF86Eject XF86Eject
|
||||||
|
keycode 171 = XF86AudioNext NoSymbol XF86AudioNext NoSymbol XF86AudioNext
|
||||||
|
keycode 172 = XF86AudioPlay XF86AudioPause XF86AudioPlay XF86AudioPause XF86AudioPlay XF86AudioPause
|
||||||
|
keycode 173 = XF86AudioPrev NoSymbol XF86AudioPrev NoSymbol XF86AudioPrev
|
||||||
|
keycode 174 = XF86AudioStop XF86Eject XF86AudioStop XF86Eject XF86AudioStop XF86Eject
|
||||||
|
keycode 175 = XF86AudioRecord NoSymbol XF86AudioRecord NoSymbol XF86AudioRecord
|
||||||
|
keycode 176 = XF86AudioRewind NoSymbol XF86AudioRewind NoSymbol XF86AudioRewind
|
||||||
|
keycode 177 = XF86Phone NoSymbol XF86Phone NoSymbol XF86Phone
|
||||||
|
keycode 178 =
|
||||||
|
keycode 179 = XF86Tools NoSymbol XF86Tools NoSymbol XF86Tools
|
||||||
|
keycode 180 = XF86HomePage NoSymbol XF86HomePage NoSymbol XF86HomePage
|
||||||
|
keycode 181 = XF86Reload NoSymbol XF86Reload NoSymbol XF86Reload
|
||||||
|
keycode 182 = XF86Close NoSymbol XF86Close NoSymbol XF86Close
|
||||||
|
keycode 183 =
|
||||||
|
keycode 184 =
|
||||||
|
keycode 185 = XF86ScrollUp NoSymbol XF86ScrollUp NoSymbol XF86ScrollUp
|
||||||
|
keycode 186 = XF86ScrollDown NoSymbol XF86ScrollDown NoSymbol XF86ScrollDown
|
||||||
|
keycode 187 = parenleft NoSymbol parenleft NoSymbol parenleft
|
||||||
|
keycode 188 = parenright NoSymbol parenright NoSymbol parenright
|
||||||
|
keycode 189 = XF86New NoSymbol XF86New NoSymbol XF86New
|
||||||
|
keycode 190 = Redo NoSymbol Redo NoSymbol Redo
|
||||||
|
keycode 191 = XF86Tools NoSymbol XF86Tools NoSymbol XF86Tools
|
||||||
|
keycode 192 = XF86Launch5 NoSymbol XF86Launch5 NoSymbol XF86Launch5
|
||||||
|
keycode 193 = XF86Launch6 NoSymbol XF86Launch6 NoSymbol XF86Launch6
|
||||||
|
keycode 194 = XF86Launch7 NoSymbol XF86Launch7 NoSymbol XF86Launch7
|
||||||
|
keycode 195 = XF86Launch8 NoSymbol XF86Launch8 NoSymbol XF86Launch8
|
||||||
|
keycode 196 = XF86Launch9 NoSymbol XF86Launch9 NoSymbol XF86Launch9
|
||||||
|
keycode 197 =
|
||||||
|
keycode 198 = XF86AudioMicMute NoSymbol XF86AudioMicMute NoSymbol XF86AudioMicMute
|
||||||
|
keycode 199 = XF86TouchpadToggle NoSymbol XF86TouchpadToggle NoSymbol XF86TouchpadToggle
|
||||||
|
keycode 200 = XF86TouchpadOn NoSymbol XF86TouchpadOn NoSymbol XF86TouchpadOn
|
||||||
|
keycode 201 = XF86TouchpadOff NoSymbol XF86TouchpadOff NoSymbol XF86TouchpadOff
|
||||||
|
keycode 202 =
|
||||||
|
keycode 203 = Mode_switch NoSymbol Mode_switch NoSymbol Mode_switch
|
||||||
|
keycode 204 = NoSymbol Alt_L NoSymbol Alt_L NoSymbol Alt_L
|
||||||
|
keycode 205 = NoSymbol Meta_L NoSymbol Meta_L NoSymbol Meta_L
|
||||||
|
keycode 206 = NoSymbol Super_L NoSymbol Super_L NoSymbol Super_L
|
||||||
|
keycode 207 = NoSymbol Hyper_L NoSymbol Hyper_L NoSymbol Hyper_L
|
||||||
|
keycode 208 = XF86AudioPlay NoSymbol XF86AudioPlay NoSymbol XF86AudioPlay
|
||||||
|
keycode 209 = XF86AudioPause NoSymbol XF86AudioPause NoSymbol XF86AudioPause
|
||||||
|
keycode 210 = XF86Launch3 NoSymbol XF86Launch3 NoSymbol XF86Launch3
|
||||||
|
keycode 211 = XF86Launch4 NoSymbol XF86Launch4 NoSymbol XF86Launch4
|
||||||
|
keycode 212 = XF86LaunchB NoSymbol XF86LaunchB NoSymbol XF86LaunchB
|
||||||
|
keycode 213 = XF86Suspend NoSymbol XF86Suspend NoSymbol XF86Suspend
|
||||||
|
keycode 214 = XF86Close NoSymbol XF86Close NoSymbol XF86Close
|
||||||
|
keycode 215 = XF86AudioPlay NoSymbol XF86AudioPlay NoSymbol XF86AudioPlay
|
||||||
|
keycode 216 = XF86AudioForward NoSymbol XF86AudioForward NoSymbol XF86AudioForward
|
||||||
|
keycode 217 =
|
||||||
|
keycode 218 = Print NoSymbol Print NoSymbol Print
|
||||||
|
keycode 219 =
|
||||||
|
keycode 220 = XF86WebCam NoSymbol XF86WebCam NoSymbol XF86WebCam
|
||||||
|
keycode 221 = XF86AudioPreset NoSymbol XF86AudioPreset NoSymbol XF86AudioPreset
|
||||||
|
keycode 222 =
|
||||||
|
keycode 223 = XF86Mail NoSymbol XF86Mail NoSymbol XF86Mail
|
||||||
|
keycode 224 = XF86Messenger NoSymbol XF86Messenger NoSymbol XF86Messenger
|
||||||
|
keycode 225 = XF86Search NoSymbol XF86Search NoSymbol XF86Search
|
||||||
|
keycode 226 = XF86Go NoSymbol XF86Go NoSymbol XF86Go
|
||||||
|
keycode 227 = XF86Finance NoSymbol XF86Finance NoSymbol XF86Finance
|
||||||
|
keycode 228 = XF86Game NoSymbol XF86Game NoSymbol XF86Game
|
||||||
|
keycode 229 = XF86Shop NoSymbol XF86Shop NoSymbol XF86Shop
|
||||||
|
keycode 230 =
|
||||||
|
keycode 231 = Cancel NoSymbol Cancel NoSymbol Cancel
|
||||||
|
keycode 232 = XF86MonBrightnessDown NoSymbol XF86MonBrightnessDown NoSymbol XF86MonBrightnessDown
|
||||||
|
keycode 233 = XF86MonBrightnessUp NoSymbol XF86MonBrightnessUp NoSymbol XF86MonBrightnessUp
|
||||||
|
keycode 234 = XF86AudioMedia NoSymbol XF86AudioMedia NoSymbol XF86AudioMedia
|
||||||
|
keycode 235 = XF86Display NoSymbol XF86Display NoSymbol XF86Display
|
||||||
|
keycode 236 = XF86KbdLightOnOff NoSymbol XF86KbdLightOnOff NoSymbol XF86KbdLightOnOff
|
||||||
|
keycode 237 = XF86KbdBrightnessDown NoSymbol XF86KbdBrightnessDown NoSymbol XF86KbdBrightnessDown
|
||||||
|
keycode 238 = XF86KbdBrightnessUp NoSymbol XF86KbdBrightnessUp NoSymbol XF86KbdBrightnessUp
|
||||||
|
keycode 239 = XF86Send NoSymbol XF86Send NoSymbol XF86Send
|
||||||
|
keycode 240 = XF86Reply NoSymbol XF86Reply NoSymbol XF86Reply
|
||||||
|
keycode 241 = XF86MailForward NoSymbol XF86MailForward NoSymbol XF86MailForward
|
||||||
|
keycode 242 = XF86Save NoSymbol XF86Save NoSymbol XF86Save
|
||||||
|
keycode 243 = XF86Documents NoSymbol XF86Documents NoSymbol XF86Documents
|
||||||
|
keycode 244 = XF86Battery NoSymbol XF86Battery NoSymbol XF86Battery
|
||||||
|
keycode 245 = XF86Bluetooth NoSymbol XF86Bluetooth NoSymbol XF86Bluetooth
|
||||||
|
keycode 246 = XF86WLAN NoSymbol XF86WLAN NoSymbol XF86WLAN
|
||||||
|
keycode 247 =
|
||||||
|
keycode 248 =
|
||||||
|
keycode 249 =
|
||||||
|
keycode 250 =
|
||||||
|
keycode 251 = XF86MonBrightnessCycle NoSymbol XF86MonBrightnessCycle NoSymbol XF86MonBrightnessCycle
|
||||||
|
keycode 252 =
|
||||||
|
keycode 253 =
|
||||||
|
keycode 254 = XF86WWAN NoSymbol XF86WWAN NoSymbol XF86WWAN
|
||||||
|
keycode 255 = XF86RFKill NoSymbol XF86RFKill NoSymbol XF86RFKill
|
||||||
|
|
||||||
|
!bind control to control
|
||||||
|
!bind caps lock to escape
|
||||||
|
!bind shift+caps to caps
|
||||||
|
|
||||||
|
!for some reason ctrl and caps lock got switched again so switch keycode and
|
||||||
|
!order a bit
|
||||||
|
clear lock
|
||||||
|
clear control
|
||||||
|
keycode 37 = Escape Caps_Lock NoSymbol NoSymbol
|
||||||
|
keycode 66 = Control_L
|
||||||
|
add control = Control_L Control_R
|
||||||
|
|
||||||
|
!keycode 133 = Super_L NoSymbol NoSymbol Super_L
|
75
dotfiles/.bash_aliases
Normal file
75
dotfiles/.bash_aliases
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
alias suda='sudo'
|
||||||
|
|
||||||
|
## Colorls
|
||||||
|
alias lca='colorls -A --sd -X'
|
||||||
|
alias lc='colorls --sd -X'
|
||||||
|
alias lcl='colorls --sd -Xl'
|
||||||
|
alias lcla='colorls -lA --sd -X'
|
||||||
|
alias lcal='colorls -lA --sd -X'
|
||||||
|
|
||||||
|
## Pacman/Yay
|
||||||
|
# update without noconfirm
|
||||||
|
alias spu='sudo pacman -Syu'
|
||||||
|
# cleanup orphaned packages
|
||||||
|
alias cleanup='suda pacman -Rns $(pacman -Qtdq)'
|
||||||
|
# update everything
|
||||||
|
alias upall="paru -Syu --noconfirm"
|
||||||
|
|
||||||
|
## Npm/Yarn
|
||||||
|
alias ns='npm start'
|
||||||
|
alias yb='yarn build'
|
||||||
|
alias ys='yarn start'
|
||||||
|
alias yi='yarn install'
|
||||||
|
|
||||||
|
## Git
|
||||||
|
alias gs='git status'
|
||||||
|
alias gc='git commit'
|
||||||
|
alias gp='git push'
|
||||||
|
|
||||||
|
## Helpful
|
||||||
|
alias count='ls -l | wc -l'
|
||||||
|
# use all cores
|
||||||
|
alias uac="sh ~/.bin/main/000*"
|
||||||
|
alias update-grub="sudo grub-mkconfig -o /boot/grub/grub.cfg"
|
||||||
|
alias update-fc="suda fc-cache -fv"
|
||||||
|
alias unlock-db='suda rm /var/lib/pacman/db.lck'
|
||||||
|
alias dn='deactivate_node'
|
||||||
|
alias logs='ksystemlog &'
|
||||||
|
|
||||||
|
## youtube-dl
|
||||||
|
alias yta-best="youtube-dl --extract-audio --audio-format best"
|
||||||
|
alias yta-mp3="youtube-dl --extract-audio --audio-format mp3 --config-location ~/.config/youtube-dl/config.audio"
|
||||||
|
alias ytv-best="youtube-dl -f bestvideo+bestaudio"
|
||||||
|
# get error message from journalctl
|
||||||
|
alias jctl='journalctl -p 3 -xb'
|
||||||
|
|
||||||
|
## This is specific to WSL 2. If the WSL 2 VM goes rogue and decides not to free
|
||||||
|
## up memory, this command will free your memory after about 20-30 seconds.
|
||||||
|
## Details: https://github.com/microsoft/WSL/issues/4166#issuecomment-628493643
|
||||||
|
alias drop_cache="sudo sh -c \"echo 3 >'/proc/sys/vm/drop_caches' && swapoff -a && swapon -a && printf '\n%s\n' 'Ram-cache and Swap Cleared'\""
|
||||||
|
|
||||||
|
# mkdir
|
||||||
|
alias mkdir='mkdir -p'
|
||||||
|
|
||||||
|
## I'm Lazy
|
||||||
|
alias scripts='cd /home/sudacode/scripts'
|
||||||
|
alias freud='cd /home/sudacode/'
|
||||||
|
alias c=clear
|
||||||
|
alias btop=bpytop
|
||||||
|
alias fd='firebase deploy'
|
||||||
|
alias open='xdg-open'
|
||||||
|
alias glow='glow -p'
|
||||||
|
alias jn='jupyter-notebook'
|
||||||
|
alias blog='cd ~/projects/React/github/Sudacode-Blog-V3'
|
||||||
|
alias venv='source env/bin/activate'
|
||||||
|
alias eecs484='cd ~/projects/eecs484/project4'
|
||||||
|
alias music=ncmpcpp
|
||||||
|
alias reload='source ~/.zshrc'
|
||||||
|
alias golf='cd ~/projects/Python/SudacodeGolf/ && source env/bin/activate'
|
||||||
|
alias prolog=swipl
|
||||||
|
alias chess='cd ~/projects/React/github/sudacode-chess/'
|
||||||
|
alias temps='curl wttr.in'
|
||||||
|
alias whatsmyip='http ipinfo.io'
|
||||||
|
alias edit='sudoedit'
|
||||||
|
alias ports='sudo netstat -tupln'
|
||||||
|
alias ncdu='ncdu --color dark'
|
186
dotfiles/.bashrc
Normal file
186
dotfiles/.bashrc
Normal file
@ -0,0 +1,186 @@
|
|||||||
|
# Syntax hilighting
|
||||||
|
# Add this lines at the top of .bashrc:
|
||||||
|
#[[ $- == *i* ]] && source /home/ksyasuda/Downloads/ble.sh/out/ble.sh --noattach
|
||||||
|
|
||||||
|
|
||||||
|
export PATH="$HOME/scripts:$PATH"
|
||||||
|
export EDITOR=vim
|
||||||
|
|
||||||
|
source ~/.bash_aliases
|
||||||
|
|
||||||
|
# ~/.bashrc: executed by bash(1) for non-login shells.
|
||||||
|
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
|
||||||
|
# for examples
|
||||||
|
|
||||||
|
# If not running interactively, don't do anything
|
||||||
|
case $- in
|
||||||
|
*i*) ;;
|
||||||
|
*) return;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# don't put duplicate lines or lines starting with space in the history.
|
||||||
|
# See bash(1) for more options
|
||||||
|
HISTCONTROL=ignoreboth
|
||||||
|
|
||||||
|
# append to the history file, don't overwrite it
|
||||||
|
shopt -s histappend
|
||||||
|
|
||||||
|
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
||||||
|
HISTSIZE=1000
|
||||||
|
HISTFILESIZE=2000
|
||||||
|
|
||||||
|
# check the window size after each command and, if necessary,
|
||||||
|
# update the values of LINES and COLUMNS.
|
||||||
|
shopt -s checkwinsize
|
||||||
|
|
||||||
|
# If set, the pattern "**" used in a pathname expansion context will
|
||||||
|
# match all files and zero or more directories and subdirectories.
|
||||||
|
#shopt -s globstar
|
||||||
|
|
||||||
|
# make less more friendly for non-text input files, see lesspipe(1)
|
||||||
|
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
||||||
|
|
||||||
|
# set variable identifying the chroot you work in (used in the prompt below)
|
||||||
|
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
|
||||||
|
debian_chroot=$(cat /etc/debian_chroot)
|
||||||
|
fi
|
||||||
|
|
||||||
|
# set a fancy prompt (non-color, unless we know we "want" color)
|
||||||
|
case "$TERM" in
|
||||||
|
xterm-color|*-256color) color_prompt=yes;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# uncomment for a colored prompt, if the terminal has the capability; turned
|
||||||
|
# off by default to not distract the user: the focus in a terminal window
|
||||||
|
# should be on the output of commands, not on the prompt
|
||||||
|
#force_color_prompt=yes
|
||||||
|
|
||||||
|
if [ -n "$force_color_prompt" ]; then
|
||||||
|
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
|
||||||
|
# We have color support; assume it's compliant with Ecma-48
|
||||||
|
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
|
||||||
|
# a case would tend to support setf rather than setaf.)
|
||||||
|
color_prompt=yes
|
||||||
|
else
|
||||||
|
color_prompt=
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$color_prompt" = yes ]; then
|
||||||
|
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
||||||
|
else
|
||||||
|
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
|
||||||
|
fi
|
||||||
|
unset color_prompt force_color_prompt
|
||||||
|
|
||||||
|
# If this is an xterm set the title to user@host:dir
|
||||||
|
case "$TERM" in
|
||||||
|
xterm*|rxvt*)
|
||||||
|
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# enable color support of ls and also add handy aliases
|
||||||
|
if [ -x /usr/bin/dircolors ]; then
|
||||||
|
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||||||
|
alias ls='ls --color=auto'
|
||||||
|
#alias dir='dir --color=auto'
|
||||||
|
#alias vdir='vdir --color=auto'
|
||||||
|
|
||||||
|
alias grep='grep --color=auto'
|
||||||
|
alias fgrep='fgrep --color=auto'
|
||||||
|
alias egrep='egrep --color=auto'
|
||||||
|
fi
|
||||||
|
|
||||||
|
# colored GCC warnings and errors
|
||||||
|
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
||||||
|
|
||||||
|
# some more ls aliases
|
||||||
|
alias ll='ls -alF'
|
||||||
|
alias la='ls -A'
|
||||||
|
alias l='ls -CF'
|
||||||
|
|
||||||
|
# Add an "alert" alias for long running commands. Use like so:
|
||||||
|
# sleep 10; alert
|
||||||
|
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
||||||
|
|
||||||
|
# Alias definitions.
|
||||||
|
# You may want to put all your additions into a separate file like
|
||||||
|
# ~/.bash_aliases, instead of adding them here directly.
|
||||||
|
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
|
||||||
|
|
||||||
|
if [ -f ~/.bash_aliases ]; then
|
||||||
|
. ~/.bash_aliases
|
||||||
|
fi
|
||||||
|
|
||||||
|
# enable programmable completion features (you don't need to enable
|
||||||
|
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
||||||
|
# sources /etc/bash.bashrc).
|
||||||
|
if ! shopt -oq posix; then
|
||||||
|
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||||||
|
. /usr/share/bash-completion/bash_completion
|
||||||
|
elif [ -f /etc/bash_completion ]; then
|
||||||
|
. /etc/bash_completion
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
gb() {
|
||||||
|
echo -n '[' && git branch 2>/dev/null | grep '^*' | colrm 1 2 | tr -d '\n' && echo -n '*]'
|
||||||
|
}
|
||||||
|
|
||||||
|
git_branch() {
|
||||||
|
gb | sed 's/\[\*\]//'
|
||||||
|
}
|
||||||
|
|
||||||
|
test_colors() {
|
||||||
|
read nice
|
||||||
|
if type $nice &> /dev/null; then
|
||||||
|
export PS1='\e[0;92m'
|
||||||
|
else
|
||||||
|
export PS1='\e[0;91m'
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#LS_COLORS="di=42;1;30:*.mp3=1;32;41:fi=0;91:*.c=1;96:*.js=1;93:*.h=1;35:ex=1;32:*.html=1;36:*.cpp=1;96:*.txt=1;91:*Makefile=1;35:*.css=1;36:*.as=1;35:ow=1;42;93:*.ttf=0;91:*.png=0;91:*README=4;31:*.jpg=0;91:*.md=4;31:*.json=1;94"
|
||||||
|
|
||||||
|
LS_COLORS="di=42;1;95:*.mp3=1;32;41:fi=0;91:*.c=1;96:*.js=1;93:*.h=1;35:ex=1;32:*.html=1;36:*.cpp=1;96:*.txt=1;91:*Makefile=1;35:*.css=1;36:*.as=1;35:ow=1;42;93:*.ttf=0;91:*.png=0;91:*README=4;31:*.jpg=0;91:*.md=4;31:*.json=1;94"
|
||||||
|
|
||||||
|
|
||||||
|
export VISUAL=vim
|
||||||
|
PS2="\e[41;94m===>\e[0m \e[91m"
|
||||||
|
|
||||||
|
# export PATH=$PATH:/home/ksyasuda/go/bin
|
||||||
|
|
||||||
|
|
||||||
|
PS1="\033[1;35m[ \d | \@ ]\033[0m\e[44;0;36m[\w]\e[1;92m\$(git_branch)\e[44;0;91m\n$: "
|
||||||
|
|
||||||
|
##Powerline configuration
|
||||||
|
#if [ -f /usr/share/powerline/bindings/bash/powerline.sh ]; then
|
||||||
|
# powerline-daemon -q
|
||||||
|
# POWERLINE_BASH_CONTINUATION=1
|
||||||
|
# POWERLINE_BASH_SELECT=1
|
||||||
|
# source /usr/share/powerline/bindings/bash/powerline.sh
|
||||||
|
#fi
|
||||||
|
|
||||||
|
|
||||||
|
# for use with xserver... causes screenfetch and neofetch to not work unless xserver is running
|
||||||
|
#export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0.0
|
||||||
|
|
||||||
|
#sudo /etc/init.d/dbus start &> /dev/null
|
||||||
|
|
||||||
|
|
||||||
|
# Syntax hilighting
|
||||||
|
# Add this line at the end of .bashrc:
|
||||||
|
#((_ble_bash)) && ble-attach
|
||||||
|
|
||||||
|
# export GTK_IM_MODULE=xim
|
||||||
|
# export XMODIFIERS=@im=ibus
|
||||||
|
# export QT_IM_MODULE=xim
|
||||||
|
|
||||||
|
|
||||||
|
export NVM_DIR="$HOME/.nvm"
|
||||||
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||||
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
370
dotfiles/.doom_help.org
Normal file
370
dotfiles/.doom_help.org
Normal file
@ -0,0 +1,370 @@
|
|||||||
|
SPC
|
||||||
|
* SPC: find file
|
||||||
|
, switch buffer
|
||||||
|
. browse files
|
||||||
|
: MX
|
||||||
|
; EX
|
||||||
|
< switch buffer
|
||||||
|
` eval
|
||||||
|
u universal arg
|
||||||
|
x pop up scratch
|
||||||
|
~ toggle last popup
|
||||||
|
* TAB workspace
|
||||||
|
TAB Display tab bar
|
||||||
|
. switch workspace
|
||||||
|
0 last workspace
|
||||||
|
1-9 : x workspace
|
||||||
|
L load session
|
||||||
|
S autosave current session
|
||||||
|
X delete sessions
|
||||||
|
[ previous workspace
|
||||||
|
] next workspace
|
||||||
|
d delete workspace
|
||||||
|
l load workspace from file
|
||||||
|
n workspace
|
||||||
|
s save workspace to file
|
||||||
|
x kill all buffers'
|
||||||
|
* / search
|
||||||
|
i symbols
|
||||||
|
I symbols accr. buffers
|
||||||
|
b buffer
|
||||||
|
d directory
|
||||||
|
o Online providers
|
||||||
|
p project
|
||||||
|
|
||||||
|
*** [ prev
|
||||||
|
S spelling corr
|
||||||
|
[ text size
|
||||||
|
b buffer
|
||||||
|
d diff
|
||||||
|
e error
|
||||||
|
h smart jump
|
||||||
|
s spelling error
|
||||||
|
t todo
|
||||||
|
w workspace
|
||||||
|
*** ] next
|
||||||
|
S spelling corr
|
||||||
|
[ text size
|
||||||
|
b buffer
|
||||||
|
d diff
|
||||||
|
e error
|
||||||
|
h smart jump
|
||||||
|
s spelling error
|
||||||
|
t todo
|
||||||
|
w workspace
|
||||||
|
*** SPC
|
||||||
|
SPC: find file
|
||||||
|
, switch buffer
|
||||||
|
. browse files
|
||||||
|
: MX
|
||||||
|
; EX
|
||||||
|
< switch buffer
|
||||||
|
` eval
|
||||||
|
u universal arg
|
||||||
|
x pop up scratch
|
||||||
|
~ toggle last popup
|
||||||
|
*** TAB workspace
|
||||||
|
TAB Display tab bar
|
||||||
|
. switch workspace
|
||||||
|
0 last workspace
|
||||||
|
1-9 : x workspace
|
||||||
|
L load session
|
||||||
|
S autosave current session
|
||||||
|
X delete sessions
|
||||||
|
[ previous workspace
|
||||||
|
] next workspace
|
||||||
|
d delete workspace
|
||||||
|
l load workspace from file
|
||||||
|
n workspace
|
||||||
|
s save workspace to file
|
||||||
|
x kill all buffers'
|
||||||
|
**** / search
|
||||||
|
i symbols
|
||||||
|
I symbols accr. buffers
|
||||||
|
b buffer
|
||||||
|
d directory
|
||||||
|
o Online providers
|
||||||
|
p project
|
||||||
|
**** [ prev
|
||||||
|
S spelling corr
|
||||||
|
[ text size
|
||||||
|
b buffer
|
||||||
|
d diff
|
||||||
|
e error
|
||||||
|
h smart jump
|
||||||
|
s spelling error
|
||||||
|
t todo
|
||||||
|
w workspace
|
||||||
|
**** ] next
|
||||||
|
S spelling corr
|
||||||
|
[ text size
|
||||||
|
b buffer
|
||||||
|
d diff
|
||||||
|
e error
|
||||||
|
h smart jump
|
||||||
|
s spelling error
|
||||||
|
t todo
|
||||||
|
w workspace
|
||||||
|
**** b buffer
|
||||||
|
B switch buffer
|
||||||
|
S sudo edit
|
||||||
|
[ prev
|
||||||
|
] next
|
||||||
|
b switch ws buffer
|
||||||
|
k kill buffer
|
||||||
|
n new empty buffer
|
||||||
|
o kill other buffers
|
||||||
|
s save buffer
|
||||||
|
x pop scratch buffer
|
||||||
|
z burry buffer
|
||||||
|
**** c code
|
||||||
|
d jump to def
|
||||||
|
D jump to ref
|
||||||
|
e evaluate buffer
|
||||||
|
E evaluate and replace
|
||||||
|
b build
|
||||||
|
r repl
|
||||||
|
x list errors
|
||||||
|
**** f file
|
||||||
|
. find file
|
||||||
|
/ find file in project
|
||||||
|
> sudo find file
|
||||||
|
? find file from here
|
||||||
|
E Browse emacs.d
|
||||||
|
P browse private config
|
||||||
|
R recent project files
|
||||||
|
a find other file
|
||||||
|
c open project editor config
|
||||||
|
d find dir
|
||||||
|
e find file in emacs.d
|
||||||
|
p find file in private config
|
||||||
|
r recent files
|
||||||
|
y yank filename
|
||||||
|
**** g git
|
||||||
|
c magit commit
|
||||||
|
C magit clone
|
||||||
|
G list gists
|
||||||
|
L list reps
|
||||||
|
P magic pull popup
|
||||||
|
R git revert
|
||||||
|
S git stage
|
||||||
|
U git unstange hunk
|
||||||
|
[ previous
|
||||||
|
] next
|
||||||
|
b magic blame
|
||||||
|
d magic dispatch
|
||||||
|
f magic find
|
||||||
|
g magit status
|
||||||
|
i init repo
|
||||||
|
l magit buffer log
|
||||||
|
p push popup
|
||||||
|
r git revert hunk
|
||||||
|
s git status
|
||||||
|
t git time matchine
|
||||||
|
**** o open
|
||||||
|
M mail
|
||||||
|
N neotree
|
||||||
|
O reveal proj finder
|
||||||
|
b browser
|
||||||
|
d debugger
|
||||||
|
n neotree
|
||||||
|
o reveal in finder
|
||||||
|
r repl
|
||||||
|
t terminal
|
||||||
|
*** p project
|
||||||
|
! run cmd in project root
|
||||||
|
. browse
|
||||||
|
/ find in project
|
||||||
|
c compile project
|
||||||
|
o find other file
|
||||||
|
p switch project
|
||||||
|
r recent project files
|
||||||
|
t list project tasks
|
||||||
|
x invalidate cache
|
||||||
|
*** q quit
|
||||||
|
q save and quit
|
||||||
|
Q quit
|
||||||
|
*** r remote
|
||||||
|
. browse remote files
|
||||||
|
> detect remote changes
|
||||||
|
D diff local and remote
|
||||||
|
U upload local
|
||||||
|
d download remote
|
||||||
|
u upload local
|
||||||
|
*** s snippets
|
||||||
|
S find snippet
|
||||||
|
i insert snippet
|
||||||
|
n new snippet
|
||||||
|
s find snippet for mode
|
||||||
|
*** t toggle
|
||||||
|
F frame fullscreen
|
||||||
|
I indente
|
||||||
|
b big mode
|
||||||
|
f flycheck
|
||||||
|
g evil goggles
|
||||||
|
h impatient modei indet guides
|
||||||
|
l line numbers
|
||||||
|
p org-tree-slide-mode
|
||||||
|
s flyspell
|
||||||
|
*** w window
|
||||||
|
+ increase height
|
||||||
|
- descr height
|
||||||
|
< dec width
|
||||||
|
= balance windows
|
||||||
|
> incr width
|
||||||
|
H move left
|
||||||
|
J move down
|
||||||
|
K move up
|
||||||
|
L move right
|
||||||
|
R rotate up
|
||||||
|
S split
|
||||||
|
W prev
|
||||||
|
_ set height
|
||||||
|
b bottom right
|
||||||
|
c close window
|
||||||
|
h left
|
||||||
|
j down
|
||||||
|
k up
|
||||||
|
l right
|
||||||
|
n new
|
||||||
|
o enlargen
|
||||||
|
p mru
|
||||||
|
q quit
|
||||||
|
r rotate down
|
||||||
|
s split
|
||||||
|
t top left
|
||||||
|
u winner undo
|
||||||
|
v vsplit
|
||||||
|
w next
|
||||||
|
| set width b buffer
|
||||||
|
B switch buffer
|
||||||
|
S sudo edit
|
||||||
|
[ prev
|
||||||
|
] next
|
||||||
|
b switch ws buffer
|
||||||
|
k kill buffer
|
||||||
|
n new empty buffer
|
||||||
|
o kill other buffers
|
||||||
|
s save buffer
|
||||||
|
x pop scratch buffer
|
||||||
|
z burry buffer
|
||||||
|
*** c code
|
||||||
|
d jump to def
|
||||||
|
D jump to ref
|
||||||
|
e evaluate buffer
|
||||||
|
E evaluate and replace
|
||||||
|
b build
|
||||||
|
r repl
|
||||||
|
x list errors
|
||||||
|
*** f file
|
||||||
|
. find file
|
||||||
|
/ find file in project
|
||||||
|
> sudo find file
|
||||||
|
? find file from here
|
||||||
|
E Browse emacs.d
|
||||||
|
P browse private config
|
||||||
|
R recent project files
|
||||||
|
a find other file
|
||||||
|
c open project editor config
|
||||||
|
d find dir
|
||||||
|
e find file in emacs.d
|
||||||
|
p find file in private config
|
||||||
|
r recent files
|
||||||
|
y yank filename
|
||||||
|
*** g git
|
||||||
|
c magit commit
|
||||||
|
C magit clone
|
||||||
|
G list gists
|
||||||
|
L list reps
|
||||||
|
P magic pull popup
|
||||||
|
R git revert
|
||||||
|
S git stage
|
||||||
|
U git unstange hunk
|
||||||
|
[ previous
|
||||||
|
] next
|
||||||
|
b magic blame
|
||||||
|
d magic dispatch
|
||||||
|
f magic find
|
||||||
|
g magit status
|
||||||
|
i init repo
|
||||||
|
l magit buffer log
|
||||||
|
p push popup
|
||||||
|
r git revert hunk
|
||||||
|
s git status
|
||||||
|
t git time matchine
|
||||||
|
*** o open
|
||||||
|
M mail
|
||||||
|
N neotree
|
||||||
|
O reveal proj finder
|
||||||
|
b browser
|
||||||
|
d debugger
|
||||||
|
n neotree
|
||||||
|
o reveal in finder
|
||||||
|
r repl
|
||||||
|
t terminal
|
||||||
|
*** p project
|
||||||
|
! run cmd in project root
|
||||||
|
. browse
|
||||||
|
/ find in project
|
||||||
|
c compile project
|
||||||
|
o find other file
|
||||||
|
p switch project
|
||||||
|
r recent project files
|
||||||
|
t list project tasks
|
||||||
|
x invalidate cache
|
||||||
|
q quit
|
||||||
|
q save and quit
|
||||||
|
Q quit
|
||||||
|
r remote
|
||||||
|
. browse remote files
|
||||||
|
> detect remote changes
|
||||||
|
D diff local and remote
|
||||||
|
U upload local
|
||||||
|
d download remote
|
||||||
|
u upload local
|
||||||
|
s snippets
|
||||||
|
S find snippet
|
||||||
|
i insert snippet
|
||||||
|
n new snippet
|
||||||
|
s find snippet for mode
|
||||||
|
t toggle
|
||||||
|
F frame fullscreen
|
||||||
|
I indente
|
||||||
|
b big mode
|
||||||
|
f flycheck
|
||||||
|
g evil goggles
|
||||||
|
h impatient modei indet guides
|
||||||
|
l line numbers
|
||||||
|
p org-tree-slide-mode
|
||||||
|
s flyspell
|
||||||
|
w window
|
||||||
|
+ increase height
|
||||||
|
- descr height
|
||||||
|
< dec width
|
||||||
|
= balance windows
|
||||||
|
> incr width
|
||||||
|
H move left
|
||||||
|
J move down
|
||||||
|
K move up
|
||||||
|
L move right
|
||||||
|
R rotate up
|
||||||
|
S split
|
||||||
|
W prev
|
||||||
|
_ set height
|
||||||
|
b bottom right
|
||||||
|
c close window
|
||||||
|
h left
|
||||||
|
j down
|
||||||
|
k up
|
||||||
|
l right
|
||||||
|
n new
|
||||||
|
o enlargen
|
||||||
|
p mru
|
||||||
|
q quit
|
||||||
|
r rotate down
|
||||||
|
s split
|
||||||
|
t top left
|
||||||
|
u winner undo
|
||||||
|
v vsplit
|
||||||
|
w next
|
||||||
|
| set width
|
3
dotfiles/.gitconfig
Normal file
3
dotfiles/.gitconfig
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[user]
|
||||||
|
name = ksyasuda
|
||||||
|
email = ksyasuda@umich.edu
|
4
dotfiles/.gitignore
vendored
Normal file
4
dotfiles/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
.git
|
||||||
|
.vscode
|
||||||
|
env/*
|
||||||
|
__pycache__/*
|
527
dotfiles/.help.md
Normal file
527
dotfiles/.help.md
Normal file
@ -0,0 +1,527 @@
|
|||||||
|
# Help / Useful commands
|
||||||
|
|
||||||
|
## tmux
|
||||||
|
tmux new -s [name] # start new session named [name]
|
||||||
|
tmux a -t [name] # attatch to session named [name]
|
||||||
|
tmux ls # list tmux sessions
|
||||||
|
tmux kill-ses -t [name] # kill tmux session named [name]
|
||||||
|
|
||||||
|
### tmux keybindings
|
||||||
|
C+b $ # rename session
|
||||||
|
C+b % # vertical split
|
||||||
|
C+b " # horizontal split
|
||||||
|
C+b d # detach from session
|
||||||
|
C+b c # create new tab
|
||||||
|
C+b n # next tab
|
||||||
|
|
||||||
|
## sybmolic links
|
||||||
|
ln -s [file] [symbolic link] # creates a symbolic link for [file]
|
||||||
|
ln -sr [file] [path_to_sym_file] # creates symlink in a diff directory
|
||||||
|
|
||||||
|
## yarn
|
||||||
|
yarn global add [package] # adds a package globally
|
||||||
|
yard add [package] # add a package
|
||||||
|
yarn create react-app [name] # create-react-app with yarn
|
||||||
|
|
||||||
|
## firebase
|
||||||
|
firebase deploy # deploy code to firebase
|
||||||
|
firebase serve # run local server through firebase
|
||||||
|
firebase projects:list # list all projects
|
||||||
|
|
||||||
|
## curl
|
||||||
|
curl [web_address] # dump a webpage to the terminal
|
||||||
|
curl -L [address] # follow a link and dump the results
|
||||||
|
curl --verbose probably also -v # run with verbose
|
||||||
|
|
||||||
|
## nmap
|
||||||
|
nmap [web-address] # see what ports are open at address
|
||||||
|
sudo lsof -i -P -n | grep LISTEN # listen for stuff on ports
|
||||||
|
|
||||||
|
## pip
|
||||||
|
pip list # list pip packages installed
|
||||||
|
|
||||||
|
## python virtual env
|
||||||
|
python3 -m venv env # create the env directory
|
||||||
|
source env/bin/activate # activate the virtual environment
|
||||||
|
or . env/bin/activate
|
||||||
|
echo $VIRTUAL_ENV # prints the path to the virtual env
|
||||||
|
which -a python # lists the install locations of python
|
||||||
|
deactivate # when in a virtual session deactivates it
|
||||||
|
|
||||||
|
## tar
|
||||||
|
tar [address] # download a file from address
|
||||||
|
|
||||||
|
## vim
|
||||||
|
|
||||||
|
:sp [filename] - Opens a new file and splits your screen horizontally to show more than one buffer
|
||||||
|
|
||||||
|
:vsp [filename] - Opens a new file and splits your screen vertically to show more than one buffer
|
||||||
|
set nonumber # remove line numbers from file
|
||||||
|
Ctrl+w h # shift focus left pane
|
||||||
|
Ctrl+w l # shift fous right pane
|
||||||
|
:nohls # remove search hilighting until next search
|
||||||
|
cw # delete word and enter insert mode
|
||||||
|
^u # go up half a page
|
||||||
|
^d # go down half a page
|
||||||
|
s/<pattern>/<replace> # search and replace for pattern
|
||||||
|
V [select line] # Use visual line to select multiple lines
|
||||||
|
:g/^$/d # Remove all blank lines from a file
|
||||||
|
"xyy # Yank line to register x
|
||||||
|
"xp # Paste line from register x
|
||||||
|
"+y # yank into the system clipboard register
|
||||||
|
"+p # paste from the system clipboard register
|
||||||
|
zg # add word to local dictionary (spellcheck)
|
||||||
|
|
||||||
|
## markdown
|
||||||
|
grip <markdown file> # open a live-server for markdown file
|
||||||
|
**<>** # bold
|
||||||
|
--- # line
|
||||||
|
[...](link) # inline-style link
|
||||||
|
[desc](link "hover title") # inline-style link with hover title
|
||||||
|
|
||||||
|
## pacman
|
||||||
|
|
||||||
|
pacman -Syu --ignore=[package name] # update/upgrade all but packages in ignore
|
||||||
|
pacman -Rs package_name # remove a package and all deps not needed
|
||||||
|
pacman -Rsu package_name # if above command does not work
|
||||||
|
pacman -Qtdq # check for orphaned packages
|
||||||
|
pacman -Rns $(pacman -Qtdq) # remove orphaned packages
|
||||||
|
rm /var/lib/pacman/db.lck # remove the lock file for pacman
|
||||||
|
pacman -U /var/cache/pacman/pkg/package-old_version.pkg.tar.type # downgrade package
|
||||||
|
|
||||||
|
## ctags
|
||||||
|
|
||||||
|
ctags -R . # index the current directory with ctags
|
||||||
|
|
||||||
|
## ssh
|
||||||
|
|
||||||
|
ssh -i eecs485deploy.pem ubuntu@ec2-3-137-139-85.us-east-2.compute.amazonaws.com
|
||||||
|
ssh -p [port] user@ip
|
||||||
|
~/.ssh/config # file to change configuration for ssh
|
||||||
|
|
||||||
|
## insta485 server-side
|
||||||
|
gunicorn -b localhost:8000 -w 2 -D insta485:app # Start the server
|
||||||
|
pgrep -af gunicorn # list running guinicorn jobs
|
||||||
|
pkill -f gunicorn # stop the gunicorn server
|
||||||
|
|
||||||
|
## wget
|
||||||
|
|
||||||
|
wget [address] # download a file/files
|
||||||
|
-P # specify a directory
|
||||||
|
-c # allow to save location on INT
|
||||||
|
|
||||||
|
## unzip
|
||||||
|
|
||||||
|
unzip (file) # unzips zip file
|
||||||
|
|
||||||
|
## wine
|
||||||
|
|
||||||
|
wine (file) # install a windows file
|
||||||
|
winefile # opens the windows file system
|
||||||
|
|
||||||
|
## onedrive
|
||||||
|
|
||||||
|
onedrive --synchronize # sync the onedrive folder to the cloud
|
||||||
|
|
||||||
|
## text2pdf
|
||||||
|
|
||||||
|
text2pdf [input file] > [output] # convert input file to pdf named output
|
||||||
|
|
||||||
|
## netstat
|
||||||
|
|
||||||
|
netstat -ltnp | grep -w ':PORT' # show process running on port PORT
|
||||||
|
l - only show lisening sockets
|
||||||
|
t - display tcp connections
|
||||||
|
n - show numerical addresses
|
||||||
|
p - show PID and process name
|
||||||
|
grep -w - matching of exact string
|
||||||
|
netstat -tupan
|
||||||
|
|
||||||
|
## japanese keyboard
|
||||||
|
|
||||||
|
ibus-setup # start daemon and launch config
|
||||||
|
Ctrl+Alt+Shift # switch between languages
|
||||||
|
|
||||||
|
## httpie
|
||||||
|
|
||||||
|
http [url] # send get request with pretty printing/colors
|
||||||
|
|
||||||
|
## tcm - Typed CSS Modules # generate styles.css.d.ts file
|
||||||
|
|
||||||
|
tsm [directory or file] # generate styles.d.ts for each file or specific file
|
||||||
|
|
||||||
|
ranger
|
||||||
|
|
||||||
|
ranger # open text-based file-manage
|
||||||
|
|
||||||
|
## nmcli # netwrok manager command line interface
|
||||||
|
|
||||||
|
nmcli device # lists all device
|
||||||
|
nmcli device wifi # list wifi networks
|
||||||
|
nmcli device connct wlp1s0 -ask # connect to wifi and enter password
|
||||||
|
|
||||||
|
## picom # to blur stuff
|
||||||
|
|
||||||
|
picom & # run picom in background
|
||||||
|
|
||||||
|
## i3-gaps
|
||||||
|
|
||||||
|
Alt+Shift+G # open up the gap manager
|
||||||
|
|
||||||
|
## feg # set background image
|
||||||
|
|
||||||
|
feh --bg-scale ~/OneDrive/Pictures/what\ are\ the\ chances.jpg
|
||||||
|
|
||||||
|
## xprop # run xprops
|
||||||
|
|
||||||
|
Click on window and get information from the Window Manager about it
|
||||||
|
|
||||||
|
## Linux keybindings
|
||||||
|
|
||||||
|
Alt+Shift+g to go into gap mode and press i for inner gap and + 4 times
|
||||||
|
|
||||||
|
redirect stderr
|
||||||
|
|
||||||
|
append 2>/dev/null to redirect filehandle 2 (STDERR) to /dev/null, which is
|
||||||
|
|
||||||
|
## network-manager
|
||||||
|
|
||||||
|
nmtui # launch network manager gui
|
||||||
|
nmcli # network manager cli
|
||||||
|
|
||||||
|
## disown # remove a job from table of active jobs
|
||||||
|
|
||||||
|
disown %[jobnumber] # removes active job [jobnumber]
|
||||||
|
|
||||||
|
## jobs
|
||||||
|
|
||||||
|
jobs -l # list all active jobs
|
||||||
|
|
||||||
|
ps
|
||||||
|
ps -l # list active processes
|
||||||
|
|
||||||
|
## doom emacs
|
||||||
|
Meta=SPACE
|
||||||
|
Meta+. # open file search
|
||||||
|
Meta+b # open buffer settings
|
||||||
|
Meta+b+m # set bookmark
|
||||||
|
Meta+Return # open bookmark selector
|
||||||
|
Meta+h # help
|
||||||
|
Meta+t # toggle menu
|
||||||
|
Meta+o+p # toggle nerdtree like thing
|
||||||
|
|
||||||
|
## bpytop
|
||||||
|
New and improved bashtop written in python
|
||||||
|
|
||||||
|
## w3m
|
||||||
|
w3m www.google.com # terminal web browswer
|
||||||
|
|
||||||
|
## bluetoothctl
|
||||||
|
scan on # turn on scan
|
||||||
|
pair [device id] # connect to device
|
||||||
|
|
||||||
|
## locate
|
||||||
|
locate [filename] # return path to file
|
||||||
|
locate -b [filename] # search for file/dir in basename
|
||||||
|
suda updatedb -v # update the db with new files
|
||||||
|
|
||||||
|
## md2pdf
|
||||||
|
md2pdf <markdown file> # convert markdown file to pdf
|
||||||
|
|
||||||
|
## glow
|
||||||
|
# Read from file
|
||||||
|
glow README.md
|
||||||
|
# Read from stdin
|
||||||
|
glow -
|
||||||
|
# Fetch README from GitHub / GitLab
|
||||||
|
glow github.com/charmbracelet/glow
|
||||||
|
# Fetch markdown from HTTP
|
||||||
|
glow https://host.tld/file.md
|
||||||
|
# stash document from cli
|
||||||
|
glow stash README.md
|
||||||
|
|
||||||
|
## Notifications
|
||||||
|
/usr/share/dbus-1/services
|
||||||
|
|
||||||
|
## crontab
|
||||||
|
crontab -e # edit the cronjobs for user
|
||||||
|
crontab -l # list all cronjobs
|
||||||
|
|
||||||
|
## youtube-dl
|
||||||
|
youtube-dl [url] # download a video from youtube
|
||||||
|
|
||||||
|
## pgrep
|
||||||
|
pgrep -af [name] # searches for all process with name [name]
|
||||||
|
pgrep -x [name] # searches for name with exact matching
|
||||||
|
pgrep -l [name] # return pid and process name
|
||||||
|
|
||||||
|
## pidof
|
||||||
|
pidof [name] # gets the pid of the process with [name]
|
||||||
|
|
||||||
|
## gparted
|
||||||
|
Use application gparted to format USB drive
|
||||||
|
|
||||||
|
## getopts
|
||||||
|
while getopts "vk" arg; do
|
||||||
|
case $arg in
|
||||||
|
v) verbose=1;;
|
||||||
|
k) justKillIt=1;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
## tor
|
||||||
|
ahmia.fi # dark web search engine
|
||||||
|
|
||||||
|
## github api
|
||||||
|
curl -i -u your_username:your_token https://api.github.com/user
|
||||||
|
curl -i -H "Authorization: token <access token>" \
|
||||||
|
https://api.github.com/user/repos
|
||||||
|
|
||||||
|
## conky
|
||||||
|
Ctrl+Mod(alt)+c # toggle conky
|
||||||
|
Ctrl+Mod+PgUp # next conky
|
||||||
|
Ctrl+Mod+PgDn # prev conky
|
||||||
|
# launch conky set up by Arcolinux team
|
||||||
|
conky -c /home/sudacode/.config/conky/AUR-ArcoLinux-Plasma.conkyrc
|
||||||
|
conky -c ~/.config/conky/AUR-Nemesis-Plasma.conkyrc
|
||||||
|
|
||||||
|
## Chiaki
|
||||||
|
ps4 remtote play application for linux
|
||||||
|
|
||||||
|
## Arch not booting
|
||||||
|
Ctrl+Alt+F5 to get to tty5
|
||||||
|
may need to press FN key
|
||||||
|
check /var/log/pacman.log
|
||||||
|
|
||||||
|
## systemctl
|
||||||
|
```sh
|
||||||
|
systemctl start [name] Starts service
|
||||||
|
systemctl stop [name] Stops service
|
||||||
|
systemctl enable [name] Enables service on startup
|
||||||
|
systemctl disable [name] Disables service on startup
|
||||||
|
systemctl status [name] Get status of service
|
||||||
|
```
|
||||||
|
|
||||||
|
## Fix Spotify Not Working Well
|
||||||
|
rm /usr/share/dbus-1/services/org.kde.plasma.Notifications.service
|
||||||
|
|
||||||
|
## heroku
|
||||||
|
heroku git:remote -a [project name] Connect repository to the heroku remote
|
||||||
|
|
||||||
|
## tokei
|
||||||
|
tokei show programming languages in use in current directory
|
||||||
|
|
||||||
|
## ncmpcpp
|
||||||
|
audio player
|
||||||
|
|
||||||
|
## pulsemixer
|
||||||
|
command line pulseaudio
|
||||||
|
|
||||||
|
## psql
|
||||||
|
connect to a postgresql db on another machine
|
||||||
|
psql postgresql://[username]@[addr]:[port]/[DBname]
|
||||||
|
|
||||||
|
## udisksctl
|
||||||
|
### mount/unmount sd card
|
||||||
|
udisksctl mount -b /dev/mmcblk0p1
|
||||||
|
udisksctl unmount -b /dev/mmcblk0p1
|
||||||
|
|
||||||
|
## dunst
|
||||||
|
dunstify "notification" display a desktop notification
|
||||||
|
dunstify "Progress: " -h int:value:60 display progress bar starting at 60
|
||||||
|
|
||||||
|
## Jupyter Notebook
|
||||||
|
|
||||||
|
### Add a Virtual Environment to JN
|
||||||
|
```bash
|
||||||
|
python -m ipykernel install --user --name=[env_name]
|
||||||
|
```
|
||||||
|
|
||||||
|
### Uninstall venv from JN
|
||||||
|
```bash
|
||||||
|
jupyter kernelspec uninstall [env_name]
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### sacad: download album artwork
|
||||||
|
```bash
|
||||||
|
sacad [artist] [album name] [size] [output_file_name]
|
||||||
|
```
|
||||||
|
|
||||||
|
### ifuse: connect to iphone filesystem
|
||||||
|
```bash
|
||||||
|
$ mkdir -p /tmp/phone/
|
||||||
|
# mount the filesystem
|
||||||
|
$ fusermount -u /tmp/phone/
|
||||||
|
# unmount the filesystem
|
||||||
|
$ ifuse /tmp/phone/
|
||||||
|
```
|
||||||
|
|
||||||
|
### mdr: markdown render in the terminal
|
||||||
|
:MarkdownRender right
|
||||||
|
|
||||||
|
### ipython: interactive python with history, dynamic object introsepction, easier configuration, command completion, access to system shell, and integration with numerical and sientific computing tools
|
||||||
|
|
||||||
|
## nvtop
|
||||||
|
top for graphics card
|
||||||
|
|
||||||
|
## rofi-mpd
|
||||||
|
```bash
|
||||||
|
rofi-mpd -h
|
||||||
|
```
|
||||||
|
|
||||||
|
## UMICH Caen
|
||||||
|
|
||||||
|
rsync -rtv path_to_your_local_file_name your_uniqname@login.engin.umich.edu:path_to_your_remote_folder
|
||||||
|
|
||||||
|
## Edit files as superuser (sudo)
|
||||||
|
|
||||||
|
sudo -e or sudoedit
|
||||||
|
|
||||||
|
## nftables: firewall
|
||||||
|
|
||||||
|
nft -s list ruleset | tee [filename]
|
||||||
|
systemctl status nftables
|
||||||
|
|
||||||
|
|
||||||
|
## i3-help-log
|
||||||
|
|
||||||
|
|
||||||
|
## lscpu
|
||||||
|
|
||||||
|
lscpu # display info about the CPU
|
||||||
|
|
||||||
|
|
||||||
|
## ps
|
||||||
|
|
||||||
|
ps -aux # list stats about processes running including cpu and memory
|
||||||
|
ps -aux --sort=%mem/%cpu # sort by memory or cpu
|
||||||
|
ps -aux --sort=-%mem # sort by memory in ascending order
|
||||||
|
|
||||||
|
|
||||||
|
## kill
|
||||||
|
|
||||||
|
kill -l # list all kill signals
|
||||||
|
|
||||||
|
## ip
|
||||||
|
|
||||||
|
ip a # show all
|
||||||
|
ip -4 addr # show ipv4 addresses
|
||||||
|
ip -6 addr # show ipv6 addresses
|
||||||
|
|
||||||
|
|
||||||
|
## sqlplus
|
||||||
|
|
||||||
|
select * from user_sequences; # list user defined sequences
|
||||||
|
select table_name from user_tables; # list user defined tables
|
||||||
|
|
||||||
|
|
||||||
|
## qemu
|
||||||
|
|
||||||
|
# create image
|
||||||
|
qemu-img create -f qcow2 Image.img 10G
|
||||||
|
# create vm with 4G of memory with X.iso and boots directly into dvd drive
|
||||||
|
qemu-system-x86_64 -enable-kvm -cdrom manjaro-awesome-20.0-200428-linux56.iso -boot order=d -drive file=Image.img -m 4G -cpu host -smp 4 -vga virtio -display sdl,gl=on
|
||||||
|
# boots into menu
|
||||||
|
qemu-system-x86_64 -enable-kvm -cdrom manjaro-awesome-20.0-200428-linux56.iso -boot menu=on -drive file=Image.img -m 4G -cpu host -smp 4 -vga virtio -display sdl,gl=on
|
||||||
|
|
||||||
|
## scp: secure cp
|
||||||
|
|
||||||
|
# copy file to remote
|
||||||
|
scp -P 88 [file] user@host:path-to-file
|
||||||
|
# copy directory to remote
|
||||||
|
scp -rp -P 88 [directory] user@host:path-to-directory
|
||||||
|
# copy from remote to local
|
||||||
|
scp remote-user@remote-host:file path-to-file
|
||||||
|
|
||||||
|
|
||||||
|
## rsync
|
||||||
|
|
||||||
|
# copied files in archive mode (recursively run on directories)
|
||||||
|
# add --delete option to have destination delete files when deleted in src
|
||||||
|
rsync -av --delete [source] [destiation]
|
||||||
|
# exclude files with --exclude='pattern' or --exclude-from='exclude_file'
|
||||||
|
|
||||||
|
# rsync over the network
|
||||||
|
|
||||||
|
## wget
|
||||||
|
|
||||||
|
# add -c argument to allow to interrupt download and resume later with -c
|
||||||
|
# -P to set local download path
|
||||||
|
|
||||||
|
|
||||||
|
## send key to server
|
||||||
|
|
||||||
|
ssh-copy-id user@host
|
||||||
|
|
||||||
|
## CAEN VNC
|
||||||
|
|
||||||
|
ssh -f -L 5951:localhost:5951 uniqname@login-course.engin.umich.edu "sleep 30"
|
||||||
|
vncviewer localhost:5951
|
||||||
|
|
||||||
|
## Anaconda
|
||||||
|
|
||||||
|
source /opt/anaconda/bin/activate /home/sudacode/anaconda3
|
||||||
|
anaconda-navigator
|
||||||
|
|
||||||
|
PostgreSQL: postgresql://scott:tiger@localhost/mydatabase
|
||||||
|
MySQL: mysql://scott:tiger@localhost/foo
|
||||||
|
Oracle: oracle://scott:tiger@127.0.0.1:1521/sidname
|
||||||
|
SQL Server: mssql+pyodbc://scott:tiger@mydsn
|
||||||
|
SQLite: sqlite:///foo.db
|
||||||
|
|
||||||
|
## Create new Application Entry
|
||||||
|
|
||||||
|
/usr/share/applications/
|
||||||
|
/usr/local/share/applications/
|
||||||
|
~/.local/share/applications/
|
||||||
|
|
||||||
|
create desktop entry like others
|
||||||
|
|
||||||
|
## mysql
|
||||||
|
|
||||||
|
sudo mysql # connect to mysql as root
|
||||||
|
create database [db_name];
|
||||||
|
grant all privileges on mydb.* to user@localhost;
|
||||||
|
grant all privileges on mysql.* to user@localhost;
|
||||||
|
flush priviliges;
|
||||||
|
|
||||||
|
## ncdu: disk usage
|
||||||
|
|
||||||
|
|
||||||
|
## baloo
|
||||||
|
|
||||||
|
balooctl # control baloo
|
||||||
|
baloosewarch [search] #search for files/folders
|
||||||
|
|
||||||
|
## nbfc: Fan Control
|
||||||
|
|
||||||
|
## thermald: CPU Frequency Scaling
|
||||||
|
|
||||||
|
|
||||||
|
## Vim-Plug
|
||||||
|
|
||||||
|
:PlugInstall # install plugins
|
||||||
|
:PlugClean # clean .vim/plugged directory
|
||||||
|
|
||||||
|
## remoteit
|
||||||
|
|
||||||
|
|
||||||
|
# screen
|
||||||
|
|
||||||
|
screen -S [session_name] start named screen session
|
||||||
|
screen -S [session_name/pid] reattach
|
||||||
|
screen -S [session_name] -d -m [command] run command in detached session
|
||||||
|
screen -ls list screens
|
||||||
|
ctrl+a d detach from session
|
||||||
|
|
||||||
|
## mpc
|
||||||
|
|
||||||
|
mpc add http://host:port add stream
|
||||||
|
mpc del [num] (0 indexed) delete from queue
|
||||||
|
mpc play play (lol)
|
||||||
|
mpc toggle
|
||||||
|
|
||||||
|
## pdfjam
|
||||||
|
|
||||||
|
pdfjam [files] --outfile [file]
|
217
dotfiles/.markdown.help.md
Normal file
217
dotfiles/.markdown.help.md
Normal file
@ -0,0 +1,217 @@
|
|||||||
|
# Advanced Markdown with [David Wells](https://twitter.com/DavidWells)
|
||||||
|
|
||||||
|
[Slides -> github.com/DavidWells/advanced-markdown](https://github.com/DavidWells/advanced-markdown/)
|
||||||
|
|
||||||
|
## Table of Contents
|
||||||
|
<!-- AUTO-GENERATED-CONTENT:START (TOC:collapse=true&collapseText="Click to expand") -->
|
||||||
|
<details>
|
||||||
|
<summary>"Click to expand"</summary>
|
||||||
|
|
||||||
|
- [Why markdown?](#why-markdown)
|
||||||
|
- [Markdown basics](#markdown-basics)
|
||||||
|
- [Advanced Formatting tips](#advanced-formatting-tips)
|
||||||
|
* [`left` alignment](#left-alignment)
|
||||||
|
* [`right` alignment](#right-alignment)
|
||||||
|
* [`center` alignment example](#center-alignment-example)
|
||||||
|
* [`collapse` Sections](#collapse-sections)
|
||||||
|
* [`additional links`](#additional-links)
|
||||||
|
* [Badges](#badges)
|
||||||
|
- [Useful packages](#useful-packages)
|
||||||
|
- [Useful utilities](#useful-utilities)
|
||||||
|
- [How Serverless uses markdown](#how-serverless-uses-markdown)
|
||||||
|
* [DEMO](#demo)
|
||||||
|
- [Other Markdown Resources](#other-markdown-resources)
|
||||||
|
|
||||||
|
</details>
|
||||||
|
<!-- AUTO-GENERATED-CONTENT:END -->
|
||||||
|
|
||||||
|
## Why markdown?
|
||||||
|
|
||||||
|
Markdown is a universal doc format that is easy to write and easy to add to a version control system.
|
||||||
|
|
||||||
|
- **Open** - Anyone can submit content, fix typos & update anything via pull requests
|
||||||
|
- **Version control** - Roll back & see the history of any given post
|
||||||
|
- **No CMS lock in** - We can easily port to any static site generator
|
||||||
|
- **It's just simple** - No user accounts to manage, no CMS software to upgrade, no plugins to install.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Markdown basics
|
||||||
|
|
||||||
|
The basics of markdown can be found [here](https://guides.github.com/features/mastering-markdown/) & [here](https://daringfireball.net/projects/markdown/). Super easy!
|
||||||
|
|
||||||
|
## Advanced Formatting tips
|
||||||
|
|
||||||
|
### `left` alignment
|
||||||
|
|
||||||
|
<img align="left" width="100" height="100" src="http://www.fillmurray.com/100/100">
|
||||||
|
|
||||||
|
This is the code you need to align images to the left:
|
||||||
|
```
|
||||||
|
<img align="left" width="100" height="100" src="http://www.fillmurray.com/100/100">
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### `right` alignment
|
||||||
|
|
||||||
|
<img align="right" width="100" height="100" src="http://www.fillmurray.com/100/100">
|
||||||
|
|
||||||
|
This is the code you need to align images to the right:
|
||||||
|
```
|
||||||
|
<img align="right" width="100" height="100" src="http://www.fillmurray.com/100/100">
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### `center` alignment example
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img width="460" height="300" src="http://www.fillmurray.com/460/300">
|
||||||
|
</p>
|
||||||
|
|
||||||
|
```
|
||||||
|
<p align="center">
|
||||||
|
<img width="460" height="300" src="http://www.fillmurray.com/460/300">
|
||||||
|
</p>
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### `collapse` Sections
|
||||||
|
|
||||||
|
Collapsing large blocks of text can make your markdown much easier to digest
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>"Click to expand"</summary>
|
||||||
|
this is hidden block
|
||||||
|
</details>
|
||||||
|
|
||||||
|
```
|
||||||
|
<details>
|
||||||
|
<summary>"Click to expand"</summary>
|
||||||
|
this is hidden
|
||||||
|
</details>
|
||||||
|
```
|
||||||
|
|
||||||
|
Collapsing large blocks of Markdown text
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>To make sure markdown is rendered correctly in the collapsed section...</summary>
|
||||||
|
|
||||||
|
1. Put an **empty line** after the `<summary>` block.
|
||||||
|
2. *Insert your markdown syntax*
|
||||||
|
3. Put an **empty line** before the `</details>` tag
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
```
|
||||||
|
<details>
|
||||||
|
<summary>To make sure markdown is rendered correctly in the collapsed section...</summary>
|
||||||
|
|
||||||
|
1. Put an **empty line** after the `<summary>` block.
|
||||||
|
2. *Insert your markdown syntax*
|
||||||
|
3. Put an **empty line** before the `</details>` tag
|
||||||
|
|
||||||
|
</details>
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### `additional links`
|
||||||
|
|
||||||
|
[Website](http://www.serverless.com) • [Email Updates](http://eepurl.com/b8dv4P) • [Gitter](https://gitter.im/serverless/serverless) • [Forum](http://forum.serverless.com) • [Meetups](https://github.com/serverless-meetups/main) • [Twitter](https://twitter.com/goserverless) • [Facebook](https://www.facebook.com/serverless) • [Contact Us](mailto:hello@serverless.com)
|
||||||
|
|
||||||
|
```
|
||||||
|
[Website](http://www.serverless.com) • [Email Updates](http://eepurl.com/b8dv4P) • [Gitter](https://gitter.im/serverless/serverless) • [Forum](http://forum.serverless.com) • [Meetups](https://github.com/serverless-meetups/main) • [Twitter](https://twitter.com/goserverless) • [Facebook](https://www.facebook.com/serverless) • [Contact Us](mailto:hello@serverless.com)
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Badges
|
||||||
|
|
||||||
|
I hate them so. Don't use badges.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Useful packages
|
||||||
|
|
||||||
|
1. [gray-matter](https://www.npmjs.com/package/gray-matter)
|
||||||
|
|
||||||
|
YAML front-matter is your friend. You can keep metadata in markdown files
|
||||||
|
|
||||||
|
```
|
||||||
|
title: Serverless Framework Documentation
|
||||||
|
description: "Great F'in docs!"
|
||||||
|
menuText: Docs
|
||||||
|
layout: Doc
|
||||||
|
```
|
||||||
|
|
||||||
|
2. [Remark](https://www.npmjs.com/package/remark)
|
||||||
|
|
||||||
|
Useful for rendering markdown in HTML/React
|
||||||
|
|
||||||
|
3. [Markdown Magic](https://github.com/DavidWells/markdown-magic)
|
||||||
|
|
||||||
|
- [Repo](https://github.com/DavidWells/markdown-magic)
|
||||||
|
- [Plugins](https://github.com/DavidWells/markdown-magic#plugins)
|
||||||
|
- Show automatic doc generation. [Example 1](https://github.com/DavidWells/markdown-magic/blob/master/examples/generate-readme.js#L15-L23) | [Example 2](https://github.com/serverless/examples/blob/master/generate-readme.js#L71-L87)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Useful utilities
|
||||||
|
|
||||||
|
1. [Schedule Posts](https://github.com/serverless/post-scheduler) - Post scheduler for static sites
|
||||||
|
|
||||||
|
Show DEMO
|
||||||
|
|
||||||
|
2. [Zero friction inline content editing](https://jekyll-anon.surge.sh/gods/2015/02/18/vesta.html)
|
||||||
|
|
||||||
|
Show DEMO
|
||||||
|
|
||||||
|
3. [Byword](https://bywordapp.com/) & [Typora](https://typora.io/) - Good Editors
|
||||||
|
|
||||||
|
4. [Monodraw](https://monodraw.helftone.com/) - Flow charts for days
|
||||||
|
|
||||||
|
6. [Kap](https://getkap.co/) - Make gifs
|
||||||
|
|
||||||
|
4. [IDE markdown preview](https://atom.io/packages/markdown-preview)
|
||||||
|
|
||||||
|
5. Stuck on WordPress? Try [easy-markdown plugin](https://github.com/DavidWells/easy-markdown)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## How Serverless uses markdown
|
||||||
|
|
||||||
|
Serverless.com is comprised of 3 separate repositories
|
||||||
|
|
||||||
|
- https://github.com/serverless/blog
|
||||||
|
- https://github.com/serverless/serverless | Shoutout to [Phenomic.io](https://phenomic.io/)
|
||||||
|
- https://github.com/serverless/site
|
||||||
|
|
||||||
|
**Why multiple repos?**
|
||||||
|
|
||||||
|
1. We wanted documentation about the framework to live in the serverless github repo for easy access
|
||||||
|
2. We wanted our blog content to be easily portable to any static site generator separate from the implementation (site)
|
||||||
|
3. `prebuild` npm script pulls the content together & processes them for site build
|
||||||
|
|
||||||
|
A single repo is easier to manage but harder for people to find/edit/PR content.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### DEMO
|
||||||
|
|
||||||
|
- Site structure
|
||||||
|
- Serverless build process
|
||||||
|
- [Validation](https://github.com/serverless/blog/blob/master/.travis.yml#L10)
|
||||||
|
- [Editing Flow](https://serverless.com/framework/docs/providers/aws/cli-reference/deploy/)
|
||||||
|
- Github optimizations
|
||||||
|
- [Link from top of each doc to live link on site](https://github.com/serverless/serverless/blob/master/docs/providers/aws/events/schedule.md)
|
||||||
|
- use markdown magic =) to [auto generate tables](https://github.com/serverless/examples) etc
|
||||||
|
- [Hide yaml frontmatter from github folks](https://github.com/serverless/serverless/blame/master/docs/providers/aws/events/schedule.md#L1-L7)
|
||||||
|
- consider linking everything to site
|
||||||
|
|
||||||
|
## Other Markdown Resources
|
||||||
|
|
||||||
|
- [Verb](https://www.npmjs.com/package/verb) - Documentation generator for GitHub projects
|
||||||
|
- [ACSII docs](http://asciidoctor.org/) - Markdown alternative
|
1567
dotfiles/.p10k.zsh
Normal file
1567
dotfiles/.p10k.zsh
Normal file
File diff suppressed because it is too large
Load Diff
10
dotfiles/.prettierrc
Normal file
10
dotfiles/.prettierrc
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"arrowParens": "avoid",
|
||||||
|
"semi": false,
|
||||||
|
"tabWidth": 4,
|
||||||
|
"useTabs": true,
|
||||||
|
"jsxSingleQuote": true,
|
||||||
|
"printWidth": 80,
|
||||||
|
"trailingComma": "es5",
|
||||||
|
"vueIndentScriptAndStyle": true
|
||||||
|
}
|
21
dotfiles/.thanks.md
Normal file
21
dotfiles/.thanks.md
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# Attribution links
|
||||||
|
|
||||||
|
[Disable picom transparency on fullscreen](https://github.com/chjj/compton/issues/403#issuecomment-326798836)
|
||||||
|
|
||||||
|
[Firefox homepage](https://github.com/dbuxy218/Prismatic-Night#Instructions)
|
||||||
|
|
||||||
|
[Rofi tabswitcher](https://gist.github.com/thraizz/f106ead51a50d4cddf96d5d83d595014)
|
||||||
|
|
||||||
|
[Markdown with glow](https://www.reddit.com/r/ranger/comments/dzq3fq/markdown_preview/fclxhla?utm_source=share&utm_medium=web2x&context=3)
|
||||||
|
|
||||||
|
[Spotify acting slow](https://www.reddit.com/r/archlinux/comments/a7t079/spotify_having_slow_reaction_time/enbkhyl/)
|
||||||
|
|
||||||
|
[Fix one side of headphones not outputting sound](https://superuser.com/a/1281418)
|
||||||
|
|
||||||
|
[Polybar pacman/AUR update scrfipt](https://www.reddit.com/r/archlinux/comments/gwccb3/is_there_a_way_to_show_the_number_of_outdated/fsuquiy?utm_source=share&utm_medium=web2x&context=3)
|
||||||
|
|
||||||
|
[Headset microphone not working](https://superuser.com/a/1423564)
|
||||||
|
|
||||||
|
[zscroll with polybar](https://github.com/polybar/polybar/issues/353#issuecomment-273388042)
|
||||||
|
|
||||||
|
[change user password in psql](https://www.postgresqltutorial.com/postgresql-change-password/)
|
1231
dotfiles/.tmux.conf
Executable file
1231
dotfiles/.tmux.conf
Executable file
File diff suppressed because it is too large
Load Diff
306
dotfiles/.tmux.conf.local
Normal file
306
dotfiles/.tmux.conf.local
Normal file
@ -0,0 +1,306 @@
|
|||||||
|
# https://github.com/gpakosz/.tmux
|
||||||
|
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license,
|
||||||
|
# without any warranty.
|
||||||
|
# Copyright 2012— Gregory Pakosz (@gpakosz).
|
||||||
|
|
||||||
|
|
||||||
|
# -- navigation ----------------------------------------------------------------
|
||||||
|
|
||||||
|
# if you're running tmux within iTerm2
|
||||||
|
# - and tmux is 1.9 or 1.9a
|
||||||
|
# - and iTerm2 is configured to let option key act as +Esc
|
||||||
|
# - and iTerm2 is configured to send [1;9A -> [1;9D for option + arrow keys
|
||||||
|
# then uncomment the following line to make Meta + arrow keys mapping work
|
||||||
|
#set -ga terminal-overrides "*:kUP3=\e[1;9A,*:kDN3=\e[1;9B,*:kRIT3=\e[1;9C,*:kLFT3=\e[1;9D"
|
||||||
|
|
||||||
|
|
||||||
|
# -- windows & pane creation ---------------------------------------------------
|
||||||
|
|
||||||
|
# new window retains current path, possible values are:
|
||||||
|
# - true
|
||||||
|
# - false (default)
|
||||||
|
tmux_conf_new_window_retain_current_path=false
|
||||||
|
|
||||||
|
# new pane retains current path, possible values are:
|
||||||
|
# - true (default)
|
||||||
|
# - false
|
||||||
|
tmux_conf_new_pane_retain_current_path=true
|
||||||
|
|
||||||
|
# new pane tries to reconnect ssh sessions (experimental), possible values are:
|
||||||
|
# - true
|
||||||
|
# - false (default)
|
||||||
|
tmux_conf_new_pane_reconnect_ssh=false
|
||||||
|
|
||||||
|
# prompt for session name when creating a new session, possible values are:
|
||||||
|
# - true
|
||||||
|
# - false (default)
|
||||||
|
tmux_conf_new_session_prompt=false
|
||||||
|
|
||||||
|
|
||||||
|
# -- display -------------------------------------------------------------------
|
||||||
|
|
||||||
|
# RGB 24-bit colour support (tmux >= 2.2), possible values are:
|
||||||
|
# - true
|
||||||
|
# - false (default)
|
||||||
|
tmux_conf_theme_24b_colour=false
|
||||||
|
|
||||||
|
# window style
|
||||||
|
tmux_conf_theme_window_fg='default'
|
||||||
|
tmux_conf_theme_window_bg='default'
|
||||||
|
|
||||||
|
# highlight focused pane (tmux >= 2.1), possible values are:
|
||||||
|
# - true
|
||||||
|
# - false (default)
|
||||||
|
tmux_conf_theme_highlight_focused_pane=false
|
||||||
|
|
||||||
|
# focused pane colours:
|
||||||
|
tmux_conf_theme_focused_pane_fg='default'
|
||||||
|
tmux_conf_theme_focused_pane_bg='#0087d7' # light blue
|
||||||
|
|
||||||
|
# pane border style, possible values are:
|
||||||
|
# - thin (default)
|
||||||
|
# - fat
|
||||||
|
tmux_conf_theme_pane_border_style=thin
|
||||||
|
|
||||||
|
# pane borders colours:
|
||||||
|
tmux_conf_theme_pane_border='#444444' # gray
|
||||||
|
tmux_conf_theme_pane_active_border='#00afff' # light blue
|
||||||
|
|
||||||
|
# pane indicator colours
|
||||||
|
tmux_conf_theme_pane_indicator='#00afff' # light blue
|
||||||
|
tmux_conf_theme_pane_active_indicator='#00afff' # light blue
|
||||||
|
|
||||||
|
# status line style
|
||||||
|
tmux_conf_theme_message_fg='#000000' # black
|
||||||
|
tmux_conf_theme_message_bg='#ffff00' # yellow
|
||||||
|
tmux_conf_theme_message_attr='bold'
|
||||||
|
|
||||||
|
# status line command style (<prefix> : Escape)
|
||||||
|
tmux_conf_theme_message_command_fg='#ffff00' # yellow
|
||||||
|
tmux_conf_theme_message_command_bg='#000000' # black
|
||||||
|
tmux_conf_theme_message_command_attr='bold'
|
||||||
|
|
||||||
|
# window modes style
|
||||||
|
tmux_conf_theme_mode_fg='#000000' # black
|
||||||
|
tmux_conf_theme_mode_bg='#ffff00' # yellow
|
||||||
|
tmux_conf_theme_mode_attr='bold'
|
||||||
|
|
||||||
|
# status line style
|
||||||
|
tmux_conf_theme_status_fg='#8a8a8a' # light gray
|
||||||
|
tmux_conf_theme_status_bg='#080808' # dark gray
|
||||||
|
tmux_conf_theme_status_attr='none'
|
||||||
|
|
||||||
|
# terminal title
|
||||||
|
# - built-in variables are:
|
||||||
|
# - #{circled_window_index}
|
||||||
|
# - #{circled_session_name}
|
||||||
|
# - #{hostname}
|
||||||
|
# - #{hostname_ssh}
|
||||||
|
# - #{username}
|
||||||
|
# - #{username_ssh}
|
||||||
|
tmux_conf_theme_terminal_title='#h ❐ #S ● #I #W'
|
||||||
|
|
||||||
|
# window status style
|
||||||
|
# - built-in variables are:
|
||||||
|
# - #{circled_window_index}
|
||||||
|
# - #{circled_session_name}
|
||||||
|
# - #{hostname}
|
||||||
|
# - #{hostname_ssh}
|
||||||
|
# - #{username}
|
||||||
|
# - #{username_ssh}
|
||||||
|
tmux_conf_theme_window_status_fg='#8a8a8a' # light gray
|
||||||
|
tmux_conf_theme_window_status_bg='#080808' # dark gray
|
||||||
|
tmux_conf_theme_window_status_attr='none'
|
||||||
|
tmux_conf_theme_window_status_format='#I #W'
|
||||||
|
#tmux_conf_theme_window_status_format='#{circled_window_index} #W'
|
||||||
|
#tmux_conf_theme_window_status_format='#I #W#{?window_bell_flag,🔔,}#{?window_zoomed_flag,🔍,}'
|
||||||
|
|
||||||
|
# window current status style
|
||||||
|
# - built-in variables are:
|
||||||
|
# - #{circled_window_index}
|
||||||
|
# - #{circled_session_name}
|
||||||
|
# - #{hostname}
|
||||||
|
# - #{hostname_ssh}
|
||||||
|
# - #{username}
|
||||||
|
# - #{username_ssh}
|
||||||
|
tmux_conf_theme_window_status_current_fg='#000000' # black
|
||||||
|
tmux_conf_theme_window_status_current_bg='#00afff' # light blue
|
||||||
|
tmux_conf_theme_window_status_current_attr='bold'
|
||||||
|
tmux_conf_theme_window_status_current_format='#I #W'
|
||||||
|
#tmux_conf_theme_window_status_current_format='#{circled_window_index} #W'
|
||||||
|
#tmux_conf_theme_window_status_current_format='#I #W#{?window_zoomed_flag,🔍,}'
|
||||||
|
|
||||||
|
# window activity status style
|
||||||
|
tmux_conf_theme_window_status_activity_fg='default'
|
||||||
|
tmux_conf_theme_window_status_activity_bg='default'
|
||||||
|
tmux_conf_theme_window_status_activity_attr='underscore'
|
||||||
|
|
||||||
|
# window bell status style
|
||||||
|
tmux_conf_theme_window_status_bell_fg='#ffff00' # yellow
|
||||||
|
tmux_conf_theme_window_status_bell_bg='default'
|
||||||
|
tmux_conf_theme_window_status_bell_attr='blink,bold'
|
||||||
|
|
||||||
|
# window last status style
|
||||||
|
tmux_conf_theme_window_status_last_fg='#00afff' # light blue
|
||||||
|
tmux_conf_theme_window_status_last_bg='default'
|
||||||
|
tmux_conf_theme_window_status_last_attr='none'
|
||||||
|
|
||||||
|
# status left/right sections separators
|
||||||
|
#tmux_conf_theme_left_separator_main=''
|
||||||
|
#tmux_conf_theme_left_separator_sub='|'
|
||||||
|
#tmux_conf_theme_right_separator_main=''
|
||||||
|
#tmux_conf_theme_right_separator_sub='|'
|
||||||
|
tmux_conf_theme_left_separator_main='\uE0B0'
|
||||||
|
tmux_conf_theme_left_separator_sub='\uE0B1'
|
||||||
|
tmux_conf_theme_right_separator_main='\uE0B2'
|
||||||
|
tmux_conf_theme_right_separator_sub='\uE0B3'
|
||||||
|
#tmux_conf_theme_left_separator_main='\uE0B0' # /!\ you don't need to install Powerline
|
||||||
|
#tmux_conf_theme_left_separator_sub='\uE0B1' # you only need fonts patched with
|
||||||
|
#tmux_conf_theme_right_separator_main='\uE0B2' # Powerline symbols or the standalone
|
||||||
|
#tmux_conf_theme_right_separator_sub='\uE0B3' # PowerlineSymbols.otf font, see README.md
|
||||||
|
|
||||||
|
# status left/right content:
|
||||||
|
# - separate main sections with '|'
|
||||||
|
# - separate subsections with ','
|
||||||
|
# - built-in variables are:
|
||||||
|
# - #{battery_bar}
|
||||||
|
# - #{battery_hbar}
|
||||||
|
# - #{battery_percentage}
|
||||||
|
# - #{battery_status}
|
||||||
|
# - #{battery_vbar}
|
||||||
|
# - #{circled_session_name}
|
||||||
|
# - #{hostname_ssh}
|
||||||
|
# - #{hostname}
|
||||||
|
# - #{loadavg}
|
||||||
|
# - #{pairing}
|
||||||
|
# - #{prefix}
|
||||||
|
# - #{root}
|
||||||
|
# - #{synchronized}
|
||||||
|
# - #{uptime_y}
|
||||||
|
# - #{uptime_d} (modulo 365 when #{uptime_y} is used)
|
||||||
|
# - #{uptime_h}
|
||||||
|
# - #{uptime_m}
|
||||||
|
# - #{uptime_s}
|
||||||
|
# - #{username}
|
||||||
|
# - #{username_ssh}
|
||||||
|
tmux_conf_theme_status_left='#{username}#{root} | #{hostname} | ↑#{?uptime_y, #{uptime_y}y,}#{?uptime_d, #{uptime_d}d,}#{?uptime_h, #{uptime_h}h,}#{?uptime_m, #{uptime_m}m,} '
|
||||||
|
tmux_conf_theme_status_right='#{prefix}#{pairing}#{synchronized} | #(curl wttr.in/Ann+Arbor?format="%%l:+%%c+%%t+%%f+%%o") , %R , %d %b | #{?battery_status, #{battery_status},}#{?battery_bar, #{battery_bar},}#{?battery_percentage, #{battery_percentage},} '
|
||||||
|
|
||||||
|
# status left style
|
||||||
|
tmux_conf_theme_status_left_fg='#000000,#e4e4e4,#000000' # black, white , black
|
||||||
|
tmux_conf_theme_status_left_bg='#ffff00,#ff00af,#00afff, #d70000' # yellow, pink, blue, red
|
||||||
|
tmux_conf_theme_status_left_attr='bold,bold,bold'
|
||||||
|
|
||||||
|
# status right style
|
||||||
|
tmux_conf_theme_status_right_fg='#8a8a8a,#e4e4e4,#000000' # light gray, white, black
|
||||||
|
tmux_conf_theme_status_right_bg='#000000,#ff00af,#8a8a8a' # dark gray, pink, light grey
|
||||||
|
tmux_conf_theme_status_right_attr='bold,bold,bold'
|
||||||
|
|
||||||
|
# pairing indicator
|
||||||
|
tmux_conf_theme_pairing='👓 ' # U+1F453
|
||||||
|
tmux_conf_theme_pairing_fg='none'
|
||||||
|
tmux_conf_theme_pairing_bg='none'
|
||||||
|
tmux_conf_theme_pairing_attr='none'
|
||||||
|
|
||||||
|
# prefix indicator
|
||||||
|
tmux_conf_theme_prefix='⌨ ' # U+2328
|
||||||
|
tmux_conf_theme_prefix_fg='none'
|
||||||
|
tmux_conf_theme_prefix_bg='none'
|
||||||
|
tmux_conf_theme_prefix_attr='none'
|
||||||
|
|
||||||
|
# root indicator
|
||||||
|
tmux_conf_theme_root='!'
|
||||||
|
tmux_conf_theme_root_fg='none'
|
||||||
|
tmux_conf_theme_root_bg='none'
|
||||||
|
tmux_conf_theme_root_attr='bold,blink'
|
||||||
|
|
||||||
|
# synchronized indicator
|
||||||
|
tmux_conf_theme_synchronized='🔒' # U+1F512
|
||||||
|
tmux_conf_theme_synchronized_fg='none'
|
||||||
|
tmux_conf_theme_synchronized_bg='none'
|
||||||
|
tmux_conf_theme_synchronized_attr='none'
|
||||||
|
|
||||||
|
# battery bar symbols
|
||||||
|
tmux_conf_battery_bar_symbol_full='◼'
|
||||||
|
tmux_conf_battery_bar_symbol_empty='◻'
|
||||||
|
#tmux_conf_battery_bar_symbol_full='♥'
|
||||||
|
#tmux_conf_battery_bar_symbol_empty='·'
|
||||||
|
|
||||||
|
# battery bar length (in number of symbols), possible values are:
|
||||||
|
# - auto
|
||||||
|
# - a number, e.g. 5
|
||||||
|
tmux_conf_battery_bar_length='auto'
|
||||||
|
|
||||||
|
# battery bar palette, possible values are:
|
||||||
|
# - gradient (default)
|
||||||
|
# - heat
|
||||||
|
# - 'colour_full_fg,colour_empty_fg,colour_bg'
|
||||||
|
tmux_conf_battery_bar_palette='gradient'
|
||||||
|
#tmux_conf_battery_bar_palette='#d70000,#e4e4e4,#000000' # red, white, black
|
||||||
|
|
||||||
|
# battery hbar palette, possible values are:
|
||||||
|
# - gradient (default)
|
||||||
|
# - heat
|
||||||
|
# - 'colour_low,colour_half,colour_full'
|
||||||
|
tmux_conf_battery_hbar_palette='gradient'
|
||||||
|
#tmux_conf_battery_hbar_palette='#d70000,#ff5f00,#5fff00' # red, orange, green
|
||||||
|
|
||||||
|
# battery vbar palette, possible values are:
|
||||||
|
# - gradient (default)
|
||||||
|
# - heat
|
||||||
|
# - 'colour_low,colour_half,colour_full'
|
||||||
|
tmux_conf_battery_vbar_palette='gradient'
|
||||||
|
#tmux_conf_battery_vbar_palette='#d70000,#ff5f00,#5fff00' # red, orange, green
|
||||||
|
|
||||||
|
# symbols used to indicate whether battery is charging or discharging
|
||||||
|
#tmux_conf_battery_status_charging='↑' # U+2191
|
||||||
|
#tmux_conf_battery_status_discharging='↓' # U+2193
|
||||||
|
tmux_conf_battery_status_charging='⚡ ' # U+26A1
|
||||||
|
tmux_conf_battery_status_charging='🔌 ' # U+1F50C
|
||||||
|
tmux_conf_battery_status_discharging='🔋 ' # U+1F50B
|
||||||
|
|
||||||
|
# clock style (when you hit <prefix> + t)
|
||||||
|
# you may want to use %I:%M %p in place of %R in tmux_conf_theme_status_right
|
||||||
|
tmux_conf_theme_clock_colour='#00afff' # light blue
|
||||||
|
tmux_conf_theme_clock_style='24'
|
||||||
|
|
||||||
|
|
||||||
|
# -- clipboard -----------------------------------------------------------------
|
||||||
|
|
||||||
|
# in copy mode, copying selection also copies to the OS clipboard
|
||||||
|
# - true
|
||||||
|
# - false (default)
|
||||||
|
# on macOS, this requires installing reattach-to-user-namespace, see README.md
|
||||||
|
# on Linux, this requires xsel or xclip
|
||||||
|
tmux_conf_copy_to_os_clipboard=false
|
||||||
|
|
||||||
|
|
||||||
|
# -- user customizations -------------------------------------------------------
|
||||||
|
# this is the place to override or undo settings
|
||||||
|
|
||||||
|
# increase history size
|
||||||
|
#set -g history-limit 10000
|
||||||
|
|
||||||
|
# start with mouse mode enabled
|
||||||
|
#set -g mouse on
|
||||||
|
|
||||||
|
# force Vi mode
|
||||||
|
# really you should export VISUAL or EDITOR environment variable, see manual
|
||||||
|
#set -g status-keys vi
|
||||||
|
#set -g mode-keys vi
|
||||||
|
|
||||||
|
# replace C-b by C-a instead of using both prefixes
|
||||||
|
# set -gu prefix2
|
||||||
|
# unbind C-a
|
||||||
|
# unbind C-b
|
||||||
|
# set -g prefix C-a
|
||||||
|
# bind C-a send-prefix
|
||||||
|
|
||||||
|
# move status line to top
|
||||||
|
#set -g status-position top
|
||||||
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||||
|
|
||||||
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
||||||
|
run -b '~/.tmux/plugins/tpm/tpm'
|
306
dotfiles/.vimrc
Normal file
306
dotfiles/.vimrc
Normal file
@ -0,0 +1,306 @@
|
|||||||
|
syntax on
|
||||||
|
set laststatus=2 "enable status bar
|
||||||
|
set number "turn on line numbers
|
||||||
|
set colorcolumn=80 "set color column on col 80
|
||||||
|
set tw=80
|
||||||
|
set shiftwidth=4
|
||||||
|
set tabstop=4
|
||||||
|
set autoindent "auto indents code
|
||||||
|
set smartindent "smart indents code
|
||||||
|
set hlsearch "highlight search
|
||||||
|
set smartcase "set search case based on search query
|
||||||
|
set noerrorbells "no error bells
|
||||||
|
set title "set title of vim based on file open
|
||||||
|
set mouse=a " enable mouse in vim
|
||||||
|
set spell "enable spell check in vim
|
||||||
|
|
||||||
|
set encoding=UTF-8
|
||||||
|
set guifont=FiraCode\ Nerd\ Font\ 18
|
||||||
|
|
||||||
|
autocmd BufNewFile *.py 0r ~/templates/skeleton.py
|
||||||
|
autocmd BufNewFile *.jsx 0r ~/templates/skeleton.jsx
|
||||||
|
autocmd BufNewFile *.tsx 0r ~/templates/skeleton.tsx
|
||||||
|
|
||||||
|
call plug#begin('~/.vim/plugged')
|
||||||
|
|
||||||
|
Plug 'preservim/nerdtree' | Plug 'Xuyuanp/nerdtree-git-plugin'
|
||||||
|
|
||||||
|
Plug 'valloric/youcompleteme'
|
||||||
|
|
||||||
|
Plug 'sheerun/vim-polyglot'
|
||||||
|
|
||||||
|
Plug 'vim-scripts/SQLUtilities'
|
||||||
|
|
||||||
|
Plug 'ryanoasis/vim-devicons'
|
||||||
|
|
||||||
|
Plug 'itchyny/vim-gitbranch'
|
||||||
|
|
||||||
|
Plug 'ap/vim-css-color'
|
||||||
|
|
||||||
|
Plug 'wakatime/vim-wakatime'
|
||||||
|
|
||||||
|
Plug 'itchyny/lightline.vim'
|
||||||
|
|
||||||
|
Plug 'prettier/vim-prettier', { 'do': 'yarn install' }
|
||||||
|
|
||||||
|
Plug 'jiangmiao/auto-pairs'
|
||||||
|
|
||||||
|
Plug 'mhinz/vim-startify'
|
||||||
|
|
||||||
|
Plug 'alvan/vim-closetag'
|
||||||
|
|
||||||
|
Plug 'MathSquared/vim-python-sql'
|
||||||
|
|
||||||
|
Plug 'MaxMEllon/vim-jsx-pretty'
|
||||||
|
|
||||||
|
Plug 'tpope/vim-commentary'
|
||||||
|
|
||||||
|
Plug 'dense-analysis/ale'
|
||||||
|
|
||||||
|
Plug 'shime/vim-livedown'
|
||||||
|
|
||||||
|
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
||||||
|
|
||||||
|
Plug '~/.fzf'
|
||||||
|
|
||||||
|
Plug 'morhetz/gruvbox'
|
||||||
|
Plug 'dracula/vim', { 'as': 'dracula' }
|
||||||
|
Plug 'ntk148v/vim-horizon'
|
||||||
|
Plug 'ghifarit53/tokyonight-vim'
|
||||||
|
Plug 'drewtempelmeyer/palenight.vim'
|
||||||
|
Plug 'tomasr/molokai'
|
||||||
|
Plug 'joshdick/onedark.vim'
|
||||||
|
|
||||||
|
call plug#end()
|
||||||
|
|
||||||
|
|
||||||
|
"jump to remembered position in file if available
|
||||||
|
if has("autocmd")
|
||||||
|
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
"fzf
|
||||||
|
"
|
||||||
|
" This is the default extra key bindings
|
||||||
|
let g:fzf_action = {
|
||||||
|
\ 'ctrl-t': 'tab split',
|
||||||
|
\ 'ctrl-x': 'split',
|
||||||
|
\ 'ctrl-v': 'vsplit' }
|
||||||
|
|
||||||
|
" An action can be a reference to a function that processes selected lines
|
||||||
|
function! s:build_quickfix_list(lines)
|
||||||
|
call setqflist(map(copy(a:lines), '{ "filename": v:val }'))
|
||||||
|
copen
|
||||||
|
cc
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
let g:fzf_action = {
|
||||||
|
\ 'ctrl-q': function('s:build_quickfix_list'),
|
||||||
|
\ 'ctrl-t': 'tab split',
|
||||||
|
\ 'ctrl-x': 'split',
|
||||||
|
\ 'ctrl-v': 'vsplit' }
|
||||||
|
|
||||||
|
"Center of screen and popup
|
||||||
|
let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } }
|
||||||
|
|
||||||
|
|
||||||
|
" Customize fzf colors to match your color scheme
|
||||||
|
" - fzf#wrap translates this to a set of `--color` options
|
||||||
|
let g:fzf_colors =
|
||||||
|
\ { 'fg': ['fg', 'Normal'],
|
||||||
|
\ 'bg': ['bg', 'Normal'],
|
||||||
|
\ 'hl': ['fg', 'Comment'],
|
||||||
|
\ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'],
|
||||||
|
\ 'bg+': ['bg', 'CursorLine', 'CursorColumn'],
|
||||||
|
\ 'hl+': ['fg', 'Statement'],
|
||||||
|
\ 'info': ['fg', 'PreProc'],
|
||||||
|
\ 'border': ['fg', 'Ignore'],
|
||||||
|
\ 'prompt': ['fg', 'Conditional'],
|
||||||
|
\ 'pointer': ['fg', 'Exception'],
|
||||||
|
\ 'marker': ['fg', 'Keyword'],
|
||||||
|
\ 'spinner': ['fg', 'Label'],
|
||||||
|
\ 'header': ['fg', 'Comment'] }
|
||||||
|
|
||||||
|
" Enable per-command history
|
||||||
|
" - History files will be stored in the specified directory
|
||||||
|
" - When set, CTRL-N and CTRL-P will be bound to 'next-history' and
|
||||||
|
" 'previous-history' instead of 'down' and 'up'.
|
||||||
|
let g:fzf_history_dir = '~/.local/share/fzf-history'
|
||||||
|
|
||||||
|
|
||||||
|
"livedown
|
||||||
|
" should markdown preview get shown automatically upon opening markdown buffer
|
||||||
|
let g:livedown_autorun = 0
|
||||||
|
" should the browser window pop-up upon previewing
|
||||||
|
let g:livedown_open = 1
|
||||||
|
" the port on which Livedown server will run
|
||||||
|
let g:livedown_port = 3001
|
||||||
|
" the browser to use, can also be firefox, chrome or other, depending on your executable
|
||||||
|
let g:livedown_browser = "firefox"
|
||||||
|
|
||||||
|
"ale
|
||||||
|
let b:ale_linter_aliases = {'javascriptreact': ['css', 'javascript'], 'typescriptreact': ['css', 'javascript']}
|
||||||
|
" Fix files with prettier, and then ESLint.
|
||||||
|
let b:ale_fixers = {'javascript': ['prettier', 'eslint'], 'sh': ['shellcheck'], 'typescript': ['eslint'], 'python': ['pycodestyle', 'pylint']}
|
||||||
|
|
||||||
|
"vim-closetag
|
||||||
|
" filenames like *.xml, *.html, *.xhtml, ...
|
||||||
|
" These are the file extensions where this plugin is enabled.
|
||||||
|
let g:closetag_filenames = '*.html,*.xhtml,*.phtml,*.js,*.ts,*.jsx,*.tsx'
|
||||||
|
|
||||||
|
" filenames like *.xml, *.xhtml, ...
|
||||||
|
" This will make the list of non-closing tags self-closing in the specified files.
|
||||||
|
"
|
||||||
|
let g:closetag_xhtml_filenames = '*.xhtml,*.jsx,*.tsx,*.js,*.ts'
|
||||||
|
|
||||||
|
" filetypes like xml, html, xhtml, ...
|
||||||
|
" These are the file types where this plugin is enabled.
|
||||||
|
"
|
||||||
|
let g:closetag_filetypes = 'html,xhtml,phtml'
|
||||||
|
|
||||||
|
" filetypes like xml, xhtml, ...
|
||||||
|
" This will make the list of non-closing tags self-closing in the specified files.
|
||||||
|
"
|
||||||
|
let g:closetag_xhtml_filetypes = 'xhtml,jsx,tsx,js'
|
||||||
|
|
||||||
|
" integer value [0|1]
|
||||||
|
" This will make the list of non-closing tags case-sensitive (e.g. `<Link>` will be closed while `<link>` won't.)
|
||||||
|
"
|
||||||
|
let g:closetag_emptyTags_caseSensitive = 1
|
||||||
|
|
||||||
|
" Disables auto-close if not in a "valid" region (based on filetype)
|
||||||
|
|
||||||
|
let g:closetag_regions = {
|
||||||
|
\ 'typescript.tsx': 'jsxRegion,tsxRegion',
|
||||||
|
\ 'javascript.jsx': 'jsxRegion',
|
||||||
|
\ }
|
||||||
|
|
||||||
|
|
||||||
|
let g:ycm_autoclose_preview_window_after_insertion = 1 "close ycm help window after accepting option
|
||||||
|
" let g:ycm_autoclose_preview_window_after_completion = 1
|
||||||
|
|
||||||
|
let g:wakatime_PythonBinary = '/usr/bin/python' " (Default: 'python')
|
||||||
|
let g:wakatime_OverrideCommandPrefix = '/usr/bin/wakatime' " (Default: '')
|
||||||
|
|
||||||
|
"Markdown preview
|
||||||
|
let vim_markdown_preview_github=1
|
||||||
|
let vim_markdown_preview_toggle=1
|
||||||
|
let vim_markdown_preview_temp_file=0
|
||||||
|
|
||||||
|
"NERDTREE
|
||||||
|
"autocmd vimenter * NERDTree "launch nerdtree on vim start
|
||||||
|
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
||||||
|
let g:NERDTreeWinPos = "right" "open nerdtree on the right
|
||||||
|
let NERDTreeShowHidden=0 "show hidden files use capital 'I' to toggle
|
||||||
|
"autocmd VimEnter * wincmd p "put the cursor back into the editing pane on start
|
||||||
|
|
||||||
|
let g:NERDTreeGitStatusIndicatorMapCustom = {
|
||||||
|
\ 'Modified' :'✹',
|
||||||
|
\ 'Staged' :'✚',
|
||||||
|
\ 'Untracked' :'✭',
|
||||||
|
\ 'Renamed' :'➜',
|
||||||
|
\ 'Unmerged' :'═',
|
||||||
|
\ 'Deleted' :'✖',
|
||||||
|
\ 'Dirty' :'✗',
|
||||||
|
\ 'Ignored' :'☒',
|
||||||
|
\ 'Clean' :'✔︎',
|
||||||
|
\ 'Unknown' :'?',
|
||||||
|
\ }
|
||||||
|
let g:NERDTreeGitStatusUseNerdFonts = 1
|
||||||
|
" If more than one window and previous buffer was NERDTree, go back to it.
|
||||||
|
autocmd BufEnter * if bufname('#') =~# "^NERD_tree_" && winnr('$') > 1 | b# | endif
|
||||||
|
"avoid crashes when calling vim-plug functions while the cursor is on the NERDTree window
|
||||||
|
let g:plug_window = 'noautocmd vertical topleft new'
|
||||||
|
|
||||||
|
" NERDTress File highlighting
|
||||||
|
function! NERDTreeHighlightFile(extension, fg, bg, guifg, guibg)
|
||||||
|
exec 'autocmd filetype nerdtree highlight ' . a:extension .' ctermbg='. a:bg .' ctermfg='. a:fg .' guibg='. a:guibg .' guifg='. a:guifg
|
||||||
|
exec 'autocmd filetype nerdtree syn match ' . a:extension .' #^\s\+.*'. a:extension .'$#'
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
|
"NERDTree hilight files by extension
|
||||||
|
call NERDTreeHighlightFile('jade', 'green', 'none', 'green', '#282c34')
|
||||||
|
call NERDTreeHighlightFile('ini', 'yellow', 'none', 'yellow', '#282c34')
|
||||||
|
call NERDTreeHighlightFile('md', 'blue', 'none', '#3366FF', '#282c34')
|
||||||
|
call NERDTreeHighlightFile('yml', 'yellow', 'none', 'yellow', '#282c34')
|
||||||
|
call NERDTreeHighlightFile('config', 'yellow', 'none', 'yellow', '#282c34')
|
||||||
|
call NERDTreeHighlightFile('conf', 'yellow', 'none', 'yellow', '#282c34')
|
||||||
|
call NERDTreeHighlightFile('json', 'yellow', 'none', 'yellow', '#282c34')
|
||||||
|
call NERDTreeHighlightFile('html', 'red', 'none', 'yellow', '#282c34')
|
||||||
|
call NERDTreeHighlightFile('styl', 'cyan', 'none', 'cyan', '#282c34')
|
||||||
|
call NERDTreeHighlightFile('css', 'cyan', 'none', 'cyan', '#282c34')
|
||||||
|
call NERDTreeHighlightFile('coffee', 'Red', 'none', 'red', '#282c34')
|
||||||
|
call NERDTreeHighlightFile('js', 'yellow', 'none', '#ffa500', '#282c34')
|
||||||
|
call NERDTreeHighlightFile('jsx', 'yellow', 'none', '#ffa500', '#282c34')
|
||||||
|
call NERDTreeHighlightFile('tsx', 'yellow', 'none', '#ffa500', '#282c34')
|
||||||
|
call NERDTreeHighlightFile('php', 'Magenta', 'none', '#ff00ff', '#282c34')
|
||||||
|
call NERDTreeHighlightFile('cpp', 'blue', 'none', 'blue', '#282c34')
|
||||||
|
call NERDTreeHighlightFile('h', 'cyan', 'none', 'cyan', '#282c34')
|
||||||
|
call NERDTreeHighlightFile('txt', 'blue', 'none', 'red', '#282c34')
|
||||||
|
|
||||||
|
let g:NERDTreeColorMapCustom = {
|
||||||
|
\ "Modified" : ["#528AB3", "NONE", "NONE", "NONE"],
|
||||||
|
\ "Staged" : ["#538B54", "NONE", "NONE", "NONE"],
|
||||||
|
\ "Untracked" : ["#BE5849", "NONE", "NONE", "NONE"],
|
||||||
|
\ "Dirty" : ["#299999", "NONE", "NONE", "NONE"],
|
||||||
|
\ "Clean" : ["#87939A", "NONE", "NONE", "NONE"]
|
||||||
|
\ }
|
||||||
|
|
||||||
|
"PRETTIER
|
||||||
|
packloadall "enable prettier
|
||||||
|
let g:prettier#autoformat = 1
|
||||||
|
let g:prettier#autoformat_require_pragma = 0
|
||||||
|
let g:prettier#exec_cmd_path = "/usr/bin/prettier"
|
||||||
|
|
||||||
|
"LIGHTLINE
|
||||||
|
" 'onedark', 'material', 'darcula'
|
||||||
|
let g:lightline = {
|
||||||
|
\ 'colorscheme': 'deus',
|
||||||
|
\ 'active': {
|
||||||
|
\ 'left': [ [ 'mode', 'paste', 'gitbranch' ],
|
||||||
|
\ [ 'readonly', 'filename', 'modified', ] ],
|
||||||
|
\ 'right': [ [ 'lineinfo' ],
|
||||||
|
\ [ 'percent' ],
|
||||||
|
\ [ 'charvaluehex', 'fileformat', 'fileencoding', 'filetype' ] ]
|
||||||
|
\ },
|
||||||
|
\ 'component_function': {
|
||||||
|
\ 'gitbranch': 'gitbranch#name'
|
||||||
|
\ },
|
||||||
|
\ 'component': {
|
||||||
|
\ 'charhexvalue': '0x%B'
|
||||||
|
\ },
|
||||||
|
\ }
|
||||||
|
|
||||||
|
"COLORSCHEME
|
||||||
|
if !has('gui_running')
|
||||||
|
set t_Co=256
|
||||||
|
endif
|
||||||
|
|
||||||
|
set termguicolors
|
||||||
|
|
||||||
|
set noshowmode "disable default vim insert text at bottom
|
||||||
|
let g:onedark_termcolors=256 "enable 256 colors
|
||||||
|
packadd! onedark.vim "add onedark colorcheme may not work
|
||||||
|
colorscheme onedark "set colorsheme as onedark
|
||||||
|
|
||||||
|
"Tokyo night conifg
|
||||||
|
let g:tokyonight_style='night'
|
||||||
|
let g:tokyonight_transparent_background=1
|
||||||
|
let g:tokyonight_enable_italic=1
|
||||||
|
|
||||||
|
"let g:molokai_original = 1
|
||||||
|
let g:rehash256 = 1
|
||||||
|
|
||||||
|
"KEYBINDINGS
|
||||||
|
map <C-c> :nohls<Cr>
|
||||||
|
map <F2> :NERDTreeToggle<CR>
|
||||||
|
map <C-n> :NERDTreeToggle<CR>
|
||||||
|
map <C-s> <Plug>(Prettier)
|
||||||
|
map<C-c> :nohls<CR>
|
||||||
|
map <F5> :!
|
||||||
|
map <C-T> :ter++close<CR>
|
||||||
|
map <C-D> :YcmShowDetailedDiagnostic<CR>
|
||||||
|
map <C-l> :LivedownToggle<CR>
|
||||||
|
map <C-o> :FZF ~<CR>
|
76
dotfiles/.xinitrc
Normal file
76
dotfiles/.xinitrc
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
var=$1
|
||||||
|
|
||||||
|
userresources=$HOME/.Xresources
|
||||||
|
usermodmap=$HOME/.Xmodmap
|
||||||
|
sysresources=/etc/X11/xinit/.Xresources
|
||||||
|
sysmodmap=/etc/X11/xinit/.Xmodmap
|
||||||
|
|
||||||
|
# merge in defaults and keymaps
|
||||||
|
|
||||||
|
if [ -f $sysresources ]; then
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
xrdb -merge $sysresources
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f $sysmodmap ]; then
|
||||||
|
xmodmap $sysmodmap
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f "$userresources" ]; then
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
xrdb -merge "$userresources"
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f "$usermodmap" ]; then
|
||||||
|
xmodmap "$usermodmap"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# start some nice programs
|
||||||
|
|
||||||
|
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
||||||
|
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
|
||||||
|
[ -x "$f" ] && . "$f"
|
||||||
|
done
|
||||||
|
unset f
|
||||||
|
fi
|
||||||
|
|
||||||
|
#twm &
|
||||||
|
#xclock -geometry 50x50-1+1 &
|
||||||
|
#xterm -geometry 80x50+494+51 &
|
||||||
|
#xterm -geometry 80x20+494-0 &
|
||||||
|
#exec xterm -geometry 80x66+0+0 -name login
|
||||||
|
|
||||||
|
#export GTK_IM_MODULE=xim
|
||||||
|
#export XMODIFIERS=@im=ibus
|
||||||
|
#export QT_IM_MODULE=xim
|
||||||
|
#export ibus-daemon -drx
|
||||||
|
|
||||||
|
|
||||||
|
# start plasma session
|
||||||
|
export DESKTOP_SESSION=plasma
|
||||||
|
xscreensaver
|
||||||
|
exec startplasma-x11
|
||||||
|
exec ~/.fehbg
|
||||||
|
# exec i3
|
||||||
|
export GTK_IM_MODULE=xim
|
||||||
|
export XMODIFIERS=@im=ibus
|
||||||
|
export QT_IM_MODULE=xim
|
||||||
|
ibus-daemon -drx
|
||||||
|
|
||||||
|
#exec cinnamon-session
|
101
dotfiles/.ycm_extra_conf.py
Normal file
101
dotfiles/.ycm_extra_conf.py
Normal file
@ -0,0 +1,101 @@
|
|||||||
|
# Partially stolen from https://bitbucket.org/mblum/libgp/src/2537ea7329ef/.ycm_extra_conf.py
|
||||||
|
import os
|
||||||
|
import ycm_core
|
||||||
|
|
||||||
|
# These are the compilation flags that will be used in case there's no
|
||||||
|
# compilation database set (by default, one is not set).
|
||||||
|
# CHANGE THIS LIST OF FLAGS. YES, THIS IS THE DROID YOU HAVE BEEN LOOKING FOR.
|
||||||
|
flags = [
|
||||||
|
'-Wall',
|
||||||
|
'-Wextra',
|
||||||
|
'-Werror',
|
||||||
|
'-Wconversion',
|
||||||
|
'-pedantic',
|
||||||
|
'-Wno-long-long',
|
||||||
|
'-Wno-variadic-macros',
|
||||||
|
'-fexceptions',
|
||||||
|
# THIS IS IMPORTANT! Without a "-std=<something>" flag, clang won't know which
|
||||||
|
# language to use when compiling headers. So it will guess. Badly. So C++
|
||||||
|
# headers will be compiled as C headers. You don't want that so ALWAYS specify
|
||||||
|
# a "-std=<something>".
|
||||||
|
# For a C project, you would set this to something like 'c99' instead of
|
||||||
|
# 'c++11'.
|
||||||
|
'-std=c++17',
|
||||||
|
# ...and the same thing goes for the magic -x option which specifies the
|
||||||
|
# language that the files to be compiled are written in. This is mostly
|
||||||
|
# relevant for c++ headers.
|
||||||
|
# For a C project, you would set this to 'c' instead of 'c++'.
|
||||||
|
'-x', 'c++',
|
||||||
|
# This path will only work on OS X, but extra paths that don't exist are not
|
||||||
|
# harmful
|
||||||
|
'-isystem', '/System/Library/Frameworks/Python.framework/Headers',
|
||||||
|
'-isystem', '/usr/local/include',
|
||||||
|
'-isystem', '/usr/local/include/eigen3',
|
||||||
|
'-I', 'include',
|
||||||
|
'-I.',
|
||||||
|
]
|
||||||
|
|
||||||
|
# Set this to the absolute path to the folder (NOT the file!) containing the
|
||||||
|
# compile_commands.json file to use that instead of 'flags'. See here for
|
||||||
|
# more details: http://clang.llvm.org/docs/JSONCompilationDatabase.html
|
||||||
|
#
|
||||||
|
# Most projects will NOT need to set this to anything; you can just change the
|
||||||
|
# 'flags' list of compilation flags. Notice that YCM itself uses that approach.
|
||||||
|
compilation_database_folder = ''
|
||||||
|
|
||||||
|
if compilation_database_folder:
|
||||||
|
database = ycm_core.CompilationDatabase( compilation_database_folder )
|
||||||
|
else:
|
||||||
|
database = None
|
||||||
|
|
||||||
|
|
||||||
|
def DirectoryOfThisScript():
|
||||||
|
return os.path.dirname( os.path.abspath( __file__ ) )
|
||||||
|
|
||||||
|
|
||||||
|
def MakeRelativePathsInFlagsAbsolute( flags, working_directory ):
|
||||||
|
if not working_directory:
|
||||||
|
return list( flags )
|
||||||
|
new_flags = []
|
||||||
|
make_next_absolute = False
|
||||||
|
path_flags = [ '-isystem', '-I', '-iquote', '--sysroot=' ]
|
||||||
|
for flag in flags:
|
||||||
|
new_flag = flag
|
||||||
|
|
||||||
|
if make_next_absolute:
|
||||||
|
make_next_absolute = False
|
||||||
|
if not flag.startswith( '/' ):
|
||||||
|
new_flag = os.path.join( working_directory, flag )
|
||||||
|
|
||||||
|
for path_flag in path_flags:
|
||||||
|
if flag == path_flag:
|
||||||
|
make_next_absolute = True
|
||||||
|
break
|
||||||
|
|
||||||
|
if flag.startswith( path_flag ):
|
||||||
|
path = flag[ len( path_flag ): ]
|
||||||
|
new_flag = path_flag + os.path.join( working_directory, path )
|
||||||
|
break
|
||||||
|
|
||||||
|
if new_flag:
|
||||||
|
new_flags.append( new_flag )
|
||||||
|
return new_flags
|
||||||
|
|
||||||
|
|
||||||
|
def FlagsForFile( filename ):
|
||||||
|
if database:
|
||||||
|
# Bear in mind that compilation_info.compiler_flags_ does NOT return a
|
||||||
|
# python list, but a "list-like" StringVec object
|
||||||
|
compilation_info = database.GetCompilationInfoForFile( filename )
|
||||||
|
final_flags = MakeRelativePathsInFlagsAbsolute(
|
||||||
|
compilation_info.compiler_flags_,
|
||||||
|
compilation_info.compiler_working_dir_ )
|
||||||
|
else:
|
||||||
|
# relative_to = DirectoryOfThisScript()
|
||||||
|
relative_to = os.path.dirname(os.path.abspath(filename))
|
||||||
|
final_flags = MakeRelativePathsInFlagsAbsolute( flags, relative_to )
|
||||||
|
|
||||||
|
return {
|
||||||
|
'flags': final_flags,
|
||||||
|
'do_cache': True
|
||||||
|
}
|
359
dotfiles/.zshrc
Normal file
359
dotfiles/.zshrc
Normal file
@ -0,0 +1,359 @@
|
|||||||
|
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||||
|
# Initialization code that may require console input (password prompts, [y/n]
|
||||||
|
# confirmations, etc.) must go above this block, everything else may go below.
|
||||||
|
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||||
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||||
|
fi
|
||||||
|
|
||||||
|
#If you come from bash you might have to change your $PATH.
|
||||||
|
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||||
|
|
||||||
|
# Path to your oh-my-zsh installation.
|
||||||
|
export ZSH="/home/sudacode/.oh-my-zsh"
|
||||||
|
export PATH="$HOME/scripts:$PATH"
|
||||||
|
export PATH="$HOME/Work/scripts:$PATH"
|
||||||
|
export PATH="$HOME/projects/Python/get_song/src/:$PATH"
|
||||||
|
export EDITOR=vim
|
||||||
|
export VISUAL=vim
|
||||||
|
|
||||||
|
|
||||||
|
if [ -f ~/.bash_aliases ]; then
|
||||||
|
. ~/.bash_aliases
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f ~/.aliases ]; then
|
||||||
|
. ~/.aliases
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
#POWERLEVEL9K_MODE='nerdfont'
|
||||||
|
#POWERLEVEL9K_MODE='awesome-fontconfig'
|
||||||
|
POWERLEVEL9K_MODE='nerdfont-complete'
|
||||||
|
#POWERLEVEL9K_MODE='awesome-patched, nerdfont-complete'
|
||||||
|
|
||||||
|
# Set name of the theme to load --- if set to "random", it will
|
||||||
|
# load a random theme each time oh-my-zsh is loaded, in which case,
|
||||||
|
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
||||||
|
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
||||||
|
#ZSH_THEME="powerlevel9k/powerlevel9k"
|
||||||
|
ZSH_THEME="powerlevel10k/powerlevel10k"
|
||||||
|
#ZSH_THEME="random"
|
||||||
|
#ZSH_THEME="agnoster"
|
||||||
|
|
||||||
|
# Set list of themes to pick from when loading at random
|
||||||
|
# Setting this variable when ZSH_THEME=random will cause zsh to load
|
||||||
|
# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
|
||||||
|
# If set to an empty array, this variable will have no effect.
|
||||||
|
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
|
||||||
|
|
||||||
|
# Uncomment the following line to use case-sensitive completion.
|
||||||
|
# CASE_SENSITIVE="true"
|
||||||
|
|
||||||
|
# Uncomment the following line to use hyphen-insensitive completion.
|
||||||
|
# Case-sensitive completion must be off. _ and - will be interchangeable.
|
||||||
|
# HYPHEN_INSENSITIVE="true"
|
||||||
|
|
||||||
|
# Uncomment the following line to disable bi-weekly auto-update checks.
|
||||||
|
# DISABLE_AUTO_UPDATE="true"
|
||||||
|
|
||||||
|
# Uncomment the following line to automatically update without prompting.
|
||||||
|
# DISABLE_UPDATE_PROMPT="true"
|
||||||
|
|
||||||
|
# Uncomment the following line to change how often to auto-update (in days).
|
||||||
|
# export UPDATE_ZSH_DAYS=13
|
||||||
|
|
||||||
|
# Uncomment the following line if pasting URLs and other text is messed up.
|
||||||
|
# DISABLE_MAGIC_FUNCTIONS=true
|
||||||
|
|
||||||
|
# Uncomment the following line to disable colors in ls.
|
||||||
|
# DISABLE_LS_COLORS="true"
|
||||||
|
|
||||||
|
# Uncomment the following line to disable auto-setting terminal title.
|
||||||
|
# DISABLE_AUTO_TITLE="true"
|
||||||
|
|
||||||
|
# Uncomment the following line to enable command auto-correction.
|
||||||
|
ENABLE_CORRECTION="true"
|
||||||
|
|
||||||
|
# Uncomment the following line to display red dots whilst waiting for completion.
|
||||||
|
COMPLETION_WAITING_DOTS="true"
|
||||||
|
|
||||||
|
# Uncomment the following line if you want to disable marking untracked files
|
||||||
|
# under VCS as dirty. This makes repository status check for large repositories
|
||||||
|
# much, much faster.
|
||||||
|
DISABLE_UNTRACKED_FILES_DIRTY="true"
|
||||||
|
|
||||||
|
# Uncomment the following line if you want to change the command execution time
|
||||||
|
# stamp shown in the history command output.
|
||||||
|
# You can set one of the optional three formats:
|
||||||
|
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
|
||||||
|
# or set a custom format using the strftime function format specifications,
|
||||||
|
# see 'man strftime' for details.
|
||||||
|
# HIST_STAMPS="mm/dd/yyyy"
|
||||||
|
HISTSIZE=1000
|
||||||
|
HISTFILESIZE=2000
|
||||||
|
HISTCONTROL=ignoreboth
|
||||||
|
|
||||||
|
# Would you like to use another custom folder than $ZSH/custom?
|
||||||
|
# ZSH_CUSTOM=/path/to/new-custom-folder
|
||||||
|
|
||||||
|
|
||||||
|
# Which plugins would you like to load?
|
||||||
|
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
|
||||||
|
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
||||||
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||||
|
# Add wisely, as too many plugins slow down shell startup.
|
||||||
|
plugins=(zsh-autosuggestions zsh-syntax-highlighting colored-man-pages zsh-256color vi-mode)
|
||||||
|
|
||||||
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
#source ~/.oh-my-zsh/plugins/git/git.plugin.zsh
|
||||||
|
|
||||||
|
|
||||||
|
# User configuration
|
||||||
|
|
||||||
|
# export MANPATH="/usr/local/man:$MANPATH"
|
||||||
|
|
||||||
|
# You may need to manually set your language environment
|
||||||
|
# export LANG=en_US.UTF-8
|
||||||
|
|
||||||
|
# Preferred editor for local and remote sessions
|
||||||
|
if [[ -n $SSH_CONNECTION ]]; then
|
||||||
|
export EDITOR='vim'
|
||||||
|
else
|
||||||
|
export EDITOR='vim'
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Compilation flags
|
||||||
|
export ARCHFLAGS="-arch x86_64"
|
||||||
|
|
||||||
|
# Set personal aliases, overriding those provided by oh-my-zsh libs,
|
||||||
|
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
|
||||||
|
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
|
||||||
|
# For a full list of active aliases, run `alias`.
|
||||||
|
#
|
||||||
|
# Example aliases
|
||||||
|
# alias zshconfig="mate ~/.zshrc"
|
||||||
|
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
||||||
|
|
||||||
|
|
||||||
|
export PATH=$PATH:/home/linuxbrew/.linuxbrew/bin
|
||||||
|
|
||||||
|
# ------------------------------------- POWERLINE CONFIG ----------------------
|
||||||
|
#POWERLEVEL9K_OS_ICON_BACKGROUND="white"
|
||||||
|
#POWERLEVEL9K_OS_ICON_FOREGROUND="blue"
|
||||||
|
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
|
||||||
|
POWERLEVEL9K_RPROMPT_ON_NEWLINE=false
|
||||||
|
#POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon time battery context dir vcs newline)
|
||||||
|
#POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon battery context newline dir vcs)
|
||||||
|
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(time status root_indicator background_jobs history)
|
||||||
|
POWERLEVEL9K_DISABLE_RPROMPT=false
|
||||||
|
POWERLEVEL9K_TIME_BACKGROUND='117'
|
||||||
|
POWERLEVEL9K_SHORTEN_DIR_LENGTH=3
|
||||||
|
|
||||||
|
#POWERLEVEL9K_CUSTOM_NOW_PLAYING='~/.nowplaying'
|
||||||
|
#POWERLEVEL9K_CUSTOM_NOW_PLAYING_BACKGROUND='blue'
|
||||||
|
#POWERLEVEL9K_CUSTOM_NOW_PLAYING_FOREGROUND='black'
|
||||||
|
|
||||||
|
# Icons
|
||||||
|
OS_ICON=' Yawnick boi: ﴑ'
|
||||||
|
POWERLEVEL9K_OS_ICON_BACKGROUND='208'
|
||||||
|
POWERLEVEL9K_OS_ICON_FOREGROUND='000'
|
||||||
|
POWERLEVEL9K_VCS_GIT_GITHUB_ICON=' '
|
||||||
|
POWERLEVEL9K_USER_ICON="\uF415" #
|
||||||
|
POWERLEVEL9K_USER_DEFAULT_BACKGROUND='199'
|
||||||
|
|
||||||
|
zsh_wifi_signal(){
|
||||||
|
local signal=$(nmcli device wifi | grep yes | awk '{print $8}')
|
||||||
|
local color='%F{yellow}'
|
||||||
|
[[ $signal -gt 75 ]] && color='%F{green}'
|
||||||
|
[[ $signal -lt 50 ]] && color='%F{red}'
|
||||||
|
echo -n "%{$color%}\uf230 $signal%{%f%}" # \uf230 is
|
||||||
|
}
|
||||||
|
POWERLEVEL9K_CUSTOM_WIFI_SIGNAL="zsh_wifi_signal"
|
||||||
|
#POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon time user dir vcs virtualenv)
|
||||||
|
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(battery user dir vcs virtualenv)
|
||||||
|
|
||||||
|
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX='↱'
|
||||||
|
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX='↳ Yawnick boi : ﴑ '
|
||||||
|
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX_BACKGROUND='208'
|
||||||
|
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX_FOREGROUND='000'
|
||||||
|
#POWERLEVEL9K_TIME_FORMAT="%D{%H:%M:%S \uE868 %d.%m.%y}"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# set battery stages and colors
|
||||||
|
POWERLEVEL9K_BATTERY_STAGES=(
|
||||||
|
$'▏ ▏' $'▎ ▏' $'▍ ▏' $'▌ ▏' $'▋ ▏' $'▊ ▏' $'▉ ▏' $'█ ▏'
|
||||||
|
$'█▏ ▏' $'█▎ ▏' $'█▍ ▏' $'█▌ ▏' $'█▋ ▏' $'█▊ ▏' $'█▉ ▏' $'██ ▏'
|
||||||
|
$'██ ▏' $'██▎ ▏' $'██▍ ▏' $'██▌ ▏' $'██▋ ▏' $'██▊ ▏' $'██▉ ▏' $'███ ▏'
|
||||||
|
$'███ ▏' $'███▎ ▏' $'███▍ ▏' $'███▌ ▏' $'███▋ ▏' $'███▊ ▏' $'███▉ ▏' $'████ ▏'
|
||||||
|
$'████ ▏' $'████▎▏' $'████▍▏' $'████▌▏' $'████▋▏' $'████▊▏' $'████▉▏' $'█████▏' )
|
||||||
|
|
||||||
|
POWERLEVEL9K_BATTERY_LEVEL_BACKGROUND=(red3 darkorange3 darkgoldenrod gold3 yellow3 chartreuse2 mediumspringgreen green3 green3 green4 darkgreen)
|
||||||
|
POWERLEVEL9K_BATTERY_CHARGING_FOREGROUND=green3
|
||||||
|
POWERLEVEL9K_BATTERY_LOW_FOREGROUND='226'
|
||||||
|
POWERLEVEL9K_BATTERY_CHARGED_FOREGROUND='021'
|
||||||
|
POWERLEVEL9K_BATTERY_DISCONNECTED_FOREGROUND='021'
|
||||||
|
POWERLEVEL9K_BATTERY_LOW_THRESHOLD=20
|
||||||
|
POWERLEVEL9K_BATTERY_VERBOSE=true
|
||||||
|
|
||||||
|
# Set 'context' segment colors
|
||||||
|
POWERLEVEL9K_CONTEXT_DEFAULT_FOREGROUND='010'
|
||||||
|
POWERLEVEL9K_CONTEXT_DEFAULT_BACKGROUND='128'
|
||||||
|
|
||||||
|
# Set directory icons
|
||||||
|
POWERLEVEL9K_HOME_ICON='🏠'
|
||||||
|
POWERLEVEL9K_HOME_SUB_ICON='📂'
|
||||||
|
|
||||||
|
# Set dir path colors
|
||||||
|
#POWERLEVEL9K_DIR_PATH_HIGHLIGHT_BOLD=true
|
||||||
|
POWERLEVEL9K_DIR_DEFAULT_BACKGROUND='033'
|
||||||
|
POWERLEVEL9K_DIR_DEFAULT_FOREGROUND='016'
|
||||||
|
POWERLEVEL9K_DIR_HOME_BACKGROUND='033'
|
||||||
|
POWERLEVEL9K_DIR_HOME_FOREGROUND='016'
|
||||||
|
POWERLEVEL9K_DIR_PATH_HILIGHT_FOREGROUND='000'
|
||||||
|
POWERLEVEL9K_DIR_HOME_SUBFOLDER_BACKGROUND='033'
|
||||||
|
POWERLEVEL9K_DIR_HOME_SUBFOLDER_FOREGROUND='016'
|
||||||
|
POWERLEVEL9K_DIR_NOT_WRITABLE_BACKGROUND='196'
|
||||||
|
POWERLEVEL9K_DIR_NOT_WRITABLE_FOREGROUND='016'
|
||||||
|
|
||||||
|
# Git configurations
|
||||||
|
POWERLEVEL9K_SHOW_CHANGESET=true
|
||||||
|
POWERLEVEL9K_VCS_CLEAN_FOREGROUND='233'
|
||||||
|
#POWERLEVEL9K_VCS_CLEAN_BACKGROUND='black'
|
||||||
|
POWERLEVEL9K_VCS_UNTRACKED_FOREGROUND='033'
|
||||||
|
#POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND='black'
|
||||||
|
POWERLEVEL9K_VCS_MODIFIED_FOREGROUND='197'
|
||||||
|
#POWERLEVEL9K_VCS_MODIFIED_BACKGROUND='black'
|
||||||
|
#! -----------------------------------END OF POWERLEVEL CONFIG------------------
|
||||||
|
|
||||||
|
#LS_COLORS="di=42;1;30:*.mp3=1;32;41:fi=0;91:*.c=1;96:*.js=1;93:*.h=1;35:ex=1;32:*.html=1;36:*.cpp=1;96:*.txt=1;91:*Makefile=1;35:*.css=1;36:*.as=1;36:ow=1;42;93:*.ttf=0;91:*.png=0;91:*README=4;31:*.jpg=0;91:*.md=4;31:*.json=1;94:*.as=0;35:*.obj=0;35:*.correct=1;94"
|
||||||
|
|
||||||
|
|
||||||
|
LS_COLORS="di=42;1;94:*.mp3=1;32;41:fi=0;91:*.c=1;96:*.js=1;93:*.h=1;35:ex=1;32:*.html=1;36:*.cpp=1;96:*.txt=1;91:*Makefile=1;95:*.css=1;36:*.as=1;36:ow=1;42;93:*.ttf=0;91:*.png=0;91:*README=4;31:*.jpg=0;91:*.md=4;31:*.json=1;94:*.as=0;35:*.obj=0;35:*.correct=1;94"
|
||||||
|
|
||||||
|
# # ex = EXtractor for all kinds of archives
|
||||||
|
# # usage: ex <file>
|
||||||
|
ex ()
|
||||||
|
{
|
||||||
|
if [ -f $1 ] ; then
|
||||||
|
case $1 in
|
||||||
|
*.tar.bz2) tar xjf $1 ;;
|
||||||
|
*.tar.gz) tar xzf $1 ;;
|
||||||
|
*.bz2) bunzip2 $1 ;;
|
||||||
|
*.rar) unrar x $1 ;;
|
||||||
|
*.gz) gunzip $1 ;;
|
||||||
|
*.tar) tar xf $1 ;;
|
||||||
|
*.tbz2) tar xjf $1 ;;
|
||||||
|
*.tgz) tar xzf $1 ;;
|
||||||
|
*.zip) unzip $1 ;;
|
||||||
|
*.Z) uncompress $1;;
|
||||||
|
*.7z) 7z x $1 ;;
|
||||||
|
*.deb) ar x $1 ;;
|
||||||
|
*.tar.xz) tar xf $1 ;;
|
||||||
|
*) echo "'$1' cannot be extracted via ex()" ;;
|
||||||
|
esac
|
||||||
|
else
|
||||||
|
echo "'$1' is not a valid file"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Codi
|
||||||
|
# Usage: codi [filetype] [filename]
|
||||||
|
codi() {
|
||||||
|
local syntax="${1:-python}"
|
||||||
|
shift
|
||||||
|
vim -c \
|
||||||
|
"let g:startify_disable_at_vimenter = 1 |\
|
||||||
|
set bt=nofile ls=0 noru nonu nornu |\
|
||||||
|
hi ColorColumn ctermbg=NONE |\
|
||||||
|
hi VertSplit ctermbg=NONE |\
|
||||||
|
Codi $syntax" "$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
### for use with xserver... causes screenfetch and neofetch to not work unless xserver is running
|
||||||
|
#export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0.0
|
||||||
|
#
|
||||||
|
#sudo /etc/init.d/dbus start &> /dev/null
|
||||||
|
|
||||||
|
PS2="===>"
|
||||||
|
|
||||||
|
# Add gem to PATH
|
||||||
|
export PATH=$PATH:/home/sudacode/.gem/ruby/2.7.0/bin
|
||||||
|
|
||||||
|
# Add go to PATH
|
||||||
|
export PATH=$PATH:/home/sudacode/go/bin
|
||||||
|
|
||||||
|
alias freud='cd /home/sudacode/'
|
||||||
|
|
||||||
|
# Add yarn to PATH
|
||||||
|
export PATH="$PATH:`yarn global bin`"
|
||||||
|
|
||||||
|
# set terminal color to 256 color
|
||||||
|
export TERM=xterm-256color
|
||||||
|
|
||||||
|
export PATH=$PATH:/home/sudacode/.local/bin
|
||||||
|
|
||||||
|
# add emacs to path
|
||||||
|
export PATH=$PATH:/home/sudacode/.emacs.d/bin
|
||||||
|
|
||||||
|
#Enable tab completions for flags in colorls
|
||||||
|
source $(dirname $(gem which colorls))/tab_complete.sh
|
||||||
|
|
||||||
|
# add pythno to PATH
|
||||||
|
export PATH="$PATH:/usr/bin/python"
|
||||||
|
|
||||||
|
# add jdk-8 to path
|
||||||
|
export PATH="$PATH:/usr/lib/jvm/java-8-openjdk/bin"
|
||||||
|
export CLASSPATH="$CLASSPATH:/usr/share/java/mariadb-jdbc/mariadb-java-client.jar"
|
||||||
|
|
||||||
|
## ibus config
|
||||||
|
export GTK_IM_MODULE=ibus
|
||||||
|
# will make libreoffice work
|
||||||
|
export XMODIFIERS=@im=ibus
|
||||||
|
export QT_IM_MODULE=ibus
|
||||||
|
export QT4_IM_MODULE=xim
|
||||||
|
ibus-daemon -drx
|
||||||
|
|
||||||
|
export GTK_IM_MODULE_FILE=/etc/gtk-2.0/gtk.immodules
|
||||||
|
export GTK_IM_MODULE_FILE=/usr/lib/gtk-3.0/3.0.0/immodules.cache
|
||||||
|
|
||||||
|
|
||||||
|
export VISUAL=vim
|
||||||
|
|
||||||
|
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
|
||||||
|
export ORACLE_HOME=/usr
|
||||||
|
export TNS_ADMIN=/etc/tnsnames.ora
|
||||||
|
|
||||||
|
|
||||||
|
export GDK_SCALE=2
|
||||||
|
|
||||||
|
|
||||||
|
# rdesktop use cursor
|
||||||
|
# export XCURSOR_DISCOVER=1 rdesktop
|
||||||
|
|
||||||
|
# set qt scale factor
|
||||||
|
export QT_AUTO_SCREEN_SCALE_FACTOR=1.5
|
||||||
|
# export QT_FONT_DPI=196 vym
|
||||||
|
|
||||||
|
# source the Xmodmap file to get custom keybindings
|
||||||
|
# [[ -f ~/.Xmodmap ]] && xmodmap ~/.Xmodmap
|
||||||
|
|
||||||
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||||
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||||
|
# ~/scripts/random_starter.sh
|
||||||
|
|
||||||
|
# >>> conda initialize >>>
|
||||||
|
# # !! Contents within this block are managed by 'conda init' !!
|
||||||
|
# __conda_setup="$('/home/sudacode/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
|
||||||
|
# if [ $? -eq 0 ]; then
|
||||||
|
# eval "$__conda_setup"
|
||||||
|
# else
|
||||||
|
# if [ -f "/home/sudacode/anaconda3/etc/profile.d/conda.sh" ]; then
|
||||||
|
# . "/home/sudacode/anaconda3/etc/profile.d/conda.sh"
|
||||||
|
# else
|
||||||
|
# export PATH="/home/sudacode/anaconda3/bin:$PATH"
|
||||||
|
# fi
|
||||||
|
# fi
|
||||||
|
# unset __conda_setup
|
||||||
|
# # <<< conda initialize <<<
|
470
dunst/dunstrc
Normal file
470
dunst/dunstrc
Normal file
@ -0,0 +1,470 @@
|
|||||||
|
[global]
|
||||||
|
### Display ###
|
||||||
|
|
||||||
|
# Which monitor should the notifications be displayed on.
|
||||||
|
monitor = 0
|
||||||
|
|
||||||
|
# Display notification on focused monitor. Possible modes are:
|
||||||
|
# mouse: follow mouse pointer
|
||||||
|
# keyboard: follow window with keyboard focus
|
||||||
|
# none: don't follow anything
|
||||||
|
#
|
||||||
|
# "keyboard" needs a window manager that exports the
|
||||||
|
# _NET_ACTIVE_WINDOW property.
|
||||||
|
# This should be the case for almost all modern window managers.
|
||||||
|
#
|
||||||
|
# If this option is set to mouse or keyboard, the monitor option
|
||||||
|
# will be ignored.
|
||||||
|
follow = mouse
|
||||||
|
|
||||||
|
# The geometry of the window:
|
||||||
|
# [{width}]x{height}[+/-{x}+/-{y}]
|
||||||
|
# The geometry of the message window.
|
||||||
|
# The height is measured in number of notifications everything else
|
||||||
|
# in pixels. If the width is omitted but the height is given
|
||||||
|
# ("-geometry x2"), the message window expands over the whole screen
|
||||||
|
# (dmenu-like). If width is 0, the window expands to the longest
|
||||||
|
# message displayed. A positive x is measured from the left, a
|
||||||
|
# negative from the right side of the screen. Y is measured from
|
||||||
|
# the top and down respectively.
|
||||||
|
# The width can be negative. In this case the actual width is the
|
||||||
|
# screen width minus the width defined in within the geometry option.
|
||||||
|
geometry = "0x6-41+106"
|
||||||
|
|
||||||
|
# Turn on the progess bar
|
||||||
|
progress_bar = true
|
||||||
|
|
||||||
|
# Set the progress bar height. This includes the frame, so make sure
|
||||||
|
# it's at least twice as big as the frame width.
|
||||||
|
progress_bar_height = 10
|
||||||
|
|
||||||
|
# Set the frame width of the progress bar
|
||||||
|
progress_bar_frame_width = 1
|
||||||
|
|
||||||
|
# Set the minimum width for the progress bar
|
||||||
|
progress_bar_min_width = 150
|
||||||
|
|
||||||
|
# Set the maximum width for the progress bar
|
||||||
|
progress_bar_max_width = 300
|
||||||
|
|
||||||
|
|
||||||
|
# Show how many messages are currently hidden (because of geometry).
|
||||||
|
indicate_hidden = yes
|
||||||
|
|
||||||
|
# Shrink window if it's smaller than the width. Will be ignored if
|
||||||
|
# width is 0.
|
||||||
|
shrink = no
|
||||||
|
|
||||||
|
# The transparency of the window. Range: [0; 100].
|
||||||
|
# This option will only work if a compositing window manager is
|
||||||
|
# present (e.g. xcompmgr, compiz, etc.).
|
||||||
|
transparency = 0
|
||||||
|
|
||||||
|
# The height of the entire notification. If the height is smaller
|
||||||
|
# than the font height and padding combined, it will be raised
|
||||||
|
# to the font height and padding.
|
||||||
|
notification_height = 0
|
||||||
|
|
||||||
|
# Draw a line of "separator_height" pixel height between two
|
||||||
|
# notifications.
|
||||||
|
# Set to 0 to disable.
|
||||||
|
separator_height = 2
|
||||||
|
|
||||||
|
# Padding between text and separator.
|
||||||
|
padding = 24
|
||||||
|
|
||||||
|
# Horizontal padding.
|
||||||
|
horizontal_padding = 15
|
||||||
|
|
||||||
|
# Padding between text and icon.
|
||||||
|
text_icon_padding = 25
|
||||||
|
|
||||||
|
# Defines width in pixels of frame around the notification window.
|
||||||
|
# Set to 0 to disable.
|
||||||
|
frame_width = 7
|
||||||
|
|
||||||
|
# Defines color of the frame around the notification window.
|
||||||
|
frame_color = "#aaaaaa"
|
||||||
|
|
||||||
|
# Define a color for the separator.
|
||||||
|
# possible values are:
|
||||||
|
# * auto: dunst tries to find a color fitting to the background;
|
||||||
|
# * foreground: use the same color as the foreground;
|
||||||
|
# * frame: use the same color as the frame;
|
||||||
|
# * anything else will be interpreted as a X color.
|
||||||
|
separator_color = frame
|
||||||
|
|
||||||
|
# Sort messages by urgency.
|
||||||
|
sort = yes
|
||||||
|
|
||||||
|
# Don't remove messages, if the user is idle (no mouse or keyboard input)
|
||||||
|
# for longer than idle_threshold seconds.
|
||||||
|
# Set to 0 to disable.
|
||||||
|
# A client can set the 'transient' hint to bypass this. See the rules
|
||||||
|
# section for how to disable this if necessary
|
||||||
|
idle_threshold = 120
|
||||||
|
|
||||||
|
### Text ###
|
||||||
|
|
||||||
|
font = Hack 14
|
||||||
|
|
||||||
|
# The spacing between lines. If the height is smaller than the
|
||||||
|
# font height, it will get raised to the font height.
|
||||||
|
line_height = 0
|
||||||
|
|
||||||
|
# Possible values are:
|
||||||
|
# full: Allow a small subset of html markup in notifications:
|
||||||
|
# <b>bold</b>
|
||||||
|
# <i>italic</i>
|
||||||
|
# <s>strikethrough</s>
|
||||||
|
# <u>underline</u>
|
||||||
|
#
|
||||||
|
# For a complete reference see
|
||||||
|
# <https://developer.gnome.org/pango/stable/pango-Markup.html>.
|
||||||
|
#
|
||||||
|
# strip: This setting is provided for compatibility with some broken
|
||||||
|
# clients that send markup even though it's not enabled on the
|
||||||
|
# server. Dunst will try to strip the markup but the parsing is
|
||||||
|
# simplistic so using this option outside of matching rules for
|
||||||
|
# specific applications *IS GREATLY DISCOURAGED*.
|
||||||
|
#
|
||||||
|
# no: Disable markup parsing, incoming notifications will be treated as
|
||||||
|
# plain text. Dunst will not advertise that it has the body-markup
|
||||||
|
# capability if this is set as a global setting.
|
||||||
|
#
|
||||||
|
# It's important to note that markup inside the format option will be parsed
|
||||||
|
# regardless of what this is set to.
|
||||||
|
markup = full
|
||||||
|
|
||||||
|
# The format of the message. Possible variables are:
|
||||||
|
# %a appname
|
||||||
|
# %s summary
|
||||||
|
# %b body
|
||||||
|
# %i iconname (including its path)
|
||||||
|
# %I iconname (without its path)
|
||||||
|
# %p progress value if set ([ 0%] to [100%]) or nothing
|
||||||
|
# %n progress value if set without any extra characters
|
||||||
|
# %% Literal %
|
||||||
|
# Markup is allowed
|
||||||
|
format = "<b>%s</b>\n%b"
|
||||||
|
|
||||||
|
# Alignment of message text.
|
||||||
|
# Possible values are "left", "center" and "right".
|
||||||
|
alignment = left
|
||||||
|
|
||||||
|
# Vertical alignment of message text and icon.
|
||||||
|
# Possible values are "top", "center" and "bottom".
|
||||||
|
vertical_alignment = center
|
||||||
|
|
||||||
|
# Show age of message if message is older than show_age_threshold
|
||||||
|
# seconds.
|
||||||
|
# Set to -1 to disable.
|
||||||
|
show_age_threshold = 60
|
||||||
|
|
||||||
|
# Split notifications into multiple lines if they don't fit into
|
||||||
|
# geometry.
|
||||||
|
word_wrap = yes
|
||||||
|
|
||||||
|
# When word_wrap is set to no, specify where to make an ellipsis in long lines.
|
||||||
|
# Possible values are "start", "middle" and "end".
|
||||||
|
ellipsize = middle
|
||||||
|
|
||||||
|
# Ignore newlines '\n' in notifications.
|
||||||
|
ignore_newline = no
|
||||||
|
|
||||||
|
# Stack together notifications with the same content
|
||||||
|
stack_duplicates = true
|
||||||
|
|
||||||
|
# Hide the count of stacked notifications with the same content
|
||||||
|
hide_duplicate_count = false
|
||||||
|
|
||||||
|
# Display indicators for URLs (U) and actions (A).
|
||||||
|
show_indicators = yes
|
||||||
|
|
||||||
|
### Icons ###
|
||||||
|
|
||||||
|
# Align icons left/right/off
|
||||||
|
icon_position = left
|
||||||
|
|
||||||
|
# Scale small icons up to this size, set to 0 to disable. Helpful
|
||||||
|
# for e.g. small files or high-dpi screens. In case of conflict,
|
||||||
|
# max_icon_size takes precedence over this.
|
||||||
|
min_icon_size = 45
|
||||||
|
|
||||||
|
# Scale larger icons down to this size, set to 0 to disable
|
||||||
|
max_icon_size = 200
|
||||||
|
|
||||||
|
# Paths to default icons.
|
||||||
|
icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
|
||||||
|
# icon_path = /usr/share/icons/Adwaita/16x16/status/:/usr/share/icons/Adwaita/16x16/devices/
|
||||||
|
|
||||||
|
### History ###
|
||||||
|
|
||||||
|
# Should a notification popped up from history be sticky or timeout
|
||||||
|
# as if it would normally do.
|
||||||
|
sticky_history = yes
|
||||||
|
|
||||||
|
# Maximum amount of notifications kept in history
|
||||||
|
history_length = 20
|
||||||
|
|
||||||
|
### Misc/Advanced ###
|
||||||
|
|
||||||
|
# dmenu path.
|
||||||
|
dmenu = /usr/bin/dmenu -p dunst:
|
||||||
|
|
||||||
|
# Browser for opening urls in context menu.
|
||||||
|
browser = /usr/bin/firefox -new-tab
|
||||||
|
|
||||||
|
# Always run rule-defined scripts, even if the notification is suppressed
|
||||||
|
always_run_script = true
|
||||||
|
|
||||||
|
# Define the title of the windows spawned by dunst
|
||||||
|
title = Dunst
|
||||||
|
|
||||||
|
# Define the class of the windows spawned by dunst
|
||||||
|
class = Dunst
|
||||||
|
|
||||||
|
# Print a notification on startup.
|
||||||
|
# This is mainly for error detection, since dbus (re-)starts dunst
|
||||||
|
# automatically after a crash.
|
||||||
|
startup_notification = false
|
||||||
|
|
||||||
|
# Manage dunst's desire for talking
|
||||||
|
# Can be one of the following values:
|
||||||
|
# crit: Critical features. Dunst aborts
|
||||||
|
# warn: Only non-fatal warnings
|
||||||
|
# mesg: Important Messages
|
||||||
|
# info: all unimportant stuff
|
||||||
|
# debug: all less than unimportant stuff
|
||||||
|
verbosity = mesg
|
||||||
|
|
||||||
|
# Define the corner radius of the notification window
|
||||||
|
# in pixel size. If the radius is 0, you have no rounded
|
||||||
|
# corners.
|
||||||
|
# The radius will be automatically lowered if it exceeds half of the
|
||||||
|
# notification height to avoid clipping text and/or icons.
|
||||||
|
corner_radius = 0
|
||||||
|
|
||||||
|
# Ignore the dbus closeNotification message.
|
||||||
|
# Useful to enforce the timeout set by dunst configuration. Without this
|
||||||
|
# parameter, an application may close the notification sent before the
|
||||||
|
# user defined timeout.
|
||||||
|
ignore_dbusclose = false
|
||||||
|
|
||||||
|
### Wayland ###
|
||||||
|
# These settings are Wayland-specific. They have no effect when using X11
|
||||||
|
|
||||||
|
# Uncomment this if you want to let notications appear under fullscreen
|
||||||
|
# applications (default: overlay)
|
||||||
|
# layer = top
|
||||||
|
|
||||||
|
# Set this to true to use X11 output on Wayland.
|
||||||
|
force_xwayland = false
|
||||||
|
|
||||||
|
### Legacy
|
||||||
|
|
||||||
|
# Use the Xinerama extension instead of RandR for multi-monitor support.
|
||||||
|
# This setting is provided for compatibility with older nVidia drivers that
|
||||||
|
# do not support RandR and using it on systems that support RandR is highly
|
||||||
|
# discouraged.
|
||||||
|
#
|
||||||
|
# By enabling this setting dunst will not be able to detect when a monitor
|
||||||
|
# is connected or disconnected which might break follow mode if the screen
|
||||||
|
# layout changes.
|
||||||
|
force_xinerama = false
|
||||||
|
|
||||||
|
### mouse
|
||||||
|
|
||||||
|
# Defines list of actions for each mouse event
|
||||||
|
# Possible values are:
|
||||||
|
# * none: Don't do anything.
|
||||||
|
# * do_action: If the notification has exactly one action, or one is marked as default,
|
||||||
|
# invoke it. If there are multiple and no default, open the context menu.
|
||||||
|
# * close_current: Close current notification.
|
||||||
|
# * close_all: Close all notifications.
|
||||||
|
# These values can be strung together for each mouse event, and
|
||||||
|
# will be executed in sequence.
|
||||||
|
mouse_left_click = close_current
|
||||||
|
mouse_middle_click = do_action, close_current
|
||||||
|
mouse_right_click = close_all
|
||||||
|
|
||||||
|
# Experimental features that may or may not work correctly. Do not expect them
|
||||||
|
# to have a consistent behaviour across releases.
|
||||||
|
[experimental]
|
||||||
|
# Calculate the dpi to use on a per-monitor basis.
|
||||||
|
# If this setting is enabled the Xft.dpi value will be ignored and instead
|
||||||
|
# dunst will attempt to calculate an appropriate dpi value for each monitor
|
||||||
|
# using the resolution and physical size. This might be useful in setups
|
||||||
|
# where there are multiple screens with very different dpi values.
|
||||||
|
per_monitor_dpi = false
|
||||||
|
|
||||||
|
# The internal keyboard shortcut support in dunst is now considered deprecated
|
||||||
|
# and should be replaced by dunstctl calls. You can use the configuration of your
|
||||||
|
# WM or DE to bind these to shortcuts of your choice.
|
||||||
|
# Check the dunstctl manual page for more info.
|
||||||
|
[shortcuts]
|
||||||
|
|
||||||
|
# Shortcuts are specified as [modifier+][modifier+]...key
|
||||||
|
# Available modifiers are "ctrl", "mod1" (the alt-key), "mod2",
|
||||||
|
# "mod3" and "mod4" (windows-key).
|
||||||
|
# Xev might be helpful to find names for keys.
|
||||||
|
|
||||||
|
# Close notification. Equivalent dunstctl command:
|
||||||
|
# dunstctl close
|
||||||
|
close = ctrl+space
|
||||||
|
|
||||||
|
# Close all notifications. Equivalent dunstctl command:
|
||||||
|
# dunstctl close-all
|
||||||
|
close_all = ctrl+shift+space
|
||||||
|
|
||||||
|
# Redisplay last message(s). Equivalent dunstctl command:
|
||||||
|
# dunstctl history-pop
|
||||||
|
# history = ctrl+grave
|
||||||
|
|
||||||
|
# Context menu. Equivalent dunstctl command:
|
||||||
|
# dunstctl context
|
||||||
|
context = ctrl+shift+period
|
||||||
|
|
||||||
|
[urgency_low]
|
||||||
|
# IMPORTANT: colors have to be defined in quotation marks.
|
||||||
|
# Otherwise the "#" and following would be interpreted as a comment.
|
||||||
|
background = "#222222"
|
||||||
|
foreground = "#888888"
|
||||||
|
timeout = 5
|
||||||
|
# Icon for notifications with low urgency, uncomment to enable
|
||||||
|
#icon = /path/to/icon
|
||||||
|
|
||||||
|
[urgency_normal]
|
||||||
|
# background = "#285577"
|
||||||
|
background = "#282c34"
|
||||||
|
# foreground = "#55aebb"
|
||||||
|
foreground = "#b26cc6"
|
||||||
|
frame_color = "#1eb75d"
|
||||||
|
timeout = 5
|
||||||
|
# Icon for notifications with normal urgency, uncomment to enable
|
||||||
|
#icon = /path/to/icon
|
||||||
|
|
||||||
|
[urgency_critical]
|
||||||
|
background = "#900000"
|
||||||
|
foreground = "#ffffff"
|
||||||
|
frame_color = "#ff0000"
|
||||||
|
timeout = 0
|
||||||
|
# Icon for notifications with critical urgency, uncomment to enable
|
||||||
|
#icon = /path/to/icon
|
||||||
|
|
||||||
|
# Every section that isn't one of the above is interpreted as a rules to
|
||||||
|
# override settings for certain messages.
|
||||||
|
#
|
||||||
|
# Messages can be matched by
|
||||||
|
# appname (discouraged, see desktop_entry)
|
||||||
|
# body
|
||||||
|
# category
|
||||||
|
# desktop_entry
|
||||||
|
# icon
|
||||||
|
# match_transient
|
||||||
|
# msg_urgency
|
||||||
|
# stack_tag
|
||||||
|
# summary
|
||||||
|
#
|
||||||
|
# and you can override the
|
||||||
|
# background
|
||||||
|
# foreground
|
||||||
|
# format
|
||||||
|
# frame_color
|
||||||
|
# fullscreen
|
||||||
|
# new_icon
|
||||||
|
# set_stack_tag
|
||||||
|
# set_transient
|
||||||
|
# timeout
|
||||||
|
# urgency
|
||||||
|
#
|
||||||
|
# Shell-like globbing will get expanded.
|
||||||
|
#
|
||||||
|
# Instead of the appname filter, it's recommended to use the desktop_entry filter.
|
||||||
|
# GLib based applications export their desktop-entry name. In comparison to the appname,
|
||||||
|
# the desktop-entry won't get localized.
|
||||||
|
#
|
||||||
|
# SCRIPTING
|
||||||
|
# You can specify a script that gets run when the rule matches by
|
||||||
|
# setting the "script" option.
|
||||||
|
# The script will be called as follows:
|
||||||
|
# script appname summary body icon urgency
|
||||||
|
# where urgency can be "LOW", "NORMAL" or "CRITICAL".
|
||||||
|
#
|
||||||
|
# NOTE: if you don't want a notification to be displayed, set the format
|
||||||
|
# to "".
|
||||||
|
# NOTE: It might be helpful to run dunst -print in a terminal in order
|
||||||
|
# to find fitting options for rules.
|
||||||
|
|
||||||
|
# Disable the transient hint so that idle_threshold cannot be bypassed from the
|
||||||
|
# client
|
||||||
|
#[transient_disable]
|
||||||
|
# match_transient = yes
|
||||||
|
# set_transient = no
|
||||||
|
#
|
||||||
|
# Make the handling of transient notifications more strict by making them not
|
||||||
|
# be placed in history.
|
||||||
|
#[transient_history_ignore]
|
||||||
|
# match_transient = yes
|
||||||
|
# history_ignore = yes
|
||||||
|
|
||||||
|
# fullscreen values
|
||||||
|
# show: show the notifications, regardless if there is a fullscreen window opened
|
||||||
|
# delay: displays the new notification, if there is no fullscreen window active
|
||||||
|
# If the notification is already drawn, it won't get undrawn.
|
||||||
|
# pushback: same as delay, but when switching into fullscreen, the notification will get
|
||||||
|
# withdrawn from screen again and will get delayed like a new notification
|
||||||
|
#[fullscreen_delay_everything]
|
||||||
|
# fullscreen = delay
|
||||||
|
#[fullscreen_show_critical]
|
||||||
|
# msg_urgency = critical
|
||||||
|
# fullscreen = show
|
||||||
|
|
||||||
|
#[espeak]
|
||||||
|
# summary = "*"
|
||||||
|
# script = dunst_espeak.sh
|
||||||
|
|
||||||
|
#[script-test]
|
||||||
|
# summary = "*script*"
|
||||||
|
# script = dunst_test.sh
|
||||||
|
|
||||||
|
#[ignore]
|
||||||
|
# # This notification will not be displayed
|
||||||
|
# summary = "foobar"
|
||||||
|
# format = ""
|
||||||
|
|
||||||
|
#[history-ignore]
|
||||||
|
# # This notification will not be saved in history
|
||||||
|
# summary = "foobar"
|
||||||
|
# history_ignore = yes
|
||||||
|
|
||||||
|
#[skip-display]
|
||||||
|
# # This notification will not be displayed, but will be included in the history
|
||||||
|
# summary = "foobar"
|
||||||
|
# skip_display = yes
|
||||||
|
|
||||||
|
#[signed_on]
|
||||||
|
# appname = Pidgin
|
||||||
|
# summary = "*signed on*"
|
||||||
|
# urgency = low
|
||||||
|
#
|
||||||
|
#[signed_off]
|
||||||
|
# appname = Pidgin
|
||||||
|
# summary = *signed off*
|
||||||
|
# urgency = low
|
||||||
|
#
|
||||||
|
#[says]
|
||||||
|
# appname = Pidgin
|
||||||
|
# summary = *says*
|
||||||
|
# urgency = critical
|
||||||
|
#
|
||||||
|
#[twitter]
|
||||||
|
# appname = Pidgin
|
||||||
|
# summary = *twitter.com*
|
||||||
|
# urgency = normal
|
||||||
|
#
|
||||||
|
#[stack-volumes]
|
||||||
|
# appname = "some_volume_notifiers"
|
||||||
|
# set_stack_tag = "volume"
|
||||||
|
#
|
||||||
|
# vim: ft=cfg
|
470
dunst/dunstrc.desktop
Normal file
470
dunst/dunstrc.desktop
Normal file
@ -0,0 +1,470 @@
|
|||||||
|
[global]
|
||||||
|
### Display ###
|
||||||
|
|
||||||
|
# Which monitor should the notifications be displayed on.
|
||||||
|
monitor = 0
|
||||||
|
|
||||||
|
# Display notification on focused monitor. Possible modes are:
|
||||||
|
# mouse: follow mouse pointer
|
||||||
|
# keyboard: follow window with keyboard focus
|
||||||
|
# none: don't follow anything
|
||||||
|
#
|
||||||
|
# "keyboard" needs a window manager that exports the
|
||||||
|
# _NET_ACTIVE_WINDOW property.
|
||||||
|
# This should be the case for almost all modern window managers.
|
||||||
|
#
|
||||||
|
# If this option is set to mouse or keyboard, the monitor option
|
||||||
|
# will be ignored.
|
||||||
|
follow = mouse
|
||||||
|
|
||||||
|
# The geometry of the window:
|
||||||
|
# [{width}]x{height}[+/-{x}+/-{y}]
|
||||||
|
# The geometry of the message window.
|
||||||
|
# The height is measured in number of notifications everything else
|
||||||
|
# in pixels. If the width is omitted but the height is given
|
||||||
|
# ("-geometry x2"), the message window expands over the whole screen
|
||||||
|
# (dmenu-like). If width is 0, the window expands to the longest
|
||||||
|
# message displayed. A positive x is measured from the left, a
|
||||||
|
# negative from the right side of the screen. Y is measured from
|
||||||
|
# the top and down respectively.
|
||||||
|
# The width can be negative. In this case the actual width is the
|
||||||
|
# screen width minus the width defined in within the geometry option.
|
||||||
|
geometry = "0x6-21+61"
|
||||||
|
|
||||||
|
# Turn on the progess bar
|
||||||
|
progress_bar = true
|
||||||
|
|
||||||
|
# Set the progress bar height. This includes the frame, so make sure
|
||||||
|
# it's at least twice as big as the frame width.
|
||||||
|
progress_bar_height = 10
|
||||||
|
|
||||||
|
# Set the frame width of the progress bar
|
||||||
|
progress_bar_frame_width = 1
|
||||||
|
|
||||||
|
# Set the minimum width for the progress bar
|
||||||
|
progress_bar_min_width = 150
|
||||||
|
|
||||||
|
# Set the maximum width for the progress bar
|
||||||
|
progress_bar_max_width = 300
|
||||||
|
|
||||||
|
|
||||||
|
# Show how many messages are currently hidden (because of geometry).
|
||||||
|
indicate_hidden = yes
|
||||||
|
|
||||||
|
# Shrink window if it's smaller than the width. Will be ignored if
|
||||||
|
# width is 0.
|
||||||
|
shrink = no
|
||||||
|
|
||||||
|
# The transparency of the window. Range: [0; 100].
|
||||||
|
# This option will only work if a compositing window manager is
|
||||||
|
# present (e.g. xcompmgr, compiz, etc.).
|
||||||
|
transparency = 0
|
||||||
|
|
||||||
|
# The height of the entire notification. If the height is smaller
|
||||||
|
# than the font height and padding combined, it will be raised
|
||||||
|
# to the font height and padding.
|
||||||
|
notification_height = 0
|
||||||
|
|
||||||
|
# Draw a line of "separator_height" pixel height between two
|
||||||
|
# notifications.
|
||||||
|
# Set to 0 to disable.
|
||||||
|
separator_height = 2
|
||||||
|
|
||||||
|
# Padding between text and separator.
|
||||||
|
padding = 14
|
||||||
|
|
||||||
|
# Horizontal padding.
|
||||||
|
horizontal_padding =15
|
||||||
|
|
||||||
|
# Padding between text and icon.
|
||||||
|
text_icon_padding = 15
|
||||||
|
|
||||||
|
# Defines width in pixels of frame around the notification window.
|
||||||
|
# Set to 0 to disable.
|
||||||
|
frame_width = 6
|
||||||
|
|
||||||
|
# Defines color of the frame around the notification window.
|
||||||
|
frame_color = "#aaaaaa"
|
||||||
|
|
||||||
|
# Define a color for the separator.
|
||||||
|
# possible values are:
|
||||||
|
# * auto: dunst tries to find a color fitting to the background;
|
||||||
|
# * foreground: use the same color as the foreground;
|
||||||
|
# * frame: use the same color as the frame;
|
||||||
|
# * anything else will be interpreted as a X color.
|
||||||
|
separator_color = frame
|
||||||
|
|
||||||
|
# Sort messages by urgency.
|
||||||
|
sort = yes
|
||||||
|
|
||||||
|
# Don't remove messages, if the user is idle (no mouse or keyboard input)
|
||||||
|
# for longer than idle_threshold seconds.
|
||||||
|
# Set to 0 to disable.
|
||||||
|
# A client can set the 'transient' hint to bypass this. See the rules
|
||||||
|
# section for how to disable this if necessary
|
||||||
|
idle_threshold = 120
|
||||||
|
|
||||||
|
### Text ###
|
||||||
|
|
||||||
|
font = Hack 10
|
||||||
|
|
||||||
|
# The spacing between lines. If the height is smaller than the
|
||||||
|
# font height, it will get raised to the font height.
|
||||||
|
line_height = 0
|
||||||
|
|
||||||
|
# Possible values are:
|
||||||
|
# full: Allow a small subset of html markup in notifications:
|
||||||
|
# <b>bold</b>
|
||||||
|
# <i>italic</i>
|
||||||
|
# <s>strikethrough</s>
|
||||||
|
# <u>underline</u>
|
||||||
|
#
|
||||||
|
# For a complete reference see
|
||||||
|
# <https://developer.gnome.org/pango/stable/pango-Markup.html>.
|
||||||
|
#
|
||||||
|
# strip: This setting is provided for compatibility with some broken
|
||||||
|
# clients that send markup even though it's not enabled on the
|
||||||
|
# server. Dunst will try to strip the markup but the parsing is
|
||||||
|
# simplistic so using this option outside of matching rules for
|
||||||
|
# specific applications *IS GREATLY DISCOURAGED*.
|
||||||
|
#
|
||||||
|
# no: Disable markup parsing, incoming notifications will be treated as
|
||||||
|
# plain text. Dunst will not advertise that it has the body-markup
|
||||||
|
# capability if this is set as a global setting.
|
||||||
|
#
|
||||||
|
# It's important to note that markup inside the format option will be parsed
|
||||||
|
# regardless of what this is set to.
|
||||||
|
markup = full
|
||||||
|
|
||||||
|
# The format of the message. Possible variables are:
|
||||||
|
# %a appname
|
||||||
|
# %s summary
|
||||||
|
# %b body
|
||||||
|
# %i iconname (including its path)
|
||||||
|
# %I iconname (without its path)
|
||||||
|
# %p progress value if set ([ 0%] to [100%]) or nothing
|
||||||
|
# %n progress value if set without any extra characters
|
||||||
|
# %% Literal %
|
||||||
|
# Markup is allowed
|
||||||
|
format = "<b>%s</b>\n%b"
|
||||||
|
|
||||||
|
# Alignment of message text.
|
||||||
|
# Possible values are "left", "center" and "right".
|
||||||
|
alignment = left
|
||||||
|
|
||||||
|
# Vertical alignment of message text and icon.
|
||||||
|
# Possible values are "top", "center" and "bottom".
|
||||||
|
vertical_alignment = center
|
||||||
|
|
||||||
|
# Show age of message if message is older than show_age_threshold
|
||||||
|
# seconds.
|
||||||
|
# Set to -1 to disable.
|
||||||
|
show_age_threshold = 60
|
||||||
|
|
||||||
|
# Split notifications into multiple lines if they don't fit into
|
||||||
|
# geometry.
|
||||||
|
word_wrap = yes
|
||||||
|
|
||||||
|
# When word_wrap is set to no, specify where to make an ellipsis in long lines.
|
||||||
|
# Possible values are "start", "middle" and "end".
|
||||||
|
ellipsize = middle
|
||||||
|
|
||||||
|
# Ignore newlines '\n' in notifications.
|
||||||
|
ignore_newline = no
|
||||||
|
|
||||||
|
# Stack together notifications with the same content
|
||||||
|
stack_duplicates = true
|
||||||
|
|
||||||
|
# Hide the count of stacked notifications with the same content
|
||||||
|
hide_duplicate_count = false
|
||||||
|
|
||||||
|
# Display indicators for URLs (U) and actions (A).
|
||||||
|
show_indicators = yes
|
||||||
|
|
||||||
|
### Icons ###
|
||||||
|
|
||||||
|
# Align icons left/right/off
|
||||||
|
icon_position = left
|
||||||
|
|
||||||
|
# Scale small icons up to this size, set to 0 to disable. Helpful
|
||||||
|
# for e.g. small files or high-dpi screens. In case of conflict,
|
||||||
|
# max_icon_size takes precedence over this.
|
||||||
|
min_icon_size = 50
|
||||||
|
|
||||||
|
# Scale larger icons down to this size, set to 0 to disable
|
||||||
|
max_icon_size = 80
|
||||||
|
|
||||||
|
# Paths to default icons.
|
||||||
|
icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
|
||||||
|
# icon_path = /usr/share/icons/Adwaita/16x16/status/:/usr/share/icons/Adwaita/16x16/devices/
|
||||||
|
|
||||||
|
### History ###
|
||||||
|
|
||||||
|
# Should a notification popped up from history be sticky or timeout
|
||||||
|
# as if it would normally do.
|
||||||
|
sticky_history = yes
|
||||||
|
|
||||||
|
# Maximum amount of notifications kept in history
|
||||||
|
history_length = 20
|
||||||
|
|
||||||
|
### Misc/Advanced ###
|
||||||
|
|
||||||
|
# dmenu path.
|
||||||
|
dmenu = /usr/bin/dmenu -p dunst:
|
||||||
|
|
||||||
|
# Browser for opening urls in context menu.
|
||||||
|
browser = /usr/bin/firefox -new-tab
|
||||||
|
|
||||||
|
# Always run rule-defined scripts, even if the notification is suppressed
|
||||||
|
always_run_script = true
|
||||||
|
|
||||||
|
# Define the title of the windows spawned by dunst
|
||||||
|
title = Dunst
|
||||||
|
|
||||||
|
# Define the class of the windows spawned by dunst
|
||||||
|
class = Dunst
|
||||||
|
|
||||||
|
# Print a notification on startup.
|
||||||
|
# This is mainly for error detection, since dbus (re-)starts dunst
|
||||||
|
# automatically after a crash.
|
||||||
|
startup_notification = false
|
||||||
|
|
||||||
|
# Manage dunst's desire for talking
|
||||||
|
# Can be one of the following values:
|
||||||
|
# crit: Critical features. Dunst aborts
|
||||||
|
# warn: Only non-fatal warnings
|
||||||
|
# mesg: Important Messages
|
||||||
|
# info: all unimportant stuff
|
||||||
|
# debug: all less than unimportant stuff
|
||||||
|
verbosity = mesg
|
||||||
|
|
||||||
|
# Define the corner radius of the notification window
|
||||||
|
# in pixel size. If the radius is 0, you have no rounded
|
||||||
|
# corners.
|
||||||
|
# The radius will be automatically lowered if it exceeds half of the
|
||||||
|
# notification height to avoid clipping text and/or icons.
|
||||||
|
corner_radius = 0
|
||||||
|
|
||||||
|
# Ignore the dbus closeNotification message.
|
||||||
|
# Useful to enforce the timeout set by dunst configuration. Without this
|
||||||
|
# parameter, an application may close the notification sent before the
|
||||||
|
# user defined timeout.
|
||||||
|
ignore_dbusclose = false
|
||||||
|
|
||||||
|
### Wayland ###
|
||||||
|
# These settings are Wayland-specific. They have no effect when using X11
|
||||||
|
|
||||||
|
# Uncomment this if you want to let notications appear under fullscreen
|
||||||
|
# applications (default: overlay)
|
||||||
|
# layer = top
|
||||||
|
|
||||||
|
# Set this to true to use X11 output on Wayland.
|
||||||
|
force_xwayland = false
|
||||||
|
|
||||||
|
### Legacy
|
||||||
|
|
||||||
|
# Use the Xinerama extension instead of RandR for multi-monitor support.
|
||||||
|
# This setting is provided for compatibility with older nVidia drivers that
|
||||||
|
# do not support RandR and using it on systems that support RandR is highly
|
||||||
|
# discouraged.
|
||||||
|
#
|
||||||
|
# By enabling this setting dunst will not be able to detect when a monitor
|
||||||
|
# is connected or disconnected which might break follow mode if the screen
|
||||||
|
# layout changes.
|
||||||
|
force_xinerama = false
|
||||||
|
|
||||||
|
### mouse
|
||||||
|
|
||||||
|
# Defines list of actions for each mouse event
|
||||||
|
# Possible values are:
|
||||||
|
# * none: Don't do anything.
|
||||||
|
# * do_action: If the notification has exactly one action, or one is marked as default,
|
||||||
|
# invoke it. If there are multiple and no default, open the context menu.
|
||||||
|
# * close_current: Close current notification.
|
||||||
|
# * close_all: Close all notifications.
|
||||||
|
# These values can be strung together for each mouse event, and
|
||||||
|
# will be executed in sequence.
|
||||||
|
mouse_left_click = close_current
|
||||||
|
mouse_middle_click = do_action, close_current
|
||||||
|
mouse_right_click = close_all
|
||||||
|
|
||||||
|
# Experimental features that may or may not work correctly. Do not expect them
|
||||||
|
# to have a consistent behaviour across releases.
|
||||||
|
[experimental]
|
||||||
|
# Calculate the dpi to use on a per-monitor basis.
|
||||||
|
# If this setting is enabled the Xft.dpi value will be ignored and instead
|
||||||
|
# dunst will attempt to calculate an appropriate dpi value for each monitor
|
||||||
|
# using the resolution and physical size. This might be useful in setups
|
||||||
|
# where there are multiple screens with very different dpi values.
|
||||||
|
per_monitor_dpi = false
|
||||||
|
|
||||||
|
# The internal keyboard shortcut support in dunst is now considered deprecated
|
||||||
|
# and should be replaced by dunstctl calls. You can use the configuration of your
|
||||||
|
# WM or DE to bind these to shortcuts of your choice.
|
||||||
|
# Check the dunstctl manual page for more info.
|
||||||
|
[shortcuts]
|
||||||
|
|
||||||
|
# Shortcuts are specified as [modifier+][modifier+]...key
|
||||||
|
# Available modifiers are "ctrl", "mod1" (the alt-key), "mod2",
|
||||||
|
# "mod3" and "mod4" (windows-key).
|
||||||
|
# Xev might be helpful to find names for keys.
|
||||||
|
|
||||||
|
# Close notification. Equivalent dunstctl command:
|
||||||
|
# dunstctl close
|
||||||
|
close = ctrl+space
|
||||||
|
|
||||||
|
# Close all notifications. Equivalent dunstctl command:
|
||||||
|
# dunstctl close-all
|
||||||
|
close_all = ctrl+shift+space
|
||||||
|
|
||||||
|
# Redisplay last message(s). Equivalent dunstctl command:
|
||||||
|
# dunstctl history-pop
|
||||||
|
# history = ctrl+grave
|
||||||
|
|
||||||
|
# Context menu. Equivalent dunstctl command:
|
||||||
|
# dunstctl context
|
||||||
|
context = ctrl+shift+period
|
||||||
|
|
||||||
|
[urgency_low]
|
||||||
|
# IMPORTANT: colors have to be defined in quotation marks.
|
||||||
|
# Otherwise the "#" and following would be interpreted as a comment.
|
||||||
|
background = "#222222"
|
||||||
|
foreground = "#888888"
|
||||||
|
timeout = 5
|
||||||
|
# Icon for notifications with low urgency, uncomment to enable
|
||||||
|
#icon = /path/to/icon
|
||||||
|
|
||||||
|
[urgency_normal]
|
||||||
|
# background = "#285577"
|
||||||
|
background = "#282c34"
|
||||||
|
# foreground = "#55aebb"
|
||||||
|
foreground = "#b26cc6"
|
||||||
|
frame_color = "#1eb75d"
|
||||||
|
timeout = 5
|
||||||
|
# Icon for notifications with normal urgency, uncomment to enable
|
||||||
|
#icon = /path/to/icon
|
||||||
|
|
||||||
|
[urgency_critical]
|
||||||
|
background = "#900000"
|
||||||
|
foreground = "#ffffff"
|
||||||
|
frame_color = "#ff0000"
|
||||||
|
timeout = 0
|
||||||
|
# Icon for notifications with critical urgency, uncomment to enable
|
||||||
|
#icon = /path/to/icon
|
||||||
|
|
||||||
|
# Every section that isn't one of the above is interpreted as a rules to
|
||||||
|
# override settings for certain messages.
|
||||||
|
#
|
||||||
|
# Messages can be matched by
|
||||||
|
# appname (discouraged, see desktop_entry)
|
||||||
|
# body
|
||||||
|
# category
|
||||||
|
# desktop_entry
|
||||||
|
# icon
|
||||||
|
# match_transient
|
||||||
|
# msg_urgency
|
||||||
|
# stack_tag
|
||||||
|
# summary
|
||||||
|
#
|
||||||
|
# and you can override the
|
||||||
|
# background
|
||||||
|
# foreground
|
||||||
|
# format
|
||||||
|
# frame_color
|
||||||
|
# fullscreen
|
||||||
|
# new_icon
|
||||||
|
# set_stack_tag
|
||||||
|
# set_transient
|
||||||
|
# timeout
|
||||||
|
# urgency
|
||||||
|
#
|
||||||
|
# Shell-like globbing will get expanded.
|
||||||
|
#
|
||||||
|
# Instead of the appname filter, it's recommended to use the desktop_entry filter.
|
||||||
|
# GLib based applications export their desktop-entry name. In comparison to the appname,
|
||||||
|
# the desktop-entry won't get localized.
|
||||||
|
#
|
||||||
|
# SCRIPTING
|
||||||
|
# You can specify a script that gets run when the rule matches by
|
||||||
|
# setting the "script" option.
|
||||||
|
# The script will be called as follows:
|
||||||
|
# script appname summary body icon urgency
|
||||||
|
# where urgency can be "LOW", "NORMAL" or "CRITICAL".
|
||||||
|
#
|
||||||
|
# NOTE: if you don't want a notification to be displayed, set the format
|
||||||
|
# to "".
|
||||||
|
# NOTE: It might be helpful to run dunst -print in a terminal in order
|
||||||
|
# to find fitting options for rules.
|
||||||
|
|
||||||
|
# Disable the transient hint so that idle_threshold cannot be bypassed from the
|
||||||
|
# client
|
||||||
|
#[transient_disable]
|
||||||
|
# match_transient = yes
|
||||||
|
# set_transient = no
|
||||||
|
#
|
||||||
|
# Make the handling of transient notifications more strict by making them not
|
||||||
|
# be placed in history.
|
||||||
|
#[transient_history_ignore]
|
||||||
|
# match_transient = yes
|
||||||
|
# history_ignore = yes
|
||||||
|
|
||||||
|
# fullscreen values
|
||||||
|
# show: show the notifications, regardless if there is a fullscreen window opened
|
||||||
|
# delay: displays the new notification, if there is no fullscreen window active
|
||||||
|
# If the notification is already drawn, it won't get undrawn.
|
||||||
|
# pushback: same as delay, but when switching into fullscreen, the notification will get
|
||||||
|
# withdrawn from screen again and will get delayed like a new notification
|
||||||
|
#[fullscreen_delay_everything]
|
||||||
|
# fullscreen = delay
|
||||||
|
#[fullscreen_show_critical]
|
||||||
|
# msg_urgency = critical
|
||||||
|
# fullscreen = show
|
||||||
|
|
||||||
|
#[espeak]
|
||||||
|
# summary = "*"
|
||||||
|
# script = dunst_espeak.sh
|
||||||
|
|
||||||
|
#[script-test]
|
||||||
|
# summary = "*script*"
|
||||||
|
# script = dunst_test.sh
|
||||||
|
|
||||||
|
#[ignore]
|
||||||
|
# # This notification will not be displayed
|
||||||
|
# summary = "foobar"
|
||||||
|
# format = ""
|
||||||
|
|
||||||
|
#[history-ignore]
|
||||||
|
# # This notification will not be saved in history
|
||||||
|
# summary = "foobar"
|
||||||
|
# history_ignore = yes
|
||||||
|
|
||||||
|
#[skip-display]
|
||||||
|
# # This notification will not be displayed, but will be included in the history
|
||||||
|
# summary = "foobar"
|
||||||
|
# skip_display = yes
|
||||||
|
|
||||||
|
#[signed_on]
|
||||||
|
# appname = Pidgin
|
||||||
|
# summary = "*signed on*"
|
||||||
|
# urgency = low
|
||||||
|
#
|
||||||
|
#[signed_off]
|
||||||
|
# appname = Pidgin
|
||||||
|
# summary = *signed off*
|
||||||
|
# urgency = low
|
||||||
|
#
|
||||||
|
#[says]
|
||||||
|
# appname = Pidgin
|
||||||
|
# summary = *says*
|
||||||
|
# urgency = critical
|
||||||
|
#
|
||||||
|
#[twitter]
|
||||||
|
# appname = Pidgin
|
||||||
|
# summary = *twitter.com*
|
||||||
|
# urgency = normal
|
||||||
|
#
|
||||||
|
#[stack-volumes]
|
||||||
|
# appname = "some_volume_notifiers"
|
||||||
|
# set_stack_tag = "volume"
|
||||||
|
#
|
||||||
|
# vim: ft=cfg
|
353
firefox/userChrome.css
Normal file
353
firefox/userChrome.css
Normal file
@ -0,0 +1,353 @@
|
|||||||
|
:root {
|
||||||
|
|
||||||
|
/* Minimal Functional Fox variables*/
|
||||||
|
--mff-bg: #292f36;
|
||||||
|
--mff-icon-color: #e0fbfc;
|
||||||
|
--mff-nav-toolbar-padding: 8px;
|
||||||
|
--mff-sidebar-bg: var(--mff-bg);
|
||||||
|
--mff-sidebar-color: #e0fbfc;
|
||||||
|
--mff-tab-border-radius: 0px;
|
||||||
|
/* --mff-tab-color: #fefefa; */
|
||||||
|
--mff-tab-color: #ffffff;
|
||||||
|
--mff-tab-font-family: "Cantarell", sans;
|
||||||
|
--mff-tab-font-size: 11pt;
|
||||||
|
--mff-tab-font-weight: 400;
|
||||||
|
--mff-tab-height: 32px;
|
||||||
|
--mff-tab-pinned-bg: #70c1b3;
|
||||||
|
/* --mff-tab-selected-bg: #ee6c4d; */
|
||||||
|
--mff-tab-selected-bg: #99b679;
|
||||||
|
--mff-tab-soundplaying-bg: #9c89b8;
|
||||||
|
/* --mff-tab-soundplaying-bg: #55aebb; */
|
||||||
|
--mff-urlbar-color: #98c1d9;
|
||||||
|
--mff-urlbar-focused-color: #e0fbfc;
|
||||||
|
--mff-urlbar-font-family: "Cantarell", serif;
|
||||||
|
--mff-urlbar-font-size: 12pt;
|
||||||
|
--mff-urlbar-font-weight: 700;
|
||||||
|
--mff-urlbar-results-color: #e0fbfc;
|
||||||
|
--mff-urlbar-results-font-family: "mononoki Nerd Font", serif;
|
||||||
|
--mff-urlbar-results-font-size: 12pt;
|
||||||
|
--mff-urlbar-results-font-weight: 700;
|
||||||
|
--mff-urlbar-results-url-color: #98c1d9;
|
||||||
|
/* --mff-tab-selected-bg: linear-gradient(90deg, rgba(232,74,95,1) 0%, rgba(255,132,124,1) 50%, rgba(254,206,168,1) 100%); */
|
||||||
|
/* --mff-urlbar-font-weight: 600; */
|
||||||
|
|
||||||
|
/* Overriden Firefox variables*/
|
||||||
|
--autocomplete-popup-background: var(--mff-bg) !important;
|
||||||
|
--default-arrowpanel-background: var(--mff-bg) !important;
|
||||||
|
--default-arrowpanel-color: #fefefa !important;
|
||||||
|
--lwt-toolbarbutton-icon-fill: var(--mff-icon-color) !important;
|
||||||
|
--panel-disabled-color: #f9f9fa80;
|
||||||
|
--toolbar-bgcolor: var(--mff-bg) !important;
|
||||||
|
--urlbar-separator-color: transparent !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
_____ _ ___ ___
|
||||||
|
|_ _/_\ | _ ) __|
|
||||||
|
| |/ _ \| _ \__ \
|
||||||
|
|_/_/ \_\___/___/
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
.tab-background[selected="true"] {
|
||||||
|
background: var(--mff-tab-selected-bg) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-background:not[visuallyselected] {
|
||||||
|
background: var(--mff-tab-selected-bg) !important;
|
||||||
|
opacity: 0.5 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* This positions the tabs under the navaigator container */
|
||||||
|
#titlebar {
|
||||||
|
-moz-box-ordinal-group: 3 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tabbrowser-tab::after,
|
||||||
|
.tabbrowser-tab::before {
|
||||||
|
border-left: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-background {
|
||||||
|
border: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tabbrowser-arrowscrollbox {
|
||||||
|
margin-inline-start: 4px !important;
|
||||||
|
margin-inline-end: 0px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-close-button {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-text {
|
||||||
|
font-family: var(--mff-tab-font-family);
|
||||||
|
font-weight: var(--mff-tab-font-weight);
|
||||||
|
font-size: var(--mff-tab-font-size) !important;
|
||||||
|
color: var(--mff-tab-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Hide the favicon for tabs */
|
||||||
|
hbox.tab-content .tab-icon-image {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Show the favicon for tabs that are pinned */
|
||||||
|
hbox.tab-content[pinned=true] .tab-icon-image {
|
||||||
|
display: initial !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
hbox.tab-content[pinned=true] .tab-text {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tabbrowser-tabs {
|
||||||
|
--tab-loading-fill: #033433 !important;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-label-container:not([textoverflow]) {
|
||||||
|
display: flex;
|
||||||
|
overflow: hidden;
|
||||||
|
justify-content: center;
|
||||||
|
width: 50% !important;
|
||||||
|
max-width: 50% !important;
|
||||||
|
min-width: 50% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* .tab-label-container::after {
|
||||||
|
content: "?" !important;
|
||||||
|
|
||||||
|
} */
|
||||||
|
|
||||||
|
.tab-line {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tabbrowser-tab {
|
||||||
|
border-radius: var(--mff-tab-border-radius) !important;
|
||||||
|
border-width: 0;
|
||||||
|
height: var(--mff-tab-height) !important;
|
||||||
|
margin-bottom: 4px !important;
|
||||||
|
margin-inline-end: 4px !important;
|
||||||
|
margin-top: 4px !important;
|
||||||
|
max-height: var(--mff-tab-height) !important;
|
||||||
|
min-height: var(--mff-tab-height) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tabbrowser-tab[soundplaying="true"] {
|
||||||
|
background-color: var(--mff-tab-soundplaying-bg) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tabs-newtab-button {
|
||||||
|
list-style-image: url("add.svg") !important;
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-icon-sound {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
_____ ___ ___ _ ___ _ ___
|
||||||
|
|_ _/ _ \ / _ \| | | _ ) /_\ | _ \
|
||||||
|
| || (_) | (_) | |__| _ \/ _ \| /
|
||||||
|
|_| \___/ \___/|____|___/_/ \_\_|_\
|
||||||
|
*/
|
||||||
|
|
||||||
|
.urlbar-icon > image {
|
||||||
|
fill: var(--mff-icon-color) !important;
|
||||||
|
color: var(--mff-icon-color) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toolbarbutton-text {
|
||||||
|
color: var(--mff-icon-color) !important;
|
||||||
|
}
|
||||||
|
.urlbar-icon {
|
||||||
|
color: var(--mff-icon-color) !important;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.toolbarbutton-icon {
|
||||||
|
/* filter: drop-shadow(0 0 0.75rem crimson); */
|
||||||
|
}
|
||||||
|
|
||||||
|
#urlbar-results {
|
||||||
|
font-family: var(--mff-urlbar-results-font-family);
|
||||||
|
font-weight: var(--mff-urlbar-results-font-weight);
|
||||||
|
font-size: var(--mff-urlbar-results-font-size) !important;
|
||||||
|
color: var(--mff-urlbar-results-color) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.urlbarView-row[type="bookmark"] > span{
|
||||||
|
color: green !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.urlbarView-row[type="switchtab"] > span{
|
||||||
|
color: orange !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.urlbarView-url, .search-panel-one-offs-container {
|
||||||
|
color: var(--mff-urlbar-results-url-color) !important;
|
||||||
|
font-family: var(--mff-urlbar-font-family);
|
||||||
|
font-weight: var(--mff-urlbar-results-font-weight);
|
||||||
|
font-size: var(--mff-urlbar-font-size) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.urlbarView-favicon, .urlbarView-type-icon {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#urlbar-input {
|
||||||
|
font-size: var(--mff-urlbar-font-size) !important;
|
||||||
|
color: var(--mff-urlbar-color) !important;
|
||||||
|
font-family: var(--mff-urlbar-font-family) !important;
|
||||||
|
font-weight: var(--mff-urlbar-font-weight)!important;
|
||||||
|
text-align: center !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tracking-protection-icon-container, #identity-box {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#back-button > .toolbarbutton-icon{
|
||||||
|
--backbutton-background: transparent !important;
|
||||||
|
border: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#back-button {
|
||||||
|
list-style-image: url("left-arrow.svg") !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#forward-button {
|
||||||
|
list-style-image: url("right-arrow.svg") !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
toolbar {
|
||||||
|
background-image: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#urlbar-background {
|
||||||
|
opacity: .98 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#navigator-toolbox, toolbaritem {
|
||||||
|
border: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#urlbar-background {
|
||||||
|
background-color: var(--mff-bg) !important;
|
||||||
|
border: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toolbar-items {
|
||||||
|
background-color: var(--mff-bg) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar-search-container {
|
||||||
|
background-color: var(--mff-sidebar-bg) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
box.panel-arrowbox {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
box.panel-arrowcontent {
|
||||||
|
border-radius: 8px !important;
|
||||||
|
border: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
tab.tabbrowser-tab {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
tab.tabbrowser-tab:hover {
|
||||||
|
box-shadow: 0 1px 4px rgba(0,0,0,.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
image#star-button {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
toolbar#nav-bar {
|
||||||
|
padding: var(--mff-nav-toolbar-padding) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
toolbar#nav-bar {
|
||||||
|
padding: 4px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#urlbar {
|
||||||
|
max-width: 70% !important;
|
||||||
|
margin: 0 15% !important;
|
||||||
|
/* position: unset!important; */;
|
||||||
|
}
|
||||||
|
|
||||||
|
#urlbar-input:focus {
|
||||||
|
color: var(--mff-urlbar-focused-color) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.megabar[breakout-extend="true"]:not([open="true"]) > #urlbar-background {
|
||||||
|
box-shadow: none !important;
|
||||||
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
toolbarbutton {
|
||||||
|
box-shadow: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
___ ___ ___ ___ ___ _ ___
|
||||||
|
/ __|_ _| \| __| _ ) /_\ | _ \
|
||||||
|
\__ \| || |) | _|| _ \/ _ \| /
|
||||||
|
|___/___|___/|___|___/_/ \_\_|_\
|
||||||
|
*/
|
||||||
|
|
||||||
|
.close-icon, .urlbar-icon {
|
||||||
|
fill: var(--mff-icon-color) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-placesTree {
|
||||||
|
color: var(--mff-sidebar-color) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar-switcher-target {
|
||||||
|
/* color: white !important; */
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar-box {
|
||||||
|
--sidebar-background-color: var(--mff-sidebar-bg) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
splitter#sidebar-splitter {
|
||||||
|
opacity: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
splitter#sidebar-splitter {
|
||||||
|
border: none !important;
|
||||||
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
image#sidebar-icon {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
_ ___ ___ _____ _____ _ _ _ ___ _
|
||||||
|
/_\ | _ \ _ \/ _ \ \ / / _ \/_\ | \| | __| |
|
||||||
|
/ _ \| / / (_) \ \/\/ /| _/ _ \| .` | _|| |__
|
||||||
|
/_/ \_\_|_\_|_\\___/ \_/\_/ |_|/_/ \_\_|\_|___|____|
|
||||||
|
*/
|
||||||
|
|
||||||
|
.panel-arrowcontent {
|
||||||
|
padding: 0px !important;
|
||||||
|
margin: 0px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
toolbarseparator {
|
||||||
|
display: none;
|
||||||
|
}
|
11
hooks/polybar.hook
Normal file
11
hooks/polybar.hook
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Trigger]
|
||||||
|
Operation = Upgrade
|
||||||
|
Operation = Remove
|
||||||
|
Type = Package
|
||||||
|
Target = *
|
||||||
|
|
||||||
|
[Action]
|
||||||
|
Description = Updating Polybar package count...
|
||||||
|
Depends = polybar
|
||||||
|
When = PostTransaction
|
||||||
|
Exec = /usr/bin/bash -c '/usr/bin/polybar-msg hook package-updates 1 &>/dev/null || true'
|
1
hooks/polybar.hook.help
Normal file
1
hooks/polybar.hook.help
Normal file
@ -0,0 +1 @@
|
|||||||
|
suda ln -sr polybar.hook /etc/pacman.d/hooks/polybar.hook
|
467
i3-wm/config
Normal file
467
i3-wm/config
Normal file
@ -0,0 +1,467 @@
|
|||||||
|
# This file has been auto-generated by i3-config-wizard(1).
|
||||||
|
# It will not be overwritten, so edit it as you like.
|
||||||
|
#
|
||||||
|
# Should you change your keyboard layout some time, delete
|
||||||
|
# this file and re-run i3-config-wizard(1).
|
||||||
|
#
|
||||||
|
|
||||||
|
# i3 config file (v4)
|
||||||
|
#
|
||||||
|
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
|
||||||
|
|
||||||
|
set $mod Mod1
|
||||||
|
|
||||||
|
# Font for window titles. Will also be used by the bar unless a different font
|
||||||
|
# is used in the bar {} block below.
|
||||||
|
font pango:monospace 8
|
||||||
|
|
||||||
|
# This font is widely installed, provides lots of unicode glyphs, right-to-left
|
||||||
|
# text rendering and scalability on retina/hidpi displays (thanks to pango).
|
||||||
|
#font pango:DejaVu Sans Mono 8
|
||||||
|
|
||||||
|
# The combination of xss-lock, nm-applet and pactl is a popular choice, so
|
||||||
|
# they are included here as an example. Modify as you see fit.
|
||||||
|
|
||||||
|
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
|
||||||
|
# screen before suspend. Use loginctl lock-session to lock your screen.
|
||||||
|
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
|
||||||
|
|
||||||
|
# NetworkManager is the most popular way to manage wireless networks on Linux,
|
||||||
|
# and nm-applet is a desktop environment-independent system tray GUI for it.
|
||||||
|
exec --no-startup-id nm-applet
|
||||||
|
|
||||||
|
# Use pactl to adjust volume in PulseAudio.
|
||||||
|
set $refresh_i3status killall -SIGUSR1 i3status
|
||||||
|
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status; exec --no-startup-id ~/i3/scripts/dunst_volume/dunst_volume.py increase
|
||||||
|
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status; exec --no-startup-id ~/i3/scripts/dunst_volume/dunst_volume.py decrease
|
||||||
|
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status; exec --no-startup-id ~/i3/scripts/dunst_volume/dunst_volume.py mute
|
||||||
|
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3; exec --no-startup-id ~/i3/scripts/dunst_volume/dunst_volume.py mute
|
||||||
|
|
||||||
|
set $up k
|
||||||
|
set $down j
|
||||||
|
set $left h
|
||||||
|
set $right l
|
||||||
|
|
||||||
|
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||||
|
floating_modifier $mod
|
||||||
|
|
||||||
|
# start a terminal
|
||||||
|
bindsym $mod+Return exec alacritty
|
||||||
|
|
||||||
|
# kill focused window
|
||||||
|
bindsym $mod+Shift+q kill
|
||||||
|
|
||||||
|
# start dmenu (a program launcher)
|
||||||
|
# bindsym $mod+d exec --no-startup-id dmenu_run
|
||||||
|
# A more modern dmenu replacement is rofi:
|
||||||
|
# bindcode $mod+40 exec rofi -modi drun,run -show drun
|
||||||
|
# There also is i3-dmenu-desktop which only displays applications shipping a
|
||||||
|
# .desktop file. It is a wrapper around dmenu, so you need that installed.
|
||||||
|
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
|
||||||
|
|
||||||
|
# change focus
|
||||||
|
bindsym $mod+h focus left
|
||||||
|
bindsym $mod+j focus down
|
||||||
|
bindsym $mod+k focus up
|
||||||
|
bindsym $mod+l focus right
|
||||||
|
|
||||||
|
# alternatively, you can use the cursor keys:
|
||||||
|
bindsym $mod+Left focus left
|
||||||
|
bindsym $mod+Down focus down
|
||||||
|
bindsym $mod+Up focus up
|
||||||
|
bindsym $mod+Right focus right
|
||||||
|
|
||||||
|
# move focused window
|
||||||
|
bindsym $mod+Shift+h move left
|
||||||
|
bindsym $mod+Shift+j move down
|
||||||
|
bindsym $mod+Shift+k move up
|
||||||
|
bindsym $mod+Shift+l move right
|
||||||
|
|
||||||
|
# alternatively, you can use the cursor keys:
|
||||||
|
bindsym $mod+Shift+Left move left
|
||||||
|
bindsym $mod+Shift+Down move down
|
||||||
|
bindsym $mod+Shift+Up move up
|
||||||
|
bindsym $mod+Shift+Right move right
|
||||||
|
|
||||||
|
# split in horizontal orientation
|
||||||
|
bindsym $mod+g split h
|
||||||
|
|
||||||
|
# split in vertical orientation
|
||||||
|
bindsym $mod+v split v
|
||||||
|
|
||||||
|
# enter fullscreen mode for the focused container
|
||||||
|
bindsym $mod+f fullscreen toggle
|
||||||
|
|
||||||
|
# change container layout (stacked, tabbed, toggle split)
|
||||||
|
bindsym $mod+Shift+s layout stacking
|
||||||
|
bindsym $mod+Shift+w layout tabbed
|
||||||
|
bindsym $mod+Shift+e layout toggle split
|
||||||
|
|
||||||
|
# toggle tiling / floating
|
||||||
|
bindsym $mod+Shift+space floating toggle
|
||||||
|
|
||||||
|
# change focus between tiling / floating windows
|
||||||
|
bindsym $mod+space focus mode_toggle
|
||||||
|
|
||||||
|
# focus the parent container
|
||||||
|
bindsym $mod+a focus parent
|
||||||
|
|
||||||
|
# focus the child container
|
||||||
|
#bindsym $mod+d focus child
|
||||||
|
|
||||||
|
# Define names for default workspaces for which we configure key bindings later on.
|
||||||
|
# We use variables to avoid repeating the names in multiple places.
|
||||||
|
set $ws10 "0: ﭮ"
|
||||||
|
set $ws1 "1: "
|
||||||
|
set $ws2 "2: "
|
||||||
|
set $ws3 "3: "
|
||||||
|
set $ws4 "4: "
|
||||||
|
set $ws5 "5"
|
||||||
|
set $ws6 "6"
|
||||||
|
set $ws7 "7"
|
||||||
|
set $ws8 "8"
|
||||||
|
set $ws9 "9: "
|
||||||
|
|
||||||
|
# switch to workspace
|
||||||
|
bindsym $mod+1 workspace number $ws1
|
||||||
|
bindsym $mod+2 workspace number $ws2
|
||||||
|
bindsym $mod+3 workspace number $ws3
|
||||||
|
bindsym $mod+4 workspace number $ws4
|
||||||
|
bindsym $mod+5 workspace number $ws5
|
||||||
|
bindsym $mod+6 workspace number $ws6
|
||||||
|
bindsym $mod+7 workspace number $ws7
|
||||||
|
bindsym $mod+8 workspace number $ws8
|
||||||
|
bindsym $mod+9 workspace number $ws9
|
||||||
|
bindsym $mod+0 workspace number $ws10
|
||||||
|
|
||||||
|
# move focused container to workspace
|
||||||
|
bindsym $mod+Shift+1 move container to workspace number $ws1
|
||||||
|
bindsym $mod+Shift+2 move container to workspace number $ws2
|
||||||
|
bindsym $mod+Shift+3 move container to workspace number $ws3
|
||||||
|
bindsym $mod+Shift+4 move container to workspace number $ws4
|
||||||
|
bindsym $mod+Shift+5 move container to workspace number $ws5
|
||||||
|
bindsym $mod+Shift+6 move container to workspace number $ws6
|
||||||
|
bindsym $mod+Shift+7 move container to workspace number $ws7
|
||||||
|
bindsym $mod+Shift+8 move container to workspace number $ws8
|
||||||
|
bindsym $mod+Shift+9 move container to workspace number $ws9
|
||||||
|
bindsym $mod+Shift+0 move container to workspace number $ws10
|
||||||
|
|
||||||
|
# reload the configuration file
|
||||||
|
bindsym $mod+Shift+c reload
|
||||||
|
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||||
|
bindsym $mod+Shift+r restart
|
||||||
|
# exit i3 (logs you out of your X session)
|
||||||
|
bindsym $mod+Shift+x exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
|
||||||
|
|
||||||
|
# resize window (you can also use the mouse for that)
|
||||||
|
mode "resize" {
|
||||||
|
# These bindings trigger as soon as you enter the resize mode
|
||||||
|
|
||||||
|
# Pressing left will shrink the window’s width.
|
||||||
|
# Pressing right will grow the window’s width.
|
||||||
|
# Pressing up will shrink the window’s height.
|
||||||
|
# Pressing down will grow the window’s height.
|
||||||
|
bindsym h resize shrink width 10 px or 10 ppt
|
||||||
|
bindsym k resize grow height 10 px or 10 ppt
|
||||||
|
bindsym j resize shrink height 10 px or 10 ppt
|
||||||
|
bindsym l resize grow width 10 px or 10 ppt
|
||||||
|
|
||||||
|
# same bindings, but for the arrow keys
|
||||||
|
bindsym Left resize shrink width 10 px or 10 ppt
|
||||||
|
bindsym Down resize grow height 10 px or 10 ppt
|
||||||
|
bindsym Up resize shrink height 10 px or 10 ppt
|
||||||
|
bindsym Right resize grow width 10 px or 10 ppt
|
||||||
|
|
||||||
|
# back to normal: Enter or Escape or $mod+r
|
||||||
|
bindsym Return mode "default"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
bindsym $mod+r mode "default"
|
||||||
|
}
|
||||||
|
|
||||||
|
bindsym $mod+r mode "resize"
|
||||||
|
|
||||||
|
# Start i3bar to display a workspace bar (plus the system information i3status
|
||||||
|
# finds out, if available)
|
||||||
|
# bar {
|
||||||
|
# status_command i3status
|
||||||
|
# }
|
||||||
|
|
||||||
|
|
||||||
|
## i3-gaps START
|
||||||
|
|
||||||
|
set $mode_gaps Gaps: (o)uter, (i)nner, (h)orizontal, (v)ertical, (t)op, (r)ight, (b)ottom, (l)eft
|
||||||
|
set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||||
|
set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||||
|
set $mode_gaps_horiz Horizontal Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||||
|
set $mode_gaps_verti Vertical Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||||
|
set $mode_gaps_top Top Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||||
|
set $mode_gaps_right Right Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||||
|
set $mode_gaps_bottom Bottom Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||||
|
set $mode_gaps_left Left Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||||
|
bindsym Mod1+Shift+g mode "$mode_gaps"
|
||||||
|
|
||||||
|
mode "$mode_gaps" {
|
||||||
|
bindsym o mode "$mode_gaps_outer"
|
||||||
|
bindsym i mode "$mode_gaps_inner"
|
||||||
|
bindsym h mode "$mode_gaps_horiz"
|
||||||
|
bindsym v mode "$mode_gaps_verti"
|
||||||
|
bindsym t mode "$mode_gaps_top"
|
||||||
|
bindsym r mode "$mode_gaps_right"
|
||||||
|
bindsym b mode "$mode_gaps_bottom"
|
||||||
|
bindsym l mode "$mode_gaps_left"
|
||||||
|
bindsym Return mode "$mode_gaps"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
|
||||||
|
mode "$mode_gaps_outer" {
|
||||||
|
bindsym plus gaps outer current plus 5
|
||||||
|
bindsym minus gaps outer current minus 5
|
||||||
|
bindsym 0 gaps outer current set 0
|
||||||
|
|
||||||
|
bindsym Shift+plus gaps outer all plus 5
|
||||||
|
bindsym Shift+minus gaps outer all minus 5
|
||||||
|
bindsym Shift+0 gaps outer all set 0
|
||||||
|
|
||||||
|
bindsym Return mode "$mode_gaps"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
|
||||||
|
mode "$mode_gaps_inner" {
|
||||||
|
bindsym plus gaps inner current plus 5
|
||||||
|
bindsym minus gaps inner current minus 5
|
||||||
|
bindsym 0 gaps inner current set 0
|
||||||
|
|
||||||
|
bindsym Shift+plus gaps inner all plus 5
|
||||||
|
bindsym Shift+minus gaps inner all minus 5
|
||||||
|
bindsym Shift+0 gaps inner all set 0
|
||||||
|
|
||||||
|
bindsym Return mode "$mode_gaps"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
mode "$mode_gaps_horiz" {
|
||||||
|
bindsym plus gaps horizontal current plus 5
|
||||||
|
bindsym minus gaps horizontal current minus 5
|
||||||
|
bindsym 0 gaps horizontal current set 0
|
||||||
|
|
||||||
|
bindsym Shift+plus gaps horizontal all plus 5
|
||||||
|
bindsym Shift+minus gaps horizontal all minus 5
|
||||||
|
bindsym Shift+0 gaps horizontal all set 0
|
||||||
|
|
||||||
|
bindsym Return mode "$mode_gaps"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
mode "$mode_gaps_verti" {
|
||||||
|
bindsym plus gaps vertical current plus 5
|
||||||
|
bindsym minus gaps vertical current minus 5
|
||||||
|
bindsym 0 gaps vertical current set 0
|
||||||
|
|
||||||
|
bindsym Shift+plus gaps vertical all plus 5
|
||||||
|
bindsym Shift+minus gaps vertical all minus 5
|
||||||
|
bindsym Shift+0 gaps vertical all set 0
|
||||||
|
|
||||||
|
bindsym Return mode "$mode_gaps"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
mode "$mode_gaps_top" {
|
||||||
|
bindsym plus gaps top current plus 5
|
||||||
|
bindsym minus gaps top current minus 5
|
||||||
|
bindsym 0 gaps top current set 0
|
||||||
|
|
||||||
|
bindsym Shift+plus gaps top all plus 5
|
||||||
|
bindsym Shift+minus gaps top all minus 5
|
||||||
|
bindsym Shift+0 gaps top all set 0
|
||||||
|
|
||||||
|
bindsym Return mode "$mode_gaps"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
mode "$mode_gaps_right" {
|
||||||
|
bindsym plus gaps right current plus 5
|
||||||
|
bindsym minus gaps right current minus 5
|
||||||
|
bindsym 0 gaps right current set 0
|
||||||
|
|
||||||
|
bindsym Shift+plus gaps right all plus 5
|
||||||
|
bindsym Shift+minus gaps right all minus 5
|
||||||
|
bindsym Shift+0 gaps right all set 0
|
||||||
|
|
||||||
|
bindsym Return mode "$mode_gaps"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
mode "$mode_gaps_bottom" {
|
||||||
|
bindsym plus gaps bottom current plus 5
|
||||||
|
bindsym minus gaps bottom current minus 5
|
||||||
|
bindsym 0 gaps bottom current set 0
|
||||||
|
|
||||||
|
bindsym Shift+plus gaps bottom all plus 5
|
||||||
|
bindsym Shift+minus gaps bottom all minus 5
|
||||||
|
bindsym Shift+0 gaps bottom all set 0
|
||||||
|
|
||||||
|
bindsym Return mode "$mode_gaps"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
mode "$mode_gaps_left" {
|
||||||
|
bindsym plus gaps left current plus 5
|
||||||
|
bindsym minus gaps left current minus 5
|
||||||
|
bindsym 0 gaps left current set 0
|
||||||
|
|
||||||
|
bindsym Shift+plus gaps left all plus 5
|
||||||
|
bindsym Shift+minus gaps left all minus 5
|
||||||
|
bindsym Shift+0 gaps left all set 0
|
||||||
|
|
||||||
|
bindsym Return mode "$mode_gaps"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
|
||||||
|
# set default gaps to 20
|
||||||
|
gaps inner 20
|
||||||
|
|
||||||
|
## I3-GAPS END
|
||||||
|
|
||||||
|
# BORDERS
|
||||||
|
|
||||||
|
# make all windows have a 3 pixel border
|
||||||
|
for_window [class=".*"] border pixel 3
|
||||||
|
|
||||||
|
# make calendar, todo, and spotify always only have border 3 pixels
|
||||||
|
for_window[workspace="4: "] border pixel 3
|
||||||
|
for_window[class="^Spotify$"] border none, gaps inner 60
|
||||||
|
for_window[class="discord"] border none
|
||||||
|
for_window[title="ncmpcpp 0.9.2"] border none
|
||||||
|
|
||||||
|
# if title, make the title center aligned
|
||||||
|
title_align center
|
||||||
|
|
||||||
|
## client colors
|
||||||
|
# class border backgr text indicate child_border
|
||||||
|
# client.focused #56a7b5 #282c34 #ffffff #2e9ef4 #56a7b5
|
||||||
|
client.focused #2878af #282c34 #ffffff #2e9ef4 #2878af
|
||||||
|
# client.focused #a8d385 #282c34 #ffffff #50b62c #a8d385
|
||||||
|
client.unfocused #3d4450 #282c34 #ffffff #1e90ff #3d4450
|
||||||
|
|
||||||
|
## disable floating, borders
|
||||||
|
for_window [title="Desktop — Plasma"] kill; floating enable; border none
|
||||||
|
for_window [class="plasmashell"] floating enable;
|
||||||
|
for_window [class="Plasma"] floating enable; border none
|
||||||
|
for_window [title="plasma-desktop"] floating enable; border none
|
||||||
|
for_window [title="Plasma-desktop"] floating enable; border none
|
||||||
|
for_window [title="win7"] floating enable; border none
|
||||||
|
for_window [class="krunner"] floating enable; border none
|
||||||
|
for_window [class="Kmix"] floating enable; border none
|
||||||
|
for_window [class="Klipper"] floating enable; border none
|
||||||
|
for_window [class="Plasmoidviewer"] floating enable; border none
|
||||||
|
for_window [class="(?i)*nextcloud*"] floating disable
|
||||||
|
# for_window [class="plasmashell" window_type="notification"] floating enable, border none, move right 1600px, move down 450px
|
||||||
|
for_window [class="plasmashell" window_type="notification"] floating enable, border none, move position center, move down 908px, resize set 600 200
|
||||||
|
# no_focus [class="plasmashell" window_type="notification"]
|
||||||
|
for_window [class="Steam"] floating enable
|
||||||
|
|
||||||
|
## Keybindings
|
||||||
|
# Alt+: a, b, d, f, h, j, k, l, m, n, o, p, r, s, u, v, y, space, tab, windows,
|
||||||
|
# F5
|
||||||
|
# Alt+Shift: s, w, e, q, r, h, j, k, l, n, p, space
|
||||||
|
|
||||||
|
# bind Alt+Shift+n to next sonF5g
|
||||||
|
bindsym $mod+Shift+n exec --no-startup-id mpc next
|
||||||
|
# bind Alt+Shift+n to prev sonF5g
|
||||||
|
bindsym $mod+Shift+p exec --no-startup-id mpc prev
|
||||||
|
|
||||||
|
# bind rofi-mpd ask mode to Alt+F7
|
||||||
|
bindsym $mod+F7 exec --no-startup-id rofi-mpd -a
|
||||||
|
# bind rofi-mpd song mode to Alt+m
|
||||||
|
bindsym $mod+m exec --no-startup-id rofi-mpd -s
|
||||||
|
|
||||||
|
# start rofi tabswitcher
|
||||||
|
bindsym Mod1+ISO_Left_Tab exec --no-startup-id $HOME/scripts/tabswitcher.sh
|
||||||
|
# changer borders
|
||||||
|
bindsym Mod1+y border pixel 3
|
||||||
|
# bindsym Mod1+t border normal 3
|
||||||
|
bindsym Mod1+u border none
|
||||||
|
|
||||||
|
# set menu to the krunner
|
||||||
|
# set $menu --no-startup-id qdbus org.kde.krunner /App display
|
||||||
|
# bindsym Mod1+m exec $menu
|
||||||
|
|
||||||
|
# run dmenu
|
||||||
|
bindsym Mod1+d exec --no-startup-id ~/scripts/dmenu.sh
|
||||||
|
|
||||||
|
# launch rofi menu and menu full
|
||||||
|
bindsym Mod1+o exec --no-startup-id $HOME/scripts/menu_full
|
||||||
|
# bindsym Mod1+d exec --no-startup-id /home/sudacode/scripts/menu
|
||||||
|
|
||||||
|
# bind the windows key to menu
|
||||||
|
bindsym Super_L exec --no-startup-id $HOME/scripts/menu
|
||||||
|
|
||||||
|
# bind Alt s to flameshot_full script
|
||||||
|
bindsym Mod1+s exec --no-startup-id $HOME/scripts/flameshot_full.sh
|
||||||
|
|
||||||
|
# launch pavucontrol with Alt+p
|
||||||
|
bindsym Mod1+p exec --no-startup-id $HOME/scripts/pavucontrol.sh
|
||||||
|
|
||||||
|
## Spotify/Mpd controls
|
||||||
|
# Bind F4 to Next Song
|
||||||
|
bindsym XF86AudioPrev exec --no-startup-id $HOME/scripts/spotify-controls.sh -b;\
|
||||||
|
exec --no-startup-id $HOME/i3/scripts/music-controls.sh -p
|
||||||
|
# Bind F6 to Pause/Play
|
||||||
|
bindsym XF86AudioPlay exec --no-startup-id $HOME/scripts/spotify-controls.sh -p;\
|
||||||
|
exec --no-startup-id $HOME/i3/scripts/music-controls.sh -t
|
||||||
|
# Bind F5 to Next Song
|
||||||
|
bindsym XF86AudioNext exec --no-startup-id $HOME/scripts/spotify-controls.sh -n;\
|
||||||
|
exec --no-startup-id $HOME/i3/scripts/music-controls.sh -n
|
||||||
|
|
||||||
|
## Music Mpd/Ncmpcpp/Playerctl
|
||||||
|
# Bind Alt n to open ncmpcpp
|
||||||
|
bindsym Mod1+n exec --no-startup-id alacritty -e ncmpcpp
|
||||||
|
|
||||||
|
# Bind Alt b to launch bpytop
|
||||||
|
bindsym Mod1+b exec --no-startup-id alacritty -e bpytop
|
||||||
|
|
||||||
|
# get a new wallpaper
|
||||||
|
bindsym Control+Mod1+n exec --no-startup-id $HOME/scripts/new-wallpaper.sh
|
||||||
|
|
||||||
|
bindsym Control+Mod1+f exec --no-startup-id firefox
|
||||||
|
|
||||||
|
## ASSIGN TO WORKSPACES
|
||||||
|
assign [class="^firefox$"] "2: "
|
||||||
|
assign [class="^Code$"] "3: "
|
||||||
|
# assign [class="^plasmawindowed$" name="TodoList"] "4: "
|
||||||
|
# assign [class="^plasmawindowed$" name="Event Calendar"] "4: "
|
||||||
|
|
||||||
|
# Assign and move mpd to workspace 9
|
||||||
|
for_window [title="ncmpcpp 0.9.2"] move --no-auto-back-and-forth to workspace $ws9
|
||||||
|
|
||||||
|
# assign discord to workspace 10/0
|
||||||
|
assign [class="^discord$"] workspace $ws10
|
||||||
|
|
||||||
|
# Unlock KWallet
|
||||||
|
# exec --no-startup-id /usr/lib/pam_kwallet_init
|
||||||
|
|
||||||
|
## ON STARTUP
|
||||||
|
# launch polybar on startup
|
||||||
|
exec_always --no-startup-id /home/sudacode/i3/scripts/launch.sh
|
||||||
|
|
||||||
|
# launch picom in the background
|
||||||
|
exec_always --no-startup-id /home/sudacode/scripts/picom.sh
|
||||||
|
|
||||||
|
# run wallpaper script to set random wallpaper
|
||||||
|
exec_always --no-startup-id /home/sudacode/scripts/wallpaper.sh
|
||||||
|
|
||||||
|
# start the calendar and todolist plasmoids
|
||||||
|
exec --no-startup-id ~/scripts/calendar.sh
|
||||||
|
exec --no-startup-id ~/scripts/todo.sh
|
||||||
|
|
||||||
|
exec --no-startup-id alacritty -e ncmpcpp
|
||||||
|
|
||||||
|
# Make the currently focused window a scratchpad
|
||||||
|
bindsym $mod+Shift+minus move scratchpad
|
||||||
|
|
||||||
|
# Show the first scratchpad window
|
||||||
|
bindsym $mod+minus scratchpad show
|
||||||
|
|
||||||
|
for_window [title="System Tray"] floating enable, border none
|
||||||
|
for_window [title="System Tray" window_type="normal"] move scratchpad
|
||||||
|
bindsym Mod1+t [title="System Tray"] scratchpad show, resize set 250 260, move position center, move up 855px, move right 1740px
|
||||||
|
exec_always --no-startup-id "plasmawindowed org.kde.plasma.systemtray"
|
||||||
|
|
||||||
|
for_window [class="plasmawindowed" title="TodoList"] resize set 1200 2000, border none, move --no-auto-back-and-forth to workspace "4: "
|
||||||
|
for_window [class="plasmawindowed" title="Event Calendar"] border none, move --no-auto-back-and-forth to workspace "4: "
|
||||||
|
for_window [class="eecs285-proj3-ksyasuda-WheelOfFortune"] floating enable
|
||||||
|
for_window [title="Android Emulator - Pixel_3a_API_30_x86:5554"] floating enable, border none
|
455
i3-wm/config.desktop
Normal file
455
i3-wm/config.desktop
Normal file
@ -0,0 +1,455 @@
|
|||||||
|
# This file has been auto-generated by i3-config-wizard(1).
|
||||||
|
# It will not be overwritten, so edit it as you like.
|
||||||
|
#
|
||||||
|
# Should you change your keyboard layout some time, delete
|
||||||
|
# this file and re-run i3-config-wizard(1).
|
||||||
|
#
|
||||||
|
|
||||||
|
# i3 config file (v4)
|
||||||
|
#
|
||||||
|
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
|
||||||
|
|
||||||
|
set $mod Mod1
|
||||||
|
|
||||||
|
# Font for window titles. Will also be used by the bar unless a different font
|
||||||
|
# is used in the bar {} block below.
|
||||||
|
font pango:monospace 8
|
||||||
|
|
||||||
|
# This font is widely installed, provides lots of unicode glyphs, right-to-left
|
||||||
|
# text rendering and scalability on retina/hidpi displays (thanks to pango).
|
||||||
|
#font pango:DejaVu Sans Mono 8
|
||||||
|
|
||||||
|
# The combination of xss-lock, nm-applet and pactl is a popular choice, so
|
||||||
|
# they are included here as an example. Modify as you see fit.
|
||||||
|
|
||||||
|
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
|
||||||
|
# screen before suspend. Use loginctl lock-session to lock your screen.
|
||||||
|
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
|
||||||
|
|
||||||
|
# NetworkManager is the most popular way to manage wireless networks on Linux,
|
||||||
|
# and nm-applet is a desktop environment-independent system tray GUI for it.
|
||||||
|
exec --no-startup-id nm-applet
|
||||||
|
|
||||||
|
# Use pactl to adjust volume in PulseAudio.
|
||||||
|
set $refresh_i3status killall -SIGUSR1 i3status
|
||||||
|
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status; exec --no-startup-id ~/i3/scripts/dunst_volume/dunst_volume.py increase
|
||||||
|
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status; exec --no-startup-id ~/i3/scripts/dunst_volume/dunst_volume.py decrease
|
||||||
|
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status; exec --no-startup-id ~/i3/scripts/dunst_volume/dunst_volume.py mute
|
||||||
|
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3; exec --no-startup-id ~/i3/scripts/dunst_volume.py mute
|
||||||
|
|
||||||
|
set $up k
|
||||||
|
set $down j
|
||||||
|
set $left h
|
||||||
|
set $right l
|
||||||
|
|
||||||
|
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||||
|
floating_modifier $mod
|
||||||
|
|
||||||
|
# start a terminal
|
||||||
|
bindsym $mod+Return exec alacritty
|
||||||
|
|
||||||
|
# kill focused window
|
||||||
|
bindsym $mod+Shift+q kill
|
||||||
|
|
||||||
|
# start dmenu (a program launcher)
|
||||||
|
# bindsym $mod+d exec --no-startup-id dmenu_run
|
||||||
|
# A more modern dmenu replacement is rofi:
|
||||||
|
# bindcode $mod+40 exec rofi -modi drun,run -show drun
|
||||||
|
# There also is i3-dmenu-desktop which only displays applications shipping a
|
||||||
|
# .desktop file. It is a wrapper around dmenu, so you need that installed.
|
||||||
|
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
|
||||||
|
|
||||||
|
# change focus
|
||||||
|
bindsym $mod+h focus left
|
||||||
|
bindsym $mod+j focus down
|
||||||
|
bindsym $mod+k focus up
|
||||||
|
bindsym $mod+l focus right
|
||||||
|
|
||||||
|
# alternatively, you can use the cursor keys:
|
||||||
|
bindsym $mod+Left focus left
|
||||||
|
bindsym $mod+Down focus down
|
||||||
|
bindsym $mod+Up focus up
|
||||||
|
bindsym $mod+Right focus right
|
||||||
|
|
||||||
|
# move focused window
|
||||||
|
bindsym $mod+Shift+h move left
|
||||||
|
bindsym $mod+Shift+j move down
|
||||||
|
bindsym $mod+Shift+k move up
|
||||||
|
bindsym $mod+Shift+l move right
|
||||||
|
|
||||||
|
# alternatively, you can use the cursor keys:
|
||||||
|
bindsym $mod+Shift+Left move left
|
||||||
|
bindsym $mod+Shift+Down move down
|
||||||
|
bindsym $mod+Shift+Up move up
|
||||||
|
bindsym $mod+Shift+Right move right
|
||||||
|
|
||||||
|
# split in horizontal orientation
|
||||||
|
bindsym $mod+g split h
|
||||||
|
|
||||||
|
# split in vertical orientation
|
||||||
|
bindsym $mod+v split v
|
||||||
|
|
||||||
|
# enter fullscreen mode for the focused container
|
||||||
|
bindsym $mod+f fullscreen toggle
|
||||||
|
|
||||||
|
# change container layout (stacked, tabbed, toggle split)
|
||||||
|
bindsym $mod+s layout stacking
|
||||||
|
bindsym $mod+w layout tabbed
|
||||||
|
bindsym $mod+e layout toggle split
|
||||||
|
|
||||||
|
# toggle tiling / floating
|
||||||
|
bindsym $mod+Shift+space floating toggle
|
||||||
|
|
||||||
|
# change focus between tiling / floating windows
|
||||||
|
bindsym $mod+space focus mode_toggle
|
||||||
|
|
||||||
|
# focus the parent container
|
||||||
|
bindsym $mod+a focus parent
|
||||||
|
|
||||||
|
# focus the child container
|
||||||
|
#bindsym $mod+d focus child
|
||||||
|
|
||||||
|
# Define names for default workspaces for which we configure key bindings later on.
|
||||||
|
# We use variables to avoid repeating the names in multiple places.
|
||||||
|
# set $ws1 "1"
|
||||||
|
# set $ws2 "2"
|
||||||
|
# set $ws3 "3"
|
||||||
|
# set $ws4 "4"
|
||||||
|
set $ws1 "1: "
|
||||||
|
set $ws2 "2: "
|
||||||
|
set $ws3 "3: "
|
||||||
|
set $ws4 "4: "
|
||||||
|
set $ws5 "5: ﮷"
|
||||||
|
set $ws6 "6"
|
||||||
|
set $ws7 "7"
|
||||||
|
set $ws8 "8"
|
||||||
|
set $ws9 "9: "
|
||||||
|
set $ws10 "0"
|
||||||
|
|
||||||
|
# switch to workspace
|
||||||
|
bindsym $mod+1 workspace number $ws1
|
||||||
|
bindsym $mod+2 workspace number $ws2
|
||||||
|
bindsym $mod+3 workspace number $ws3
|
||||||
|
bindsym $mod+4 workspace number $ws4
|
||||||
|
bindsym $mod+5 workspace number $ws5
|
||||||
|
bindsym $mod+6 workspace number $ws6
|
||||||
|
bindsym $mod+7 workspace number $ws7
|
||||||
|
bindsym $mod+8 workspace number $ws8
|
||||||
|
bindsym $mod+9 workspace number $ws9
|
||||||
|
bindsym $mod+0 workspace number $ws10
|
||||||
|
|
||||||
|
# move focused container to workspace
|
||||||
|
bindsym $mod+Shift+1 move container to workspace number $ws1
|
||||||
|
bindsym $mod+Shift+2 move container to workspace number $ws2
|
||||||
|
bindsym $mod+Shift+3 move container to workspace number $ws3
|
||||||
|
bindsym $mod+Shift+4 move container to workspace number $ws4
|
||||||
|
bindsym $mod+Shift+5 move container to workspace number $ws5
|
||||||
|
bindsym $mod+Shift+6 move container to workspace number $ws6
|
||||||
|
bindsym $mod+Shift+7 move container to workspace number $ws7
|
||||||
|
bindsym $mod+Shift+8 move container to workspace number $ws8
|
||||||
|
bindsym $mod+Shift+9 move container to workspace number $ws9
|
||||||
|
bindsym $mod+Shift+0 move container to workspace number $ws10
|
||||||
|
|
||||||
|
# reload the configuration file
|
||||||
|
bindsym $mod+Shift+c reload
|
||||||
|
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||||
|
bindsym $mod+Shift+r restart
|
||||||
|
# exit i3 (logs you out of your X session)
|
||||||
|
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
|
||||||
|
|
||||||
|
# resize window (you can also use the mouse for that)
|
||||||
|
mode "resize" {
|
||||||
|
# These bindings trigger as soon as you enter the resize mode
|
||||||
|
# Pressing left will shrink the window’s width.
|
||||||
|
# Pressing right will grow the window’s width.
|
||||||
|
# Pressing up will shrink the window’s height.
|
||||||
|
# Pressing down will grow the window’s height.
|
||||||
|
bindsym h resize shrink width 10 px or 10 ppt
|
||||||
|
bindsym k resize grow height 10 px or 10 ppt
|
||||||
|
bindsym j resize shrink height 10 px or 10 ppt
|
||||||
|
bindsym l resize grow width 10 px or 10 ppt
|
||||||
|
|
||||||
|
# same bindings, but for the arrow keys
|
||||||
|
bindsym Left resize shrink width 10 px or 10 ppt
|
||||||
|
bindsym Down resize grow height 10 px or 10 ppt
|
||||||
|
bindsym Up resize shrink height 10 px or 10 ppt
|
||||||
|
bindsym Right resize grow width 10 px or 10 ppt
|
||||||
|
|
||||||
|
# back to normal: Enter or Escape or $mod+r
|
||||||
|
bindsym Return mode "default"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
bindsym $mod+r mode "default"
|
||||||
|
}
|
||||||
|
|
||||||
|
bindsym $mod+r mode "resize"
|
||||||
|
|
||||||
|
# Start i3bar to display a workspace bar (plus the system information i3status
|
||||||
|
# finds out, if available)
|
||||||
|
# bar {
|
||||||
|
# status_command i3status
|
||||||
|
# }
|
||||||
|
|
||||||
|
|
||||||
|
## i3-gaps START
|
||||||
|
|
||||||
|
set $mode_gaps Gaps: (o)uter, (i)nner, (h)orizontal, (v)ertical, (t)op, (r)ight, (b)ottom, (l)eft
|
||||||
|
set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||||
|
set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||||
|
set $mode_gaps_horiz Horizontal Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||||
|
set $mode_gaps_verti Vertical Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||||
|
set $mode_gaps_top Top Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||||
|
set $mode_gaps_right Right Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||||
|
set $mode_gaps_bottom Bottom Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||||
|
set $mode_gaps_left Left Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||||
|
bindsym Mod1+Shift+g mode "$mode_gaps"
|
||||||
|
|
||||||
|
mode "$mode_gaps" {
|
||||||
|
bindsym o mode "$mode_gaps_outer"
|
||||||
|
bindsym i mode "$mode_gaps_inner"
|
||||||
|
bindsym h mode "$mode_gaps_horiz"
|
||||||
|
bindsym v mode "$mode_gaps_verti"
|
||||||
|
bindsym t mode "$mode_gaps_top"
|
||||||
|
bindsym r mode "$mode_gaps_right"
|
||||||
|
bindsym b mode "$mode_gaps_bottom"
|
||||||
|
bindsym l mode "$mode_gaps_left"
|
||||||
|
bindsym Return mode "$mode_gaps"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
|
||||||
|
mode "$mode_gaps_outer" {
|
||||||
|
bindsym plus gaps outer current plus 5
|
||||||
|
bindsym minus gaps outer current minus 5
|
||||||
|
bindsym 0 gaps outer current set 0
|
||||||
|
|
||||||
|
bindsym Shift+plus gaps outer all plus 5
|
||||||
|
bindsym Shift+minus gaps outer all minus 5
|
||||||
|
bindsym Shift+0 gaps outer all set 0
|
||||||
|
|
||||||
|
bindsym Return mode "$mode_gaps"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
|
||||||
|
mode "$mode_gaps_inner" {
|
||||||
|
bindsym plus gaps inner current plus 5
|
||||||
|
bindsym minus gaps inner current minus 5
|
||||||
|
bindsym 0 gaps inner current set 0
|
||||||
|
|
||||||
|
bindsym Shift+plus gaps inner all plus 5
|
||||||
|
bindsym Shift+minus gaps inner all minus 5
|
||||||
|
bindsym Shift+0 gaps inner all set 0
|
||||||
|
|
||||||
|
bindsym Return mode "$mode_gaps"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
mode "$mode_gaps_horiz" {
|
||||||
|
bindsym plus gaps horizontal current plus 5
|
||||||
|
bindsym minus gaps horizontal current minus 5
|
||||||
|
bindsym 0 gaps horizontal current set 0
|
||||||
|
|
||||||
|
bindsym Shift+plus gaps horizontal all plus 5
|
||||||
|
bindsym Shift+minus gaps horizontal all minus 5
|
||||||
|
bindsym Shift+0 gaps horizontal all set 0
|
||||||
|
|
||||||
|
bindsym Return mode "$mode_gaps"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
mode "$mode_gaps_verti" {
|
||||||
|
bindsym plus gaps vertical current plus 5
|
||||||
|
bindsym minus gaps vertical current minus 5
|
||||||
|
bindsym 0 gaps vertical current set 0
|
||||||
|
|
||||||
|
bindsym Shift+plus gaps vertical all plus 5
|
||||||
|
bindsym Shift+minus gaps vertical all minus 5
|
||||||
|
bindsym Shift+0 gaps vertical all set 0
|
||||||
|
|
||||||
|
bindsym Return mode "$mode_gaps"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
mode "$mode_gaps_top" {
|
||||||
|
bindsym plus gaps top current plus 5
|
||||||
|
bindsym minus gaps top current minus 5
|
||||||
|
bindsym 0 gaps top current set 0
|
||||||
|
|
||||||
|
bindsym Shift+plus gaps top all plus 5
|
||||||
|
bindsym Shift+minus gaps top all minus 5
|
||||||
|
bindsym Shift+0 gaps top all set 0
|
||||||
|
|
||||||
|
bindsym Return mode "$mode_gaps"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
mode "$mode_gaps_right" {
|
||||||
|
bindsym plus gaps right current plus 5
|
||||||
|
bindsym minus gaps right current minus 5
|
||||||
|
bindsym 0 gaps right current set 0
|
||||||
|
|
||||||
|
bindsym Shift+plus gaps right all plus 5
|
||||||
|
bindsym Shift+minus gaps right all minus 5
|
||||||
|
bindsym Shift+0 gaps right all set 0
|
||||||
|
|
||||||
|
bindsym Return mode "$mode_gaps"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
mode "$mode_gaps_bottom" {
|
||||||
|
bindsym plus gaps bottom current plus 5
|
||||||
|
bindsym minus gaps bottom current minus 5
|
||||||
|
bindsym 0 gaps bottom current set 0
|
||||||
|
|
||||||
|
bindsym Shift+plus gaps bottom all plus 5
|
||||||
|
bindsym Shift+minus gaps bottom all minus 5
|
||||||
|
bindsym Shift+0 gaps bottom all set 0
|
||||||
|
|
||||||
|
bindsym Return mode "$mode_gaps"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
mode "$mode_gaps_left" {
|
||||||
|
bindsym plus gaps left current plus 5
|
||||||
|
bindsym minus gaps left current minus 5
|
||||||
|
bindsym 0 gaps left current set 0
|
||||||
|
|
||||||
|
bindsym Shift+plus gaps left all plus 5
|
||||||
|
bindsym Shift+minus gaps left all minus 5
|
||||||
|
bindsym Shift+0 gaps left all set 0
|
||||||
|
|
||||||
|
bindsym Return mode "$mode_gaps"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
|
||||||
|
# set default gaps to 20
|
||||||
|
gaps inner 20
|
||||||
|
|
||||||
|
## I3-GAPS END
|
||||||
|
|
||||||
|
# BORDERS
|
||||||
|
|
||||||
|
# make all windows have a 3 pixel border
|
||||||
|
for_window [class=".*"] border pixel 3
|
||||||
|
|
||||||
|
# make calendar, todo, and spotify always only have border 3 pixels
|
||||||
|
for_window[workspace="4: "] border pixel 3
|
||||||
|
# for_window[class="^Spotify$"] border pixel 3, gaps inner 60
|
||||||
|
|
||||||
|
# if title, make the title center aligned
|
||||||
|
title_align center
|
||||||
|
|
||||||
|
## client colors
|
||||||
|
# class border backgr text indicate child_border
|
||||||
|
# client.focused #56a7b5 #282c34 #ffffff #2e9ef4 #56a7b5
|
||||||
|
client.focused #2878af #282c34 #ffffff #2e9ef4 #2878af
|
||||||
|
# client.focused #a8d385 #282c34 #ffffff #50b62c #a8d385
|
||||||
|
client.unfocused #3d4450 #282c34 #ffffff #1e90ff #3d4450
|
||||||
|
|
||||||
|
## disable floating, borders
|
||||||
|
for_window [title="Desktop — Plasma"] kill; floating enable; border none
|
||||||
|
for_window [class="plasmashell"] floating enable;
|
||||||
|
for_window [class="Plasma"] floating enable; border none
|
||||||
|
for_window [title="plasma-desktop"] floating enable; border none
|
||||||
|
for_window [title="Plasma-desktop"] floating enable; border none
|
||||||
|
for_window [title="win7"] floating enable; border none
|
||||||
|
for_window [class="krunner"] floating enable; border none
|
||||||
|
for_window [class="Kmix"] floating enable; border none
|
||||||
|
for_window [class="Klipper"] floating enable; border none
|
||||||
|
for_window [class="Plasmoidviewer"] floating enable; border none
|
||||||
|
for_window [class="(?i)*nextcloud*"] floating disable
|
||||||
|
# for_window [class="plasmashell" window_type="notification"] floating enable, border none, move right 1600px, move down 450px
|
||||||
|
# for_window [class="plasmashell" window_type="notification"] floating enable, move down 100, move right 965, resize set 400 150, border none
|
||||||
|
for_window [class="plasmawindowed" window_type="notification"] floating enable, move position 1000 55, resize set 400 150;
|
||||||
|
# no_focus [class="plasmashell" window_type="notification"]
|
||||||
|
for_window [class="Steam"] floating enable; border none
|
||||||
|
for_window [class="plasmawindowed"] border none
|
||||||
|
|
||||||
|
## CUSTOM KEYBINDS
|
||||||
|
# start rofi tabswitcher
|
||||||
|
bindsym Mod1+ISO_Left_Tab exec --no-startup-id $HOME/scripts/tabswitcher.sh
|
||||||
|
# changer borders
|
||||||
|
bindsym Mod1+y border pixel 3
|
||||||
|
# bindsym Mod1+t border normal 3
|
||||||
|
bindsym Mod1+u border none
|
||||||
|
|
||||||
|
# set menu to the krunner
|
||||||
|
# set $menu --no-startup-id qdbus org.kde.krunner /App display
|
||||||
|
# bindsym Mod1+m exec $menu
|
||||||
|
|
||||||
|
# run dmenu
|
||||||
|
bindsym Mod1+d exec --no-startup-id ~/scripts/dmenu-desktop.sh
|
||||||
|
|
||||||
|
# launch rofi menu and menu full
|
||||||
|
bindsym Mod1+o exec --no-startup-id $HOME/i3/scripts/menu_full_desktop
|
||||||
|
# bindsym Mod1+d exec --no-startup-id /home/sudacode/scripts/menu
|
||||||
|
|
||||||
|
# bind the windows key to menu
|
||||||
|
bindsym Super_L exec --no-startup-id $HOME/scripts/menu-desktop
|
||||||
|
|
||||||
|
# Bind Alt+m to take screenshot with flameshot
|
||||||
|
bindsym Mod1+m exec --no-startup-id $HOME/scripts/flameshot_full.sh
|
||||||
|
|
||||||
|
# bind Alt+p to run pavucontrol script
|
||||||
|
bindsym Mod1+p exec --no-startup-id $HOME/scripts/pavucontrol.sh
|
||||||
|
|
||||||
|
# Bind F7 to Next Song
|
||||||
|
bindsym XF86AudioPrev exec --no-startup-id $HOME/scripts/spotify-controls.sh -b; exec --no-startup-id $HOME/i3/scripts/music-controls.sh -p
|
||||||
|
# Bind F8 to Pause/Play
|
||||||
|
bindsym XF86AudioPlay exec --no-startup-id $HOME/scripts/spotify-controls.sh -p; exec --no-startup-id $HOME/i3/scripts/music-controls.sh -t
|
||||||
|
# Bind F9 to Next Song
|
||||||
|
bindsym XF86AudioNext exec --no-startup-id $HOME/scripts/spotify-controls.sh -n; exec --no-startup-id $HOME/i3/scripts/music-controls.sh -n
|
||||||
|
|
||||||
|
# bind alt b to bpytop
|
||||||
|
bindsym Mod1+b exec --no-startup-id alacritty -e bpytop
|
||||||
|
|
||||||
|
# bind alt n to ncmpcpp
|
||||||
|
bindsym Mod1+n exec --no-startup-id alacritty -e ncmpcpp
|
||||||
|
|
||||||
|
# get a new wallpaper
|
||||||
|
bindsym Control+Mod1+n exec --no-startup-id $HOME/scripts/new-wallpaper.sh
|
||||||
|
|
||||||
|
bindsym Control+Mod1+f exec --no-startup-id firefox
|
||||||
|
|
||||||
|
## ASSIGN TO WORKSPACES
|
||||||
|
# assign [class="^firefox$"] $ws6
|
||||||
|
# assign [class="^Code$"] $ws7
|
||||||
|
# assign [class="^plasmawindowed$"] $ws4
|
||||||
|
# # Assign and move spotify to workspace 9
|
||||||
|
# for_window [class="Spotify"] move --no-auto-back-and-forth to workspace $ws2
|
||||||
|
|
||||||
|
assign [class="^firefox$"] $ws2
|
||||||
|
assign [class="^Code$"] $ws3
|
||||||
|
assign [class="^plasmawindowed$"] $ws4
|
||||||
|
assign [class="^discord$"] $ws10
|
||||||
|
# Assign and move spotify to workspace 9
|
||||||
|
# for_window [class="Spotify"] move --no-auto-back-and-forth to workspace $ws9
|
||||||
|
|
||||||
|
# Unlock KWallet
|
||||||
|
# exec --no-startup-id /usr/lib/pam_kwallet_init
|
||||||
|
|
||||||
|
## ON STARTUP
|
||||||
|
# launch polybar on startup
|
||||||
|
exec_always --no-startup-id /home/sudacode/i3/scripts/launch_desktop.sh
|
||||||
|
# launch picom in the background
|
||||||
|
## Picom taking up too much cpu right now
|
||||||
|
exec_always --no-startup-id /home/sudacode/scripts/picom.sh
|
||||||
|
# run wallpaper script to set random wallpaper
|
||||||
|
exec_always --no-startup-id /home/sudacode/scripts/wallpaper.sh
|
||||||
|
# start the calendar and todolist plasmoids
|
||||||
|
exec --no-startup-id ~/scripts/calendar.sh
|
||||||
|
exec --no-startup-id ~/scripts/todo.sh
|
||||||
|
|
||||||
|
# exec_always --no-startup-id /usr/share/knotifications5
|
||||||
|
# exec_always --no-startup-id /usr/lib/notification-daemon-1.0/notification-daemon
|
||||||
|
exec --no-startup-id dunst
|
||||||
|
|
||||||
|
# for_window [class='plasmawindowed' title='TodoList'] resize set 500 500
|
||||||
|
for_window [class="plasmawindowed" title="TodoList"] resize set 600
|
||||||
|
# Android emulator - eecs285 project4
|
||||||
|
for_window [title="Android Emulator - Pixel_3a_API_30:5554"] floating enable, border none
|
||||||
|
for_window [class="rdesktop"] floating enable, border none;
|
||||||
|
|
||||||
|
# workspaces for dual monitors
|
||||||
|
workspace $ws10 output HDMI-0
|
||||||
|
workspace $ws1 output DP-2
|
||||||
|
workspace $ws2 output DP-2
|
||||||
|
workspace $ws3 output DP-2
|
||||||
|
workspace $ws4 output HDMI-0
|
||||||
|
workspace $ws5 output HDMI-0
|
||||||
|
workspace $ws6 output HDMI-0
|
||||||
|
workspace $ws7 output HDMI-0
|
||||||
|
workspace $ws8 output HDMI-0
|
||||||
|
workspace $ws9 output HDMI-0
|
30
include-modules.ini
Normal file
30
include-modules.ini
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
include-file = $HOME/i3/modules/memory.ini
|
||||||
|
include-file = $HOME/i3/modules/custom-mpd.ini
|
||||||
|
include-file = $HOME/i3/modules/playerctl.ini
|
||||||
|
include-file = $HOME/i3/modules/jdate.ini
|
||||||
|
include-file = $HOME/i3/modules/openweathermap-fullfeatured.ini
|
||||||
|
include-file = $HOME/i3/modules/color-picker.ini
|
||||||
|
include-file = $HOME/i3/modules/bluetooth.ini
|
||||||
|
include-file = $HOME/i3/modules/bluetooth.desktop.ini
|
||||||
|
include-file = $HOME/i3/modules/bluetooth2.ini
|
||||||
|
include-file = $HOME/i3/modules/battery.ini
|
||||||
|
include-file = $HOME/i3/modules/package-updates-trigger.ini
|
||||||
|
include-file = $HOME/i3/modules/package-updates.ini
|
||||||
|
include-file = $HOME/i3/modules/spotify-bar.ini
|
||||||
|
include-file = $HOME/i3/modules/spotify-bar-desktop.ini
|
||||||
|
include-file = $HOME/i3/modules/spotify-controls.ini
|
||||||
|
include-file = $HOME/i3/modules/cpu.ini
|
||||||
|
include-file = $HOME/i3/modules/vscode.ini
|
||||||
|
include-file = $HOME/i3/modules/settings.ini
|
||||||
|
include-file = $HOME/i3/modules/dolphin.ini
|
||||||
|
include-file = $HOME/i3/modules/flameshot.ini
|
||||||
|
include-file = $HOME/i3/modules/menu.ini
|
||||||
|
include-file = $HOME/i3/modules/pulseaudio.ini
|
||||||
|
include-file = $HOME/i3/modules/workspaces.ini
|
||||||
|
include-file = $HOME/i3/modules/network.ini
|
||||||
|
include-file = $HOME/i3/modules/network-desktop.ini
|
||||||
|
include-file = $HOME/i3/modules/reddit.ini
|
||||||
|
include-file = $HOME/i3/modules/github.ini
|
||||||
|
include-file = $HOME/i3/modules/volume.ini
|
||||||
|
include-file = $HOME/i3/modules/date.ini
|
||||||
|
include-file = $HOME/i3/modules/powermenu.ini
|
6
mpd-notification/mpd-notification.conf
Normal file
6
mpd-notification/mpd-notification.conf
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
host = localhost
|
||||||
|
port = 6600
|
||||||
|
music-dir = /home/sudacode/Music/
|
||||||
|
oneline = false
|
||||||
|
scale = 600
|
||||||
|
timeout = 5
|
559
ncmpcpp/ncmpcpp.bindings
Normal file
559
ncmpcpp/ncmpcpp.bindings
Normal file
@ -0,0 +1,559 @@
|
|||||||
|
def_key "j"
|
||||||
|
scroll_down
|
||||||
|
|
||||||
|
def_key "k"
|
||||||
|
scroll_up
|
||||||
|
|
||||||
|
def_key "l"
|
||||||
|
next_column
|
||||||
|
|
||||||
|
def_key "h"
|
||||||
|
previous_column
|
||||||
|
|
||||||
|
def_key "ctrl-l"
|
||||||
|
show_lyrics
|
||||||
|
|
||||||
|
#def_key "mouse"
|
||||||
|
# mouse_event
|
||||||
|
#
|
||||||
|
#def_key "up"
|
||||||
|
# scroll_up
|
||||||
|
#
|
||||||
|
#def_key "shift-up"
|
||||||
|
# select_item
|
||||||
|
# scroll_up
|
||||||
|
#
|
||||||
|
#def_key "down"
|
||||||
|
# scroll_down
|
||||||
|
#
|
||||||
|
#def_key "shift-down"
|
||||||
|
# select_item
|
||||||
|
# scroll_down
|
||||||
|
#
|
||||||
|
#def_key "["
|
||||||
|
# scroll_up_album
|
||||||
|
#
|
||||||
|
#def_key "]"
|
||||||
|
# scroll_down_album
|
||||||
|
#
|
||||||
|
#def_key "{"
|
||||||
|
# scroll_up_artist
|
||||||
|
#
|
||||||
|
#def_key "}"
|
||||||
|
# scroll_down_artist
|
||||||
|
#
|
||||||
|
#def_key "page_up"
|
||||||
|
# page_up
|
||||||
|
#
|
||||||
|
#def_key "page_down"
|
||||||
|
# page_down
|
||||||
|
#
|
||||||
|
#def_key "home"
|
||||||
|
# move_home
|
||||||
|
#
|
||||||
|
#def_key "end"
|
||||||
|
# move_end
|
||||||
|
#
|
||||||
|
#def_key "insert"
|
||||||
|
# select_item
|
||||||
|
#
|
||||||
|
#def_key "enter"
|
||||||
|
# enter_directory
|
||||||
|
#
|
||||||
|
#def_key "enter"
|
||||||
|
# toggle_output
|
||||||
|
#
|
||||||
|
#def_key "enter"
|
||||||
|
# run_action
|
||||||
|
#
|
||||||
|
#def_key "enter"
|
||||||
|
# play_item
|
||||||
|
#
|
||||||
|
#def_key "space"
|
||||||
|
# add_item_to_playlist
|
||||||
|
#
|
||||||
|
#def_key "space"
|
||||||
|
# toggle_lyrics_update_on_song_change
|
||||||
|
#
|
||||||
|
#def_key "space"
|
||||||
|
# toggle_visualization_type
|
||||||
|
#
|
||||||
|
#def_key "delete"
|
||||||
|
# delete_playlist_items
|
||||||
|
#
|
||||||
|
#def_key "delete"
|
||||||
|
# delete_browser_items
|
||||||
|
#
|
||||||
|
#def_key "delete"
|
||||||
|
# delete_stored_playlist
|
||||||
|
#
|
||||||
|
#def_key "right"
|
||||||
|
# next_column
|
||||||
|
#
|
||||||
|
#def_key "right"
|
||||||
|
# slave_screen
|
||||||
|
#
|
||||||
|
#def_key "right"
|
||||||
|
# volume_up
|
||||||
|
#
|
||||||
|
#def_key "+"
|
||||||
|
# volume_up
|
||||||
|
#
|
||||||
|
#def_key "left"
|
||||||
|
# previous_column
|
||||||
|
#
|
||||||
|
#def_key "left"
|
||||||
|
# master_screen
|
||||||
|
#
|
||||||
|
#def_key "left"
|
||||||
|
# volume_down
|
||||||
|
#
|
||||||
|
#def_key "-"
|
||||||
|
# volume_down
|
||||||
|
#
|
||||||
|
#def_key ":"
|
||||||
|
# execute_command
|
||||||
|
#
|
||||||
|
#def_key "tab"
|
||||||
|
# next_screen
|
||||||
|
#
|
||||||
|
#def_key "shift-tab"
|
||||||
|
# previous_screen
|
||||||
|
#
|
||||||
|
#def_key "f1"
|
||||||
|
# show_help
|
||||||
|
#
|
||||||
|
#def_key "1"
|
||||||
|
# show_playlist
|
||||||
|
#
|
||||||
|
#def_key "2"
|
||||||
|
# show_browser
|
||||||
|
#
|
||||||
|
#def_key "2"
|
||||||
|
# change_browse_mode
|
||||||
|
#
|
||||||
|
#def_key "3"
|
||||||
|
# show_search_engine
|
||||||
|
#
|
||||||
|
#def_key "3"
|
||||||
|
# reset_search_engine
|
||||||
|
#
|
||||||
|
#def_key "4"
|
||||||
|
# show_media_library
|
||||||
|
#
|
||||||
|
#def_key "4"
|
||||||
|
# toggle_media_library_columns_mode
|
||||||
|
#
|
||||||
|
#def_key "5"
|
||||||
|
# show_playlist_editor
|
||||||
|
#
|
||||||
|
#def_key "6"
|
||||||
|
# show_tag_editor
|
||||||
|
#
|
||||||
|
#def_key "7"
|
||||||
|
# show_outputs
|
||||||
|
#
|
||||||
|
#def_key "8"
|
||||||
|
# show_visualizer
|
||||||
|
#
|
||||||
|
#def_key "="
|
||||||
|
# show_clock
|
||||||
|
#
|
||||||
|
#def_key "@"
|
||||||
|
# show_server_info
|
||||||
|
#
|
||||||
|
#def_key "s"
|
||||||
|
# stop
|
||||||
|
#
|
||||||
|
#def_key "p"
|
||||||
|
# pause
|
||||||
|
#
|
||||||
|
#def_key ">"
|
||||||
|
# next
|
||||||
|
#
|
||||||
|
#def_key "<"
|
||||||
|
# previous
|
||||||
|
#
|
||||||
|
#def_key "ctrl-h"
|
||||||
|
# jump_to_parent_directory
|
||||||
|
#
|
||||||
|
#def_key "ctrl-h"
|
||||||
|
# replay_song
|
||||||
|
#
|
||||||
|
#def_key "backspace"
|
||||||
|
# jump_to_parent_directory
|
||||||
|
#
|
||||||
|
#def_key "backspace"
|
||||||
|
# replay_song
|
||||||
|
#
|
||||||
|
#def_key "backspace"
|
||||||
|
# play
|
||||||
|
#
|
||||||
|
#def_key "f"
|
||||||
|
# seek_forward
|
||||||
|
#
|
||||||
|
#def_key "b"
|
||||||
|
# seek_backward
|
||||||
|
#
|
||||||
|
#def_key "r"
|
||||||
|
# toggle_repeat
|
||||||
|
#
|
||||||
|
#def_key "z"
|
||||||
|
# toggle_random
|
||||||
|
#
|
||||||
|
#def_key "y"
|
||||||
|
# save_tag_changes
|
||||||
|
#
|
||||||
|
#def_key "y"
|
||||||
|
# start_searching
|
||||||
|
#
|
||||||
|
#def_key "y"
|
||||||
|
# toggle_single
|
||||||
|
#
|
||||||
|
#def_key "R"
|
||||||
|
# toggle_consume
|
||||||
|
#
|
||||||
|
#def_key "Y"
|
||||||
|
# toggle_replay_gain_mode
|
||||||
|
#
|
||||||
|
#def_key "T"
|
||||||
|
# toggle_add_mode
|
||||||
|
#
|
||||||
|
#def_key "|"
|
||||||
|
# toggle_mouse
|
||||||
|
#
|
||||||
|
#def_key "#"
|
||||||
|
# toggle_bitrate_visibility
|
||||||
|
#
|
||||||
|
#def_key "Z"
|
||||||
|
# shuffle
|
||||||
|
#
|
||||||
|
#def_key "x"
|
||||||
|
# toggle_crossfade
|
||||||
|
#
|
||||||
|
#def_key "X"
|
||||||
|
# set_crossfade
|
||||||
|
#
|
||||||
|
#def_key "u"
|
||||||
|
# update_database
|
||||||
|
#
|
||||||
|
#def_key "ctrl-s"
|
||||||
|
# sort_playlist
|
||||||
|
#
|
||||||
|
#def_key "ctrl-s"
|
||||||
|
# toggle_browser_sort_mode
|
||||||
|
#
|
||||||
|
#def_key "ctrl-s"
|
||||||
|
# toggle_media_library_sort_mode
|
||||||
|
#
|
||||||
|
#def_key "ctrl-r"
|
||||||
|
# reverse_playlist
|
||||||
|
#
|
||||||
|
#def_key "ctrl-f"
|
||||||
|
# apply_filter
|
||||||
|
#
|
||||||
|
#def_key "ctrl-_"
|
||||||
|
# select_found_items
|
||||||
|
#
|
||||||
|
#def_key "/"
|
||||||
|
# find
|
||||||
|
#
|
||||||
|
#def_key "/"
|
||||||
|
# find_item_forward
|
||||||
|
#
|
||||||
|
#def_key "?"
|
||||||
|
# find
|
||||||
|
#
|
||||||
|
#def_key "?"
|
||||||
|
# find_item_backward
|
||||||
|
#
|
||||||
|
#def_key "."
|
||||||
|
# next_found_item
|
||||||
|
#
|
||||||
|
#def_key ","
|
||||||
|
# previous_found_item
|
||||||
|
#
|
||||||
|
#def_key "w"
|
||||||
|
# toggle_find_mode
|
||||||
|
#
|
||||||
|
#def_key "e"
|
||||||
|
# edit_song
|
||||||
|
#
|
||||||
|
#def_key "e"
|
||||||
|
# edit_library_tag
|
||||||
|
#
|
||||||
|
#def_key "e"
|
||||||
|
# edit_library_album
|
||||||
|
#
|
||||||
|
#def_key "e"
|
||||||
|
# edit_directory_name
|
||||||
|
#
|
||||||
|
#def_key "e"
|
||||||
|
# edit_playlist_name
|
||||||
|
#
|
||||||
|
#def_key "e"
|
||||||
|
# edit_lyrics
|
||||||
|
#
|
||||||
|
#def_key "i"
|
||||||
|
# show_song_info
|
||||||
|
#
|
||||||
|
#def_key "I"
|
||||||
|
# show_artist_info
|
||||||
|
#
|
||||||
|
#def_key "g"
|
||||||
|
# jump_to_position_in_song
|
||||||
|
#
|
||||||
|
#def_key "l"
|
||||||
|
# show_lyrics
|
||||||
|
#
|
||||||
|
#def_key "ctrl-v"
|
||||||
|
# select_range
|
||||||
|
#
|
||||||
|
#def_key "v"
|
||||||
|
# reverse_selection
|
||||||
|
#
|
||||||
|
#def_key "V"
|
||||||
|
# remove_selection
|
||||||
|
#
|
||||||
|
#def_key "B"
|
||||||
|
# select_album
|
||||||
|
#
|
||||||
|
#def_key "a"
|
||||||
|
# add_selected_items
|
||||||
|
#
|
||||||
|
#def_key "c"
|
||||||
|
# clear_playlist
|
||||||
|
#
|
||||||
|
#def_key "c"
|
||||||
|
# clear_main_playlist
|
||||||
|
#
|
||||||
|
#def_key "C"
|
||||||
|
# crop_playlist
|
||||||
|
#
|
||||||
|
#def_key "C"
|
||||||
|
# crop_main_playlist
|
||||||
|
#
|
||||||
|
#def_key "m"
|
||||||
|
# move_sort_order_up
|
||||||
|
#
|
||||||
|
#def_key "m"
|
||||||
|
# move_selected_items_up
|
||||||
|
#
|
||||||
|
#def_key "n"
|
||||||
|
# move_sort_order_down
|
||||||
|
#
|
||||||
|
#def_key "n"
|
||||||
|
# move_selected_items_down
|
||||||
|
#
|
||||||
|
#def_key "M"
|
||||||
|
# move_selected_items_to
|
||||||
|
#
|
||||||
|
#def_key "A"
|
||||||
|
# add
|
||||||
|
#
|
||||||
|
#def_key "S"
|
||||||
|
# save_playlist
|
||||||
|
#
|
||||||
|
#def_key "o"
|
||||||
|
# jump_to_playing_song
|
||||||
|
#
|
||||||
|
#def_key "G"
|
||||||
|
# jump_to_browser
|
||||||
|
#
|
||||||
|
#def_key "G"
|
||||||
|
# jump_to_playlist_editor
|
||||||
|
#
|
||||||
|
#def_key "~"
|
||||||
|
# jump_to_media_library
|
||||||
|
#
|
||||||
|
#def_key "E"
|
||||||
|
# jump_to_tag_editor
|
||||||
|
#
|
||||||
|
#def_key "U"
|
||||||
|
# toggle_playing_song_centering
|
||||||
|
#
|
||||||
|
#def_key "P"
|
||||||
|
# toggle_display_mode
|
||||||
|
#
|
||||||
|
#def_key "\\"
|
||||||
|
# toggle_interface
|
||||||
|
#
|
||||||
|
#def_key "!"
|
||||||
|
# toggle_separators_between_albums
|
||||||
|
#
|
||||||
|
#def_key "L"
|
||||||
|
# toggle_lyrics_fetcher
|
||||||
|
#
|
||||||
|
#def_key "F"
|
||||||
|
# fetch_lyrics_in_background
|
||||||
|
#
|
||||||
|
#def_key "alt-l"
|
||||||
|
# toggle_fetching_lyrics_in_background
|
||||||
|
#
|
||||||
|
#def_key "ctrl-l"
|
||||||
|
# toggle_screen_lock
|
||||||
|
#
|
||||||
|
#def_key "`"
|
||||||
|
# toggle_library_tag_type
|
||||||
|
#
|
||||||
|
#def_key "`"
|
||||||
|
# refetch_lyrics
|
||||||
|
#
|
||||||
|
#def_key "`"
|
||||||
|
# add_random_items
|
||||||
|
#
|
||||||
|
#def_key "ctrl-p"
|
||||||
|
# set_selected_items_priority
|
||||||
|
#
|
||||||
|
#def_key "q"
|
||||||
|
# quit
|
||||||
|
#
|
||||||
|
##### General rules #####
|
||||||
|
##
|
||||||
|
## 1) Because each action has runtime checks whether it's
|
||||||
|
## ok to run it, a few actions can be bound to one key.
|
||||||
|
## Actions will be bound in order given in configuration
|
||||||
|
## file. When a key is pressed, first action in order
|
||||||
|
## will test itself whether it's possible to run it. If
|
||||||
|
## test succeeds, action is executed and other actions
|
||||||
|
## bound to this key are ignored. If it doesn't, next
|
||||||
|
## action in order tests itself etc.
|
||||||
|
##
|
||||||
|
## 2) It's possible to bind more that one action at once
|
||||||
|
## to a key. It can be done using the following syntax:
|
||||||
|
##
|
||||||
|
## def_key "key"
|
||||||
|
## action1
|
||||||
|
## action2
|
||||||
|
## ...
|
||||||
|
##
|
||||||
|
## This creates a chain of actions. When such chain is
|
||||||
|
## executed, each action in chain is run until the end of
|
||||||
|
## chain is reached or one of its actions fails to execute
|
||||||
|
## due to its requirements not being met. If multiple actions
|
||||||
|
## and/or chains are bound to the same key, they will be
|
||||||
|
## consecutively run until one of them gets fully executed.
|
||||||
|
##
|
||||||
|
## 3) When ncmpcpp starts, bindings configuration file is
|
||||||
|
## parsed and then ncmpcpp provides "missing pieces"
|
||||||
|
## of default keybindings. If you want to disable some
|
||||||
|
## bindings, there is a special action called 'dummy'
|
||||||
|
## for that purpose. Eg. if you want to disable ability
|
||||||
|
## to crop playlists, you need to put the following
|
||||||
|
## into configuration file:
|
||||||
|
##
|
||||||
|
## def_key "C"
|
||||||
|
## dummy
|
||||||
|
##
|
||||||
|
## After that ncmpcpp will not bind any default action
|
||||||
|
## to this key.
|
||||||
|
##
|
||||||
|
## 4) To let you write simple macros, the following special
|
||||||
|
## actions are provided:
|
||||||
|
##
|
||||||
|
## - push_character "character" - pushes given special
|
||||||
|
## character into input queue, so it will be immediately
|
||||||
|
## picked by ncmpcpp upon next call to readKey function.
|
||||||
|
## Accepted values: mouse, up, down, page_up, page_down,
|
||||||
|
## home, end, space, enter, insert, delete, left, right,
|
||||||
|
## tab, ctrl-a, ctrl-b, ..., ctrl-z, ctrl-[, ctrl-\\,
|
||||||
|
## ctrl-], ctrl-^, ctrl-_, f1, f2, ..., f12, backspace.
|
||||||
|
## In addition, most of these names can be prefixed with
|
||||||
|
## alt-/ctrl-/shift- to be recognized with the appropriate
|
||||||
|
## modifier key(s).
|
||||||
|
##
|
||||||
|
## - push_characters "string" - pushes given string into
|
||||||
|
## input queue.
|
||||||
|
##
|
||||||
|
## - require_runnable "action" - checks whether given action
|
||||||
|
## is runnable and fails if it isn't. This is especially
|
||||||
|
## useful when mixed with previous two functions. Consider
|
||||||
|
## the following macro definition:
|
||||||
|
##
|
||||||
|
## def_key "key"
|
||||||
|
## push_characters "custom_filter"
|
||||||
|
## apply_filter
|
||||||
|
##
|
||||||
|
## If apply_filter can't be currently run, we end up with
|
||||||
|
## sequence of characters in input queue which will be
|
||||||
|
## treated just as we typed them. This may lead to unexpected
|
||||||
|
## results (in this case 'c' will most likely clear current
|
||||||
|
## playlist, 'u' will trigger database update, 's' will stop
|
||||||
|
## playback etc.). To prevent such thing from happening, we
|
||||||
|
## need to change above definition to this one:
|
||||||
|
##
|
||||||
|
## def_key "key"
|
||||||
|
## require_runnable "apply_filter"
|
||||||
|
## push_characters "custom_filter"
|
||||||
|
## apply_filter
|
||||||
|
##
|
||||||
|
## Here, first we test whether apply_filter can be actually run
|
||||||
|
## before we stuff characters into input queue, so if condition
|
||||||
|
## is not met, whole chain is aborted and we're fine.
|
||||||
|
##
|
||||||
|
## - require_screen "screen" - checks whether given screen is
|
||||||
|
## currently active. accepted values: browser, clock, help,
|
||||||
|
## media_library, outputs, playlist, playlist_editor,
|
||||||
|
## search_engine, tag_editor, visualizer, last_fm, lyrics,
|
||||||
|
## selected_items_adder, server_info, song_info,
|
||||||
|
## sort_playlist_dialog, tiny_tag_editor.
|
||||||
|
##
|
||||||
|
## - run_external_command "command" - runs given command using
|
||||||
|
## system() function.
|
||||||
|
##
|
||||||
|
## - run_external_console_command "command" - runs given console
|
||||||
|
## command using system() function.
|
||||||
|
##
|
||||||
|
##
|
||||||
|
## 5) In addition to binding to a key, you can also bind actions
|
||||||
|
## or chains of actions to a command. If it comes to commands,
|
||||||
|
## syntax is very similar to defining keys. Here goes example
|
||||||
|
## definition of a command:
|
||||||
|
##
|
||||||
|
## def_command "quit" [deferred]
|
||||||
|
## stop
|
||||||
|
## quit
|
||||||
|
##
|
||||||
|
## If you execute the above command (which can be done by
|
||||||
|
## invoking action execute_command, typing 'quit' and pressing
|
||||||
|
## enter), ncmpcpp will stop the player and then quit. Note the
|
||||||
|
## presence of word 'deferred' enclosed in square brackets. It
|
||||||
|
## tells ncmpcpp to wait for confirmation (ie. pressing enter)
|
||||||
|
## after you typed quit. Instead of 'deferred', 'immediate'
|
||||||
|
## could be used. Then ncmpcpp will not wait for confirmation
|
||||||
|
## (enter) and will execute the command the moment it sees it.
|
||||||
|
##
|
||||||
|
## Note: while command chains are executed, internal environment
|
||||||
|
## update (which includes current window refresh and mpd status
|
||||||
|
## update) is not performed for performance reasons. However, it
|
||||||
|
## may be desirable to do so in some situration. Therefore it's
|
||||||
|
## possible to invoke by hand by performing 'update enviroment'
|
||||||
|
## action.
|
||||||
|
##
|
||||||
|
## Note: There is a difference between:
|
||||||
|
##
|
||||||
|
## def_key "key"
|
||||||
|
## action1
|
||||||
|
##
|
||||||
|
## def_key "key"
|
||||||
|
## action2
|
||||||
|
##
|
||||||
|
## and
|
||||||
|
##
|
||||||
|
## def_key "key"
|
||||||
|
## action1
|
||||||
|
## action2
|
||||||
|
##
|
||||||
|
## First one binds two single actions to the same kmpc updateey whilst
|
||||||
|
## second one defines a chain of actions. The behavior of
|
||||||
|
## these two is different and is described in (1) and (2).
|
||||||
|
##
|
||||||
|
## Note: Function def_key accepts non-ascii characters.
|
||||||
|
##
|
||||||
|
##### List of unbound actions #####
|
||||||
|
##
|
||||||
|
## The following actions are not bound to any key/command:
|
||||||
|
##
|
||||||
|
## - set_volume
|
||||||
|
## - load
|
||||||
|
##
|
608
ncmpcpp/ncmpcpp.config
Normal file
608
ncmpcpp/ncmpcpp.config
Normal file
@ -0,0 +1,608 @@
|
|||||||
|
##############################################################
|
||||||
|
## This is an example configuration file. Copy it to ##
|
||||||
|
## $XDG_CONFIG_HOME/ncmpcpp/config or $HOME/.ncmpcpp/config ##
|
||||||
|
## and set up your preferences. ##
|
||||||
|
##############################################################
|
||||||
|
#
|
||||||
|
##### directories ######
|
||||||
|
##
|
||||||
|
## Directory for storing ncmpcpp related files. Changing it is useful if you
|
||||||
|
## want to store everything somewhere else and provide command line setting for
|
||||||
|
## alternative location to config file which defines that while launching
|
||||||
|
## ncmpcpp.
|
||||||
|
##
|
||||||
|
#
|
||||||
|
#ncmpcpp_directory = ~/.config/ncmpcpp
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Directory for storing downloaded lyrics. It defaults to ~/.lyrics since other
|
||||||
|
## MPD clients (eg. ncmpc) also use that location.
|
||||||
|
##
|
||||||
|
#
|
||||||
|
#lyrics_directory = ~/.lyrics
|
||||||
|
#
|
||||||
|
##### connection settings #####
|
||||||
|
mpd_host = "localhost"
|
||||||
|
mpd_port = "6600"
|
||||||
|
|
||||||
|
# connect to desktop
|
||||||
|
# mpd_host = "192.168.86.177"
|
||||||
|
# mpd_port = "6600"
|
||||||
|
#
|
||||||
|
|
||||||
|
mpd_connection_timeout = 5
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Needed for tag editor and file operations to work.
|
||||||
|
##
|
||||||
|
mpd_music_dir = "~/Music"
|
||||||
|
#
|
||||||
|
#mpd_crossfade_time = 5
|
||||||
|
#
|
||||||
|
# Exclude pattern for random song action
|
||||||
|
# http://www.boost.org/doc/libs/1_46_1/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html
|
||||||
|
#random_exclude_pattern = "^(temp|midi_songs).*"
|
||||||
|
#
|
||||||
|
##### music visualizer #####
|
||||||
|
##
|
||||||
|
## In order to make music visualizer work with MPD you need to use the fifo
|
||||||
|
## output. Its format parameter has to be set to 44100:16:1 for mono
|
||||||
|
## visualization or 44100:16:2 for stereo visualization. As an example here is
|
||||||
|
## the relevant section for mpd.conf:
|
||||||
|
##
|
||||||
|
## audio_output {
|
||||||
|
## type "fifo"
|
||||||
|
## name "Visualizer feed"
|
||||||
|
## path "/tmp/mpd.fifo"
|
||||||
|
## format "44100:16:2"
|
||||||
|
## }
|
||||||
|
##
|
||||||
|
## If the visualization on occasion diverges from the audio output, please set
|
||||||
|
## 'buffer_time' parameter of your audio output in mpd.conf to '100000' (100ms)
|
||||||
|
## or less to prevent that from happening.
|
||||||
|
##
|
||||||
|
## Note: If you're using Mopidy, an address of a udpsink gstreamer's output is
|
||||||
|
## also accepted. For example, the following section in mopidy.conf:
|
||||||
|
##
|
||||||
|
## [audio]
|
||||||
|
## output = tee name=t ! queue ! autoaudiosink t.
|
||||||
|
## ! queue ! audio/x-raw,rate=44100,channels=2,format=S16LE
|
||||||
|
## ! udpsink host=localhost port=5555
|
||||||
|
##
|
||||||
|
## will make localhost:5555 available as a source of data for the stereo
|
||||||
|
## visualizer.
|
||||||
|
##
|
||||||
|
#
|
||||||
|
#visualizer_data_source = /tmp/mpd.fifo
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: Below parameter is needed for ncmpcpp to determine which output
|
||||||
|
## provides data for visualizer and reset it at the beginning of visualization
|
||||||
|
## to synchronize with audio.
|
||||||
|
##
|
||||||
|
#
|
||||||
|
#visualizer_output_name = Visualizer feed
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## If you set format to 44100:16:2, make it 'yes'.
|
||||||
|
##
|
||||||
|
#visualizer_in_stereo = yes
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: set below to >=10 only if you have synchronization issues with
|
||||||
|
## visualization and audio.
|
||||||
|
##
|
||||||
|
#
|
||||||
|
#visualizer_sync_interval = 0
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: To enable spectrum frequency visualization you need to compile ncmpcpp
|
||||||
|
## with fftw3 support.
|
||||||
|
##
|
||||||
|
#
|
||||||
|
## Available values: spectrum, wave, wave_filled, ellipse.
|
||||||
|
##
|
||||||
|
#visualizer_type = spectrum
|
||||||
|
#
|
||||||
|
#visualizer_fps = 60
|
||||||
|
#
|
||||||
|
#visualizer_autoscale = no
|
||||||
|
#
|
||||||
|
#visualizer_look = ●▮
|
||||||
|
#
|
||||||
|
#visualizer_color = blue, cyan, green, yellow, magenta, red
|
||||||
|
#
|
||||||
|
## Alternative subset of 256 colors for terminals that support it.
|
||||||
|
##
|
||||||
|
#visualizer_color = 47, 83, 119, 155, 191, 227, 221, 215, 209, 203, 197, 161
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: The next few visualization options apply to the spectrum visualizer.
|
||||||
|
##
|
||||||
|
#
|
||||||
|
## Use unicode block characters for a smoother, more continuous look.
|
||||||
|
## This will override the visualizer_look option. With transparent terminals
|
||||||
|
## and visualizer_in_stereo set, artifacts may be visible on the bottom half of
|
||||||
|
## the visualization.
|
||||||
|
#
|
||||||
|
#visualizer_spectrum_smooth_look = yes
|
||||||
|
#
|
||||||
|
## A value between 1 and 5 inclusive. Specifying a larger value makes the
|
||||||
|
## visualizer look at a larger slice of time, which results in less jumpy
|
||||||
|
## visualizer output.
|
||||||
|
#
|
||||||
|
#visualizer_spectrum_dft_size = 2
|
||||||
|
#
|
||||||
|
#visualizer_spectrum_gain = 10
|
||||||
|
#
|
||||||
|
## Left-most frequency of visualizer in Hz, must be less than HZ MAX
|
||||||
|
#
|
||||||
|
#visualizer_spectrum_hz_min = 20
|
||||||
|
#
|
||||||
|
## Right-most frequency of visualizer in Hz, must be greater than HZ MIN
|
||||||
|
#
|
||||||
|
#visualizer_spectrum_hz_max = 20000
|
||||||
|
#
|
||||||
|
##### system encoding #####
|
||||||
|
##
|
||||||
|
## ncmpcpp should detect your charset encoding but if it failed to do so, you
|
||||||
|
## can specify charset encoding you are using here.
|
||||||
|
##
|
||||||
|
## Note: You can see whether your ncmpcpp build supports charset detection by
|
||||||
|
## checking output of `ncmpcpp --version`.
|
||||||
|
##
|
||||||
|
## Note: Since MPD uses UTF-8 by default, setting this option makes sense only
|
||||||
|
## if your encoding is different.
|
||||||
|
##
|
||||||
|
#
|
||||||
|
#system_encoding = ""
|
||||||
|
#
|
||||||
|
##### delays #####
|
||||||
|
#
|
||||||
|
## Time of inactivity (in seconds) after playlist highlighting will be disabled
|
||||||
|
## (0 = always on).
|
||||||
|
##
|
||||||
|
#playlist_disable_highlight_delay = 5
|
||||||
|
#
|
||||||
|
## Defines how long messages are supposed to be visible.
|
||||||
|
##
|
||||||
|
#message_delay_time = 5
|
||||||
|
#
|
||||||
|
##### song format #####
|
||||||
|
##
|
||||||
|
## For a song format you can use:
|
||||||
|
##
|
||||||
|
## %l - length
|
||||||
|
## %f - filename
|
||||||
|
## %D - directory
|
||||||
|
## %a - artist
|
||||||
|
## %A - album artist
|
||||||
|
## %t - title
|
||||||
|
## %b - album
|
||||||
|
## %y - date
|
||||||
|
## %n - track number (01/12 -> 01)
|
||||||
|
## %N - full track info (01/12 -> 01/12)
|
||||||
|
## %g - genre
|
||||||
|
## %c - composer
|
||||||
|
## %p - performer
|
||||||
|
## %d - disc
|
||||||
|
## %C - comment
|
||||||
|
## %P - priority
|
||||||
|
## $R - begin right alignment
|
||||||
|
##
|
||||||
|
## If you want to make sure that a part of the format is displayed only when
|
||||||
|
## certain tags are present, you can archieve it by grouping them with brackets,
|
||||||
|
## e.g. '{%a - %t}' will be evaluated to 'ARTIST - TITLE' if both tags are
|
||||||
|
## present or '' otherwise. It is also possible to define a list of
|
||||||
|
## alternatives by providing several groups and separating them with '|',
|
||||||
|
## e.g. '{%t}|{%f}' will be evaluated to 'TITLE' or 'FILENAME' if the former is
|
||||||
|
## not present.
|
||||||
|
##
|
||||||
|
## Note: If you want to set limit on maximal length of a tag, just put the
|
||||||
|
## appropriate number between % and character that defines tag type, e.g. to
|
||||||
|
## make album take max. 20 terminal cells, use '%20b'.
|
||||||
|
##
|
||||||
|
## In addition, formats support markers used for text attributes. They are
|
||||||
|
## followed by character '$'. After that you can put:
|
||||||
|
##
|
||||||
|
## - 0 - default window color (discards all other colors)
|
||||||
|
## - 1 - black
|
||||||
|
## - 2 - red
|
||||||
|
## - 3 - green
|
||||||
|
## - 4 - yellow
|
||||||
|
## - 5 - blue
|
||||||
|
## - 6 - magenta
|
||||||
|
## - 7 - cyan
|
||||||
|
## - 8 - white
|
||||||
|
## - 9 - end of current color
|
||||||
|
## - b - bold text
|
||||||
|
## - u - underline text
|
||||||
|
## - r - reverse colors
|
||||||
|
## - a - use alternative character set
|
||||||
|
##
|
||||||
|
## If you don't want to use a non-color attribute anymore, just put it again,
|
||||||
|
## but this time insert character '/' between '$' and attribute character,
|
||||||
|
## e.g. {$b%t$/b}|{$r%f$/r} will display bolded title tag or filename with
|
||||||
|
## reversed colors.
|
||||||
|
##
|
||||||
|
## If you want to use 256 colors and/or background colors in formats (the naming
|
||||||
|
## scheme is described below in section about color definitions), it can be done
|
||||||
|
## with the syntax $(COLOR), e.g. to set the artist tag to one of the
|
||||||
|
## non-standard colors and make it have yellow background, you need to write
|
||||||
|
## $(197_yellow)%a$(end). Note that for standard colors this is interchangable
|
||||||
|
## with attributes listed above.
|
||||||
|
##
|
||||||
|
## Note: colors can be nested.
|
||||||
|
##
|
||||||
|
#
|
||||||
|
#song_list_format = {%a - }{%t}|{$8%f$9}$R{$3%l$9}
|
||||||
|
#
|
||||||
|
#song_status_format = {{%a{ "%b"{ (%y)}} - }{%t}}|{%f}
|
||||||
|
#
|
||||||
|
#song_library_format = {%n - }{%t}|{%f}
|
||||||
|
#
|
||||||
|
#alternative_header_first_line_format = $b$1$aqqu$/a$9 {%t}|{%f} $1$atqq$/a$9$/b
|
||||||
|
#
|
||||||
|
#alternative_header_second_line_format = {{$4$b%a$/b$9}{ - $7%b$9}{ ($4%y$9)}}|{%D}
|
||||||
|
#
|
||||||
|
#current_item_prefix = $(yellow)$r
|
||||||
|
#
|
||||||
|
#current_item_suffix = $/r$(end)
|
||||||
|
#
|
||||||
|
#current_item_inactive_column_prefix = $(white)$r
|
||||||
|
#
|
||||||
|
#current_item_inactive_column_suffix = $/r$(end)
|
||||||
|
#
|
||||||
|
#now_playing_prefix = $b
|
||||||
|
#
|
||||||
|
#now_playing_suffix = $/b
|
||||||
|
#
|
||||||
|
#browser_playlist_prefix = "$2playlist$9 "
|
||||||
|
#
|
||||||
|
#selected_item_prefix = $6
|
||||||
|
#
|
||||||
|
#selected_item_suffix = $9
|
||||||
|
#
|
||||||
|
#modified_item_prefix = $3> $9
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: attributes are not supported for the following variables.
|
||||||
|
##
|
||||||
|
#song_window_title_format = {%a - }{%t}|{%f}
|
||||||
|
##
|
||||||
|
## Note: Below variables are used for sorting songs in browser. The sort mode
|
||||||
|
## determines how songs are sorted, and can be used in combination with a sort
|
||||||
|
## format to specify a custom sorting format. Available values for
|
||||||
|
## browser_sort_mode are "type", "name", "mtime", "format" and "none".
|
||||||
|
##
|
||||||
|
#
|
||||||
|
#browser_sort_mode = type
|
||||||
|
#
|
||||||
|
#browser_sort_format = {%a - }{%t}|{%f} {%l}
|
||||||
|
#
|
||||||
|
##### columns settings #####
|
||||||
|
##
|
||||||
|
## syntax of song columns list format is "column column etc."
|
||||||
|
##
|
||||||
|
## - syntax for each column is:
|
||||||
|
##
|
||||||
|
## (width of the column)[color of the column]{displayed tag}
|
||||||
|
##
|
||||||
|
## Note: Width is by default in %, if you want a column to have fixed size, add
|
||||||
|
## 'f' after the value, e.g. (10)[white]{a} will be the column that take 10% of
|
||||||
|
## screen (so the real width will depend on actual screen size), whereas
|
||||||
|
## (10f)[white]{a} will take 10 terminal cells, no matter how wide the screen
|
||||||
|
## is.
|
||||||
|
##
|
||||||
|
## - color is optional (if you want the default one, leave the field empty).
|
||||||
|
##
|
||||||
|
## Note: You can give a column additional attributes by putting appropriate
|
||||||
|
## character after displayed tag character. Available attributes are:
|
||||||
|
##
|
||||||
|
## - r - column will be right aligned
|
||||||
|
## - E - if tag is empty, empty tag marker won't be displayed
|
||||||
|
##
|
||||||
|
## You can also:
|
||||||
|
##
|
||||||
|
## - give a column custom name by putting it after attributes, separated with
|
||||||
|
## character ':', e.g. {lr:Length} gives you right aligned column of lengths
|
||||||
|
## named "Length".
|
||||||
|
##
|
||||||
|
## - define sequence of tags, that have to be displayed in case predecessor is
|
||||||
|
## empty in a way similar to the one in classic song format, i.e. using '|'
|
||||||
|
## character, e.g. {a|c|p:Owner} creates column named "Owner" that tries to
|
||||||
|
## display artist tag and then composer and performer if previous ones are not
|
||||||
|
## available.
|
||||||
|
##
|
||||||
|
#
|
||||||
|
#song_columns_list_format = (20)[]{a} (6f)[green]{NE} (50)[white]{t|f:Title} (20)[cyan]{b} (7f)[magenta]{l}
|
||||||
|
#
|
||||||
|
##### various settings #####
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: Custom command that will be executed each time song changes. Useful for
|
||||||
|
## notifications etc.
|
||||||
|
##
|
||||||
|
#execute_on_song_change = ""
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: Custom command that will be executed each time player state
|
||||||
|
## changes. The environment variable MPD_PLAYER_STATE is set to the current
|
||||||
|
## state (either unknown, play, pause, or stop) for its duration.
|
||||||
|
##
|
||||||
|
#
|
||||||
|
#execute_on_player_state_change = ""
|
||||||
|
#
|
||||||
|
#playlist_show_mpd_host = no
|
||||||
|
#
|
||||||
|
#playlist_show_remaining_time = no
|
||||||
|
#
|
||||||
|
#playlist_shorten_total_times = no
|
||||||
|
#
|
||||||
|
#playlist_separate_albums = no
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: Possible display modes: classic, columns.
|
||||||
|
##
|
||||||
|
#playlist_display_mode = columns
|
||||||
|
#
|
||||||
|
#browser_display_mode = classic
|
||||||
|
#
|
||||||
|
#search_engine_display_mode = classic
|
||||||
|
#
|
||||||
|
#playlist_editor_display_mode = classic
|
||||||
|
#
|
||||||
|
#discard_colors_if_item_is_selected = yes
|
||||||
|
#
|
||||||
|
#show_duplicate_tags = yes
|
||||||
|
#
|
||||||
|
#incremental_seeking = yes
|
||||||
|
#
|
||||||
|
#seek_time = 1
|
||||||
|
#
|
||||||
|
#volume_change_step = 2
|
||||||
|
#
|
||||||
|
#autocenter_mode = no
|
||||||
|
#
|
||||||
|
#centered_cursor = no
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: You can specify third character which will be used to build 'empty'
|
||||||
|
## part of progressbar.
|
||||||
|
##
|
||||||
|
#progressbar_look = =>
|
||||||
|
#
|
||||||
|
## Available values: database, playlist.
|
||||||
|
##
|
||||||
|
#default_place_to_search_in = database
|
||||||
|
#
|
||||||
|
## Available values: classic, alternative.
|
||||||
|
##
|
||||||
|
#user_interface = classic
|
||||||
|
#
|
||||||
|
#data_fetching_delay = yes
|
||||||
|
#
|
||||||
|
## Available values: artist, album_artist, date, genre, composer, performer.
|
||||||
|
##
|
||||||
|
#media_library_primary_tag = artist
|
||||||
|
#
|
||||||
|
#media_library_albums_split_by_date = yes
|
||||||
|
#
|
||||||
|
#media_library_hide_album_dates = no
|
||||||
|
#
|
||||||
|
## Available values: wrapped, normal.
|
||||||
|
##
|
||||||
|
#default_find_mode = wrapped
|
||||||
|
#
|
||||||
|
#default_tag_editor_pattern = %n - %t
|
||||||
|
#
|
||||||
|
#header_visibility = yes
|
||||||
|
#
|
||||||
|
#statusbar_visibility = yes
|
||||||
|
#
|
||||||
|
## Show the "Connected to ..." message on startup
|
||||||
|
#connected_message_on_startup = yes
|
||||||
|
#
|
||||||
|
#titles_visibility = yes
|
||||||
|
#
|
||||||
|
#header_text_scrolling = yes
|
||||||
|
#
|
||||||
|
#cyclic_scrolling = no
|
||||||
|
#
|
||||||
|
#lyrics_fetchers = azlyrics, genius, musixmatch, sing365, metrolyrics, justsomelyrics, jahlyrics, plyrics, tekstowo, zeneszoveg, internet
|
||||||
|
#
|
||||||
|
#follow_now_playing_lyrics = no
|
||||||
|
#
|
||||||
|
#fetch_lyrics_for_current_song_in_background = no
|
||||||
|
#
|
||||||
|
#store_lyrics_in_song_dir = no
|
||||||
|
#
|
||||||
|
#generate_win32_compatible_filenames = yes
|
||||||
|
#
|
||||||
|
allow_for_physical_item_deletion = yes
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: If you set this variable, ncmpcpp will try to get info from last.fm in
|
||||||
|
## language you set and if it fails, it will fall back to english. Otherwise it
|
||||||
|
## will use english the first time.
|
||||||
|
##
|
||||||
|
## Note: Language has to be expressed as an ISO 639 alpha-2 code.
|
||||||
|
##
|
||||||
|
#lastfm_preferred_language = en
|
||||||
|
#
|
||||||
|
#space_add_mode = add_remove
|
||||||
|
#
|
||||||
|
#show_hidden_files_in_local_browser = no
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## How shall screen switcher work?
|
||||||
|
##
|
||||||
|
## - "previous" - switch between the current and previous screen.
|
||||||
|
## - "screen1,...,screenN" - switch between given sequence of screens.
|
||||||
|
##
|
||||||
|
## Screens available for use: help, playlist, browser, search_engine,
|
||||||
|
## media_library, playlist_editor, tag_editor, outputs, visualizer, clock,
|
||||||
|
## lyrics, last_fm.
|
||||||
|
##
|
||||||
|
#screen_switcher_mode = playlist, browser
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: You can define startup screen by choosing screen from the list above.
|
||||||
|
##
|
||||||
|
#startup_screen = playlist
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: You can define startup slave screen by choosing screen from the list
|
||||||
|
## above or an empty value for no slave screen.
|
||||||
|
##
|
||||||
|
#startup_slave_screen = ""
|
||||||
|
#
|
||||||
|
#startup_slave_screen_focus = no
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Default width of locked screen (in %). Acceptable values are from 20 to 80.
|
||||||
|
##
|
||||||
|
#
|
||||||
|
#locked_screen_width_part = 50
|
||||||
|
#
|
||||||
|
#ask_for_locked_screen_width_part = yes
|
||||||
|
#
|
||||||
|
#jump_to_now_playing_song_at_start = yes
|
||||||
|
#
|
||||||
|
#ask_before_clearing_playlists = yes
|
||||||
|
#
|
||||||
|
#clock_display_seconds = no
|
||||||
|
#
|
||||||
|
#display_volume_level = yes
|
||||||
|
#
|
||||||
|
#display_bitrate = no
|
||||||
|
#
|
||||||
|
#display_remaining_time = no
|
||||||
|
#
|
||||||
|
## Available values: none, basic, extended, perl.
|
||||||
|
##
|
||||||
|
#regular_expressions = perl
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: if below is enabled, ncmpcpp will ignore leading "The" word while
|
||||||
|
## sorting items in browser, tags in media library, etc.
|
||||||
|
##
|
||||||
|
#ignore_leading_the = no
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: if below is enabled, ncmpcpp will ignore diacritics while searching and
|
||||||
|
## filtering lists. This takes an effect only if boost was compiled with ICU
|
||||||
|
## support.
|
||||||
|
##
|
||||||
|
#ignore_diacritics = no
|
||||||
|
#
|
||||||
|
#block_search_constraints_change_if_items_found = yes
|
||||||
|
#
|
||||||
|
#mouse_support = yes
|
||||||
|
#
|
||||||
|
#mouse_list_scroll_whole_page = no
|
||||||
|
#
|
||||||
|
#lines_scrolled = 5
|
||||||
|
#
|
||||||
|
#empty_tag_marker = <empty>
|
||||||
|
#
|
||||||
|
#tags_separator = " | "
|
||||||
|
#
|
||||||
|
#tag_editor_extended_numeration = no
|
||||||
|
#
|
||||||
|
#media_library_sort_by_mtime = no
|
||||||
|
#
|
||||||
|
#enable_window_title = yes
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: You can choose default search mode for search engine. Available modes
|
||||||
|
## are:
|
||||||
|
##
|
||||||
|
## - 1 - use mpd built-in searching (no regexes, pattern matching)
|
||||||
|
##
|
||||||
|
## - 2 - use ncmpcpp searching (pattern matching with support for regexes, but
|
||||||
|
## if your mpd is on a remote machine, downloading big database to process
|
||||||
|
## it can take a while
|
||||||
|
##
|
||||||
|
## - 3 - match only exact values (this mode uses mpd function for searching in
|
||||||
|
## database and local one for searching in current playlist)
|
||||||
|
##
|
||||||
|
#
|
||||||
|
#search_engine_default_search_mode = 1
|
||||||
|
#
|
||||||
|
#external_editor = nano
|
||||||
|
#
|
||||||
|
## Note: set to yes if external editor is a console application.
|
||||||
|
##
|
||||||
|
#use_console_editor = yes
|
||||||
|
#
|
||||||
|
##### colors definitions #####
|
||||||
|
##
|
||||||
|
## It is possible to set a background color by setting a color value
|
||||||
|
## "<foreground>_<background>", e.g. red_black will set foregound color to red
|
||||||
|
## and background color to black.
|
||||||
|
##
|
||||||
|
## In addition, for terminals that support 256 colors it is possible to set one
|
||||||
|
## of them by using a number in range [1, 256] instead of color name,
|
||||||
|
## e.g. numerical value corresponding to red_black is 2_1. To find out if the
|
||||||
|
## terminal supports 256 colors, run ncmpcpp and check out the bottom of the
|
||||||
|
## help screen for list of available colors and their numerical values.
|
||||||
|
##
|
||||||
|
## What is more, there are two special values for the background color:
|
||||||
|
## "transparent" and "current". The first one explicitly sets the background to
|
||||||
|
## be transparent, while the second one allows you to preserve current
|
||||||
|
## background color and change only the foreground one. It's used implicitly
|
||||||
|
## when background color is not specified.
|
||||||
|
##
|
||||||
|
## Moreover, it is possible to attach format information to selected color
|
||||||
|
## variables by appending to their end a colon followed by one or more format
|
||||||
|
## flags, e.g. black:b or red:ur. The following variables support this syntax:
|
||||||
|
## visualizer_color, color1, color2, empty_tag_color, volume_color,
|
||||||
|
## state_line_color, state_flags_color, progressbar_color,
|
||||||
|
## progressbar_elapsed_color, player_state_color, statusbar_time_color,
|
||||||
|
## alternative_ui_separator_color.
|
||||||
|
##
|
||||||
|
## Note: due to technical limitations of older ncurses version, if 256 colors
|
||||||
|
## are used there is a possibility that you'll be able to use only colors with
|
||||||
|
## transparent background.
|
||||||
|
#
|
||||||
|
#colors_enabled = yes
|
||||||
|
#
|
||||||
|
#empty_tag_color = cyan
|
||||||
|
#
|
||||||
|
#header_window_color = default
|
||||||
|
#
|
||||||
|
#volume_color = default
|
||||||
|
#
|
||||||
|
#state_line_color = default
|
||||||
|
#
|
||||||
|
#state_flags_color = default:b
|
||||||
|
#
|
||||||
|
#main_window_color = yellow
|
||||||
|
#
|
||||||
|
#color1 = white
|
||||||
|
#
|
||||||
|
#color2 = green
|
||||||
|
#
|
||||||
|
#progressbar_color = black:b
|
||||||
|
#
|
||||||
|
#progressbar_elapsed_color = green:b
|
||||||
|
#
|
||||||
|
#statusbar_color = default
|
||||||
|
#
|
||||||
|
#statusbar_time_color = default:b
|
||||||
|
#
|
||||||
|
#player_state_color = default:b
|
||||||
|
#
|
||||||
|
#alternative_ui_separator_color = black:b
|
||||||
|
#
|
||||||
|
#window_border_color = green
|
||||||
|
#
|
||||||
|
#active_window_border = red
|
||||||
|
#
|
||||||
|
visualizer_data_source = "/tmp/mpd.fifo"
|
||||||
|
visualizer_output_name = "my_fifo"
|
||||||
|
visualizer_in_stereo = "yes"
|
||||||
|
visualizer_type = "spectrum"
|
||||||
|
visualizer_look = "+|"
|
457
picom/picom.conf
Normal file
457
picom/picom.conf
Normal file
@ -0,0 +1,457 @@
|
|||||||
|
#################################
|
||||||
|
# Shadows #
|
||||||
|
#################################
|
||||||
|
|
||||||
|
|
||||||
|
# Enabled client-side shadows on windows. Note desktop windows
|
||||||
|
# (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow,
|
||||||
|
# unless explicitly requested using the wintypes option.
|
||||||
|
#
|
||||||
|
# shadow = false
|
||||||
|
shadow = true;
|
||||||
|
|
||||||
|
# The blur radius for shadows, in pixels. (defaults to 12)
|
||||||
|
# shadow-radius = 12
|
||||||
|
shadow-radius = 24;
|
||||||
|
|
||||||
|
# The opacity of shadows. (0.0 - 1.0, defaults to 0.75)
|
||||||
|
# shadow-opacity = .75
|
||||||
|
|
||||||
|
# The left offset for shadows, in pixels. (defaults to -15)
|
||||||
|
# shadow-offset-x = -15
|
||||||
|
shadow-offset-x = -7;
|
||||||
|
|
||||||
|
# The top offset for shadows, in pixels. (defaults to -15)
|
||||||
|
# shadow-offset-y = -15
|
||||||
|
shadow-offset-y = -7;
|
||||||
|
|
||||||
|
# Avoid drawing shadows on dock/panel windows. This option is deprecated,
|
||||||
|
# you should use the *wintypes* option in your config file instead.
|
||||||
|
#
|
||||||
|
# no-dock-shadow = false
|
||||||
|
|
||||||
|
# Don't draw shadows on drag-and-drop windows. This option is deprecated,
|
||||||
|
# you should use the *wintypes* option in your config file instead.
|
||||||
|
#
|
||||||
|
# no-dnd-shadow = false
|
||||||
|
|
||||||
|
# Red color value of shadow (0.0 - 1.0, defaults to 0).
|
||||||
|
# shadow-red = 0
|
||||||
|
|
||||||
|
# Green color value of shadow (0.0 - 1.0, defaults to 0).
|
||||||
|
# shadow-green = 0
|
||||||
|
|
||||||
|
# Blue color value of shadow (0.0 - 1.0, defaults to 0).
|
||||||
|
# shadow-blue = 0
|
||||||
|
|
||||||
|
# Do not paint shadows on shaped windows. Note shaped windows
|
||||||
|
# here means windows setting its shape through X Shape extension.
|
||||||
|
# Those using ARGB background is beyond our control.
|
||||||
|
# Deprecated, use
|
||||||
|
# shadow-exclude = 'bounding_shaped'
|
||||||
|
# or
|
||||||
|
# shadow-exclude = 'bounding_shaped && !rounded_corners'
|
||||||
|
# instead.
|
||||||
|
#
|
||||||
|
# shadow-ignore-shaped = ''
|
||||||
|
|
||||||
|
# Specify a list of conditions of windows that should have no shadow.
|
||||||
|
#
|
||||||
|
# examples:
|
||||||
|
# shadow-exclude = "n:e:Notification";
|
||||||
|
#
|
||||||
|
# shadow-exclude = []
|
||||||
|
shadow-exclude = [
|
||||||
|
"name = 'Notification'",
|
||||||
|
"class_g = 'Conky'",
|
||||||
|
"class_g ?= 'Notify-osd'",
|
||||||
|
"class_g = 'Cairo-clock'",
|
||||||
|
"_GTK_FRAME_EXTENTS@:c"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Specify a X geometry that describes the region in which shadow should not
|
||||||
|
# be painted in, such as a dock window region. Use
|
||||||
|
# shadow-exclude-reg = "x10+0+0"
|
||||||
|
# for example, if the 10 pixels on the bottom of the screen should not have shadows painted on.
|
||||||
|
#
|
||||||
|
# shadow-exclude-reg = ""
|
||||||
|
|
||||||
|
# Crop shadow of a window fully on a particular Xinerama screen to the screen.
|
||||||
|
# xinerama-shadow-crop = false
|
||||||
|
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Fading #
|
||||||
|
#################################
|
||||||
|
|
||||||
|
|
||||||
|
# Fade windows in/out when opening/closing and when opacity changes,
|
||||||
|
# unless no-fading-openclose is used.
|
||||||
|
# fading = false
|
||||||
|
fading = true
|
||||||
|
|
||||||
|
# Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028)
|
||||||
|
# fade-in-step = 0.028
|
||||||
|
fade-in-step = 0.03;
|
||||||
|
|
||||||
|
# Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03)
|
||||||
|
# fade-out-step = 0.03
|
||||||
|
fade-out-step = 0.03;
|
||||||
|
|
||||||
|
# The time between steps in fade step, in milliseconds. (> 0, defaults to 10)
|
||||||
|
# fade-delta = 10
|
||||||
|
|
||||||
|
# Specify a list of conditions of windows that should not be faded.
|
||||||
|
# fade-exclude = []
|
||||||
|
|
||||||
|
# Do not fade on window open/close.
|
||||||
|
# no-fading-openclose = false
|
||||||
|
|
||||||
|
# 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.9;
|
||||||
|
active-opacity = 0.98;
|
||||||
|
|
||||||
|
# Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default)
|
||||||
|
# frame-opacity = 1.0
|
||||||
|
frame-opacity = 0.8;
|
||||||
|
|
||||||
|
# Default opacity for dropdown menus and popup menus. (0.0 - 1.0, defaults to 1.0)
|
||||||
|
# menu-opacity = 1.0
|
||||||
|
|
||||||
|
# Let inactive opacity set by -i override the '_NET_WM_OPACITY' values of windows.
|
||||||
|
# inactive-opacity-override = true
|
||||||
|
inactive-opacity-override = false;
|
||||||
|
|
||||||
|
# Default opacity for active windows. (0.0 - 1.0, defaults to 1.0)
|
||||||
|
# active-opacity = 1.0
|
||||||
|
|
||||||
|
# Dim inactive windows. (0.0 - 1.0, defaults to 0.0)
|
||||||
|
inactive-dim = 0.1
|
||||||
|
|
||||||
|
# Specify a list of conditions of windows that should always be considered focused.
|
||||||
|
# focus-exclude = []
|
||||||
|
focus-exclude = [ "class_g = 'Cairo-clock'" ];
|
||||||
|
|
||||||
|
# Use fixed inactive dim value, instead of adjusting according to window opacity.
|
||||||
|
# inactive-dim-fixed = 1.0
|
||||||
|
|
||||||
|
# Specify a list of opacity rules, in the format `PERCENT:PATTERN`,
|
||||||
|
# like `50:name *= "Firefox"`. picom-trans is recommended over this.
|
||||||
|
# Note we don't make any guarantee about possible conflicts with other
|
||||||
|
# programs that set '_NET_WM_WINDOW_OPACITY' on frame or client windows.
|
||||||
|
# example:
|
||||||
|
# opacity-rule = [ "80:class_g = 'URxvt'" ];
|
||||||
|
#
|
||||||
|
opacity-rule = [
|
||||||
|
"99:_NET_WM_STATE@[0]:32a = '_NET_WM_STATE_FULLSCREEN'",
|
||||||
|
"99:_NET_WM_STATE@[1]:32a = '_NET_WM_STATE_FULLSCREEN'",
|
||||||
|
"99:_NET_WM_STATE@[2]:32a = '_NET_WM_STATE_FULLSCREEN'",
|
||||||
|
"99:_NET_WM_STATE@[3]:32a = '_NET_WM_STATE_FULLSCREEN'",
|
||||||
|
"99:_NET_WM_STATE@[4]:32a = '_NET_WM_STATE_FULLSCREEN'",
|
||||||
|
]
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Background-Blurring #
|
||||||
|
#################################
|
||||||
|
|
||||||
|
|
||||||
|
# Parameters for background blurring, see the *BLUR* section for more information.
|
||||||
|
# blur-method =
|
||||||
|
blur-size = 10
|
||||||
|
#
|
||||||
|
# blur-deviation = false
|
||||||
|
|
||||||
|
# Blur background of semi-transparent / ARGB windows.
|
||||||
|
# Bad in performance, with driver-dependent behavior.
|
||||||
|
# The name of the switch may change without prior notifications.
|
||||||
|
#
|
||||||
|
blur-background = false
|
||||||
|
|
||||||
|
# Blur background of windows when the window frame is not opaque.
|
||||||
|
# Implies:
|
||||||
|
# blur-background
|
||||||
|
# Bad in performance, with driver-dependent behavior. The name may change.
|
||||||
|
#
|
||||||
|
# blur-background-frame = false
|
||||||
|
|
||||||
|
|
||||||
|
# Use fixed blur strength rather than adjusting according to window opacity.
|
||||||
|
blur-background-fixed = false
|
||||||
|
|
||||||
|
|
||||||
|
# Specify the blur convolution kernel, with the following format:
|
||||||
|
# example:
|
||||||
|
# blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1";
|
||||||
|
#
|
||||||
|
# blur-kern = ''
|
||||||
|
blur-kern = "3x3box";
|
||||||
|
|
||||||
|
|
||||||
|
# Exclude conditions for background blur.
|
||||||
|
# blur-background-exclude = []
|
||||||
|
blur-background-exclude = [
|
||||||
|
"window_type = 'dock'",
|
||||||
|
"window_type = 'desktop'",
|
||||||
|
"_GTK_FRAME_EXTENTS@:c"
|
||||||
|
];
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# General Settings #
|
||||||
|
#################################
|
||||||
|
|
||||||
|
# Daemonize process. Fork to background after initialization. Causes issues with certain (badly-written) drivers.
|
||||||
|
# daemon = false
|
||||||
|
|
||||||
|
# Specify the backend to use: `xrender`, `glx`, or `xr_glx_hybrid`.
|
||||||
|
# `xrender` is the default one.
|
||||||
|
#
|
||||||
|
# backend = 'glx'
|
||||||
|
# backend = "xrender";
|
||||||
|
backend = "glx";
|
||||||
|
# Enable/disable VSync.
|
||||||
|
# vsync = false
|
||||||
|
vsync = false
|
||||||
|
|
||||||
|
# Enable remote control via D-Bus. See the *D-BUS API* section below for more details.
|
||||||
|
# dbus = false
|
||||||
|
|
||||||
|
# Try to detect WM windows (a non-override-redirect window with no
|
||||||
|
# child that has 'WM_STATE') and mark them as active.
|
||||||
|
#
|
||||||
|
# mark-wmwin-focused = false
|
||||||
|
mark-wmwin-focused = true;
|
||||||
|
|
||||||
|
# Mark override-redirect windows that doesn't have a child window with 'WM_STATE' focused.
|
||||||
|
# mark-ovredir-focused = false
|
||||||
|
mark-ovredir-focused = true;
|
||||||
|
|
||||||
|
# Try to detect windows with rounded corners and don't consider them
|
||||||
|
# shaped windows. The accuracy is not very high, unfortunately.
|
||||||
|
#
|
||||||
|
# detect-rounded-corners = false
|
||||||
|
detect-rounded-corners = true;
|
||||||
|
|
||||||
|
# Detect '_NET_WM_OPACITY' on client windows, useful for window managers
|
||||||
|
# not passing '_NET_WM_OPACITY' of client windows to frame windows.
|
||||||
|
#
|
||||||
|
# detect-client-opacity = false
|
||||||
|
detect-client-opacity = true;
|
||||||
|
|
||||||
|
# Specify refresh rate of the screen. If not specified or 0, picom will
|
||||||
|
# try detecting this with X RandR extension.
|
||||||
|
#
|
||||||
|
# refresh-rate = 60
|
||||||
|
refresh-rate = 0
|
||||||
|
|
||||||
|
# Limit picom to repaint at most once every 1 / 'refresh_rate' second to
|
||||||
|
# boost performance. This should not be used with
|
||||||
|
# vsync drm/opengl/opengl-oml
|
||||||
|
# as they essentially does sw-opti's job already,
|
||||||
|
# unless you wish to specify a lower refresh rate than the actual value.
|
||||||
|
#
|
||||||
|
# sw-opti =
|
||||||
|
|
||||||
|
# Use EWMH '_NET_ACTIVE_WINDOW' to determine currently focused window,
|
||||||
|
# rather than listening to 'FocusIn'/'FocusOut' event. Might have more accuracy,
|
||||||
|
# provided that the WM supports it.
|
||||||
|
#
|
||||||
|
# use-ewmh-active-win = false
|
||||||
|
|
||||||
|
# Unredirect all windows if a full-screen opaque window is detected,
|
||||||
|
# to maximize performance for full-screen windows. Known to cause flickering
|
||||||
|
# when redirecting/unredirecting windows.
|
||||||
|
#
|
||||||
|
# unredir-if-possible = false
|
||||||
|
|
||||||
|
# Delay before unredirecting the window, in milliseconds. Defaults to 0.
|
||||||
|
# unredir-if-possible-delay = 0
|
||||||
|
|
||||||
|
# Conditions of windows that shouldn't be considered full-screen for unredirecting screen.
|
||||||
|
# unredir-if-possible-exclude = []
|
||||||
|
|
||||||
|
# Use 'WM_TRANSIENT_FOR' to group windows, and consider windows
|
||||||
|
# in the same group focused at the same time.
|
||||||
|
#
|
||||||
|
# detect-transient = false
|
||||||
|
detect-transient = true
|
||||||
|
|
||||||
|
# Use 'WM_CLIENT_LEADER' to group windows, and consider windows in the same
|
||||||
|
# group focused at the same time. 'WM_TRANSIENT_FOR' has higher priority if
|
||||||
|
# detect-transient is enabled, too.
|
||||||
|
#
|
||||||
|
# detect-client-leader = false
|
||||||
|
detect-client-leader = true
|
||||||
|
|
||||||
|
# Resize damaged region by a specific number of pixels.
|
||||||
|
# A positive value enlarges it while a negative one shrinks it.
|
||||||
|
# If the value is positive, those additional pixels will not be actually painted
|
||||||
|
# to screen, only used in blur calculation, and such. (Due to technical limitations,
|
||||||
|
# with use-damage, those pixels will still be incorrectly painted to screen.)
|
||||||
|
# Primarily used to fix the line corruption issues of blur,
|
||||||
|
# in which case you should use the blur radius value here
|
||||||
|
# (e.g. with a 3x3 kernel, you should use `--resize-damage 1`,
|
||||||
|
# with a 5x5 one you use `--resize-damage 2`, and so on).
|
||||||
|
# May or may not work with *--glx-no-stencil*. Shrinking doesn't function correctly.
|
||||||
|
#
|
||||||
|
# resize-damage = 1
|
||||||
|
|
||||||
|
# Specify a list of conditions of windows that should be painted with inverted color.
|
||||||
|
# Resource-hogging, and is not well tested.
|
||||||
|
#
|
||||||
|
# invert-color-include = []
|
||||||
|
|
||||||
|
# GLX backend: Avoid using stencil buffer, useful if you don't have a stencil buffer.
|
||||||
|
# Might cause incorrect opacity when rendering transparent content (but never
|
||||||
|
# practically happened) and may not work with blur-background.
|
||||||
|
# My tests show a 15% performance boost. Recommended.
|
||||||
|
#
|
||||||
|
# glx-no-stencil = false
|
||||||
|
|
||||||
|
# GLX backend: Avoid rebinding pixmap on window damage.
|
||||||
|
# Probably could improve performance on rapid window content changes,
|
||||||
|
# but is known to break things on some drivers (LLVMpipe, xf86-video-intel, etc.).
|
||||||
|
# Recommended if it works.
|
||||||
|
#
|
||||||
|
# glx-no-rebind-pixmap = false
|
||||||
|
|
||||||
|
# Disable the use of damage information.
|
||||||
|
# This cause the whole screen to be redrawn everytime, instead of the part of the screen
|
||||||
|
# has actually changed. Potentially degrades the performance, but might fix some artifacts.
|
||||||
|
# The opposing option is use-damage
|
||||||
|
#
|
||||||
|
# no-use-damage = false
|
||||||
|
use-damage = true
|
||||||
|
|
||||||
|
# Use X Sync fence to sync clients' draw calls, to make sure all draw
|
||||||
|
# calls are finished before picom starts drawing. Needed on nvidia-drivers
|
||||||
|
# with GLX backend for some users.
|
||||||
|
#
|
||||||
|
# xrender-sync-fence = false
|
||||||
|
|
||||||
|
# GLX backend: Use specified GLSL fragment shader for rendering window contents.
|
||||||
|
# See `compton-default-fshader-win.glsl` and `compton-fake-transparency-fshader-win.glsl`
|
||||||
|
# in the source tree for examples.
|
||||||
|
#
|
||||||
|
# glx-fshader-win = ''
|
||||||
|
|
||||||
|
# Force all windows to be painted with blending. Useful if you
|
||||||
|
# have a glx-fshader-win that could turn opaque pixels transparent.
|
||||||
|
#
|
||||||
|
# force-win-blend = false
|
||||||
|
|
||||||
|
# Do not use EWMH to detect fullscreen windows.
|
||||||
|
# Reverts to checking if a window is fullscreen based only on its size and coordinates.
|
||||||
|
#
|
||||||
|
# no-ewmh-fullscreen = false
|
||||||
|
|
||||||
|
# Dimming bright windows so their brightness doesn't exceed this set value.
|
||||||
|
# Brightness of a window is estimated by averaging all pixels in the window,
|
||||||
|
# so this could comes with a performance hit.
|
||||||
|
# Setting this to 1.0 disables this behaviour. Requires --use-damage to be disabled. (default: 1.0)
|
||||||
|
#
|
||||||
|
# max-brightness = 1.0
|
||||||
|
|
||||||
|
# Make transparent windows clip other windows like non-transparent windows do,
|
||||||
|
# instead of blending on top of them.
|
||||||
|
#
|
||||||
|
# transparent-clipping = false
|
||||||
|
|
||||||
|
# Set the log level. Possible values are:
|
||||||
|
# "trace", "debug", "info", "warn", "error"
|
||||||
|
# in increasing level of importance. Case doesn't matter.
|
||||||
|
# If using the "TRACE" log level, it's better to log into a file
|
||||||
|
# using *--log-file*, since it can generate a huge stream of logs.
|
||||||
|
#
|
||||||
|
# log-level = "debug"
|
||||||
|
log-level = "warn";
|
||||||
|
|
||||||
|
# Set the log file.
|
||||||
|
# If *--log-file* is never specified, logs will be written to stderr.
|
||||||
|
# Otherwise, logs will to written to the given file, though some of the early
|
||||||
|
# logs might still be written to the stderr.
|
||||||
|
# When setting this option from the config file, it is recommended to use an absolute path.
|
||||||
|
#
|
||||||
|
# log-file = '/path/to/your/log/file'
|
||||||
|
|
||||||
|
# Show all X errors (for debugging)
|
||||||
|
# show-all-xerrors = false
|
||||||
|
|
||||||
|
# Write process ID to a file.
|
||||||
|
# write-pid-path = '/path/to/your/log/file'
|
||||||
|
|
||||||
|
# Window type settings
|
||||||
|
#
|
||||||
|
# 'WINDOW_TYPE' is one of the 15 window types defined in EWMH standard:
|
||||||
|
# "unknown", "desktop", "dock", "toolbar", "menu", "utility",
|
||||||
|
# "splash", "dialog", "normal", "dropdown_menu", "popup_menu",
|
||||||
|
# "tooltip", "notification", "combo", and "dnd".
|
||||||
|
#
|
||||||
|
# Following per window-type options are available: ::
|
||||||
|
#
|
||||||
|
# fade, shadow:::
|
||||||
|
# Controls window-type-specific shadow and fade settings.
|
||||||
|
#
|
||||||
|
# opacity:::
|
||||||
|
# Controls default opacity of the window type.
|
||||||
|
#
|
||||||
|
# focus:::
|
||||||
|
# Controls whether the window of this type is to be always considered focused.
|
||||||
|
# (By default, all window types except "normal" and "dialog" has this on.)
|
||||||
|
#
|
||||||
|
# full-shadow:::
|
||||||
|
# Controls whether shadow is drawn under the parts of the window that you
|
||||||
|
# normally won't be able to see. Useful when the window has parts of it
|
||||||
|
# transparent, and you want shadows in those areas.
|
||||||
|
#
|
||||||
|
# redir-ignore:::
|
||||||
|
# Controls whether this type of windows should cause screen to become
|
||||||
|
# redirected again after been unredirected. If you have unredir-if-possible
|
||||||
|
# set, and doesn't want certain window to cause unnecessary screen redirection,
|
||||||
|
# you can set this to `true`.
|
||||||
|
#
|
||||||
|
|
||||||
|
#stop tearing on fullscreen windows
|
||||||
|
unredir-if-possible = false;
|
||||||
|
|
||||||
|
|
||||||
|
wintypes:
|
||||||
|
{
|
||||||
|
tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; };
|
||||||
|
dock = { shadow = false; }
|
||||||
|
dnd = { shadow = false; }
|
||||||
|
popup_menu = { opacity = 0.85; }
|
||||||
|
dropdown_menu = { opacity = 0.85; }
|
||||||
|
};
|
||||||
|
|
||||||
|
# ------------
|
||||||
|
# ibhagwan
|
||||||
|
# corner-radius = 12;
|
||||||
|
corner-radius = 15;
|
||||||
|
rounded-corner-exclude = [
|
||||||
|
#"window_type = 'normal'"
|
||||||
|
"class_g = 'Plasma'"
|
||||||
|
"class_g = 'plsama-desktop'"
|
||||||
|
"class_g = 'win7'"
|
||||||
|
"class_g = 'krunner'"
|
||||||
|
"class_g = 'plasmashell' window_type = 'notification'"
|
||||||
|
]
|
||||||
|
|
||||||
|
blur: {
|
||||||
|
# method = "dual_kawase";
|
||||||
|
method = "kawase";
|
||||||
|
strength = 7;
|
||||||
|
background = false;
|
||||||
|
background-frame = false;
|
||||||
|
background-fixed = false;
|
||||||
|
}
|
||||||
|
|
503
picom/picom.conf.jonaburg
Normal file
503
picom/picom.conf.jonaburg
Normal file
@ -0,0 +1,503 @@
|
|||||||
|
#################################
|
||||||
|
# Animations #
|
||||||
|
#################################
|
||||||
|
# requires https://github.com/jonaburg/picom
|
||||||
|
# (These are also the default values)
|
||||||
|
transition-length = 300
|
||||||
|
transition-pow-x = 0.1
|
||||||
|
transition-pow-y = 0.1
|
||||||
|
transition-pow-w = 0.1
|
||||||
|
transition-pow-h = 0.1
|
||||||
|
size-transition = true
|
||||||
|
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Corners #
|
||||||
|
#################################
|
||||||
|
# requires: https://github.com/sdhand/compton or https://github.com/jonaburg/picom
|
||||||
|
corner-radius = 10.0;
|
||||||
|
rounded-corners-exclude = [
|
||||||
|
#"window_type = 'normal'",
|
||||||
|
"class_g = 'polybar'",
|
||||||
|
#"class_g = 'TelegramDesktop'",
|
||||||
|
];
|
||||||
|
round-borders = 1;
|
||||||
|
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.
|
||||||
|
#
|
||||||
|
# shadow = false
|
||||||
|
shadow = true;
|
||||||
|
|
||||||
|
# The blur radius for shadows, in pixels. (defaults to 12)
|
||||||
|
shadow-radius = 12
|
||||||
|
# shadow-radius = 7;
|
||||||
|
|
||||||
|
# The opacity of shadows. (0.0 - 1.0, defaults to 0.75)
|
||||||
|
shadow-opacity = .75
|
||||||
|
|
||||||
|
# The left offset for shadows, in pixels. (defaults to -15)
|
||||||
|
# shadow-offset-x = -15
|
||||||
|
shadow-offset-x = -7;
|
||||||
|
|
||||||
|
# The top offset for shadows, in pixels. (defaults to -15)
|
||||||
|
# shadow-offset-y = -15
|
||||||
|
shadow-offset-y = -7;
|
||||||
|
|
||||||
|
# Avoid drawing shadows on dock/panel windows. This option is deprecated,
|
||||||
|
# you should use the *wintypes* option in your config file instead.
|
||||||
|
#
|
||||||
|
# no-dock-shadow = false
|
||||||
|
|
||||||
|
# Don't draw shadows on drag-and-drop windows. This option is deprecated,
|
||||||
|
# you should use the *wintypes* option in your config file instead.
|
||||||
|
#
|
||||||
|
# no-dnd-shadow = false
|
||||||
|
|
||||||
|
# Red color value of shadow (0.0 - 1.0, defaults to 0).
|
||||||
|
# shadow-red = 0
|
||||||
|
|
||||||
|
# Green color value of shadow (0.0 - 1.0, defaults to 0).
|
||||||
|
# shadow-green = 0
|
||||||
|
|
||||||
|
# Blue color value of shadow (0.0 - 1.0, defaults to 0).
|
||||||
|
# shadow-blue = 0
|
||||||
|
|
||||||
|
# Do not paint shadows on shaped windows. Note shaped windows
|
||||||
|
# here means windows setting its shape through X Shape extension.
|
||||||
|
# Those using ARGB background is beyond our control.
|
||||||
|
# Deprecated, use
|
||||||
|
# shadow-exclude = 'bounding_shaped'
|
||||||
|
# or
|
||||||
|
# shadow-exclude = 'bounding_shaped && !rounded_corners'
|
||||||
|
# instead.
|
||||||
|
#
|
||||||
|
# shadow-ignore-shaped = ''
|
||||||
|
|
||||||
|
# Specify a list of conditions of windows that should have no shadow.
|
||||||
|
#
|
||||||
|
# examples:
|
||||||
|
# shadow-exclude = "n:e:Notification";
|
||||||
|
#
|
||||||
|
# shadow-exclude = []
|
||||||
|
shadow-exclude = [
|
||||||
|
"name = 'Notification'",
|
||||||
|
"class_g = 'Conky'",
|
||||||
|
"class_g ?= 'Notify-osd'",
|
||||||
|
"class_g = 'Cairo-clock'",
|
||||||
|
"class_g = 'slop'",
|
||||||
|
"class_g = 'Polybar'",
|
||||||
|
"_GTK_FRAME_EXTENTS@:c"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Specify a X geometry that describes the region in which shadow should not
|
||||||
|
# be painted in, such as a dock window region. Use
|
||||||
|
# shadow-exclude-reg = "x10+0+0"
|
||||||
|
# for example, if the 10 pixels on the bottom of the screen should not have shadows painted on.
|
||||||
|
#
|
||||||
|
# shadow-exclude-reg = ""
|
||||||
|
|
||||||
|
# Crop shadow of a window fully on a particular Xinerama screen to the screen.
|
||||||
|
# xinerama-shadow-crop = false
|
||||||
|
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Fading #
|
||||||
|
#################################
|
||||||
|
|
||||||
|
|
||||||
|
# Fade windows in/out when opening/closing and when opacity changes,
|
||||||
|
# unless no-fading-openclose is used.
|
||||||
|
# fading = false
|
||||||
|
fading = true;
|
||||||
|
|
||||||
|
# Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028)
|
||||||
|
# fade-in-step = 0.028
|
||||||
|
fade-in-step = 0.03;
|
||||||
|
|
||||||
|
# Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03)
|
||||||
|
# fade-out-step = 0.03
|
||||||
|
fade-out-step = 0.03;
|
||||||
|
|
||||||
|
# The time between steps in fade step, in milliseconds. (> 0, defaults to 10)
|
||||||
|
# fade-delta = 10
|
||||||
|
|
||||||
|
# Specify a list of conditions of windows that should not be faded.
|
||||||
|
# don't need this, we disable fading for all normal windows with wintypes: {}
|
||||||
|
fade-exclude = [
|
||||||
|
"class_g = 'slop'" # maim
|
||||||
|
]
|
||||||
|
|
||||||
|
# Do not fade on window open/close.
|
||||||
|
# no-fading-openclose = false
|
||||||
|
|
||||||
|
# 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.85;
|
||||||
|
|
||||||
|
# Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default)
|
||||||
|
# frame-opacity = 1.0
|
||||||
|
frame-opacity = 0.7;
|
||||||
|
|
||||||
|
# Default opacity for dropdown menus and popup menus. (0.0 - 1.0, defaults to 1.0)
|
||||||
|
# menu-opacity = 1.0
|
||||||
|
# menu-opacity is depreciated use dropdown-menu and popup-menu instead.
|
||||||
|
|
||||||
|
#If using these 2 below change their values in line 510 & 511 aswell
|
||||||
|
popup_menu = { opacity = 0.8; }
|
||||||
|
dropdown_menu = { opacity = 0.8; }
|
||||||
|
|
||||||
|
|
||||||
|
# Let inactive opacity set by -i override the '_NET_WM_OPACITY' values of windows.
|
||||||
|
# inactive-opacity-override = true
|
||||||
|
inactive-opacity-override = false;
|
||||||
|
|
||||||
|
# Default opacity for active windows. (0.0 - 1.0, defaults to 1.0)
|
||||||
|
active-opacity = .9;
|
||||||
|
|
||||||
|
# Dim inactive windows. (0.0 - 1.0, defaults to 0.0)
|
||||||
|
inactive-dim = 0.1
|
||||||
|
|
||||||
|
# Specify a list of conditions of windows that should always be considered focused.
|
||||||
|
# focus-exclude = []
|
||||||
|
focus-exclude = [
|
||||||
|
"class_g = 'Cairo-clock'",
|
||||||
|
"class_g = 'Bar'", # lemonbar
|
||||||
|
"class_g = 'slop'" # maim
|
||||||
|
];
|
||||||
|
|
||||||
|
# Use fixed inactive dim value, instead of adjusting according to window opacity.
|
||||||
|
# inactive-dim-fixed = 1.0
|
||||||
|
|
||||||
|
# Specify a list of opacity rules, in the format `PERCENT:PATTERN`,
|
||||||
|
# like `50:name *= "Firefox"`. picom-trans is recommended over this.
|
||||||
|
# Note we don't make any guarantee about possible conflicts with other
|
||||||
|
# programs that set '_NET_WM_WINDOW_OPACITY' on frame or client windows.
|
||||||
|
# example:
|
||||||
|
# opacity-rule = [ "80:class_g = 'URxvt'" ];
|
||||||
|
#
|
||||||
|
# opacity-rule = []
|
||||||
|
opacity-rule = [
|
||||||
|
"96:class_g = 'Alacritty'",
|
||||||
|
"100:class_g = 'Polybar'",
|
||||||
|
"100:class_g = 'code-oss'",
|
||||||
|
"100:class_g = 'Code'",
|
||||||
|
"100:class_g = 'jetbrains-studio'",
|
||||||
|
"100:class_g = 'firefox'",
|
||||||
|
"100:_NET_WM_STATE@[0]:32a = '_NET_WM_STATE_FULLSCREEN'",
|
||||||
|
"100:_NET_WM_STATE@[1]:32a = '_NET_WM_STATE_FULLSCREEN'",
|
||||||
|
"100:_NET_WM_STATE@[2]:32a = '_NET_WM_STATE_FULLSCREEN'",
|
||||||
|
"100:_NET_WM_STATE@[3]:32a = '_NET_WM_STATE_FULLSCREEN'",
|
||||||
|
"100:_NET_WM_STATE@[4]:32a = '_NET_WM_STATE_FULLSCREEN'",
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Background-Blurring #
|
||||||
|
#################################
|
||||||
|
|
||||||
|
|
||||||
|
# Parameters for background blurring, see the *BLUR* section for more information.
|
||||||
|
# blur-method =
|
||||||
|
# blur-size = 12
|
||||||
|
#
|
||||||
|
# blur-deviation = false
|
||||||
|
|
||||||
|
# Blur background of semi-transparent / ARGB windows.
|
||||||
|
# Bad in performance, with driver-dependent behavior.
|
||||||
|
# The name of the switch may change without prior notifications.
|
||||||
|
#
|
||||||
|
# blur-background = true;
|
||||||
|
|
||||||
|
# Blur background of windows when the window frame is not opaque.
|
||||||
|
# Implies:
|
||||||
|
# blur-background
|
||||||
|
# Bad in performance, with driver-dependent behavior. The name may change.
|
||||||
|
#
|
||||||
|
# blur-background-frame = false;
|
||||||
|
|
||||||
|
|
||||||
|
# Use fixed blur strength rather than adjusting according to window opacity.
|
||||||
|
# blur-background-fixed = false;
|
||||||
|
|
||||||
|
|
||||||
|
# Specify the blur convolution kernel, with the following format:
|
||||||
|
# example:
|
||||||
|
# blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1";
|
||||||
|
#
|
||||||
|
# blur-kern = ''
|
||||||
|
# blur-kern = "3x3box";
|
||||||
|
|
||||||
|
blur: {
|
||||||
|
# requires: https://github.com/ibhagwan/picom
|
||||||
|
method = "kawase";
|
||||||
|
#method = "kernel";
|
||||||
|
strength = 7;
|
||||||
|
# deviation = 1.0;
|
||||||
|
# kernel = "11x11gaussian";
|
||||||
|
background = false;
|
||||||
|
background-frame = false;
|
||||||
|
background-fixed = false;
|
||||||
|
kern = "3x3box";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Exclude conditions for background blur.
|
||||||
|
blur-background-exclude = [
|
||||||
|
#"window_type = 'dock'",
|
||||||
|
#"window_type = 'desktop'",
|
||||||
|
#"class_g = 'URxvt'",
|
||||||
|
#
|
||||||
|
# prevents picom from blurring the background
|
||||||
|
# when taking selection screenshot with `main`
|
||||||
|
# https://github.com/naelstrof/maim/issues/130
|
||||||
|
"class_g = 'slop'",
|
||||||
|
"_GTK_FRAME_EXTENTS@:c"
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# General Settings #
|
||||||
|
#################################
|
||||||
|
|
||||||
|
# Daemonize process. Fork to background after initialization. Causes issues with certain (badly-written) drivers.
|
||||||
|
# daemon = false
|
||||||
|
|
||||||
|
# Specify the backend to use: `xrender`, `glx`, or `xr_glx_hybrid`.
|
||||||
|
# `xrender` is the default one.
|
||||||
|
#
|
||||||
|
experimental-backends = true;
|
||||||
|
backend = "glx";
|
||||||
|
# backend = "xrender";
|
||||||
|
|
||||||
|
|
||||||
|
# Enable/disable VSync.
|
||||||
|
# vsync = false
|
||||||
|
vsync = false
|
||||||
|
|
||||||
|
# Enable remote control via D-Bus. See the *D-BUS API* section below for more details.
|
||||||
|
# dbus = false
|
||||||
|
|
||||||
|
# Try to detect WM windows (a non-override-redirect window with no
|
||||||
|
# child that has 'WM_STATE') and mark them as active.
|
||||||
|
#
|
||||||
|
# mark-wmwin-focused = false
|
||||||
|
mark-wmwin-focused = true;
|
||||||
|
|
||||||
|
# Mark override-redirect windows that doesn't have a child window with 'WM_STATE' focused.
|
||||||
|
# mark-ovredir-focused = false
|
||||||
|
mark-ovredir-focused = true;
|
||||||
|
|
||||||
|
# Try to detect windows with rounded corners and don't consider them
|
||||||
|
# shaped windows. The accuracy is not very high, unfortunately.
|
||||||
|
#
|
||||||
|
# detect-rounded-corners = false
|
||||||
|
detect-rounded-corners = true;
|
||||||
|
|
||||||
|
# Detect '_NET_WM_OPACITY' on client windows, useful for window managers
|
||||||
|
# not passing '_NET_WM_OPACITY' of client windows to frame windows.
|
||||||
|
#
|
||||||
|
# detect-client-opacity = false
|
||||||
|
detect-client-opacity = true;
|
||||||
|
|
||||||
|
# Specify refresh rate of the screen. If not specified or 0, picom will
|
||||||
|
# try detecting this with X RandR extension.
|
||||||
|
#
|
||||||
|
# refresh-rate = 60
|
||||||
|
refresh-rate = 0
|
||||||
|
|
||||||
|
# Limit picom to repaint at most once every 1 / 'refresh_rate' second to
|
||||||
|
# boost performance. This should not be used with
|
||||||
|
# vsync drm/opengl/opengl-oml
|
||||||
|
# as they essentially does sw-opti's job already,
|
||||||
|
# unless you wish to specify a lower refresh rate than the actual value.
|
||||||
|
#
|
||||||
|
# sw-opti =
|
||||||
|
|
||||||
|
# Use EWMH '_NET_ACTIVE_WINDOW' to determine currently focused window,
|
||||||
|
# rather than listening to 'FocusIn'/'FocusOut' event. Might have more accuracy,
|
||||||
|
# provided that the WM supports it.
|
||||||
|
#
|
||||||
|
# use-ewmh-active-win = false
|
||||||
|
|
||||||
|
# Unredirect all windows if a full-screen opaque window is detected,
|
||||||
|
# to maximize performance for full-screen windows. Known to cause flickering
|
||||||
|
# when redirecting/unredirecting windows. paint-on-overlay may make the flickering less obvious.
|
||||||
|
#
|
||||||
|
# unredir-if-possible = false
|
||||||
|
|
||||||
|
# Delay before unredirecting the window, in milliseconds. Defaults to 0.
|
||||||
|
# unredir-if-possible-delay = 0
|
||||||
|
|
||||||
|
# Conditions of windows that shouldn't be considered full-screen for unredirecting screen.
|
||||||
|
# unredir-if-possible-exclude = []
|
||||||
|
|
||||||
|
# Use 'WM_TRANSIENT_FOR' to group windows, and consider windows
|
||||||
|
# in the same group focused at the same time.
|
||||||
|
#
|
||||||
|
# detect-transient = false
|
||||||
|
detect-transient = true
|
||||||
|
|
||||||
|
# Use 'WM_CLIENT_LEADER' to group windows, and consider windows in the same
|
||||||
|
# group focused at the same time. 'WM_TRANSIENT_FOR' has higher priority if
|
||||||
|
# detect-transient is enabled, too.
|
||||||
|
#
|
||||||
|
# detect-client-leader = false
|
||||||
|
detect-client-leader = true
|
||||||
|
|
||||||
|
# Resize damaged region by a specific number of pixels.
|
||||||
|
# A positive value enlarges it while a negative one shrinks it.
|
||||||
|
# If the value is positive, those additional pixels will not be actually painted
|
||||||
|
# to screen, only used in blur calculation, and such. (Due to technical limitations,
|
||||||
|
# with use-damage, those pixels will still be incorrectly painted to screen.)
|
||||||
|
# Primarily used to fix the line corruption issues of blur,
|
||||||
|
# in which case you should use the blur radius value here
|
||||||
|
# (e.g. with a 3x3 kernel, you should use `--resize-damage 1`,
|
||||||
|
# with a 5x5 one you use `--resize-damage 2`, and so on).
|
||||||
|
# May or may not work with *--glx-no-stencil*. Shrinking doesn't function correctly.
|
||||||
|
#
|
||||||
|
# resize-damage = 1
|
||||||
|
|
||||||
|
# Specify a list of conditions of windows that should be painted with inverted color.
|
||||||
|
# Resource-hogging, and is not well tested.
|
||||||
|
#
|
||||||
|
# invert-color-include = []
|
||||||
|
|
||||||
|
# GLX backend: Avoid using stencil buffer, useful if you don't have a stencil buffer.
|
||||||
|
# Might cause incorrect opacity when rendering transparent content (but never
|
||||||
|
# practically happened) and may not work with blur-background.
|
||||||
|
# My tests show a 15% performance boost. Recommended.
|
||||||
|
#
|
||||||
|
# glx-no-stencil = false
|
||||||
|
|
||||||
|
# GLX backend: Avoid rebinding pixmap on window damage.
|
||||||
|
# Probably could improve performance on rapid window content changes,
|
||||||
|
# but is known to break things on some drivers (LLVMpipe, xf86-video-intel, etc.).
|
||||||
|
# Recommended if it works.
|
||||||
|
#
|
||||||
|
# glx-no-rebind-pixmap = false
|
||||||
|
|
||||||
|
# Disable the use of damage information.
|
||||||
|
# This cause the whole screen to be redrawn everytime, instead of the part of the screen
|
||||||
|
# has actually changed. Potentially degrades the performance, but might fix some artifacts.
|
||||||
|
# The opposing option is use-damage
|
||||||
|
#
|
||||||
|
# no-use-damage = false
|
||||||
|
#use-damage = true (Causing Weird Black semi opaque rectangles when terminal is opened)
|
||||||
|
#Changing use-damage to false fixes the problem
|
||||||
|
use-damage = false
|
||||||
|
|
||||||
|
# Use X Sync fence to sync clients' draw calls, to make sure all draw
|
||||||
|
# calls are finished before picom starts drawing. Needed on nvidia-drivers
|
||||||
|
# with GLX backend for some users.
|
||||||
|
#
|
||||||
|
xrender-sync-fence = true
|
||||||
|
|
||||||
|
# GLX backend: Use specified GLSL fragment shader for rendering window contents.
|
||||||
|
# See `compton-default-fshader-win.glsl` and `compton-fake-transparency-fshader-win.glsl`
|
||||||
|
# in the source tree for examples.
|
||||||
|
#
|
||||||
|
# glx-fshader-win = ''
|
||||||
|
|
||||||
|
# Force all windows to be painted with blending. Useful if you
|
||||||
|
# have a glx-fshader-win that could turn opaque pixels transparent.
|
||||||
|
#
|
||||||
|
# force-win-blend = false
|
||||||
|
|
||||||
|
# Do not use EWMH to detect fullscreen windows.
|
||||||
|
# Reverts to checking if a window is fullscreen based only on its size and coordinates.
|
||||||
|
#
|
||||||
|
# no-ewmh-fullscreen = false
|
||||||
|
|
||||||
|
# Dimming bright windows so their brightness doesn't exceed this set value.
|
||||||
|
# Brightness of a window is estimated by averaging all pixels in the window,
|
||||||
|
# so this could comes with a performance hit.
|
||||||
|
# Setting this to 1.0 disables this behaviour. Requires --use-damage to be disabled. (default: 1.0)
|
||||||
|
#
|
||||||
|
# max-brightness = 1.0
|
||||||
|
|
||||||
|
# Make transparent windows clip other windows like non-transparent windows do,
|
||||||
|
# instead of blending on top of them.
|
||||||
|
#
|
||||||
|
# transparent-clipping = false
|
||||||
|
|
||||||
|
# Set the log level. Possible values are:
|
||||||
|
# "trace", "debug", "info", "warn", "error"
|
||||||
|
# in increasing level of importance. Case doesn't matter.
|
||||||
|
# If using the "TRACE" log level, it's better to log into a file
|
||||||
|
# using *--log-file*, since it can generate a huge stream of logs.
|
||||||
|
#
|
||||||
|
# log-level = "debug"
|
||||||
|
log-level = "info";
|
||||||
|
|
||||||
|
# Set the log file.
|
||||||
|
# If *--log-file* is never specified, logs will be written to stderr.
|
||||||
|
# Otherwise, logs will to written to the given file, though some of the early
|
||||||
|
# logs might still be written to the stderr.
|
||||||
|
# When setting this option from the config file, it is recommended to use an absolute path.
|
||||||
|
#
|
||||||
|
# log-file = '~/.picom.log'
|
||||||
|
|
||||||
|
# Show all X errors (for debugging)
|
||||||
|
# show-all-xerrors = false
|
||||||
|
|
||||||
|
# Write process ID to a file.
|
||||||
|
# write-pid-path = '/path/to/your/log/file'
|
||||||
|
|
||||||
|
# Window type settings
|
||||||
|
#
|
||||||
|
# 'WINDOW_TYPE' is one of the 15 window types defined in EWMH standard:
|
||||||
|
# "unknown", "desktop", "dock", "toolbar", "menu", "utility",
|
||||||
|
# "splash", "dialog", "normal", "dropdown_menu", "popup_menu",
|
||||||
|
# "tooltip", "notification", "combo", and "dnd".
|
||||||
|
#
|
||||||
|
# Following per window-type options are available: ::
|
||||||
|
#
|
||||||
|
# fade, shadow:::
|
||||||
|
# Controls window-type-specific shadow and fade settings.
|
||||||
|
#
|
||||||
|
# opacity:::
|
||||||
|
# Controls default opacity of the window type.
|
||||||
|
#
|
||||||
|
# focus:::
|
||||||
|
# Controls whether the window of this type is to be always considered focused.
|
||||||
|
# (By default, all window types except "normal" and "dialog" has this on.)
|
||||||
|
#
|
||||||
|
# full-shadow:::
|
||||||
|
# Controls whether shadow is drawn under the parts of the window that you
|
||||||
|
# normally won't be able to see. Useful when the window has parts of it
|
||||||
|
# transparent, and you want shadows in those areas.
|
||||||
|
#
|
||||||
|
# redir-ignore:::
|
||||||
|
# Controls whether this type of windows should cause screen to become
|
||||||
|
# redirected again after been unredirected. If you have unredir-if-possible
|
||||||
|
# set, and doesn't want certain window to cause unnecessary screen redirection,
|
||||||
|
# you can set this to `true`.
|
||||||
|
#
|
||||||
|
wintypes:
|
||||||
|
{
|
||||||
|
normal = { fade = false; shadow = false; }
|
||||||
|
tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; };
|
||||||
|
dock = { shadow = false; }
|
||||||
|
dnd = { shadow = false; }
|
||||||
|
popup_menu = { opacity = 0.8; }
|
||||||
|
dropdown_menu = { opacity = 0.8; }
|
||||||
|
};
|
||||||
|
|
54
polybar-modules/battery.ini
Normal file
54
polybar-modules/battery.ini
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
[module/battery]
|
||||||
|
type = internal/battery
|
||||||
|
full-at = 99
|
||||||
|
time-format = %H:%M
|
||||||
|
battery = BAT0
|
||||||
|
adapter = AC0
|
||||||
|
format-charging = <animation-charging> <label-charging>
|
||||||
|
format-charging-foreground = #a8d385
|
||||||
|
format-charging-padding = 1
|
||||||
|
label-charging = %{F#a8d385}%percentage%%%{F-}
|
||||||
|
label-charging-foreground = #a8d385
|
||||||
|
format-discharging = <ramp-capacity> <label-discharging>
|
||||||
|
format-discharging-foreground = #F9825A
|
||||||
|
format-discharging-padding = 1
|
||||||
|
label-discharging =%{F#F9825A}%percentage%%%{F-}
|
||||||
|
format-full = <label-full>
|
||||||
|
format-full-foreground = #a8d385
|
||||||
|
|
||||||
|
format-full-prefix = ""
|
||||||
|
format-full-prefix-foreground = #a8d385
|
||||||
|
ramp-capacity-0 =
|
||||||
|
ramp-capacity-1 =
|
||||||
|
ramp-capacity-2 =
|
||||||
|
ramp-capacity-3 =
|
||||||
|
ramp-capacity-4 =
|
||||||
|
ramp-capacity-5 =
|
||||||
|
ramp-capacity-6 =
|
||||||
|
ramp-capacity-7 =
|
||||||
|
ramp-capacity-8 =
|
||||||
|
ramp-capacity-9 =
|
||||||
|
|
||||||
|
ramp-capacity-0-foreground = ${color.red}
|
||||||
|
ramp-capacity-1-foreground = ${color.red}
|
||||||
|
ramp-capacity-2-foreground = ${color.red}
|
||||||
|
ramp-capacity-3-foreground = ${color.yellow}
|
||||||
|
ramp-capacity-4-foreground = ${color.yellow}
|
||||||
|
ramp-capacity-5-foreground = ${color.yellow}
|
||||||
|
ramp-capacity-6-foreground = #a8d385
|
||||||
|
ramp-capacity-7-foreground = #a8d385
|
||||||
|
ramp-capacity-8-foreground = #a8d385
|
||||||
|
ramp-capacity-9-foreground = #a8d385
|
||||||
|
#ramp-capacity-foreground = ${color.fg}
|
||||||
|
# ramp-capacity-foreground = #a8d385
|
||||||
|
bar-capacity-width = 2
|
||||||
|
|
||||||
|
animation-charging-0 =
|
||||||
|
animation-charging-1 =
|
||||||
|
animation-charging-2 =
|
||||||
|
animation-charging-3 =
|
||||||
|
animation-charging-4 =
|
||||||
|
animation-charging-5 =
|
||||||
|
animation-charging-6 =
|
||||||
|
|
||||||
|
animation-charging-framerate = 750
|
9
polybar-modules/bluetooth.desktop.ini
Normal file
9
polybar-modules/bluetooth.desktop.ini
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[module/bluetooth-desktop]
|
||||||
|
type = custom/script
|
||||||
|
exec = rofi-bluetooth --status
|
||||||
|
interval = 2
|
||||||
|
click-left = ~/scripts/rofi-bluetooth.desktop
|
||||||
|
click-right = blueman-manager
|
||||||
|
# format-foreground = #fc8353
|
||||||
|
format-foreground = #A8D385
|
||||||
|
format-padding = 1
|
8
polybar-modules/bluetooth.ini
Normal file
8
polybar-modules/bluetooth.ini
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
[module/system-bluetooth-bluetoothctl]
|
||||||
|
type = custom/script
|
||||||
|
exec = ~/i3/scripts/system-bluetooth-bluetoothctl.sh
|
||||||
|
tail = true
|
||||||
|
click-left = ~/i3/scripts/system-bluetooth-bluetoothctl.sh --toggle &
|
||||||
|
click-right = blueman-manager
|
||||||
|
label-foreground = #fc855a
|
||||||
|
label-padding = 1
|
9
polybar-modules/bluetooth2.ini
Normal file
9
polybar-modules/bluetooth2.ini
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[module/bluetooth2]
|
||||||
|
type = custom/script
|
||||||
|
exec = rofi-bluetooth --status
|
||||||
|
interval = 2
|
||||||
|
click-left = ~/scripts/rofi-bluetooth
|
||||||
|
click-right = blueman-manager
|
||||||
|
# format-foreground = #fc8353
|
||||||
|
format-foreground = #A8D385
|
||||||
|
format-padding = 1
|
6
polybar-modules/color-picker.ini
Normal file
6
polybar-modules/color-picker.ini
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[module/color-picker]
|
||||||
|
type = custom/text
|
||||||
|
content =
|
||||||
|
content-padding = 1
|
||||||
|
content-foreground = #C1BF10
|
||||||
|
click-left = kcolorchooser
|
20
polybar-modules/cpu.ini
Normal file
20
polybar-modules/cpu.ini
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
[module/cpu]
|
||||||
|
type = internal/cpu
|
||||||
|
interval = 0.5
|
||||||
|
# format = <label> <ramp-coreload>
|
||||||
|
format = <label>
|
||||||
|
format-padding = 0.5
|
||||||
|
format-width = 20
|
||||||
|
label = CPU %percentage:2%%
|
||||||
|
label-foreground = #fc855a
|
||||||
|
ramp-coreload-spacing = 0.8
|
||||||
|
ramp-coreload-0 = ▁
|
||||||
|
ramp-coreload-1 = ▂
|
||||||
|
ramp-coreload-2 = ▃
|
||||||
|
ramp-coreload-3 = ▄
|
||||||
|
ramp-coreload-4 = ▅
|
||||||
|
ramp-coreload-5 = ▆
|
||||||
|
ramp-coreload-6 = ▇
|
||||||
|
ramp-coreload-7 = █
|
||||||
|
ramp-coreload-foreground = #fc855a
|
||||||
|
ramp-coreload-padding = 0.8
|
27
polybar-modules/custom-mpd.ini
Normal file
27
polybar-modules/custom-mpd.ini
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
[module/custom-mpd]
|
||||||
|
type = custom/script
|
||||||
|
tail = true
|
||||||
|
interval = 0
|
||||||
|
exec = $HOME/i3/scripts/show-music.sh
|
||||||
|
format = <label>
|
||||||
|
click-left = exec $HOME/i3/scripts/music-controls.sh -t
|
||||||
|
click-right = alacritty -e ncmpcpp
|
||||||
|
format-padding = 1
|
||||||
|
format-underline = #1DB954
|
||||||
|
format-foreground = #55AEBB
|
||||||
|
|
||||||
|
[module/mpd-next]
|
||||||
|
type = custom/script
|
||||||
|
click-left = $HOME/i3/scripts/music-controls.sh -n
|
||||||
|
exec = $HOME/i3/scripts/mpd-controls.sh next
|
||||||
|
format-padding = 1
|
||||||
|
format-underline = #1DB954
|
||||||
|
format-foreground = #55AEBB
|
||||||
|
|
||||||
|
[module/mpd-prev]
|
||||||
|
type = custom/script
|
||||||
|
click-left = $HOME/i3/scripts/music-controls.sh -p
|
||||||
|
exec = $HOME/i3/scripts/mpd-controls.sh prev
|
||||||
|
format-padding = 1
|
||||||
|
format-underline = #1DB954
|
||||||
|
format-foreground = #55AEBB
|
16
polybar-modules/date.ini
Normal file
16
polybar-modules/date.ini
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
[module/date]
|
||||||
|
type = internal/date
|
||||||
|
interval = 1
|
||||||
|
label = %time%
|
||||||
|
label-padding = 1
|
||||||
|
label-background = ${color.shade4}
|
||||||
|
# red
|
||||||
|
# label-foreground = #F65522
|
||||||
|
# blue
|
||||||
|
# label-foreground = #56a7b5
|
||||||
|
# orange
|
||||||
|
label-foreground = #e5c07b
|
||||||
|
# time = %r
|
||||||
|
# time = %l:%M:%S %p
|
||||||
|
time = %l:%M %p
|
||||||
|
time-alt = %h-%d-%Y
|
7
polybar-modules/dolphin.ini
Normal file
7
polybar-modules/dolphin.ini
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
[module/dolphin]
|
||||||
|
type = custom/text
|
||||||
|
content =
|
||||||
|
content-padding = 1
|
||||||
|
# content-foreground = #3BB6F3
|
||||||
|
content-foreground = #56a7b5
|
||||||
|
click-left = dolphin
|
7
polybar-modules/flameshot.ini
Normal file
7
polybar-modules/flameshot.ini
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
[module/flameshot]
|
||||||
|
type = custom/text
|
||||||
|
content =
|
||||||
|
content-padding = 1
|
||||||
|
content-foreground = #fc8353
|
||||||
|
click-left = exec ~/scripts/flameshot_gui.sh
|
||||||
|
click-right = flameshot config
|
6
polybar-modules/github.ini
Normal file
6
polybar-modules/github.ini
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[module/github]
|
||||||
|
type = custom/text
|
||||||
|
content =
|
||||||
|
content-padding = 2
|
||||||
|
content-foreground = ${color.black}
|
||||||
|
click-left = xdg-open https://www.github.com/ksyasuda &
|
9
polybar-modules/jdate.ini
Normal file
9
polybar-modules/jdate.ini
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[module/jdate]
|
||||||
|
type = custom/script
|
||||||
|
# should be every day
|
||||||
|
interval = 100
|
||||||
|
label-font = 4
|
||||||
|
# format-foreground = #fc8353
|
||||||
|
format-foreground = #c578dd
|
||||||
|
format-padding = 1
|
||||||
|
exec = python ~/i3/scripts/date.py
|
18
polybar-modules/memory.ini
Normal file
18
polybar-modules/memory.ini
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
[module/memory]
|
||||||
|
type = internal/memory
|
||||||
|
interval = 3
|
||||||
|
format = <label> <bar-used>
|
||||||
|
format-padding = 1
|
||||||
|
#label = RAM %gb_used%/%gb_free%
|
||||||
|
label = RAM %percentage_used%%
|
||||||
|
label-foreground = #a8d385
|
||||||
|
; Only applies if <bar-used> is used
|
||||||
|
bar-used-indicator =
|
||||||
|
bar-used-width = 8
|
||||||
|
bar-used-foreground-0 = #55aa55
|
||||||
|
bar-used-foreground-1 = #557755
|
||||||
|
bar-used-foreground-2 = #f5a70a
|
||||||
|
bar-used-foreground-3 = #ff5555
|
||||||
|
bar-used-fill = ▐
|
||||||
|
bar-used-empty = ▐
|
||||||
|
bar-used-empty-foreground = #444444
|
10
polybar-modules/menu.ini
Normal file
10
polybar-modules/menu.ini
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[module/menu]
|
||||||
|
type = custom/text
|
||||||
|
#content =
|
||||||
|
content =
|
||||||
|
# alt icons =
|
||||||
|
content-padding = 3
|
||||||
|
content-background = ${color.shade3}
|
||||||
|
content-foreground = #2878af
|
||||||
|
click-right = ~/i3/scripts/menu_full
|
||||||
|
click-left = ~/i3/scripts/menu
|
26
polybar-modules/music-controls.ini
Normal file
26
polybar-modules/music-controls.ini
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
[module/music-prev]
|
||||||
|
type = custom/script
|
||||||
|
# exec = echo "玲"
|
||||||
|
exec = ~/i3/scripts/music-controls.py prev
|
||||||
|
format = <label>
|
||||||
|
click-left = mpc prev
|
||||||
|
format-padding = 1
|
||||||
|
format-underline = #1DB954
|
||||||
|
# format-foreground = #1DB954
|
||||||
|
format-foreground = #55AEBB
|
||||||
|
|
||||||
|
[module/music-toggle]
|
||||||
|
type = custom/script
|
||||||
|
exec = ~/i3/scripts/music-controls.py toggle
|
||||||
|
click-left = npc toggle
|
||||||
|
|
||||||
|
[module/music-next]
|
||||||
|
type = custom/script
|
||||||
|
# exec = echo "怜"
|
||||||
|
exec = ~/i3/scripts/music-controls.py next
|
||||||
|
format = <label>
|
||||||
|
#format-padding=1
|
||||||
|
click-left = mpc next
|
||||||
|
# format-foreground = #1DB954
|
||||||
|
format-foreground = #55AEBB
|
||||||
|
format-underline = #1DB954
|
45
polybar-modules/network-desktop.ini
Normal file
45
polybar-modules/network-desktop.ini
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
[module/network-desktop]
|
||||||
|
type = internal/network
|
||||||
|
interface = wlo1
|
||||||
|
interval = 3.0
|
||||||
|
udspeed-minwidth = 1
|
||||||
|
accumulate-stats = true
|
||||||
|
#format-connected = <ramp-signal><label-connected>
|
||||||
|
# format-connected = <label-connected><ramp-signal>
|
||||||
|
format-connected = <label-connected>
|
||||||
|
format-disconnected = <label-disconnected>
|
||||||
|
#format-packetloss = <animation-packetloss> <label-connected>
|
||||||
|
# label-connected = %essid%%downspeed:9%
|
||||||
|
label-connected = %essid%
|
||||||
|
#label-connected =%downspeed:9%
|
||||||
|
label-disconnected = 睊 not connected
|
||||||
|
#label-disconnected-foreground = #66ffffff
|
||||||
|
# label-connected-padding = 2
|
||||||
|
format-connected-padding = 1
|
||||||
|
label-connected-foreground = #A8D385
|
||||||
|
label-disconnected-foreground = #F85522
|
||||||
|
# label-disconnected-padding = 2
|
||||||
|
format-disconnected-padding = 1
|
||||||
|
|
||||||
|
; Only applies if <ramp-signal> is used
|
||||||
|
ramp-signal-0 = 😱
|
||||||
|
ramp-signal-1 = 😠
|
||||||
|
ramp-signal-2 = 😒
|
||||||
|
ramp-signal-3 = 😊
|
||||||
|
ramp-signal-4 = 😃
|
||||||
|
ramp-signal-5 = 😈
|
||||||
|
|
||||||
|
ramp-signal-5-foreground = #A8D385
|
||||||
|
ramp-signal-4-foreground = #A8D385
|
||||||
|
ramp-signal-3-foreground = #E1D20D
|
||||||
|
ramp-signal-2-foreground = #E1D20D
|
||||||
|
ramp-signal-1-foreground = #F85522
|
||||||
|
ramp-signal-0-foreground = #F85522
|
||||||
|
; Only applies if <animation-packetloss> is used
|
||||||
|
#animation-packetloss-0 = ⚠
|
||||||
|
#animation-packetloss-0-foreground = #ffa64c
|
||||||
|
#animation-packetloss-1 = 📶
|
||||||
|
#animation-packetloss-1-foreground = #000000
|
||||||
|
#; Framerate in milliseconds
|
||||||
|
#animation-packetloss-framerate = 500
|
||||||
|
# click-left = kcmshell5
|
45
polybar-modules/network.ini
Normal file
45
polybar-modules/network.ini
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
[module/network]
|
||||||
|
type = internal/network
|
||||||
|
interface = wlp2s0
|
||||||
|
interval = 3.0
|
||||||
|
udspeed-minwidth = 1
|
||||||
|
accumulate-stats = true
|
||||||
|
#format-connected = <ramp-signal><label-connected>
|
||||||
|
# format-connected = <label-connected><ramp-signal>
|
||||||
|
format-connected = <label-connected>
|
||||||
|
format-disconnected = <label-disconnected>
|
||||||
|
#format-packetloss = <animation-packetloss> <label-connected>
|
||||||
|
# label-connected = %essid%%downspeed:9%
|
||||||
|
label-connected = %essid%
|
||||||
|
#label-connected =%downspeed:9%
|
||||||
|
label-disconnected = 睊 not connected
|
||||||
|
# label-connected-padding = 2
|
||||||
|
format-connected-padding = 1
|
||||||
|
label-connected-foreground = #A8D385
|
||||||
|
label-disconnected-foreground = #F85522
|
||||||
|
# label-disconnected-padding = 2
|
||||||
|
format-disconnected-padding = 1
|
||||||
|
|
||||||
|
; Only applies if <ramp-signal> is used
|
||||||
|
ramp-signal-0 = 😱
|
||||||
|
ramp-signal-1 = 😠
|
||||||
|
ramp-signal-2 = 😒
|
||||||
|
ramp-signal-3 = 😊
|
||||||
|
ramp-signal-4 = 😃
|
||||||
|
ramp-signal-5 = 😈
|
||||||
|
|
||||||
|
ramp-signal-5-foreground = #A8D385
|
||||||
|
ramp-signal-4-foreground = #A8D385
|
||||||
|
ramp-signal-3-foreground = #E1D20D
|
||||||
|
ramp-signal-2-foreground = #E1D20D
|
||||||
|
ramp-signal-1-foreground = #F85522
|
||||||
|
ramp-signal-0-foreground = #F85522
|
||||||
|
|
||||||
|
; Only applies if <animation-packetloss> is used
|
||||||
|
#animation-packetloss-0 = ⚠
|
||||||
|
#animation-packetloss-0-foreground = #ffa64c
|
||||||
|
#animation-packetloss-1 = 📶
|
||||||
|
#animation-packetloss-1-foreground = #000000
|
||||||
|
#; Framerate in milliseconds
|
||||||
|
#animation-packetloss-framerate = 500
|
||||||
|
# click-left = kcmshell5
|
9
polybar-modules/openweathermap-fullfeatured.ini
Normal file
9
polybar-modules/openweathermap-fullfeatured.ini
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[module/openweathermap-fullfeatured]
|
||||||
|
type = custom/script
|
||||||
|
exec = ~/i3/scripts/openweathermap-fullfeatured.sh
|
||||||
|
click-left = exec ~/scripts/weather
|
||||||
|
interval = 600
|
||||||
|
format-font = 3
|
||||||
|
format-background = #282c34
|
||||||
|
format-foreground = #fc8353
|
||||||
|
format-padding = 1
|
4
polybar-modules/package-updates-trigger.ini
Normal file
4
polybar-modules/package-updates-trigger.ini
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[module/package-updates-trigger]
|
||||||
|
type = custom/script
|
||||||
|
exec = polybar-msg hook package-updates 1 &>/dev/null
|
||||||
|
interval = 600
|
7
polybar-modules/package-updates.ini
Normal file
7
polybar-modules/package-updates.ini
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
[module/package-updates]
|
||||||
|
type = custom/ipc
|
||||||
|
hook-0 = ~/i3/scripts/package-updates
|
||||||
|
# format-foreground = #56a7b5
|
||||||
|
format-foreground = #A8D385
|
||||||
|
format-padding = 1
|
||||||
|
interval = 500
|
26
polybar-modules/playerctl.ini
Normal file
26
polybar-modules/playerctl.ini
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
[module/playerctl-show]
|
||||||
|
type = custom/script
|
||||||
|
tail = true
|
||||||
|
interval = 0
|
||||||
|
exec = $HOME/i3/scripts/playerctl-controls.sh -s
|
||||||
|
format = <label>
|
||||||
|
click-left = exec $HOME/i3/scripts/playerctl-controls.sh -t
|
||||||
|
format-padding = 1
|
||||||
|
format-underline = #1DB954
|
||||||
|
format-foreground = #55AEBB
|
||||||
|
|
||||||
|
[module/playerctl-next]
|
||||||
|
type = custom/script
|
||||||
|
click-left = $HOME/i3/scripts/playerctl-controls.sh -n
|
||||||
|
exec = $HOME/i3/scripts/playerctl-controls.sh -f
|
||||||
|
format-padding = 1
|
||||||
|
format-underline = #1DB954
|
||||||
|
format-foreground = #55AEBB
|
||||||
|
|
||||||
|
[module/playerctl-prev]
|
||||||
|
type = custom/script
|
||||||
|
click-left = $HOME/i3/scripts/playerctl-controls.sh -p
|
||||||
|
exec = $HOME/i3/scripts/playerctl-controls.sh -b
|
||||||
|
format-padding = 1
|
||||||
|
format-underline = #1DB954
|
||||||
|
format-foreground = #55AEBB
|
8
polybar-modules/powermenu.ini
Normal file
8
polybar-modules/powermenu.ini
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
[module/powermenu]
|
||||||
|
type = custom/text
|
||||||
|
content =
|
||||||
|
content-padding = 4
|
||||||
|
content-background = ${color.shade3}
|
||||||
|
content-foreground = #D85458
|
||||||
|
click-left = ~/i3/scripts/sysmenu
|
||||||
|
click-right = ~/i3/scripts/sysmenu
|
6
polybar-modules/pulseaudio.ini
Normal file
6
polybar-modules/pulseaudio.ini
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[module/pulseaudio]
|
||||||
|
type = custom/text
|
||||||
|
content =
|
||||||
|
content-padding = 2
|
||||||
|
content-foreground = #8d8d1d
|
||||||
|
click-left = pavucontrol
|
6
polybar-modules/reddit.ini
Normal file
6
polybar-modules/reddit.ini
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[module/reddit]
|
||||||
|
type = custom/text
|
||||||
|
content =
|
||||||
|
content-padding = 2
|
||||||
|
content-foreground = ${color.deep-orange}
|
||||||
|
click-left = xdg-open https://www.reddit.com &
|
6
polybar-modules/settings.ini
Normal file
6
polybar-modules/settings.ini
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[module/settings]
|
||||||
|
type = custom/text
|
||||||
|
content =
|
||||||
|
content-padding = 2
|
||||||
|
content-foreground = ${color.black}
|
||||||
|
click-left = systemsettings5
|
10
polybar-modules/spotify-bar-desktop.ini
Normal file
10
polybar-modules/spotify-bar-desktop.ini
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[module/spotify-bar-desktop]
|
||||||
|
type = custom/script
|
||||||
|
interval = 1
|
||||||
|
format = <label>
|
||||||
|
exec = python /home/sudacode/i3/scripts/spotify_status.py -t 40 -p ',' --playpause-font=0 -f '{play_pause} {artist}: {song}'
|
||||||
|
format-underline = #1DB954
|
||||||
|
# format-foreground = #1DB954
|
||||||
|
format-foreground = #55AEBB
|
||||||
|
format-padding = 1
|
||||||
|
click-left = playerctl play-pause spotify
|
10
polybar-modules/spotify-bar.ini
Normal file
10
polybar-modules/spotify-bar.ini
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[module/spotify-bar]
|
||||||
|
type = custom/script
|
||||||
|
interval = 1
|
||||||
|
format = <label>
|
||||||
|
exec = python /home/sudacode/i3/scripts/spotify_status.py -t 50 -p ',' --playpause-font=0 -f '{play_pause} {artist}: {song}'
|
||||||
|
format-underline = #1DB954
|
||||||
|
# format-foreground = #1DB954
|
||||||
|
format-foreground = #55AEBB
|
||||||
|
format-padding = 1
|
||||||
|
click-left = playerctl play-pause spotify
|
32
polybar-modules/spotify-controls.ini
Normal file
32
polybar-modules/spotify-controls.ini
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
[module/spotify-prev]
|
||||||
|
type = custom/script
|
||||||
|
# exec = echo "玲"
|
||||||
|
exec = ~/i3/scripts/spot-controls.sh prev
|
||||||
|
format = <label>
|
||||||
|
click-left = playerctl previous spotify
|
||||||
|
format-padding = 1
|
||||||
|
format-underline = #1DB954
|
||||||
|
# format-foreground = #1DB954
|
||||||
|
format-foreground = #55AEBB
|
||||||
|
|
||||||
|
[module/spotify-play-pause]
|
||||||
|
type = custom/ipc
|
||||||
|
hook-0 = echo ""
|
||||||
|
hook-1 = echo "契"
|
||||||
|
hook-0-padding=1
|
||||||
|
hook-1-padding=1
|
||||||
|
hook-0-foreground = #1db954
|
||||||
|
hook-1-foreground = #1db954
|
||||||
|
initial = 1
|
||||||
|
click-left = playerctl play-pause spotify
|
||||||
|
|
||||||
|
[module/spotify-next]
|
||||||
|
type = custom/script
|
||||||
|
# exec = echo "怜"
|
||||||
|
exec = ~/i3/scripts/spot-controls.sh next
|
||||||
|
format = <label>
|
||||||
|
#format-padding=1
|
||||||
|
click-left = playerctl next spotify
|
||||||
|
# format-foreground = #1DB954
|
||||||
|
format-foreground = #55AEBB
|
||||||
|
format-underline = #1DB954
|
24
polybar-modules/volume.ini
Normal file
24
polybar-modules/volume.ini
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
[module/volume]
|
||||||
|
type = internal/pulseaudio
|
||||||
|
# use default sink
|
||||||
|
#sink = alsa_output.pci-0000_00_1f.3.analog-stereo
|
||||||
|
use-ui-max = true
|
||||||
|
interval = 5
|
||||||
|
click-right = exec pavucontrol
|
||||||
|
format-volume = <ramp-volume> <label-volume>
|
||||||
|
format-volume-padding = 1
|
||||||
|
# format-volume-foreground = #56a7b5
|
||||||
|
# format-volume-foreground = #c578dd
|
||||||
|
format-volume-foreground = #a8d385
|
||||||
|
label-volume = %percentage%%
|
||||||
|
label-muted = "婢"
|
||||||
|
label-muted-padding = 1
|
||||||
|
label-muted-foreground = #F85522
|
||||||
|
|
||||||
|
ramp-volume-0 = 奄
|
||||||
|
ramp-volume-1 = 奄
|
||||||
|
ramp-volume-2 = 奔
|
||||||
|
ramp-volume-3 = 奔
|
||||||
|
ramp-volume-4 = 墳
|
||||||
|
ramp-volume-5 = 墳
|
||||||
|
ramp-volume-6 = 墳
|
6
polybar-modules/vscode.ini
Normal file
6
polybar-modules/vscode.ini
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[module/vscode]
|
||||||
|
type = custom/text
|
||||||
|
content =
|
||||||
|
content-padding = 2
|
||||||
|
content-foreground = #3FA5E9
|
||||||
|
click-left = code
|
26
polybar-modules/workspaces.ini
Normal file
26
polybar-modules/workspaces.ini
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
[module/workspaces]
|
||||||
|
type = internal/xworkspaces
|
||||||
|
pin-workspaces = false
|
||||||
|
enable-click = true
|
||||||
|
enable-scroll = true
|
||||||
|
format-padding = 1
|
||||||
|
|
||||||
|
# con-default =
|
||||||
|
|
||||||
|
format = <label-state>
|
||||||
|
format-background = ${color.shade4}
|
||||||
|
label-active = %name%
|
||||||
|
label-occupied = %name%
|
||||||
|
label-urgent = %name%
|
||||||
|
label-empty = %name%
|
||||||
|
|
||||||
|
label-empty-padding = 1
|
||||||
|
label-active-padding = 1
|
||||||
|
label-active-underline = #99b679
|
||||||
|
label-urgent-padding = 1
|
||||||
|
label-occupied-padding = 1
|
||||||
|
|
||||||
|
label-empty-foreground = #55aebb
|
||||||
|
label-active-foreground = #99b679
|
||||||
|
label-urgent-foreground = ${color.urgent}
|
||||||
|
label-occupied-foreground = #55aebb
|
144
polybar/config.desktop.ini
Normal file
144
polybar/config.desktop.ini
Normal file
@ -0,0 +1,144 @@
|
|||||||
|
include-file = $HOME/i3/include-modules.ini
|
||||||
|
|
||||||
|
[color]
|
||||||
|
|
||||||
|
bg = #FFFFFF
|
||||||
|
fg = #FFFFFF
|
||||||
|
fg-alt = #454545
|
||||||
|
|
||||||
|
acolor = #FFFFFF
|
||||||
|
curgent = #EF5350
|
||||||
|
coccupied = #42A5F5
|
||||||
|
|
||||||
|
#shade1 = #311B92
|
||||||
|
#shade2 = #4527A0
|
||||||
|
#shade3 = #512DA8
|
||||||
|
#shade4 = #5E35B1
|
||||||
|
#shade5 = #673AB7
|
||||||
|
#shade1 = #471A3B
|
||||||
|
#shade2 = #5E1E40
|
||||||
|
#shade3 = #742246
|
||||||
|
#shade4 = #882748
|
||||||
|
#shade5 = #AA2E50
|
||||||
|
shade1 = #17191e
|
||||||
|
shade2 = #1e2127
|
||||||
|
shade3 = #191c21
|
||||||
|
shade4 = #282c34
|
||||||
|
shade5 = #AA2E50
|
||||||
|
shade6 = #7E57C2
|
||||||
|
shade7 = #9575CD
|
||||||
|
shade8 = #B39DDB
|
||||||
|
txt = #2C2C2C
|
||||||
|
|
||||||
|
## Material Colors
|
||||||
|
|
||||||
|
red = #e53935
|
||||||
|
pink = #d81b60
|
||||||
|
purple = #8e24aa
|
||||||
|
deep-purple = #5e35b1
|
||||||
|
indigo = #3949ab
|
||||||
|
blue = #1e88e5
|
||||||
|
light-blue = #039be5
|
||||||
|
cyan = #00acc1
|
||||||
|
teal = #00897b
|
||||||
|
green = #43a047
|
||||||
|
light-green = #7cb342
|
||||||
|
lime = #c0ca33
|
||||||
|
yellow = #fdd835
|
||||||
|
amber = #ffb300
|
||||||
|
orange = #fb8c00
|
||||||
|
deep-orange = #f4511e
|
||||||
|
brown = #6d4c41
|
||||||
|
grey = #757575
|
||||||
|
blue-gray = #546e7a
|
||||||
|
black = #000000
|
||||||
|
|
||||||
|
;==========================================================
|
||||||
|
|
||||||
|
[bar/main]
|
||||||
|
width = 100%
|
||||||
|
height = 40
|
||||||
|
offset-x = 2.5%
|
||||||
|
# offset-y = 2%
|
||||||
|
bottom = false
|
||||||
|
fixed-center = false
|
||||||
|
line-size = 2
|
||||||
|
radius = 0
|
||||||
|
|
||||||
|
#background = ${color.bg}
|
||||||
|
background = #282c34
|
||||||
|
foreground = ${color.fg}
|
||||||
|
|
||||||
|
;==========================================================
|
||||||
|
|
||||||
|
#font-0 = "Fantasque Sans Mono:pixelsize=10;3"
|
||||||
|
font-0 = "FiraCode Nerd Font:pixelsize=11:antialias=true;3"
|
||||||
|
font-1 = "Iosevka Nerd Font:pixelsize=11;3"
|
||||||
|
font-2 = Weather Icons:size=12;1
|
||||||
|
font-3 = "Source Han Sans JP:pixelsize=11;antialias=true;3"
|
||||||
|
|
||||||
|
dpi = 100
|
||||||
|
|
||||||
|
;==========================================================
|
||||||
|
|
||||||
|
enable-ipc = true
|
||||||
|
cursor-click = pointer
|
||||||
|
|
||||||
|
scroll-up = i3wm-wsnext
|
||||||
|
scroll-down = i3wm-wsprev
|
||||||
|
|
||||||
|
;== Module Location ========================================================
|
||||||
|
|
||||||
|
modules-left = menu workspaces network-desktop bluetooth-desktop package-updates-trigger package-updates
|
||||||
|
# modules-center = spotify-prev spotify-bar spotify-next jdate package-updates-trigger package-updates
|
||||||
|
modules-center = mpd-prev custom-mpd mpd-next playerctl-prev playerctl-show playerctl-next
|
||||||
|
# modules-right = network bluetooth2 volume battery openweathermap-fullfeatured date powermenu
|
||||||
|
modules-right = flameshot color-picker jdate volume openweathermap-fullfeatured date powermenu
|
||||||
|
|
||||||
|
;== Modules ========================================================
|
||||||
|
|
||||||
|
[module/colorpicker]
|
||||||
|
type = custom/text
|
||||||
|
content = 'test'
|
||||||
|
content-padding = 2
|
||||||
|
content-foreground = #28c15b
|
||||||
|
click-left = plasmawindowed org.kde.plasma.colorpicker
|
||||||
|
|
||||||
|
[module/facebook]
|
||||||
|
type = custom/text
|
||||||
|
content =
|
||||||
|
content-padding = 2
|
||||||
|
content-foreground = ${color.blue}
|
||||||
|
click-left = xdg-open https://www.facebook.com &
|
||||||
|
|
||||||
|
[module/youtube]
|
||||||
|
type = custom/text
|
||||||
|
content =
|
||||||
|
content-padding = 2
|
||||||
|
content-foreground = ${color.red}
|
||||||
|
click-left = xdg-open https://www.youtube.com &
|
||||||
|
|
||||||
|
[module/mpd]
|
||||||
|
type = internal/mpd
|
||||||
|
format-online = <toggle> <label-song>
|
||||||
|
;format-online = <label-song>
|
||||||
|
;alt icons =
|
||||||
|
format-online-background = ${color.shade8}
|
||||||
|
format-online-foreground = ${color.txt}
|
||||||
|
format-online-padding = 5
|
||||||
|
|
||||||
|
icon-play = 喇
|
||||||
|
icon-pause =
|
||||||
|
|
||||||
|
label-song-maxlen = 25
|
||||||
|
label-song-ellipsis = true
|
||||||
|
|
||||||
|
;==========================================================
|
||||||
|
|
||||||
|
[module/aur]
|
||||||
|
type = custom/script
|
||||||
|
exec = ~/scripts/aur.sh
|
||||||
|
format-background = ${color.shade7}
|
||||||
|
format-padding = 3
|
||||||
|
tail = true
|
||||||
|
;== EOF ========================================================
|
113
polybar/config.ini
Normal file
113
polybar/config.ini
Normal file
@ -0,0 +1,113 @@
|
|||||||
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||||
|
;;
|
||||||
|
;; ____ __ __
|
||||||
|
;; / __ \____ / /_ __/ /_ ____ ______
|
||||||
|
;; / /_/ / __ \/ / / / / __ \/ __ `/ ___/
|
||||||
|
;; / ____/ /_/ / / /_/ / /_/ / /_/ / /
|
||||||
|
;; /_/ \____/_/\__, /_.___/\__,_/_/
|
||||||
|
;; /____/
|
||||||
|
;;
|
||||||
|
;; Created By Aditya Shakya @adi1090x
|
||||||
|
;;
|
||||||
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||||
|
|
||||||
|
|
||||||
|
include-file = $HOME/i3/include-modules.ini
|
||||||
|
|
||||||
|
[color]
|
||||||
|
|
||||||
|
bg = #FFFFFF
|
||||||
|
fg = #FFFFFF
|
||||||
|
fg-alt = #454545
|
||||||
|
|
||||||
|
acolor = #FFFFFF
|
||||||
|
curgent = #EF5350
|
||||||
|
coccupied = #42A5F5
|
||||||
|
|
||||||
|
#shade1 = #311B92
|
||||||
|
#shade2 = #4527A0
|
||||||
|
#shade3 = #512DA8
|
||||||
|
#shade4 = #5E35B1
|
||||||
|
#shade5 = #673AB7
|
||||||
|
#shade1 = #471A3B
|
||||||
|
#shade2 = #5E1E40
|
||||||
|
#shade3 = #742246
|
||||||
|
#shade4 = #882748
|
||||||
|
#shade5 = #AA2E50
|
||||||
|
shade1 = #17191e
|
||||||
|
shade2 = #1e2127
|
||||||
|
shade3 = #222834
|
||||||
|
shade4 = #282c34
|
||||||
|
shade5 = #AA2E50
|
||||||
|
shade6 = #7E57C2
|
||||||
|
shade7 = #9575CD
|
||||||
|
shade8 = #B39DDB
|
||||||
|
txt = #2C2C2C
|
||||||
|
|
||||||
|
## Material Colors
|
||||||
|
|
||||||
|
red = #e53935
|
||||||
|
pink = #d81b60
|
||||||
|
purple = #8e24aa
|
||||||
|
deep-purple = #5e35b1
|
||||||
|
indigo = #3949ab
|
||||||
|
blue = #1e88e5
|
||||||
|
light-blue = #039be5
|
||||||
|
cyan = #00acc1
|
||||||
|
teal = #00897b
|
||||||
|
green = #43a047
|
||||||
|
light-green = #7cb342
|
||||||
|
lime = #c0ca33
|
||||||
|
yellow = #fdd835
|
||||||
|
amber = #ffb300
|
||||||
|
orange = #fb8c00
|
||||||
|
deep-orange = #f4511e
|
||||||
|
brown = #6d4c41
|
||||||
|
grey = #757575
|
||||||
|
blue-gray = #546e7a
|
||||||
|
black = #000000
|
||||||
|
|
||||||
|
;==========================================================
|
||||||
|
|
||||||
|
[bar/main]
|
||||||
|
width = 100%
|
||||||
|
height = 65
|
||||||
|
# offset-x = 2.5%
|
||||||
|
# offset-y = 2%
|
||||||
|
bottom = false
|
||||||
|
fixed-center = false
|
||||||
|
line-size = 2
|
||||||
|
radius = 0
|
||||||
|
|
||||||
|
#background = ${color.bg}
|
||||||
|
background = #282c34
|
||||||
|
foreground = ${color.fg}
|
||||||
|
|
||||||
|
;==========================================================
|
||||||
|
|
||||||
|
#font-0 = "Fantasque Sans Mono:pixelsize=10;3"
|
||||||
|
font-0 = "FiraCode Nerd Font:pixelsize=20:antialias=true;3"
|
||||||
|
font-1 = "Iosevka Nerd Font:pixelsize=20;3"
|
||||||
|
font-2 = Weather Icons:size=20;1
|
||||||
|
font-3 = "Source Han Sans JP:pixelsize=20;antialias=true;3"
|
||||||
|
font-4 = "PowerlineSymbols:pixelsize=20;antialias=true;3"
|
||||||
|
|
||||||
|
dpi = 90
|
||||||
|
|
||||||
|
;==========================================================
|
||||||
|
|
||||||
|
enable-ipc = true
|
||||||
|
cursor-click = pointer
|
||||||
|
|
||||||
|
scroll-up = i3wm-wsnext
|
||||||
|
scroll-down = i3wm-wsprev
|
||||||
|
|
||||||
|
;== Module Location ========================================================
|
||||||
|
|
||||||
|
modules-left = menu workspaces network bluetooth2 package-updates-trigger package-updates
|
||||||
|
# modules-center = spotify-prev spotify-bar spotify-next jdate package-updates-trigger package-updates
|
||||||
|
modules-center = mpd-prev custom-mpd mpd-next playerctl-prev playerctl-show playerctl-next
|
||||||
|
# modules-right = network bluetooth2 volume battery openweathermap-fullfeatured date powermenu
|
||||||
|
modules-right = color-picker flameshot jdate battery volume openweathermap-fullfeatured date powermenu
|
||||||
|
|
||||||
|
;== EOF ========================================================
|
191
polybar/config.ini.small
Normal file
191
polybar/config.ini.small
Normal file
@ -0,0 +1,191 @@
|
|||||||
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||||
|
;;
|
||||||
|
;; ____ __ __
|
||||||
|
;; / __ \____ / /_ __/ /_ ____ ______
|
||||||
|
;; / /_/ / __ \/ / / / / __ \/ __ `/ ___/
|
||||||
|
;; / ____/ /_/ / / /_/ / /_/ / /_/ / /
|
||||||
|
;; /_/ \____/_/\__, /_.___/\__,_/_/
|
||||||
|
;; /____/
|
||||||
|
;;
|
||||||
|
;; Created By Aditya Shakya @adi1090x
|
||||||
|
;;
|
||||||
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||||
|
|
||||||
|
|
||||||
|
include-file = $HOME/i3/include-modules.ini
|
||||||
|
|
||||||
|
[color]
|
||||||
|
|
||||||
|
bg = #FFFFFF
|
||||||
|
fg = #FFFFFF
|
||||||
|
fg-alt = #454545
|
||||||
|
|
||||||
|
acolor = #FFFFFF
|
||||||
|
curgent = #EF5350
|
||||||
|
coccupied = #42A5F5
|
||||||
|
|
||||||
|
#shade1 = #311B92
|
||||||
|
#shade2 = #4527A0
|
||||||
|
#shade3 = #512DA8
|
||||||
|
#shade4 = #5E35B1
|
||||||
|
#shade5 = #673AB7
|
||||||
|
#shade1 = #471A3B
|
||||||
|
#shade2 = #5E1E40
|
||||||
|
#shade3 = #742246
|
||||||
|
#shade4 = #882748
|
||||||
|
#shade5 = #AA2E50
|
||||||
|
shade1 = #17191e
|
||||||
|
shade2 = #1e2127
|
||||||
|
shade3 = #181a1f
|
||||||
|
shade4 = #282c34
|
||||||
|
shade5 = #AA2E50
|
||||||
|
shade6 = #7E57C2
|
||||||
|
shade7 = #9575CD
|
||||||
|
shade8 = #B39DDB
|
||||||
|
txt = #2C2C2C
|
||||||
|
|
||||||
|
## Material Colors
|
||||||
|
|
||||||
|
red = #e53935
|
||||||
|
pink = #d81b60
|
||||||
|
purple = #8e24aa
|
||||||
|
deep-purple = #5e35b1
|
||||||
|
indigo = #3949ab
|
||||||
|
blue = #1e88e5
|
||||||
|
light-blue = #039be5
|
||||||
|
cyan = #00acc1
|
||||||
|
teal = #00897b
|
||||||
|
green = #43a047
|
||||||
|
light-green = #7cb342
|
||||||
|
lime = #c0ca33
|
||||||
|
yellow = #fdd835
|
||||||
|
amber = #ffb300
|
||||||
|
orange = #fb8c00
|
||||||
|
deep-orange = #f4511e
|
||||||
|
brown = #6d4c41
|
||||||
|
grey = #757575
|
||||||
|
blue-gray = #546e7a
|
||||||
|
black = #000000
|
||||||
|
|
||||||
|
;==========================================================
|
||||||
|
|
||||||
|
[bar/main]
|
||||||
|
width = 100%
|
||||||
|
height = 32
|
||||||
|
offset-x = 2.5%
|
||||||
|
# offset-y = 2%
|
||||||
|
bottom = false
|
||||||
|
fixed-center = false
|
||||||
|
line-size = 2
|
||||||
|
radius = 15
|
||||||
|
|
||||||
|
#background = ${color.bg}
|
||||||
|
background = #282c34
|
||||||
|
foreground = ${color.fg}
|
||||||
|
|
||||||
|
;==========================================================
|
||||||
|
|
||||||
|
#font-0 = "Fantasque Sans Mono:pixelsize=10;3"
|
||||||
|
font-0 = "FiraCode Nerd Font:pixelsize=24:antialias=true;3"
|
||||||
|
font-1 = "Iosevka Nerd Font:pixelsize=24;3"
|
||||||
|
font-2 = Weather Icons:size=24;1
|
||||||
|
|
||||||
|
dip = 250
|
||||||
|
|
||||||
|
;==========================================================
|
||||||
|
|
||||||
|
enable-ipc = true
|
||||||
|
cursor-click = pointer
|
||||||
|
|
||||||
|
scroll-up = i3wm-wsnext
|
||||||
|
scroll-down = i3wm-wsprev
|
||||||
|
|
||||||
|
;== Module Location ========================================================
|
||||||
|
|
||||||
|
# modules-left = menu workspaces google github reddit facebook youtube
|
||||||
|
# modules-left = menu workspaces dolphin github vscode flameshot color-picker
|
||||||
|
# modules-left = menu workspaces dolphin flameshot color-picker
|
||||||
|
modules-left = menu workspaces dolphin flameshot color-picker
|
||||||
|
modules-center = spotify-prev spotify-bar spotify-next memory cpu package-updates-trigger package-updates
|
||||||
|
# modules-center = spotify-prev spotify-bar spotify-next cpu package-updates-trigger package-updates
|
||||||
|
modules-right = network system-bluetooth-bluetoothctl volume battery openweathermap-fullfeatured date powermenu
|
||||||
|
|
||||||
|
;== Modules ========================================================
|
||||||
|
|
||||||
|
[module/colorpicker]
|
||||||
|
type = custom/text
|
||||||
|
content = 'test'
|
||||||
|
content-padding = 2
|
||||||
|
content-foreground = #28c15b
|
||||||
|
click-left = plasmawindowed org.kde.plasma.colorpicker
|
||||||
|
|
||||||
|
[module/facebook]
|
||||||
|
type = custom/text
|
||||||
|
content =
|
||||||
|
content-padding = 2
|
||||||
|
content-foreground = ${color.blue}
|
||||||
|
click-left = xdg-open https://www.facebook.com &
|
||||||
|
|
||||||
|
[module/youtube]
|
||||||
|
type = custom/text
|
||||||
|
content =
|
||||||
|
content-padding = 2
|
||||||
|
content-foreground = ${color.red}
|
||||||
|
click-left = xdg-open https://www.youtube.com &
|
||||||
|
|
||||||
|
[module/mpd]
|
||||||
|
type = internal/mpd
|
||||||
|
format-online = <toggle> <label-song>
|
||||||
|
;format-online = <label-song>
|
||||||
|
;alt icons =
|
||||||
|
format-online-background = ${color.shade8}
|
||||||
|
format-online-foreground = ${color.txt}
|
||||||
|
format-online-padding = 5
|
||||||
|
|
||||||
|
icon-play = 喇
|
||||||
|
icon-pause =
|
||||||
|
|
||||||
|
label-song-maxlen = 25
|
||||||
|
label-song-ellipsis = true
|
||||||
|
|
||||||
|
;==========================================================
|
||||||
|
|
||||||
|
[module/aur]
|
||||||
|
type = custom/script
|
||||||
|
exec = ~/scripts/aur.sh
|
||||||
|
format-background = ${color.shade7}
|
||||||
|
format-padding = 3
|
||||||
|
tail = true
|
||||||
|
|
||||||
|
#[module/pkg]
|
||||||
|
#type = custom/script
|
||||||
|
##exec = ~/.config/polybar/scripts/updates.sh
|
||||||
|
#exec = ~/scripts/updates.sh
|
||||||
|
#format-background = ${color.shade5}
|
||||||
|
#format-foreground = #60CAD7
|
||||||
|
#click-left = konsole
|
||||||
|
#format-padding = 5
|
||||||
|
#tail = true
|
||||||
|
|
||||||
|
#[module/volume]
|
||||||
|
#type = internal/alsa
|
||||||
|
#format-volume = <ramp-volume> <label-volume>
|
||||||
|
#format-volume-padding = 4
|
||||||
|
#format-volume-background = ${color.shade5}
|
||||||
|
#format-volume-foreground = #55AEBB
|
||||||
|
#label-volume = %percentage%%
|
||||||
|
#label-muted = "婢"
|
||||||
|
#label-muted-background = ${color.shade5}
|
||||||
|
#label-muted-padding = 4
|
||||||
|
#
|
||||||
|
#ramp-volume-0 = 奄
|
||||||
|
#ramp-volume-1 = 奄
|
||||||
|
#ramp-volume-2 = 奔
|
||||||
|
#ramp-volume-3 = 奔
|
||||||
|
#ramp-volume-4 = 墳
|
||||||
|
#ramp-volume-5 = 墳
|
||||||
|
#ramp-volume-6 = 墳
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
;== EOF ========================================================
|
765
ranger/rc.conf
Normal file
765
ranger/rc.conf
Normal file
@ -0,0 +1,765 @@
|
|||||||
|
# ===================================================================
|
||||||
|
# This file contains the default startup commands for ranger.
|
||||||
|
# To change them, it is recommended to create either /etc/ranger/rc.conf
|
||||||
|
# (system-wide) or ~/.config/ranger/rc.conf (per user) and add your custom
|
||||||
|
# commands there.
|
||||||
|
#
|
||||||
|
# If you copy this whole file there, you may want to set the environment
|
||||||
|
# variable RANGER_LOAD_DEFAULT_RC to FALSE to avoid loading it twice.
|
||||||
|
#
|
||||||
|
# The purpose of this file is mainly to define keybindings and settings.
|
||||||
|
# For running more complex python code, please create a plugin in "plugins/" or
|
||||||
|
# a command in "commands.py".
|
||||||
|
#
|
||||||
|
# Each line is a command that will be run before the user interface
|
||||||
|
# is initialized. As a result, you can not use commands which rely
|
||||||
|
# on the UI such as :delete or :mark.
|
||||||
|
# ===================================================================
|
||||||
|
|
||||||
|
# ===================================================================
|
||||||
|
# == Options
|
||||||
|
# ===================================================================
|
||||||
|
|
||||||
|
# Which viewmode should be used? Possible values are:
|
||||||
|
# miller: Use miller columns which show multiple levels of the hierarchy
|
||||||
|
# multipane: Midnight-commander like multipane view showing all tabs next
|
||||||
|
# to each other
|
||||||
|
set viewmode miller
|
||||||
|
#set viewmode multipane
|
||||||
|
|
||||||
|
# How many columns are there, and what are their relative widths?
|
||||||
|
set column_ratios 2,3,4
|
||||||
|
|
||||||
|
# Which files should be hidden? (regular expression)
|
||||||
|
set hidden_filter ^\.|\.(?:pyc|pyo|bak|swp)$|^lost\+found$|^__(py)?cache__$
|
||||||
|
|
||||||
|
# Show hidden files? You can toggle this by typing 'zh'
|
||||||
|
set show_hidden false
|
||||||
|
|
||||||
|
# Ask for a confirmation when running the "delete" command?
|
||||||
|
# Valid values are "always", "never", "multiple" (default)
|
||||||
|
# With "multiple", ranger will ask only if you delete multiple files at once.
|
||||||
|
set confirm_on_delete multiple
|
||||||
|
|
||||||
|
# Use non-default path for file preview script?
|
||||||
|
# ranger ships with scope.sh, a script that calls external programs (see
|
||||||
|
# README.md for dependencies) to preview images, archives, etc.
|
||||||
|
set preview_script ~/i3/scripts/scope.sh
|
||||||
|
|
||||||
|
# Use the external preview script or display simple plain text or image previews?
|
||||||
|
set use_preview_script true
|
||||||
|
|
||||||
|
# Automatically count files in the directory, even before entering them?
|
||||||
|
set automatically_count_files true
|
||||||
|
|
||||||
|
# Open all images in this directory when running certain image viewers
|
||||||
|
# like feh or sxiv? You can still open selected files by marking them.
|
||||||
|
set open_all_images true
|
||||||
|
|
||||||
|
# Be aware of version control systems and display information.
|
||||||
|
set vcs_aware true
|
||||||
|
|
||||||
|
# State of the four backends git, hg, bzr, svn. The possible states are
|
||||||
|
# disabled, local (only show local info), enabled (show local and remote
|
||||||
|
# information).
|
||||||
|
set vcs_backend_git enabled
|
||||||
|
set vcs_backend_hg disabled
|
||||||
|
set vcs_backend_bzr disabled
|
||||||
|
set vcs_backend_svn disabled
|
||||||
|
|
||||||
|
# Truncate the long commit messages to this length when shown in the statusbar.
|
||||||
|
set vcs_msg_length 50
|
||||||
|
|
||||||
|
# Use one of the supported image preview protocols
|
||||||
|
set preview_images true
|
||||||
|
|
||||||
|
# Set the preview image method. Supported methods:
|
||||||
|
#
|
||||||
|
# * w3m (default):
|
||||||
|
# Preview images in full color with the external command "w3mimgpreview"?
|
||||||
|
# This requires the console web browser "w3m" and a supported terminal.
|
||||||
|
# It has been successfully tested with "xterm" and "urxvt" without tmux.
|
||||||
|
#
|
||||||
|
# * iterm2:
|
||||||
|
# Preview images in full color using iTerm2 image previews
|
||||||
|
# (http://iterm2.com/images.html). This requires using iTerm2 compiled
|
||||||
|
# with image preview support.
|
||||||
|
#
|
||||||
|
# This feature relies on the dimensions of the terminal's font. By default, a
|
||||||
|
# width of 8 and height of 11 are used. To use other values, set the options
|
||||||
|
# iterm2_font_width and iterm2_font_height to the desired values.
|
||||||
|
#
|
||||||
|
# * terminology:
|
||||||
|
# Previews images in full color in the terminology terminal emulator.
|
||||||
|
# Supports a wide variety of formats, even vector graphics like svg.
|
||||||
|
#
|
||||||
|
# * urxvt:
|
||||||
|
# Preview images in full color using urxvt image backgrounds. This
|
||||||
|
# requires using urxvt compiled with pixbuf support.
|
||||||
|
#
|
||||||
|
# * urxvt-full:
|
||||||
|
# The same as urxvt but utilizing not only the preview pane but the
|
||||||
|
# whole terminal window.
|
||||||
|
#
|
||||||
|
# * kitty:
|
||||||
|
# Preview images in full color using kitty image protocol.
|
||||||
|
# Requires python PIL or pillow library.
|
||||||
|
# If ranger does not share the local filesystem with kitty
|
||||||
|
# the transfer method is changed to encode the whole image;
|
||||||
|
# while slower, this allows remote previews,
|
||||||
|
# for example during an ssh session.
|
||||||
|
# Tmux is unsupported.
|
||||||
|
#
|
||||||
|
# * ueberzug:
|
||||||
|
# Preview images in full color with the external command "ueberzug".
|
||||||
|
# Images are shown by using a child window.
|
||||||
|
# Only for users who run X11 in GNU/Linux.
|
||||||
|
set preview_images_method w3m
|
||||||
|
|
||||||
|
# Delay in seconds before displaying an image with the w3m method.
|
||||||
|
# Increase it in case of experiencing display corruption.
|
||||||
|
set w3m_delay 0.02
|
||||||
|
|
||||||
|
# Manually adjust the w3mimg offset when using a terminal which needs this
|
||||||
|
set w3m_offset 0
|
||||||
|
|
||||||
|
# Default iTerm2 font size (see: preview_images_method: iterm2)
|
||||||
|
set iterm2_font_width 8
|
||||||
|
set iterm2_font_height 11
|
||||||
|
|
||||||
|
# Use a unicode "..." character to mark cut-off filenames?
|
||||||
|
set unicode_ellipsis false
|
||||||
|
|
||||||
|
# BIDI support - try to properly display file names in RTL languages (Hebrew, Arabic).
|
||||||
|
# Requires the python-bidi pip package
|
||||||
|
set bidi_support false
|
||||||
|
|
||||||
|
# Show dotfiles in the bookmark preview box?
|
||||||
|
set show_hidden_bookmarks true
|
||||||
|
|
||||||
|
# Which colorscheme to use? These colorschemes are available by default:
|
||||||
|
# default, jungle, snow, solarized
|
||||||
|
set colorscheme solarized
|
||||||
|
|
||||||
|
# Preview files on the rightmost column?
|
||||||
|
# And collapse (shrink) the last column if there is nothing to preview?
|
||||||
|
set preview_files true
|
||||||
|
set preview_directories true
|
||||||
|
set collapse_preview true
|
||||||
|
|
||||||
|
# Wrap long lines in plain text previews?
|
||||||
|
set wrap_plaintext_previews false
|
||||||
|
|
||||||
|
# Save the console history on exit?
|
||||||
|
set save_console_history true
|
||||||
|
|
||||||
|
# Draw the status bar on top of the browser window (default: bottom)
|
||||||
|
set status_bar_on_top false
|
||||||
|
|
||||||
|
# Draw a progress bar in the status bar which displays the average state of all
|
||||||
|
# currently running tasks which support progress bars?
|
||||||
|
set draw_progress_bar_in_status_bar true
|
||||||
|
|
||||||
|
# Draw borders around columns? (separators, outline, both, or none)
|
||||||
|
# Separators are vertical lines between columns.
|
||||||
|
# Outline draws a box around all the columns.
|
||||||
|
# Both combines the two.
|
||||||
|
set draw_borders none
|
||||||
|
|
||||||
|
# Display the directory name in tabs?
|
||||||
|
set dirname_in_tabs false
|
||||||
|
|
||||||
|
# Enable the mouse support?
|
||||||
|
set mouse_enabled true
|
||||||
|
|
||||||
|
# Display the file size in the main column or status bar?
|
||||||
|
set display_size_in_main_column true
|
||||||
|
set display_size_in_status_bar true
|
||||||
|
|
||||||
|
# Display the free disk space in the status bar?
|
||||||
|
set display_free_space_in_status_bar true
|
||||||
|
|
||||||
|
# Display files tags in all columns or only in main column?
|
||||||
|
set display_tags_in_all_columns true
|
||||||
|
|
||||||
|
# Set a title for the window? Updates both `WM_NAME` and `WM_ICON_NAME`
|
||||||
|
set update_title false
|
||||||
|
|
||||||
|
# Set the tmux/screen window-name to "ranger"?
|
||||||
|
set update_tmux_title true
|
||||||
|
|
||||||
|
# Shorten the title if it gets long? The number defines how many
|
||||||
|
# directories are displayed at once, 0 turns off this feature.
|
||||||
|
set shorten_title 3
|
||||||
|
|
||||||
|
# Show hostname in titlebar?
|
||||||
|
set hostname_in_titlebar true
|
||||||
|
|
||||||
|
# Abbreviate $HOME with ~ in the titlebar (first line) of ranger?
|
||||||
|
set tilde_in_titlebar true
|
||||||
|
|
||||||
|
# How many directory-changes or console-commands should be kept in history?
|
||||||
|
set max_history_size 20
|
||||||
|
set max_console_history_size 50
|
||||||
|
|
||||||
|
# Try to keep so much space between the top/bottom border when scrolling:
|
||||||
|
set scroll_offset 8
|
||||||
|
|
||||||
|
# Flush the input after each key hit? (Noticeable when ranger lags)
|
||||||
|
set flushinput true
|
||||||
|
|
||||||
|
# Padding on the right when there's no preview?
|
||||||
|
# This allows you to click into the space to run the file.
|
||||||
|
set padding_right true
|
||||||
|
|
||||||
|
# Save bookmarks (used with mX and `X) instantly?
|
||||||
|
# This helps to synchronize bookmarks between multiple ranger
|
||||||
|
# instances but leads to *slight* performance loss.
|
||||||
|
# When false, bookmarks are saved when ranger is exited.
|
||||||
|
set autosave_bookmarks true
|
||||||
|
|
||||||
|
# Save the "`" bookmark to disk. This can be used to switch to the last
|
||||||
|
# directory by typing "``".
|
||||||
|
set save_backtick_bookmark true
|
||||||
|
|
||||||
|
# You can display the "real" cumulative size of directories by using the
|
||||||
|
# command :get_cumulative_size or typing "dc". The size is expensive to
|
||||||
|
# calculate and will not be updated automatically. You can choose
|
||||||
|
# to update it automatically though by turning on this option:
|
||||||
|
set autoupdate_cumulative_size false
|
||||||
|
|
||||||
|
# Turning this on makes sense for screen readers:
|
||||||
|
set show_cursor false
|
||||||
|
|
||||||
|
# One of: size, natural, basename, atime, ctime, mtime, type, random
|
||||||
|
set sort natural
|
||||||
|
|
||||||
|
# Additional sorting options
|
||||||
|
set sort_reverse false
|
||||||
|
set sort_case_insensitive true
|
||||||
|
set sort_directories_first true
|
||||||
|
set sort_unicode false
|
||||||
|
|
||||||
|
# Enable this if key combinations with the Alt Key don't work for you.
|
||||||
|
# (Especially on xterm)
|
||||||
|
set xterm_alt_key false
|
||||||
|
|
||||||
|
# Whether to include bookmarks in cd command
|
||||||
|
set cd_bookmarks true
|
||||||
|
|
||||||
|
# Changes case sensitivity for the cd command tab completion
|
||||||
|
set cd_tab_case sensitive
|
||||||
|
|
||||||
|
# Use fuzzy tab completion with the "cd" command. For example,
|
||||||
|
# ":cd /u/lo/b<tab>" expands to ":cd /usr/local/bin".
|
||||||
|
set cd_tab_fuzzy false
|
||||||
|
|
||||||
|
# Avoid previewing files larger than this size, in bytes. Use a value of 0 to
|
||||||
|
# disable this feature.
|
||||||
|
set preview_max_size 0
|
||||||
|
|
||||||
|
# The key hint lists up to this size have their sublists expanded.
|
||||||
|
# Otherwise the submaps are replaced with "...".
|
||||||
|
set hint_collapse_threshold 10
|
||||||
|
|
||||||
|
# Add the highlighted file to the path in the titlebar
|
||||||
|
set show_selection_in_titlebar true
|
||||||
|
|
||||||
|
# The delay that ranger idly waits for user input, in milliseconds, with a
|
||||||
|
# resolution of 100ms. Lower delay reduces lag between directory updates but
|
||||||
|
# increases CPU load.
|
||||||
|
set idle_delay 2000
|
||||||
|
|
||||||
|
# When the metadata manager module looks for metadata, should it only look for
|
||||||
|
# a ".metadata.json" file in the current directory, or do a deep search and
|
||||||
|
# check all directories above the current one as well?
|
||||||
|
set metadata_deep_search false
|
||||||
|
|
||||||
|
# Clear all existing filters when leaving a directory
|
||||||
|
set clear_filters_on_dir_change false
|
||||||
|
|
||||||
|
# Disable displaying line numbers in main column.
|
||||||
|
# Possible values: false, absolute, relative.
|
||||||
|
set line_numbers false
|
||||||
|
|
||||||
|
# When line_numbers=relative show the absolute line number in the
|
||||||
|
# current line.
|
||||||
|
set relative_current_zero false
|
||||||
|
|
||||||
|
# Start line numbers from 1 instead of 0
|
||||||
|
set one_indexed false
|
||||||
|
|
||||||
|
# Save tabs on exit
|
||||||
|
set save_tabs_on_exit false
|
||||||
|
|
||||||
|
# Enable scroll wrapping - moving down while on the last item will wrap around to
|
||||||
|
# the top and vice versa.
|
||||||
|
set wrap_scroll false
|
||||||
|
|
||||||
|
# Set the global_inode_type_filter to nothing. Possible options: d, f and l for
|
||||||
|
# directories, files and symlinks respectively.
|
||||||
|
set global_inode_type_filter
|
||||||
|
|
||||||
|
# This setting allows to freeze the list of files to save I/O bandwidth. It
|
||||||
|
# should be 'false' during start-up, but you can toggle it by pressing F.
|
||||||
|
set freeze_files false
|
||||||
|
|
||||||
|
# Print file sizes in bytes instead of the default human-readable format.
|
||||||
|
set size_in_bytes false
|
||||||
|
|
||||||
|
# Warn at startup if RANGER_LEVEL env var is greater than 0, in other words
|
||||||
|
# give a warning when you nest ranger in a subshell started by ranger.
|
||||||
|
# Special value "error" makes the warning more visible.
|
||||||
|
set nested_ranger_warning true
|
||||||
|
|
||||||
|
# ===================================================================
|
||||||
|
# == Local Options
|
||||||
|
# ===================================================================
|
||||||
|
# You can set local options that only affect a single directory.
|
||||||
|
|
||||||
|
# Examples:
|
||||||
|
# setlocal path=~/downloads sort mtime
|
||||||
|
|
||||||
|
# ===================================================================
|
||||||
|
# == Command Aliases in the Console
|
||||||
|
# ===================================================================
|
||||||
|
|
||||||
|
alias e edit
|
||||||
|
alias q quit
|
||||||
|
alias q! quit!
|
||||||
|
alias qa quitall
|
||||||
|
alias qa! quitall!
|
||||||
|
alias qall quitall
|
||||||
|
alias qall! quitall!
|
||||||
|
alias setl setlocal
|
||||||
|
|
||||||
|
alias filter scout -prts
|
||||||
|
alias find scout -aets
|
||||||
|
alias mark scout -mr
|
||||||
|
alias unmark scout -Mr
|
||||||
|
alias search scout -rs
|
||||||
|
alias search_inc scout -rts
|
||||||
|
alias travel scout -aefklst
|
||||||
|
|
||||||
|
# ===================================================================
|
||||||
|
# == Define keys for the browser
|
||||||
|
# ===================================================================
|
||||||
|
|
||||||
|
# Basic
|
||||||
|
map Q quitall
|
||||||
|
map q quit
|
||||||
|
copymap q ZZ ZQ
|
||||||
|
|
||||||
|
map R reload_cwd
|
||||||
|
map F set freeze_files!
|
||||||
|
map <C-r> reset
|
||||||
|
map <C-l> redraw_window
|
||||||
|
map <C-c> abort
|
||||||
|
map <esc> change_mode normal
|
||||||
|
map ~ set viewmode!
|
||||||
|
|
||||||
|
map i display_file
|
||||||
|
map <A-j> scroll_preview 1
|
||||||
|
map <A-k> scroll_preview -1
|
||||||
|
map ? help
|
||||||
|
map W display_log
|
||||||
|
map w taskview_open
|
||||||
|
map S shell $SHELL
|
||||||
|
|
||||||
|
map : console
|
||||||
|
map ; console
|
||||||
|
map ! console shell%space
|
||||||
|
map @ console -p6 shell %%s
|
||||||
|
map # console shell -p%space
|
||||||
|
map s console shell%space
|
||||||
|
map r chain draw_possible_programs; console open_with%space
|
||||||
|
map f console find%space
|
||||||
|
map cd console cd%space
|
||||||
|
|
||||||
|
map <C-p> chain console; eval fm.ui.console.history_move(-1)
|
||||||
|
|
||||||
|
# Change the line mode
|
||||||
|
map Mf linemode filename
|
||||||
|
map Mi linemode fileinfo
|
||||||
|
map Mm linemode mtime
|
||||||
|
map Mh linemode humanreadablemtime
|
||||||
|
map Mp linemode permissions
|
||||||
|
map Ms linemode sizemtime
|
||||||
|
map MH linemode sizehumanreadablemtime
|
||||||
|
map Mt linemode metatitle
|
||||||
|
|
||||||
|
# Tagging / Marking
|
||||||
|
map t tag_toggle
|
||||||
|
map ut tag_remove
|
||||||
|
map "<any> tag_toggle tag=%any
|
||||||
|
map <Space> mark_files toggle=True
|
||||||
|
map v mark_files all=True toggle=True
|
||||||
|
map uv mark_files all=True val=False
|
||||||
|
map V toggle_visual_mode
|
||||||
|
map uV toggle_visual_mode reverse=True
|
||||||
|
|
||||||
|
# For the nostalgics: Midnight Commander bindings
|
||||||
|
map <F1> help
|
||||||
|
map <F2> rename_append
|
||||||
|
map <F3> display_file
|
||||||
|
map <F4> edit
|
||||||
|
map <F5> copy
|
||||||
|
map <F6> cut
|
||||||
|
map <F7> console mkdir%space
|
||||||
|
map <F8> console delete
|
||||||
|
#map <F8> console trash
|
||||||
|
map <F10> exit
|
||||||
|
|
||||||
|
# In case you work on a keyboard with dvorak layout
|
||||||
|
map <UP> move up=1
|
||||||
|
map <DOWN> move down=1
|
||||||
|
map <LEFT> move left=1
|
||||||
|
map <RIGHT> move right=1
|
||||||
|
map <HOME> move to=0
|
||||||
|
map <END> move to=-1
|
||||||
|
map <PAGEDOWN> move down=1 pages=True
|
||||||
|
map <PAGEUP> move up=1 pages=True
|
||||||
|
map <CR> move right=1
|
||||||
|
#map <DELETE> console delete
|
||||||
|
map <INSERT> console touch%space
|
||||||
|
|
||||||
|
# VIM-like
|
||||||
|
copymap <UP> k
|
||||||
|
copymap <DOWN> j
|
||||||
|
copymap <LEFT> h
|
||||||
|
copymap <RIGHT> l
|
||||||
|
copymap <HOME> gg
|
||||||
|
copymap <END> G
|
||||||
|
copymap <PAGEDOWN> <C-F>
|
||||||
|
copymap <PAGEUP> <C-B>
|
||||||
|
|
||||||
|
map J move down=0.5 pages=True
|
||||||
|
map K move up=0.5 pages=True
|
||||||
|
copymap J <C-D>
|
||||||
|
copymap K <C-U>
|
||||||
|
|
||||||
|
# Jumping around
|
||||||
|
map H history_go -1
|
||||||
|
map L history_go 1
|
||||||
|
map ] move_parent 1
|
||||||
|
map [ move_parent -1
|
||||||
|
map } traverse
|
||||||
|
map { traverse_backwards
|
||||||
|
map ) jump_non
|
||||||
|
|
||||||
|
map gh cd ~
|
||||||
|
map ge cd /etc
|
||||||
|
map gu cd /usr
|
||||||
|
map gd cd /dev
|
||||||
|
map gl cd -r .
|
||||||
|
map gL cd -r %f
|
||||||
|
map go cd /opt
|
||||||
|
map gv cd /var
|
||||||
|
map gm cd /media
|
||||||
|
map gi eval fm.cd('/run/media/' + os.getenv('USER'))
|
||||||
|
map gM cd /mnt
|
||||||
|
map gs cd /srv
|
||||||
|
map gp cd /tmp
|
||||||
|
map gr cd /
|
||||||
|
map gR eval fm.cd(ranger.RANGERDIR)
|
||||||
|
map g/ cd /
|
||||||
|
map g? cd /usr/share/doc/ranger
|
||||||
|
|
||||||
|
# External Programs
|
||||||
|
map E edit
|
||||||
|
map du shell -p du --max-depth=1 -h --apparent-size
|
||||||
|
map dU shell -p du --max-depth=1 -h --apparent-size | sort -rh
|
||||||
|
map yp yank path
|
||||||
|
map yd yank dir
|
||||||
|
map yn yank name
|
||||||
|
map y. yank name_without_extension
|
||||||
|
|
||||||
|
# Filesystem Operations
|
||||||
|
map = chmod
|
||||||
|
|
||||||
|
map cw console rename%space
|
||||||
|
map a rename_append
|
||||||
|
map A eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"))
|
||||||
|
map I eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"), position=7)
|
||||||
|
|
||||||
|
map pp paste
|
||||||
|
map po paste overwrite=True
|
||||||
|
map pP paste append=True
|
||||||
|
map pO paste overwrite=True append=True
|
||||||
|
map pl paste_symlink relative=False
|
||||||
|
map pL paste_symlink relative=True
|
||||||
|
map phl paste_hardlink
|
||||||
|
map pht paste_hardlinked_subtree
|
||||||
|
map pd console paste dest=
|
||||||
|
map p`<any> paste dest=%any_path
|
||||||
|
map p'<any> paste dest=%any_path
|
||||||
|
|
||||||
|
map dD console delete
|
||||||
|
map dT console trash
|
||||||
|
|
||||||
|
map dd cut
|
||||||
|
map ud uncut
|
||||||
|
map da cut mode=add
|
||||||
|
map dr cut mode=remove
|
||||||
|
map dt cut mode=toggle
|
||||||
|
|
||||||
|
map yy copy
|
||||||
|
map uy uncut
|
||||||
|
map ya copy mode=add
|
||||||
|
map yr copy mode=remove
|
||||||
|
map yt copy mode=toggle
|
||||||
|
|
||||||
|
# Temporary workarounds
|
||||||
|
map dgg eval fm.cut(dirarg=dict(to=0), narg=quantifier)
|
||||||
|
map dG eval fm.cut(dirarg=dict(to=-1), narg=quantifier)
|
||||||
|
map dj eval fm.cut(dirarg=dict(down=1), narg=quantifier)
|
||||||
|
map dk eval fm.cut(dirarg=dict(up=1), narg=quantifier)
|
||||||
|
map ygg eval fm.copy(dirarg=dict(to=0), narg=quantifier)
|
||||||
|
map yG eval fm.copy(dirarg=dict(to=-1), narg=quantifier)
|
||||||
|
map yj eval fm.copy(dirarg=dict(down=1), narg=quantifier)
|
||||||
|
map yk eval fm.copy(dirarg=dict(up=1), narg=quantifier)
|
||||||
|
|
||||||
|
# Searching
|
||||||
|
map / console search%space
|
||||||
|
map n search_next
|
||||||
|
map N search_next forward=False
|
||||||
|
map ct search_next order=tag
|
||||||
|
map cs search_next order=size
|
||||||
|
map ci search_next order=mimetype
|
||||||
|
map cc search_next order=ctime
|
||||||
|
map cm search_next order=mtime
|
||||||
|
map ca search_next order=atime
|
||||||
|
|
||||||
|
# Tabs
|
||||||
|
map <C-n> tab_new
|
||||||
|
map <C-w> tab_close
|
||||||
|
map <TAB> tab_move 1
|
||||||
|
map <S-TAB> tab_move -1
|
||||||
|
map <A-Right> tab_move 1
|
||||||
|
map <A-Left> tab_move -1
|
||||||
|
map gt tab_move 1
|
||||||
|
map gT tab_move -1
|
||||||
|
map gn tab_new
|
||||||
|
map gc tab_close
|
||||||
|
map uq tab_restore
|
||||||
|
map <a-1> tab_open 1
|
||||||
|
map <a-2> tab_open 2
|
||||||
|
map <a-3> tab_open 3
|
||||||
|
map <a-4> tab_open 4
|
||||||
|
map <a-5> tab_open 5
|
||||||
|
map <a-6> tab_open 6
|
||||||
|
map <a-7> tab_open 7
|
||||||
|
map <a-8> tab_open 8
|
||||||
|
map <a-9> tab_open 9
|
||||||
|
map <a-r> tab_shift 1
|
||||||
|
map <a-l> tab_shift -1
|
||||||
|
|
||||||
|
# Sorting
|
||||||
|
map or set sort_reverse!
|
||||||
|
map oz set sort=random
|
||||||
|
map os chain set sort=size; set sort_reverse=False
|
||||||
|
map ob chain set sort=basename; set sort_reverse=False
|
||||||
|
map on chain set sort=natural; set sort_reverse=False
|
||||||
|
map om chain set sort=mtime; set sort_reverse=False
|
||||||
|
map oc chain set sort=ctime; set sort_reverse=False
|
||||||
|
map oa chain set sort=atime; set sort_reverse=False
|
||||||
|
map ot chain set sort=type; set sort_reverse=False
|
||||||
|
map oe chain set sort=extension; set sort_reverse=False
|
||||||
|
|
||||||
|
map oS chain set sort=size; set sort_reverse=True
|
||||||
|
map oB chain set sort=basename; set sort_reverse=True
|
||||||
|
map oN chain set sort=natural; set sort_reverse=True
|
||||||
|
map oM chain set sort=mtime; set sort_reverse=True
|
||||||
|
map oC chain set sort=ctime; set sort_reverse=True
|
||||||
|
map oA chain set sort=atime; set sort_reverse=True
|
||||||
|
map oT chain set sort=type; set sort_reverse=True
|
||||||
|
map oE chain set sort=extension; set sort_reverse=True
|
||||||
|
|
||||||
|
map dc get_cumulative_size
|
||||||
|
|
||||||
|
# Settings
|
||||||
|
map zc set collapse_preview!
|
||||||
|
map zd set sort_directories_first!
|
||||||
|
map zh set show_hidden!
|
||||||
|
map <C-h> set show_hidden!
|
||||||
|
copymap <C-h> <backspace>
|
||||||
|
copymap <backspace> <backspace2>
|
||||||
|
map zI set flushinput!
|
||||||
|
map zi set preview_images!
|
||||||
|
map zm set mouse_enabled!
|
||||||
|
map zp set preview_files!
|
||||||
|
map zP set preview_directories!
|
||||||
|
map zs set sort_case_insensitive!
|
||||||
|
map zu set autoupdate_cumulative_size!
|
||||||
|
map zv set use_preview_script!
|
||||||
|
map zf console filter%space
|
||||||
|
copymap zf zz
|
||||||
|
|
||||||
|
# Filter stack
|
||||||
|
map .d filter_stack add type d
|
||||||
|
map .f filter_stack add type f
|
||||||
|
map .l filter_stack add type l
|
||||||
|
map .m console filter_stack add mime%space
|
||||||
|
map .n console filter_stack add name%space
|
||||||
|
map .# console filter_stack add hash%space
|
||||||
|
map ." filter_stack add duplicate
|
||||||
|
map .' filter_stack add unique
|
||||||
|
map .| filter_stack add or
|
||||||
|
map .& filter_stack add and
|
||||||
|
map .! filter_stack add not
|
||||||
|
map .r filter_stack rotate
|
||||||
|
map .c filter_stack clear
|
||||||
|
map .* filter_stack decompose
|
||||||
|
map .p filter_stack pop
|
||||||
|
map .. filter_stack show
|
||||||
|
|
||||||
|
# Bookmarks
|
||||||
|
map `<any> enter_bookmark %any
|
||||||
|
map '<any> enter_bookmark %any
|
||||||
|
map m<any> set_bookmark %any
|
||||||
|
map um<any> unset_bookmark %any
|
||||||
|
|
||||||
|
map m<bg> draw_bookmarks
|
||||||
|
copymap m<bg> um<bg> `<bg> '<bg>
|
||||||
|
|
||||||
|
# Generate all the chmod bindings with some python help:
|
||||||
|
eval for arg in "rwxXst": cmd("map +u{0} shell -f chmod u+{0} %s".format(arg))
|
||||||
|
eval for arg in "rwxXst": cmd("map +g{0} shell -f chmod g+{0} %s".format(arg))
|
||||||
|
eval for arg in "rwxXst": cmd("map +o{0} shell -f chmod o+{0} %s".format(arg))
|
||||||
|
eval for arg in "rwxXst": cmd("map +a{0} shell -f chmod a+{0} %s".format(arg))
|
||||||
|
eval for arg in "rwxXst": cmd("map +{0} shell -f chmod u+{0} %s".format(arg))
|
||||||
|
|
||||||
|
eval for arg in "rwxXst": cmd("map -u{0} shell -f chmod u-{0} %s".format(arg))
|
||||||
|
eval for arg in "rwxXst": cmd("map -g{0} shell -f chmod g-{0} %s".format(arg))
|
||||||
|
eval for arg in "rwxXst": cmd("map -o{0} shell -f chmod o-{0} %s".format(arg))
|
||||||
|
eval for arg in "rwxXst": cmd("map -a{0} shell -f chmod a-{0} %s".format(arg))
|
||||||
|
eval for arg in "rwxXst": cmd("map -{0} shell -f chmod u-{0} %s".format(arg))
|
||||||
|
|
||||||
|
# ===================================================================
|
||||||
|
# == Define keys for the console
|
||||||
|
# ===================================================================
|
||||||
|
# Note: Unmapped keys are passed directly to the console.
|
||||||
|
|
||||||
|
# Basic
|
||||||
|
cmap <tab> eval fm.ui.console.tab()
|
||||||
|
cmap <s-tab> eval fm.ui.console.tab(-1)
|
||||||
|
cmap <ESC> eval fm.ui.console.close()
|
||||||
|
cmap <CR> eval fm.ui.console.execute()
|
||||||
|
cmap <C-l> redraw_window
|
||||||
|
|
||||||
|
copycmap <ESC> <C-c>
|
||||||
|
copycmap <CR> <C-j>
|
||||||
|
|
||||||
|
# Move around
|
||||||
|
cmap <up> eval fm.ui.console.history_move(-1)
|
||||||
|
cmap <down> eval fm.ui.console.history_move(1)
|
||||||
|
cmap <left> eval fm.ui.console.move(left=1)
|
||||||
|
cmap <right> eval fm.ui.console.move(right=1)
|
||||||
|
cmap <home> eval fm.ui.console.move(right=0, absolute=True)
|
||||||
|
cmap <end> eval fm.ui.console.move(right=-1, absolute=True)
|
||||||
|
cmap <a-b> eval fm.ui.console.move_word(left=1)
|
||||||
|
cmap <a-f> eval fm.ui.console.move_word(right=1)
|
||||||
|
|
||||||
|
copycmap <a-b> <a-left>
|
||||||
|
copycmap <a-f> <a-right>
|
||||||
|
|
||||||
|
# Line Editing
|
||||||
|
cmap <backspace> eval fm.ui.console.delete(-1)
|
||||||
|
cmap <delete> eval fm.ui.console.delete(0)
|
||||||
|
cmap <C-w> eval fm.ui.console.delete_word()
|
||||||
|
cmap <A-d> eval fm.ui.console.delete_word(backward=False)
|
||||||
|
cmap <C-k> eval fm.ui.console.delete_rest(1)
|
||||||
|
cmap <C-u> eval fm.ui.console.delete_rest(-1)
|
||||||
|
cmap <C-y> eval fm.ui.console.paste()
|
||||||
|
|
||||||
|
# And of course the emacs way
|
||||||
|
copycmap <ESC> <C-g>
|
||||||
|
copycmap <up> <C-p>
|
||||||
|
copycmap <down> <C-n>
|
||||||
|
copycmap <left> <C-b>
|
||||||
|
copycmap <right> <C-f>
|
||||||
|
copycmap <home> <C-a>
|
||||||
|
copycmap <end> <C-e>
|
||||||
|
copycmap <delete> <C-d>
|
||||||
|
copycmap <backspace> <C-h>
|
||||||
|
|
||||||
|
# Note: There are multiple ways to express backspaces. <backspace> (code 263)
|
||||||
|
# and <backspace2> (code 127). To be sure, use both.
|
||||||
|
copycmap <backspace> <backspace2>
|
||||||
|
|
||||||
|
# This special expression allows typing in numerals:
|
||||||
|
cmap <allow_quantifiers> false
|
||||||
|
|
||||||
|
# ===================================================================
|
||||||
|
# == Pager Keybindings
|
||||||
|
# ===================================================================
|
||||||
|
|
||||||
|
# Movement
|
||||||
|
pmap <down> pager_move down=1
|
||||||
|
pmap <up> pager_move up=1
|
||||||
|
pmap <left> pager_move left=4
|
||||||
|
pmap <right> pager_move right=4
|
||||||
|
pmap <home> pager_move to=0
|
||||||
|
pmap <end> pager_move to=-1
|
||||||
|
pmap <pagedown> pager_move down=1.0 pages=True
|
||||||
|
pmap <pageup> pager_move up=1.0 pages=True
|
||||||
|
pmap <C-d> pager_move down=0.5 pages=True
|
||||||
|
pmap <C-u> pager_move up=0.5 pages=True
|
||||||
|
|
||||||
|
copypmap <UP> k <C-p>
|
||||||
|
copypmap <DOWN> j <C-n> <CR>
|
||||||
|
copypmap <LEFT> h
|
||||||
|
copypmap <RIGHT> l
|
||||||
|
copypmap <HOME> g
|
||||||
|
copypmap <END> G
|
||||||
|
copypmap <C-d> d
|
||||||
|
copypmap <C-u> u
|
||||||
|
copypmap <PAGEDOWN> n f <C-F> <Space>
|
||||||
|
copypmap <PAGEUP> p b <C-B>
|
||||||
|
|
||||||
|
# Basic
|
||||||
|
pmap <C-l> redraw_window
|
||||||
|
pmap <ESC> pager_close
|
||||||
|
copypmap <ESC> q Q i <F3>
|
||||||
|
pmap E edit_file
|
||||||
|
|
||||||
|
# ===================================================================
|
||||||
|
# == Taskview Keybindings
|
||||||
|
# ===================================================================
|
||||||
|
|
||||||
|
# Movement
|
||||||
|
tmap <up> taskview_move up=1
|
||||||
|
tmap <down> taskview_move down=1
|
||||||
|
tmap <home> taskview_move to=0
|
||||||
|
tmap <end> taskview_move to=-1
|
||||||
|
tmap <pagedown> taskview_move down=1.0 pages=True
|
||||||
|
tmap <pageup> taskview_move up=1.0 pages=True
|
||||||
|
tmap <C-d> taskview_move down=0.5 pages=True
|
||||||
|
tmap <C-u> taskview_move up=0.5 pages=True
|
||||||
|
|
||||||
|
copytmap <UP> k <C-p>
|
||||||
|
copytmap <DOWN> j <C-n> <CR>
|
||||||
|
copytmap <HOME> g
|
||||||
|
copytmap <END> G
|
||||||
|
copytmap <C-u> u
|
||||||
|
copytmap <PAGEDOWN> n f <C-F> <Space>
|
||||||
|
copytmap <PAGEUP> p b <C-B>
|
||||||
|
|
||||||
|
# Changing priority and deleting tasks
|
||||||
|
tmap J eval -q fm.ui.taskview.task_move(-1)
|
||||||
|
tmap K eval -q fm.ui.taskview.task_move(0)
|
||||||
|
tmap dd eval -q fm.ui.taskview.task_remove()
|
||||||
|
tmap <pagedown> eval -q fm.ui.taskview.task_move(-1)
|
||||||
|
tmap <pageup> eval -q fm.ui.taskview.task_move(0)
|
||||||
|
tmap <delete> eval -q fm.ui.taskview.task_remove()
|
||||||
|
|
||||||
|
# Basic
|
||||||
|
tmap <C-l> redraw_window
|
||||||
|
tmap <ESC> taskview_close
|
||||||
|
copytmap <ESC> q Q w <C-c>
|
||||||
|
|
||||||
|
|
||||||
|
# Custom keybindings
|
||||||
|
map <C-v> console open_with vlc
|
||||||
|
|
||||||
|
default_linemode devicons
|
350
ranger/scope.sh
Executable file
350
ranger/scope.sh
Executable file
@ -0,0 +1,350 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -o noclobber -o noglob -o nounset -o pipefail
|
||||||
|
IFS=$'\n'
|
||||||
|
|
||||||
|
## If the option `use_preview_script` is set to `true`,
|
||||||
|
## then this script will be called and its output will be displayed in ranger.
|
||||||
|
## ANSI color codes are supported.
|
||||||
|
## STDIN is disabled, so interactive scripts won't work properly
|
||||||
|
|
||||||
|
## This script is considered a configuration file and must be updated manually.
|
||||||
|
## It will be left untouched if you upgrade ranger.
|
||||||
|
|
||||||
|
## Because of some automated testing we do on the script #'s for comments need
|
||||||
|
## to be doubled up. Code that is commented out, because it's an alternative for
|
||||||
|
## example, gets only one #.
|
||||||
|
|
||||||
|
## Meanings of exit codes:
|
||||||
|
## code | meaning | action of ranger
|
||||||
|
## -----+------------+-------------------------------------------
|
||||||
|
## 0 | success | Display stdout as preview
|
||||||
|
## 1 | no preview | Display no preview at all
|
||||||
|
## 2 | plain text | Display the plain content of the file
|
||||||
|
## 3 | fix width | Don't reload when width changes
|
||||||
|
## 4 | fix height | Don't reload when height changes
|
||||||
|
## 5 | fix both | Don't ever reload
|
||||||
|
## 6 | image | Display the image `$IMAGE_CACHE_PATH` points to as an image preview
|
||||||
|
## 7 | image | Display the file directly as an image
|
||||||
|
|
||||||
|
## Script arguments
|
||||||
|
FILE_PATH="${1}" # Full path of the highlighted file
|
||||||
|
PV_WIDTH="${2}" # Width of the preview pane (number of fitting characters)
|
||||||
|
## shellcheck disable=SC2034 # PV_HEIGHT is provided for convenience and unused
|
||||||
|
PV_HEIGHT="${3}" # Height of the preview pane (number of fitting characters)
|
||||||
|
IMAGE_CACHE_PATH="${4}" # Full path that should be used to cache image preview
|
||||||
|
PV_IMAGE_ENABLED="${5}" # 'True' if image previews are enabled, 'False' otherwise.
|
||||||
|
|
||||||
|
FILE_EXTENSION="${FILE_PATH##*.}"
|
||||||
|
FILE_EXTENSION_LOWER="$(printf "%s" "${FILE_EXTENSION}" | tr '[:upper:]' '[:lower:]')"
|
||||||
|
|
||||||
|
## Settings
|
||||||
|
HIGHLIGHT_SIZE_MAX=262143 # 256KiB
|
||||||
|
HIGHLIGHT_TABWIDTH=${HIGHLIGHT_TABWIDTH:-8}
|
||||||
|
HIGHLIGHT_STYLE=${HIGHLIGHT_STYLE:-pablo}
|
||||||
|
HIGHLIGHT_OPTIONS="--replace-tabs=${HIGHLIGHT_TABWIDTH} --style=${HIGHLIGHT_STYLE} ${HIGHLIGHT_OPTIONS:-}"
|
||||||
|
PYGMENTIZE_STYLE=${PYGMENTIZE_STYLE:-autumn}
|
||||||
|
OPENSCAD_IMGSIZE=${RNGR_OPENSCAD_IMGSIZE:-1000,1000}
|
||||||
|
OPENSCAD_COLORSCHEME=${RNGR_OPENSCAD_COLORSCHEME:-Tomorrow Night}
|
||||||
|
|
||||||
|
handle_extension() {
|
||||||
|
case "${FILE_EXTENSION_LOWER}" in
|
||||||
|
## Archive
|
||||||
|
a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|\
|
||||||
|
rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)
|
||||||
|
atool --list -- "${FILE_PATH}" && exit 5
|
||||||
|
bsdtar --list --file "${FILE_PATH}" && exit 5
|
||||||
|
exit 1;;
|
||||||
|
rar)
|
||||||
|
## Avoid password prompt by providing empty password
|
||||||
|
unrar lt -p- -- "${FILE_PATH}" && exit 5
|
||||||
|
exit 1;;
|
||||||
|
7z)
|
||||||
|
## Avoid password prompt by providing empty password
|
||||||
|
7z l -p -- "${FILE_PATH}" && exit 5
|
||||||
|
exit 1;;
|
||||||
|
|
||||||
|
## PDF
|
||||||
|
pdf)
|
||||||
|
## Preview as text conversion
|
||||||
|
pdftotext -l 10 -nopgbrk -q -- "${FILE_PATH}" - | \
|
||||||
|
fmt -w "${PV_WIDTH}" && exit 5
|
||||||
|
mutool draw -F txt -i -- "${FILE_PATH}" 1-10 | \
|
||||||
|
fmt -w "${PV_WIDTH}" && exit 5
|
||||||
|
exiftool "${FILE_PATH}" && exit 5
|
||||||
|
exit 1;;
|
||||||
|
|
||||||
|
## BitTorrent
|
||||||
|
torrent)
|
||||||
|
transmission-show -- "${FILE_PATH}" && exit 5
|
||||||
|
exit 1;;
|
||||||
|
|
||||||
|
## OpenDocument
|
||||||
|
odt|ods|odp|sxw)
|
||||||
|
## Preview as text conversion
|
||||||
|
odt2txt "${FILE_PATH}" && exit 5
|
||||||
|
## Preview as markdown conversion
|
||||||
|
pandoc -s -t markdown -- "${FILE_PATH}" && exit 5
|
||||||
|
exit 1;;
|
||||||
|
|
||||||
|
## XLSX
|
||||||
|
xlsx)
|
||||||
|
## Preview as csv conversion
|
||||||
|
## Uses: https://github.com/dilshod/xlsx2csv
|
||||||
|
xlsx2csv -- "${FILE_PATH}" && exit 5
|
||||||
|
exit 1;;
|
||||||
|
|
||||||
|
## HTML
|
||||||
|
htm|html|xhtml)
|
||||||
|
## Preview as text conversion
|
||||||
|
w3m -dump "${FILE_PATH}" && exit 5
|
||||||
|
lynx -dump -- "${FILE_PATH}" && exit 5
|
||||||
|
elinks -dump "${FILE_PATH}" && exit 5
|
||||||
|
pandoc -s -t markdown -- "${FILE_PATH}" && exit 5
|
||||||
|
;;
|
||||||
|
|
||||||
|
## JSON
|
||||||
|
json)
|
||||||
|
jq --color-output . "${FILE_PATH}" && exit 5
|
||||||
|
python -m json.tool -- "${FILE_PATH}" && exit 5
|
||||||
|
;;
|
||||||
|
|
||||||
|
## Direct Stream Digital/Transfer (DSDIFF) and wavpack aren't detected
|
||||||
|
## by file(1).
|
||||||
|
dff|dsf|wv|wvc)
|
||||||
|
mediainfo "${FILE_PATH}" && exit 5
|
||||||
|
exiftool "${FILE_PATH}" && exit 5
|
||||||
|
;; # Continue with next handler on failure
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
handle_image() {
|
||||||
|
## Size of the preview if there are multiple options or it has to be
|
||||||
|
## rendered from vector graphics. If the conversion program allows
|
||||||
|
## specifying only one dimension while keeping the aspect ratio, the width
|
||||||
|
## will be used.
|
||||||
|
local DEFAULT_SIZE="1920x1080"
|
||||||
|
|
||||||
|
local mimetype="${1}"
|
||||||
|
case "${mimetype}" in
|
||||||
|
## SVG
|
||||||
|
image/svg+xml|image/svg)
|
||||||
|
convert -- "${FILE_PATH}" "${IMAGE_CACHE_PATH}" && exit 6
|
||||||
|
exit 1;;
|
||||||
|
|
||||||
|
## DjVu
|
||||||
|
# image/vnd.djvu)
|
||||||
|
# ddjvu -format=tiff -quality=90 -page=1 -size="${DEFAULT_SIZE}" \
|
||||||
|
# - "${IMAGE_CACHE_PATH}" < "${FILE_PATH}" \
|
||||||
|
# && exit 6 || exit 1;;
|
||||||
|
|
||||||
|
## Image
|
||||||
|
image/*)
|
||||||
|
local orientation
|
||||||
|
orientation="$( identify -format '%[EXIF:Orientation]\n' -- "${FILE_PATH}" )"
|
||||||
|
## If orientation data is present and the image actually
|
||||||
|
## needs rotating ("1" means no rotation)...
|
||||||
|
if [[ -n "$orientation" && "$orientation" != 1 ]]; then
|
||||||
|
## ...auto-rotate the image according to the EXIF data.
|
||||||
|
convert -- "${FILE_PATH}" -auto-orient "${IMAGE_CACHE_PATH}" && exit 6
|
||||||
|
fi
|
||||||
|
|
||||||
|
## `w3mimgdisplay` will be called for all images (unless overriden
|
||||||
|
## as above), but might fail for unsupported types.
|
||||||
|
exit 7;;
|
||||||
|
|
||||||
|
## Video
|
||||||
|
video/*)
|
||||||
|
# # Thumbnail
|
||||||
|
ffmpegthumbnailer -i "${FILE_PATH}" -o "${IMAGE_CACHE_PATH}" -s 0 && exit 6
|
||||||
|
exit 1;;
|
||||||
|
|
||||||
|
## PDF
|
||||||
|
application/pdf)
|
||||||
|
pdftoppm -f 1 -l 1 \
|
||||||
|
-scale-to-x "${DEFAULT_SIZE%x*}" \
|
||||||
|
-scale-to-y -1 \
|
||||||
|
-singlefile \
|
||||||
|
-jpeg -tiffcompression jpeg \
|
||||||
|
-- "${FILE_PATH}" "${IMAGE_CACHE_PATH%.*}" \
|
||||||
|
&& exit 6 || exit 1;;
|
||||||
|
|
||||||
|
|
||||||
|
## ePub, MOBI, FB2 (using Calibre)
|
||||||
|
# application/epub+zip|application/x-mobipocket-ebook|\
|
||||||
|
# application/x-fictionbook+xml)
|
||||||
|
# # ePub (using https://github.com/marianosimone/epub-thumbnailer)
|
||||||
|
# epub-thumbnailer "${FILE_PATH}" "${IMAGE_CACHE_PATH}" \
|
||||||
|
# "${DEFAULT_SIZE%x*}" && exit 6
|
||||||
|
# ebook-meta --get-cover="${IMAGE_CACHE_PATH}" -- "${FILE_PATH}" \
|
||||||
|
# >/dev/null && exit 6
|
||||||
|
# exit 1;;
|
||||||
|
|
||||||
|
## Font
|
||||||
|
application/font*|application/*opentype)
|
||||||
|
preview_png="/tmp/$(basename "${IMAGE_CACHE_PATH%.*}").png"
|
||||||
|
if fontimage -o "${preview_png}" \
|
||||||
|
--pixelsize "120" \
|
||||||
|
--fontname \
|
||||||
|
--pixelsize "80" \
|
||||||
|
--text " ABCDEFGHIJKLMNOPQRSTUVWXYZ " \
|
||||||
|
--text " abcdefghijklmnopqrstuvwxyz " \
|
||||||
|
--text " 0123456789.:,;(*!?') ff fl fi ffi ffl " \
|
||||||
|
--text " The quick brown fox jumps over the lazy dog. " \
|
||||||
|
"${FILE_PATH}";
|
||||||
|
then
|
||||||
|
convert -- "${preview_png}" "${IMAGE_CACHE_PATH}" \
|
||||||
|
&& rm "${preview_png}" \
|
||||||
|
&& exit 6
|
||||||
|
else
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
## Preview archives using the first image inside.
|
||||||
|
## (Very useful for comic book collections for example.)
|
||||||
|
# application/zip|application/x-rar|application/x-7z-compressed|\
|
||||||
|
# application/x-xz|application/x-bzip2|application/x-gzip|application/x-tar)
|
||||||
|
# local fn=""; local fe=""
|
||||||
|
# local zip=""; local rar=""; local tar=""; local bsd=""
|
||||||
|
# case "${mimetype}" in
|
||||||
|
# application/zip) zip=1 ;;
|
||||||
|
# application/x-rar) rar=1 ;;
|
||||||
|
# application/x-7z-compressed) ;;
|
||||||
|
# *) tar=1 ;;
|
||||||
|
# esac
|
||||||
|
# { [ "$tar" ] && fn=$(tar --list --file "${FILE_PATH}"); } || \
|
||||||
|
# { fn=$(bsdtar --list --file "${FILE_PATH}") && bsd=1 && tar=""; } || \
|
||||||
|
# { [ "$rar" ] && fn=$(unrar lb -p- -- "${FILE_PATH}"); } || \
|
||||||
|
# { [ "$zip" ] && fn=$(zipinfo -1 -- "${FILE_PATH}"); } || return
|
||||||
|
#
|
||||||
|
# fn=$(echo "$fn" | python -c "import sys; import mimetypes as m; \
|
||||||
|
# [ print(l, end='') for l in sys.stdin if \
|
||||||
|
# (m.guess_type(l[:-1])[0] or '').startswith('image/') ]" |\
|
||||||
|
# sort -V | head -n 1)
|
||||||
|
# [ "$fn" = "" ] && return
|
||||||
|
# [ "$bsd" ] && fn=$(printf '%b' "$fn")
|
||||||
|
#
|
||||||
|
# [ "$tar" ] && tar --extract --to-stdout \
|
||||||
|
# --file "${FILE_PATH}" -- "$fn" > "${IMAGE_CACHE_PATH}" && exit 6
|
||||||
|
# fe=$(echo -n "$fn" | sed 's/[][*?\]/\\\0/g')
|
||||||
|
# [ "$bsd" ] && bsdtar --extract --to-stdout \
|
||||||
|
# --file "${FILE_PATH}" -- "$fe" > "${IMAGE_CACHE_PATH}" && exit 6
|
||||||
|
# [ "$bsd" ] || [ "$tar" ] && rm -- "${IMAGE_CACHE_PATH}"
|
||||||
|
# [ "$rar" ] && unrar p -p- -inul -- "${FILE_PATH}" "$fn" > \
|
||||||
|
# "${IMAGE_CACHE_PATH}" && exit 6
|
||||||
|
# [ "$zip" ] && unzip -pP "" -- "${FILE_PATH}" "$fe" > \
|
||||||
|
# "${IMAGE_CACHE_PATH}" && exit 6
|
||||||
|
# [ "$rar" ] || [ "$zip" ] && rm -- "${IMAGE_CACHE_PATH}"
|
||||||
|
# ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# openscad_image() {
|
||||||
|
# TMPPNG="$(mktemp -t XXXXXX.png)"
|
||||||
|
# openscad --colorscheme="${OPENSCAD_COLORSCHEME}" \
|
||||||
|
# --imgsize="${OPENSCAD_IMGSIZE/x/,}" \
|
||||||
|
# -o "${TMPPNG}" "${1}"
|
||||||
|
# mv "${TMPPNG}" "${IMAGE_CACHE_PATH}"
|
||||||
|
# }
|
||||||
|
|
||||||
|
# case "${FILE_EXTENSION_LOWER}" in
|
||||||
|
# ## 3D models
|
||||||
|
# ## OpenSCAD only supports png image output, and ${IMAGE_CACHE_PATH}
|
||||||
|
# ## is hardcoded as jpeg. So we make a tempfile.png and just
|
||||||
|
# ## move/rename it to jpg. This works because image libraries are
|
||||||
|
# ## smart enough to handle it.
|
||||||
|
# csg|scad)
|
||||||
|
# openscad_image "${FILE_PATH}" && exit 6
|
||||||
|
# ;;
|
||||||
|
# 3mf|amf|dxf|off|stl)
|
||||||
|
# openscad_image <(echo "import(\"${FILE_PATH}\");") && exit 6
|
||||||
|
# ;;
|
||||||
|
# esac
|
||||||
|
}
|
||||||
|
|
||||||
|
handle_mime() {
|
||||||
|
local mimetype="${1}"
|
||||||
|
case "${mimetype}" in
|
||||||
|
## RTF and DOC
|
||||||
|
text/rtf|*msword)
|
||||||
|
## Preview as text conversion
|
||||||
|
## note: catdoc does not always work for .doc files
|
||||||
|
## catdoc: http://www.wagner.pp.ru/~vitus/software/catdoc/
|
||||||
|
catdoc -- "${FILE_PATH}" && exit 5
|
||||||
|
exit 1;;
|
||||||
|
|
||||||
|
## DOCX, ePub, FB2 (using markdown)
|
||||||
|
## You might want to remove "|epub" and/or "|fb2" below if you have
|
||||||
|
## uncommented other methods to preview those formats
|
||||||
|
*wordprocessingml.document|*/epub+zip|*/x-fictionbook+xml)
|
||||||
|
## Preview as markdown conversion
|
||||||
|
pandoc -s -t markdown -- "${FILE_PATH}" && exit 5
|
||||||
|
exit 1;;
|
||||||
|
|
||||||
|
## XLS
|
||||||
|
*ms-excel)
|
||||||
|
## Preview as csv conversion
|
||||||
|
## xls2csv comes with catdoc:
|
||||||
|
## http://www.wagner.pp.ru/~vitus/software/catdoc/
|
||||||
|
xls2csv -- "${FILE_PATH}" && exit 5
|
||||||
|
exit 1;;
|
||||||
|
|
||||||
|
## Text
|
||||||
|
text/* | */xml)
|
||||||
|
## Syntax highlight
|
||||||
|
if [[ "$( stat --printf='%s' -- "${FILE_PATH}" )" -gt "${HIGHLIGHT_SIZE_MAX}" ]]; then
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
|
if [[ "$( tput colors )" -ge 256 ]]; then
|
||||||
|
local pygmentize_format='terminal256'
|
||||||
|
local highlight_format='xterm256'
|
||||||
|
else
|
||||||
|
local pygmentize_format='terminal'
|
||||||
|
local highlight_format='ansi'
|
||||||
|
fi
|
||||||
|
env HIGHLIGHT_OPTIONS="${HIGHLIGHT_OPTIONS}" highlight \
|
||||||
|
--out-format="${highlight_format}" \
|
||||||
|
--force -- "${FILE_PATH}" && exit 5
|
||||||
|
env COLORTERM=8bit bat --color=always --style="plain" \
|
||||||
|
-- "${FILE_PATH}" && exit 5
|
||||||
|
pygmentize -f "${pygmentize_format}" -O "style=${PYGMENTIZE_STYLE}"\
|
||||||
|
-- "${FILE_PATH}" && exit 5
|
||||||
|
exit 2;;
|
||||||
|
|
||||||
|
## DjVu
|
||||||
|
image/vnd.djvu)
|
||||||
|
## Preview as text conversion (requires djvulibre)
|
||||||
|
djvutxt "${FILE_PATH}" | fmt -w "${PV_WIDTH}" && exit 5
|
||||||
|
exiftool "${FILE_PATH}" && exit 5
|
||||||
|
exit 1;;
|
||||||
|
|
||||||
|
## Image
|
||||||
|
image/*)
|
||||||
|
## Preview as text conversion
|
||||||
|
# img2txt --gamma=0.6 --width="${PV_WIDTH}" -- "${FILE_PATH}" && exit 4
|
||||||
|
exiftool "${FILE_PATH}" && exit 5
|
||||||
|
exit 1;;
|
||||||
|
|
||||||
|
## Video and audio
|
||||||
|
video/* | audio/*)
|
||||||
|
mediainfo "${FILE_PATH}" && exit 5
|
||||||
|
exiftool "${FILE_PATH}" && exit 5
|
||||||
|
exit 1;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
handle_fallback() {
|
||||||
|
echo '----- File Type Classification -----' && file --dereference --brief -- "${FILE_PATH}" && exit 5
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
MIMETYPE="$( file --dereference --brief --mime-type -- "${FILE_PATH}" )"
|
||||||
|
if [[ "${PV_IMAGE_ENABLED}" == 'True' ]]; then
|
||||||
|
handle_image "${MIMETYPE}"
|
||||||
|
fi
|
||||||
|
handle_extension
|
||||||
|
handle_mime "${MIMETYPE}"
|
||||||
|
handle_fallback
|
||||||
|
|
||||||
|
exit 1
|
54
rofi/rofi-mpd.rasi
Normal file
54
rofi/rofi-mpd.rasi
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
* {
|
||||||
|
background-color: #282C34;
|
||||||
|
border-color: #2e343f;
|
||||||
|
text-color: #8ca0aa;
|
||||||
|
spacing: 0;
|
||||||
|
width: 70%;
|
||||||
|
font: "Open Sans 24";
|
||||||
|
lines: 24;
|
||||||
|
markup: true;
|
||||||
|
y-offset: 1.5%;
|
||||||
|
}
|
||||||
|
|
||||||
|
rofi {
|
||||||
|
border: 1px;
|
||||||
|
border-color: red;
|
||||||
|
}
|
||||||
|
|
||||||
|
inputbar {
|
||||||
|
border: 0 0 1px 0;
|
||||||
|
children: [prompt,entry];
|
||||||
|
}
|
||||||
|
|
||||||
|
prompt {
|
||||||
|
padding: 16px;
|
||||||
|
border: 0 1px 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
textbox {
|
||||||
|
background-color: #2e343f;
|
||||||
|
border: 0 0 1px 0;
|
||||||
|
border-color: #282C33;
|
||||||
|
padding: 8px 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
entry {
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
listview {
|
||||||
|
cycle: false;
|
||||||
|
margin: 0 0 -1px 0;
|
||||||
|
scrollbar: false;
|
||||||
|
border: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
element {
|
||||||
|
border: 0 1px 1px 0;
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
element selected {
|
||||||
|
color: #a4ce82;
|
||||||
|
background-color: #56a7b5;
|
||||||
|
}
|
55
rofi/slate-bluetooth.rasi
Normal file
55
rofi/slate-bluetooth.rasi
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
* {
|
||||||
|
background-color: #282C34;
|
||||||
|
border-color: #2e343f;
|
||||||
|
text-color: #8ca0aa;
|
||||||
|
spacing: 0;
|
||||||
|
width: 35%;
|
||||||
|
font: "Open Sans 12";
|
||||||
|
lines: 10;
|
||||||
|
markup: true;
|
||||||
|
y-offset: 4.9%;
|
||||||
|
x-offset: 6.5%;
|
||||||
|
}
|
||||||
|
|
||||||
|
rofi {
|
||||||
|
border: 1px;
|
||||||
|
border-color: red;
|
||||||
|
}
|
||||||
|
|
||||||
|
inputbar {
|
||||||
|
border: 0 0 1px 0;
|
||||||
|
children: [prompt,entry];
|
||||||
|
}
|
||||||
|
|
||||||
|
prompt {
|
||||||
|
padding: 16px;
|
||||||
|
border: 0 1px 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
textbox {
|
||||||
|
background-color: #2e343f;
|
||||||
|
border: 0 0 1px 0;
|
||||||
|
border-color: #282C33;
|
||||||
|
padding: 8px 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
entry {
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
listview {
|
||||||
|
cycle: false;
|
||||||
|
margin: 0 0 -1px 0;
|
||||||
|
scrollbar: false;
|
||||||
|
border: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
element {
|
||||||
|
border: 0 1px 1px 0;
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
element selected {
|
||||||
|
color: #a4ce82;
|
||||||
|
background-color: #56a7b5;
|
||||||
|
}
|
66
rofi/slate.rasi
Normal file
66
rofi/slate.rasi
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
* {
|
||||||
|
active-background: #6ba86d;
|
||||||
|
active-foreground: @foreground;
|
||||||
|
normal-background: @background;
|
||||||
|
normal-foreground: @foreground;
|
||||||
|
urgent-background: #fe6d32;
|
||||||
|
urgent-foreground: @foreground;
|
||||||
|
|
||||||
|
alternate-active-background: @background;
|
||||||
|
alternate-active-foreground: @foreground;
|
||||||
|
alternate-normal-background: @background;
|
||||||
|
alternate-normal-foreground: @foreground;
|
||||||
|
alternate-urgent-background: @background;
|
||||||
|
alternate-urgent-foreground: @foreground;
|
||||||
|
|
||||||
|
selected-active-background: #d8dee9;
|
||||||
|
selected-active-foreground: @foreground;
|
||||||
|
selected-normal-background: #6ba86d;
|
||||||
|
selected-normal-foreground: @foreground;
|
||||||
|
selected-urgent-background: #af9a0a;
|
||||||
|
selected-urgent-foreground: @foreground;
|
||||||
|
|
||||||
|
background-color: rgba(0,0,0,10%);
|
||||||
|
background: #282c34;
|
||||||
|
foreground: #dcdfe4;
|
||||||
|
border-color: @background;
|
||||||
|
spacing: 0;
|
||||||
|
border: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
window {
|
||||||
|
background-color: @background;
|
||||||
|
width: 75%;
|
||||||
|
padding: 4px;
|
||||||
|
children: [ listview ];
|
||||||
|
}
|
||||||
|
mainbox {
|
||||||
|
border: 10;
|
||||||
|
}
|
||||||
|
inputbar {
|
||||||
|
enabled: false;
|
||||||
|
}
|
||||||
|
message {
|
||||||
|
enabled: false;
|
||||||
|
}
|
||||||
|
textbox {
|
||||||
|
enabled: false;
|
||||||
|
}
|
||||||
|
listview {
|
||||||
|
columns: 5;
|
||||||
|
fixed-height: true;
|
||||||
|
lines: 1;
|
||||||
|
}
|
||||||
|
element {
|
||||||
|
width: 15em;
|
||||||
|
}
|
||||||
|
element-text {
|
||||||
|
enabled: false;
|
||||||
|
}
|
||||||
|
element-icon {
|
||||||
|
padding: 10px;
|
||||||
|
size: 15em;
|
||||||
|
}
|
||||||
|
element-icon selected{
|
||||||
|
background-color: @selected-active-background;
|
||||||
|
}
|
68
rofi/theme.rasi
Normal file
68
rofi/theme.rasi
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
* {
|
||||||
|
active-background: #6ba86d;
|
||||||
|
active-foreground: @foreground;
|
||||||
|
normal-background: @background;
|
||||||
|
normal-foreground: @foreground;
|
||||||
|
urgent-background: #fe6d32;
|
||||||
|
urgent-foreground: @foreground;
|
||||||
|
|
||||||
|
alternate-active-background: @background;
|
||||||
|
alternate-active-foreground: @foreground;
|
||||||
|
alternate-normal-background: @background;
|
||||||
|
alternate-normal-foreground: @foreground;
|
||||||
|
alternate-urgent-background: @background;
|
||||||
|
alternate-urgent-foreground: @foreground;
|
||||||
|
|
||||||
|
selected-active-background: #d8dee9;
|
||||||
|
selected-active-foreground: @foreground;
|
||||||
|
selected-normal-background: #6ba86d;
|
||||||
|
selected-normal-foreground: @foreground;
|
||||||
|
selected-urgent-background: #af9a0a;
|
||||||
|
selected-urgent-foreground: @foreground;
|
||||||
|
|
||||||
|
background-color: rgba(0,0,0,10%);
|
||||||
|
background: #282c34;
|
||||||
|
foreground: #dcdfe4;
|
||||||
|
border-color: @background;
|
||||||
|
spacing: 0;
|
||||||
|
border: 0;
|
||||||
|
padding: 0;
|
||||||
|
markup: true;
|
||||||
|
markup-rows: true;
|
||||||
|
}
|
||||||
|
window {
|
||||||
|
background-color: @background;
|
||||||
|
width: 75%;
|
||||||
|
padding: 4px;
|
||||||
|
children: [ listview ];
|
||||||
|
}
|
||||||
|
mainbox {
|
||||||
|
border: 10;
|
||||||
|
}
|
||||||
|
inputbar {
|
||||||
|
enabled: false;
|
||||||
|
}
|
||||||
|
message {
|
||||||
|
enabled: false;
|
||||||
|
}
|
||||||
|
textbox {
|
||||||
|
enabled: false;
|
||||||
|
}
|
||||||
|
listview {
|
||||||
|
columns: 5;
|
||||||
|
fixed-height: true;
|
||||||
|
lines: 1;
|
||||||
|
}
|
||||||
|
element {
|
||||||
|
width: 15em;
|
||||||
|
}
|
||||||
|
element-text {
|
||||||
|
enabled: false;
|
||||||
|
}
|
||||||
|
element-icon {
|
||||||
|
padding: 10px;
|
||||||
|
size: 15em;
|
||||||
|
}
|
||||||
|
element-icon selected{
|
||||||
|
background-color: @selected-active-background;
|
||||||
|
}
|
0
scripts/_spotify_status.sh
Normal file
0
scripts/_spotify_status.sh
Normal file
53
scripts/bluetooth_notifications.py
Executable file
53
scripts/bluetooth_notifications.py
Executable file
@ -0,0 +1,53 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
"""Sends notifications through dunst when connected or disonnected to bluetooth."""
|
||||||
|
|
||||||
|
import sys
|
||||||
|
import os
|
||||||
|
|
||||||
|
|
||||||
|
def parse_device_name(dname: str) -> str:
|
||||||
|
"""Inline method to parse out the mac id from the device_name str."""
|
||||||
|
parts = dname.split(' ')
|
||||||
|
# parts[2:] since incoming str = "Device [mac_id] [name]"
|
||||||
|
dname = ' '.join(parts[2:])
|
||||||
|
return dname
|
||||||
|
|
||||||
|
|
||||||
|
def get_icon_path(arg: str) -> str:
|
||||||
|
"""Gets the icon path based on the passed in arg [connected | disconnected]"""
|
||||||
|
base_dir = '/usr/share/icons/hicolor/48x48/status/bluetooth-'
|
||||||
|
if arg == 'connected':
|
||||||
|
base_dir += 'active'
|
||||||
|
elif arg == 'disconnected':
|
||||||
|
base_dir += 'disabled'
|
||||||
|
base_dir += '.png'
|
||||||
|
return base_dir
|
||||||
|
|
||||||
|
|
||||||
|
def output_notification(arg: str, path: str, device_name: str = 'Bluetooth\
|
||||||
|
Device') -> None:
|
||||||
|
"""Sends a notification with icon: path."""
|
||||||
|
new_name = parse_device_name(device_name)
|
||||||
|
command = f'dunstify -i {path} '
|
||||||
|
if arg == 'connected':
|
||||||
|
command += f'"Connected to {new_name}."'
|
||||||
|
else:
|
||||||
|
command += f'"Disconnected from {new_name}."'
|
||||||
|
os.system(command)
|
||||||
|
|
||||||
|
|
||||||
|
def main(arg: str, device_name):
|
||||||
|
"""The driver function."""
|
||||||
|
if arg == 'connected':
|
||||||
|
path = get_icon_path('connected')
|
||||||
|
elif arg == 'disconnected':
|
||||||
|
path = get_icon_path('disconnected')
|
||||||
|
output_notification(arg, path, device_name)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
if len(sys.argv) != 3:
|
||||||
|
sys.exit(1)
|
||||||
|
# [connected|disconnected], [device_name]
|
||||||
|
main(sys.argv[1], sys.argv[2])
|
20
scripts/check-network
Executable file
20
scripts/check-network
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
count=0
|
||||||
|
disconnected="睊"
|
||||||
|
wireless_connected="直"
|
||||||
|
ethernet_connected="泌"
|
||||||
|
|
||||||
|
ID="$(ip link | awk '/state UP/ {print $2}')"
|
||||||
|
|
||||||
|
while true; do
|
||||||
|
if (ping -c 1 archlinux.org || ping -c 1 google.com || ping -c 1 bitbucket.org || ping -c 1 github.com || ping -c 1 sourceforge.net) &>/dev/null; then
|
||||||
|
if [[ $ID == e* ]]; then
|
||||||
|
echo "$ethernet_connected" ; sleep 25
|
||||||
|
else
|
||||||
|
echo "$wireless_connected" ; sleep 25
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "$disconnected" ; sleep 0.5
|
||||||
|
fi
|
||||||
|
done
|
117
scripts/checkupdates
Executable file
117
scripts/checkupdates
Executable file
@ -0,0 +1,117 @@
|
|||||||
|
#!/usr/bin/bash
|
||||||
|
#
|
||||||
|
# checkupdates: Safely print a list of pending updates.
|
||||||
|
#
|
||||||
|
# Copyright (c) 2013 Kyle Keen <keenerd@gmail.com>
|
||||||
|
#
|
||||||
|
# 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 2 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/>.
|
||||||
|
#
|
||||||
|
|
||||||
|
declare -r myname='checkupdates'
|
||||||
|
declare -r myver='1.0.0'
|
||||||
|
|
||||||
|
plain() {
|
||||||
|
(( QUIET )) && return
|
||||||
|
local mesg=$1; shift
|
||||||
|
printf "${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&1
|
||||||
|
}
|
||||||
|
|
||||||
|
msg() {
|
||||||
|
(( QUIET )) && return
|
||||||
|
local mesg=$1; shift
|
||||||
|
printf "${GREEN}==>${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&1
|
||||||
|
}
|
||||||
|
|
||||||
|
msg2() {
|
||||||
|
(( QUIET )) && return
|
||||||
|
local mesg=$1; shift
|
||||||
|
printf "${BLUE} ->${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&1
|
||||||
|
}
|
||||||
|
|
||||||
|
ask() {
|
||||||
|
local mesg=$1; shift
|
||||||
|
printf "${BLUE}::${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}" "$@" >&1
|
||||||
|
}
|
||||||
|
|
||||||
|
warning() {
|
||||||
|
local mesg=$1; shift
|
||||||
|
printf "${YELLOW}==> $(gettext "WARNING:")${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2
|
||||||
|
}
|
||||||
|
|
||||||
|
error() {
|
||||||
|
local mesg=$1; shift
|
||||||
|
printf "${RED}==> $(gettext "ERROR:")${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2
|
||||||
|
}
|
||||||
|
|
||||||
|
# check if messages are to be printed using color
|
||||||
|
unset ALL_OFF BOLD BLUE GREEN RED YELLOW
|
||||||
|
if [[ -t 2 && ! $USE_COLOR = "n" ]]; then
|
||||||
|
# prefer terminal safe colored and bold text when tput is supported
|
||||||
|
if tput setaf 0 &>/dev/null; then
|
||||||
|
ALL_OFF="$(tput sgr0)"
|
||||||
|
BOLD="$(tput bold)"
|
||||||
|
BLUE="${BOLD}$(tput setaf 4)"
|
||||||
|
GREEN="${BOLD}$(tput setaf 2)"
|
||||||
|
RED="${BOLD}$(tput setaf 1)"
|
||||||
|
YELLOW="${BOLD}$(tput setaf 3)"
|
||||||
|
else
|
||||||
|
ALL_OFF="\e[1;0m"
|
||||||
|
BOLD="\e[1;1m"
|
||||||
|
BLUE="${BOLD}\e[1;34m"
|
||||||
|
GREEN="${BOLD}\e[1;32m"
|
||||||
|
RED="${BOLD}\e[1;31m"
|
||||||
|
YELLOW="${BOLD}\e[1;33m"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
readonly ALL_OFF BOLD BLUE GREEN RED YELLOW
|
||||||
|
|
||||||
|
|
||||||
|
if (( $# > 0 )); then
|
||||||
|
echo "${myname} v${myver}"
|
||||||
|
echo
|
||||||
|
echo "Safely print a list of pending updates"
|
||||||
|
echo
|
||||||
|
echo "Usage: ${myname}"
|
||||||
|
echo
|
||||||
|
echo 'Note: Export the "CHECKUPDATES_DB" variable to change the path of the temporary database.'
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! type -P fakeroot >/dev/null; then
|
||||||
|
error 'Cannot find the fakeroot binary.'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -z $CHECKUPDATES_DB ]]; then
|
||||||
|
CHECKUPDATES_DB="${TMPDIR:-/tmp}/checkup-db-${USER}/"
|
||||||
|
fi
|
||||||
|
|
||||||
|
trap 'rm -f $CHECKUPDATES_DB/db.lck' INT TERM EXIT
|
||||||
|
|
||||||
|
DBPath="$(pacman-conf DBPath)"
|
||||||
|
if [[ -z "$DBPath" ]] || [[ ! -d "$DBPath" ]]; then
|
||||||
|
DBPath="/var/lib/pacman/"
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p "$CHECKUPDATES_DB"
|
||||||
|
ln -s "${DBPath}/local" "$CHECKUPDATES_DB" &> /dev/null
|
||||||
|
if ! fakeroot -- pacman -Sy --dbpath "$CHECKUPDATES_DB" --logfile /dev/null &> /dev/null; then
|
||||||
|
error 'Cannot fetch updates'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
pacman -Qu --dbpath "$CHECKUPDATES_DB" 2> /dev/null | grep -v '\[.*\]'
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
# vim: set noet:
|
100
scripts/color-switch.sh
Executable file
100
scripts/color-switch.sh
Executable file
@ -0,0 +1,100 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Author : Aditya Shakya
|
||||||
|
## Github : adi1090x
|
||||||
|
# Custom Rofi Script
|
||||||
|
|
||||||
|
BORDER="#1F1F1F"
|
||||||
|
SEPARATOR="#1F1F1F"
|
||||||
|
FOREGROUND="#A9ABB0"
|
||||||
|
BACKGROUND="#1F1F1F"
|
||||||
|
BACKGROUND_ALT="#252525"
|
||||||
|
HIGHLIGHT_BACKGROUND="#311B92"
|
||||||
|
HIGHLIGHT_FOREGROUND="#FFFFFF"
|
||||||
|
|
||||||
|
BLACK="#000000"
|
||||||
|
WHITE="#ffffff"
|
||||||
|
RED="#e53935"
|
||||||
|
GREEN="#43a047"
|
||||||
|
YELLOW="#fdd835"
|
||||||
|
BLUE="#1e88e5"
|
||||||
|
MAGENTA="#00897b"
|
||||||
|
CYAN="#00acc1"
|
||||||
|
PINK="#d81b60"
|
||||||
|
PURPLE="#8e24aa"
|
||||||
|
INDIGO="#3949ab"
|
||||||
|
TEAL="#00897b"
|
||||||
|
LIME="#c0ca33"
|
||||||
|
AMBER="#ffb300"
|
||||||
|
ORANGE="#fb8c00"
|
||||||
|
BROWN="#6d4c41"
|
||||||
|
GREY="#757575"
|
||||||
|
BLUE_GREY="#546e7a"
|
||||||
|
DEEP_PURPLE="#5e35b1"
|
||||||
|
DEEP_ORANGE="#f4511e"
|
||||||
|
LIGHT_BLUE="#039be5"
|
||||||
|
LIGHT_GREEN="#7cb342"
|
||||||
|
|
||||||
|
SDIR="$HOME/.config/polybar/scripts"
|
||||||
|
|
||||||
|
# Launch Rofi
|
||||||
|
MENU="$(rofi -no-lazy-grab -sep "|" -dmenu -i -p 'Style :' \
|
||||||
|
-hide-scrollbar true \
|
||||||
|
-bw 0 \
|
||||||
|
-lines 5 \
|
||||||
|
-line-padding 10 \
|
||||||
|
-padding 20 \
|
||||||
|
-width 30 \
|
||||||
|
-xoffset 27 -yoffset 60 \
|
||||||
|
-location 1 \
|
||||||
|
-columns 2 \
|
||||||
|
-show-icons -icon-theme "Papirus" \
|
||||||
|
-font "Fantasque Sans Mono 10" \
|
||||||
|
-color-enabled true \
|
||||||
|
-color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
|
||||||
|
-color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
|
||||||
|
-color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
|
||||||
|
-color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
|
||||||
|
<<< "♥ amber|♥ blue|♥ blue-grey|♥ brown|♥ cyan|♥ deep-orange|♥ deep-purple|♥ green|♥ grey|♥ indigo|♥ blue-light|♥ green-light|♥ lime|♥ orange|♥ pink|♥ purple|♥ red|♥ teal|♥ yellow|♥ amber-dark|♥ blue-dark|♥ blue-grey-dark|♥ brown-dark|♥ cyan-dark|♥ deep-orange-dark|♥ deep-purple-dark|♥ green-dark|♥ grey-dark|♥ indigo-dark|♥ blue-light-dark|♥ green-light-dark|♥ lime-dark|♥ orange-dark|♥ pink-dark|♥ purple-dark|♥ red-dark|♥ teal-dark|♥ yellow-dark")"
|
||||||
|
case "$MENU" in
|
||||||
|
## Light Colors
|
||||||
|
*amber) $SDIR/colors-light.sh -amber ;;
|
||||||
|
*blue) $SDIR/colors-light.sh -blue ;;
|
||||||
|
*blue-grey) $SDIR/colors-light.sh -blue-grey ;;
|
||||||
|
*brown) $SDIR/colors-light.sh -brown ;;
|
||||||
|
*cyan) $SDIR/colors-light.sh -cyan ;;
|
||||||
|
*deep-orange) $SDIR/colors-light.sh -deep-orange ;;
|
||||||
|
*deep-purple) $SDIR/colors-light.sh -deep-purple ;;
|
||||||
|
*green) $SDIR/colors-light.sh -green ;;
|
||||||
|
*grey) $SDIR/colors-light.sh -grey ;;
|
||||||
|
*indigo) $SDIR/colors-light.sh -indigo ;;
|
||||||
|
*blue-light) $SDIR/colors-light.sh -light-blue ;;
|
||||||
|
*green-light) $SDIR/colors-light.sh -light-green ;;
|
||||||
|
*lime) $SDIR/colors-light.sh -lime ;;
|
||||||
|
*orange) $SDIR/colors-light.sh -orange ;;
|
||||||
|
*pink) $SDIR/colors-light.sh -pink ;;
|
||||||
|
*purple) $SDIR/colors-light.sh -purple ;;
|
||||||
|
*red) $SDIR/colors-light.sh -red ;;
|
||||||
|
*teal) $SDIR/colors-light.sh -teal ;;
|
||||||
|
*yellow) $SDIR/colors-light.sh -yellow ;;
|
||||||
|
## Dark Colors
|
||||||
|
*amber-dark) $SDIR/colors-dark.sh -amber ;;
|
||||||
|
*blue-dark) $SDIR/colors-dark.sh -blue ;;
|
||||||
|
*blue-grey-dark) $SDIR/colors-dark.sh -blue-grey ;;
|
||||||
|
*brown-dark) $SDIR/colors-dark.sh -brown ;;
|
||||||
|
*cyan-dark) $SDIR/colors-dark.sh -cyan ;;
|
||||||
|
*deep-orange-dark) $SDIR/colors-dark.sh -deep-orange ;;
|
||||||
|
*deep-purple-dark) $SDIR/colors-dark.sh -deep-purple ;;
|
||||||
|
*green-dark) $SDIR/colors-dark.sh -green ;;
|
||||||
|
*grey-dark) $SDIR/colors-dark.sh -grey ;;
|
||||||
|
*indigo-dark) $SDIR/colors-dark.sh -indigo ;;
|
||||||
|
*blue-light-dark) $SDIR/colors-dark.sh -light-blue ;;
|
||||||
|
*green-light-dark) $SDIR/colors-dark.sh -light-green ;;
|
||||||
|
*lime-dark) $SDIR/colors-dark.sh -lime ;;
|
||||||
|
*orange-dark) $SDIR/colors-dark.sh -orange ;;
|
||||||
|
*pink-dark) $SDIR/colors-dark.sh -pink ;;
|
||||||
|
*purple-dark) $SDIR/colors-dark.sh -purple ;;
|
||||||
|
*red-dark) $SDIR/colors-dark.sh -red ;;
|
||||||
|
*teal-dark) $SDIR/colors-dark.sh -teal ;;
|
||||||
|
*yellow-dark) $SDIR/colors-dark.sh -yellow
|
||||||
|
esac
|
434
scripts/colors-dark.sh
Executable file
434
scripts/colors-dark.sh
Executable file
@ -0,0 +1,434 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Author : Aditya Shakya
|
||||||
|
## Github : adi1090x
|
||||||
|
|
||||||
|
PDIR="$HOME/.config/polybar"
|
||||||
|
LAUNCH="polybar-msg cmd restart"
|
||||||
|
|
||||||
|
if [[ $1 = "-amber" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #1F1F1F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #A9ABB0/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #FF6F00/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #FF8F00/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #FFA000/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #FFB300/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #FFC107/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #FFCA28/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #FFD54F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #FFE082/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#FF6F00"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#FF6F00"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#FF6F00"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#FF6F00"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-blue" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #1F1F1F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #A9ABB0/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #0D47A1/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #1565C0/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #1976D2/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #1E88E5/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #2196F3/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #42A5F5/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #64B5F6/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #90CAF9/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#0D47A1"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#0D47A1"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#0D47A1"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#0D47A1"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-blue-grey" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #1F1F1F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #A9ABB0/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #263238/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #37474F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #455A64/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #546E7A/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #607D8B/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #78909C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #90A4AE/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #B0BEC5/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#263238"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#263238"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#263238"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#263238"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-brown" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #1F1F1F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #A9ABB0/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #3E2723/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #4E342E/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #5D4037/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #6D4C41/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #795548/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #8D6E63/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #A1887F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #BCAAA4/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#3E2723"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#3E2723"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#3E2723"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#3E2723"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-cyan" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #1F1F1F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #A9ABB0/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #006064/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #00838F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #0097A7/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #00ACC1/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #00BCD4/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #26C6DA/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #4DD0E1/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #80DEEA/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#006064"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#006064"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#006064"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#006064"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-deep-orange" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #1F1F1F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #A9ABB0/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #BF360C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #D84315/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #E64A19/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #F4511E/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #FF5722/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #FF7043/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #FF8A65/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #FFAB91/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#BF360C"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#BF360C"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#BF360C"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#BF360C"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-deep-purple" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #1F1F1F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #A9ABB0/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #311B92/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #4527A0/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #512DA8/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #5E35B1/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #673AB7/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #7E57C2/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #9575CD/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #B39DDB/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#311B92"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#311B92"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#311B92"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#311B92"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-green" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #1F1F1F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #A9ABB0/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #1B5E20/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #2E7D32/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #388E3C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #43A047/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #4CAF50/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #66BB6A/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #81C784/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #A5D6A7/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#1B5E20"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#1B5E20"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#1B5E20"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#1B5E20"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-grey" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #1F1F1F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #A9ABB0/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #212121/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #424242/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #616161/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #757575/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #9E9E9E/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #BDBDBD/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #D4D4D4/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #EEEEEE/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#212121"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#212121"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#212121"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#212121"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-indigo" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #1F1F1F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #A9ABB0/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #1A237E/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #283593/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #303F9F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #3949AB/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #3F51B5/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #5C6BC0/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #7986CB/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #9FA8DA/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#1A237E"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#1A237E"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#1A237E"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#1A237E"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-light-blue" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #1F1F1F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #A9ABB0/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #01579B/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #0277BD/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #0288D1/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #039BE5/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #03A9F4/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #29B6F6/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #4FC3F7/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #81D4FA/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#01579B"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#01579B"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#01579B"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#01579B"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-light-green" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #1F1F1F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #A9ABB0/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #33691E/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #558B2F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #689F38/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #7CB342/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #8BC34A/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #9CCC65/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #AED581/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #C5E1A5/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#33691E"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#33691E"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#33691E"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#33691E"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-lime" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #1F1F1F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #A9ABB0/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #827717/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #9E9D24/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #AFB42B/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #C0CA33/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #CDDC39/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #D4E157/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #DCE775/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #E6EE9C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#827717"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#827717"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#827717"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#827717"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-orange" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #1F1F1F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #A9ABB0/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #E65100/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #EF6C00/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #F57C00/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #FB8C00/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #FF9800/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #FFA726/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #FFB74D/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #FFCC80/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#E65100"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#E65100"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#E65100"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#E65100"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-pink" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #1F1F1F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #A9ABB0/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #880E4F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #AD1457/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #C2185B/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #D81B60/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #E91E63/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #EC407A/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #F06292/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #F48FB1/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#880E4F"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#880E4F"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#880E4F"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#880E4F"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-purple" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #1F1F1F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #A9ABB0/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #4A148C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #6A1B9A/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #7B1FA2/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #8E24AA/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #9C27B0/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #AB47BC/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #BA68C8/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #CE93D8/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#4A148C"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#4A148C"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#4A148C"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#4A148C"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-red" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #1F1F1F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #A9ABB0/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #B71C1C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #C62828/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #D32F2F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #E53935/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #EE413D/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #EF5350/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #E57373/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #EF9A9A/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#B71C1C"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#B71C1C"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#B71C1C"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#B71C1C"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-teal" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #1F1F1F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #A9ABB0/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #004D40/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #00695C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #00796B/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #00897B/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #009688/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #26A69A/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #4DB6AC/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #80CBC4/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#004D40"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#004D40"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#004D40"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#004D40"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-yellow" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #1F1F1F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #A9ABB0/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #F57F17/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #F9A825/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #FBC02D/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #FDD835/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #FFEB3B/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #FFEE58/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #FFF176/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #FFF59D/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#F57F17"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#F57F17"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#F57F17"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#F57F17"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Available options:
|
||||||
|
-amber -blue -blue-grey -brown
|
||||||
|
-cyan -deep-orange -deep-purple -green
|
||||||
|
-grey -indigo -light-blue -light-green
|
||||||
|
-lime -orange -pink -purple
|
||||||
|
-red -teal -yellow"
|
||||||
|
fi
|
434
scripts/colors-light.sh
Executable file
434
scripts/colors-light.sh
Executable file
@ -0,0 +1,434 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Author : Aditya Shakya
|
||||||
|
## Github : adi1090x
|
||||||
|
|
||||||
|
PDIR="$HOME/.config/polybar"
|
||||||
|
LAUNCH="polybar-msg cmd restart"
|
||||||
|
|
||||||
|
if [[ $1 = "-amber" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #454545/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #FF6F00/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #FF8F00/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #FFA000/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #FFB300/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #FFC107/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #FFCA28/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #FFD54F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #FFE082/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#FF6F00"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#FF6F00"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#FF6F00"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#FF6F00"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-blue" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #454545/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #0D47A1/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #1565C0/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #1976D2/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #1E88E5/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #2196F3/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #42A5F5/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #64B5F6/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #90CAF9/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#0D47A1"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#0D47A1"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#0D47A1"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#0D47A1"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-blue-grey" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #454545/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #263238/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #37474F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #455A64/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #546E7A/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #607D8B/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #78909C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #90A4AE/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #B0BEC5/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#263238"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#263238"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#263238"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#263238"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-brown" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #454545/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #3E2723/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #4E342E/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #5D4037/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #6D4C41/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #795548/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #8D6E63/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #A1887F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #BCAAA4/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#3E2723"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#3E2723"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#3E2723"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#3E2723"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-cyan" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #454545/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #006064/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #00838F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #0097A7/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #00ACC1/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #00BCD4/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #26C6DA/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #4DD0E1/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #80DEEA/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#006064"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#006064"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#006064"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#006064"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-deep-orange" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #454545/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #BF360C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #D84315/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #E64A19/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #F4511E/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #FF5722/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #FF7043/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #FF8A65/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #FFAB91/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#BF360C"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#BF360C"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#BF360C"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#BF360C"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-deep-purple" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #454545/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #311B92/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #4527A0/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #512DA8/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #5E35B1/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #673AB7/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #7E57C2/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #9575CD/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #B39DDB/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#311B92"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#311B92"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#311B92"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#311B92"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-green" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #454545/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #1B5E20/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #2E7D32/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #388E3C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #43A047/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #4CAF50/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #66BB6A/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #81C784/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #A5D6A7/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#1B5E20"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#1B5E20"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#1B5E20"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#1B5E20"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-grey" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #454545/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #212121/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #424242/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #616161/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #757575/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #9E9E9E/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #BDBDBD/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #D4D4D4/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #EEEEEE/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#212121"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#212121"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#212121"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#212121"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-indigo" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #454545/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #1A237E/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #283593/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #303F9F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #3949AB/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #3F51B5/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #5C6BC0/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #7986CB/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #9FA8DA/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#1A237E"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#1A237E"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#1A237E"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#1A237E"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-light-blue" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #454545/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #01579B/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #0277BD/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #0288D1/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #039BE5/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #03A9F4/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #29B6F6/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #4FC3F7/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #81D4FA/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#01579B"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#01579B"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#01579B"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#01579B"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-light-green" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #454545/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #33691E/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #558B2F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #689F38/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #7CB342/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #8BC34A/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #9CCC65/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #AED581/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #C5E1A5/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#33691E"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#33691E"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#33691E"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#33691E"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-lime" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #454545/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #827717/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #9E9D24/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #AFB42B/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #C0CA33/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #CDDC39/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #D4E157/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #DCE775/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #E6EE9C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#827717"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#827717"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#827717"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#827717"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-orange" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #454545/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #E65100/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #EF6C00/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #F57C00/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #FB8C00/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #FF9800/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #FFA726/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #FFB74D/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #FFCC80/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#E65100"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#E65100"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#E65100"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#E65100"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-pink" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #454545/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #880E4F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #AD1457/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #C2185B/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #D81B60/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #E91E63/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #EC407A/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #F06292/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #F48FB1/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#880E4F"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#880E4F"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#880E4F"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#880E4F"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-purple" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #454545/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #4A148C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #6A1B9A/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #7B1FA2/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #8E24AA/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #9C27B0/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #AB47BC/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #BA68C8/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #CE93D8/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#4A148C"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#4A148C"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#4A148C"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#4A148C"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-red" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #454545/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #B71C1C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #C62828/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #D32F2F/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #E53935/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #EE413D/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #EF5350/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #E57373/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #EF9A9A/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#B71C1C"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#B71C1C"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#B71C1C"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#B71C1C"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-teal" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #454545/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #004D40/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #00695C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #00796B/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #00897B/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #009688/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #26A69A/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #4DB6AC/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #80CBC4/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#004D40"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#004D40"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#004D40"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#004D40"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-yellow" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/bg = .*/bg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg = .*/fg = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/fg-alt = .*/fg-alt = #454545/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/acolor = .*/acolor = #FFFFFF/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/txt = .*/txt = #2C2C2C/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade1 = .*/shade1 = #F57F17/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade2 = .*/shade2 = #F9A825/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade3 = .*/shade3 = #FBC02D/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade4 = .*/shade4 = #FDD835/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade5 = .*/shade5 = #FFEB3B/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade6 = .*/shade6 = #FFEE58/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade7 = .*/shade7 = #FFF176/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/shade8 = .*/shade8 = #FFF59D/g' $PDIR/config.ini
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#F57F17"/g' $PDIR/scripts/menu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#F57F17"/g' $PDIR/scripts/menu_full
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#F57F17"/g' $PDIR/scripts/sysmenu
|
||||||
|
sed -i -e 's/HIGHLIGHT_BACKGROUND=.*/HIGHLIGHT_BACKGROUND="#F57F17"/g' $PDIR/scripts/color-switch.sh
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Available options:
|
||||||
|
-amber -blue -blue-grey -brown
|
||||||
|
-cyan -deep-orange -deep-purple -green
|
||||||
|
-grey -indigo -light-blue -light-green
|
||||||
|
-lime -orange -pink -purple
|
||||||
|
-red -teal -yellow"
|
||||||
|
fi
|
136
scripts/colors.sh
Executable file
136
scripts/colors.sh
Executable file
@ -0,0 +1,136 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Author : Aditya Shakya
|
||||||
|
## Github : adi1090x
|
||||||
|
|
||||||
|
PDIR="$HOME/.config/polybar"
|
||||||
|
LAUNCH="polybar-msg cmd restart"
|
||||||
|
|
||||||
|
if [[ $1 = "-default" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/ac = .*/ac = #BE302F/g' $PDIR/colors.ini
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-amber" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/ac = .*/ac = #ffb300/g' $PDIR/colors.ini
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-blue" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/ac = .*/ac = #1e88e5/g' $PDIR/colors.ini
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-blue-grey" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/ac = .*/ac = #546e7a/g' $PDIR/colors.ini
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-brown" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/ac = .*/ac = #6d4c41/g' $PDIR/colors.ini
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-cyan" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/ac = .*/ac = #00acc1/g' $PDIR/colors.ini
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-deep-orange" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/ac = .*/ac = #f4511e/g' $PDIR/colors.ini
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-deep-purple" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/ac = .*/ac = #5e35b1/g' $PDIR/colors.ini
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-green" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/ac = .*/ac = #43a047/g' $PDIR/colors.ini
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-grey" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/ac = .*/ac = #757575/g' $PDIR/colors.ini
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-indigo" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/ac = .*/ac = #3949ab/g' $PDIR/colors.ini
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-light-blue" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/ac = .*/ac = #039be5/g' $PDIR/colors.ini
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-light-green" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/ac = .*/ac = #7cb342/g' $PDIR/colors.ini
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-lime" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/ac = .*/ac = #c0ca33/g' $PDIR/colors.ini
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-orange" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/ac = .*/ac = #fb8c00/g' $PDIR/colors.ini
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-pink" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/ac = .*/ac = #d81b60/g' $PDIR/colors.ini
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-purple" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/ac = .*/ac = #8e24aa/g' $PDIR/colors.ini
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-red" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/ac = .*/ac = #e53935/g' $PDIR/colors.ini
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-teal" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/ac = .*/ac = #00897b/g' $PDIR/colors.ini
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
elif [[ $1 = "-yellow" ]]; then
|
||||||
|
# Replacing colors
|
||||||
|
sed -i -e 's/ac = .*/ac = #fdd835/g' $PDIR/colors.ini
|
||||||
|
# Restarting polybar
|
||||||
|
$LAUNCH &
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Available options:
|
||||||
|
-amber -blue -blue-grey -brown
|
||||||
|
-cyan -deep-orange -deep-purple -green
|
||||||
|
-grey -indigo -light-blue -light-green
|
||||||
|
-lime -orange -pink -purple
|
||||||
|
-red -teal -yellow -default"
|
||||||
|
fi
|
65
scripts/date.py
Executable file
65
scripts/date.py
Executable file
@ -0,0 +1,65 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
from datetime import date
|
||||||
|
|
||||||
|
digits = ['一', '二', '三', '四', '五', '六', '七', '八', '九']
|
||||||
|
|
||||||
|
def get_number(num, special_char, divisor):
|
||||||
|
"""Returns the number in the year"""
|
||||||
|
if num == 0:
|
||||||
|
return ''
|
||||||
|
# ones place
|
||||||
|
elif divisor == 1:
|
||||||
|
return str(digits[num - 1])
|
||||||
|
|
||||||
|
j_str = ''
|
||||||
|
first = num // divisor
|
||||||
|
# > 1 because they don't say ichi sen, just sen for 1000
|
||||||
|
if first > 1:
|
||||||
|
j_str += str(digits[first - 1])
|
||||||
|
return j_str + special_char
|
||||||
|
return ''
|
||||||
|
|
||||||
|
|
||||||
|
def parse_year(year):
|
||||||
|
"""
|
||||||
|
Parse the year into its separate parts and return an array of the parts
|
||||||
|
"""
|
||||||
|
multipliers = [1000, 100, 10, 1]
|
||||||
|
places = []
|
||||||
|
count = 0
|
||||||
|
# assumes that we won't ever make it to year 10,000
|
||||||
|
for number in str(year):
|
||||||
|
places.append(int(number) * multipliers[count])
|
||||||
|
count += 1
|
||||||
|
|
||||||
|
j_thousands = get_number(places[0], '千', 1000)
|
||||||
|
j_hundreds = get_number(places[1], '百', 100)
|
||||||
|
j_tens = get_number(places[2], '十', 10)
|
||||||
|
j_ones = get_number(places[3], '', 1)
|
||||||
|
j_year = j_thousands + j_hundreds + j_tens + j_ones + '年'
|
||||||
|
return j_year
|
||||||
|
|
||||||
|
|
||||||
|
# array of months and days of the months, up to 31
|
||||||
|
month_arr = ['一月', '二月', '三月', '四月', '五月', '六月', '七月',
|
||||||
|
'八月', '九月', '十月', '十一月', '十二月']
|
||||||
|
day_arr = ['一日', 'ニ日', '三日', '四日', '五日', '六日', '七日', '八日',
|
||||||
|
'九日', '十日', '十一日', '十二日', '十三日', '十四日', '十五日',
|
||||||
|
'十六日', '十七日', '十八日', '十九日', '二十日', '二十一日',
|
||||||
|
'二十二日', '二十三日', '二十四日', '二十五日', '二十六日',
|
||||||
|
'二十七日', '二十八日', '二十九日', '三十日', '三十一日']
|
||||||
|
|
||||||
|
# get the current date
|
||||||
|
today = date.today()
|
||||||
|
|
||||||
|
# get refs to the year, month, and day (number)
|
||||||
|
year = today.year
|
||||||
|
month = today.month
|
||||||
|
day = today.day
|
||||||
|
|
||||||
|
# month-1 for the 0-indexed arrs
|
||||||
|
j_month = month_arr[month - 1]
|
||||||
|
j_day = day_arr[day - 1]
|
||||||
|
j_year = parse_year(year)
|
||||||
|
print(j_month+j_day+j_year)
|
1
scripts/dunst_volume/.gitignore
vendored
Normal file
1
scripts/dunst_volume/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
__pycache__/*
|
6
scripts/dunst_volume/config.py
Normal file
6
scripts/dunst_volume/config.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
"""Strings for use in the change-volume.py script."""
|
||||||
|
BASE_DIR = '/usr/share/icons/gnome/16x16/status/'
|
||||||
|
MUTED = 'audio-volume-muted.png'
|
||||||
|
LOW = 'audio-volume-low.png'
|
||||||
|
MEDIUM = 'audio-volume-medium.png'
|
||||||
|
HIGH = 'audio-volume-high.png'
|
83
scripts/dunst_volume/dunst_volume.py
Executable file
83
scripts/dunst_volume/dunst_volume.py
Executable file
@ -0,0 +1,83 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
"""
|
||||||
|
Script to send notification whenever the volume is changed through the
|
||||||
|
multi-media keys on my laptop.
|
||||||
|
"""
|
||||||
|
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
import subprocess
|
||||||
|
from pathlib import Path
|
||||||
|
import config
|
||||||
|
|
||||||
|
|
||||||
|
def execute_with_capture(command: list) -> subprocess.CompletedProcess:
|
||||||
|
"""
|
||||||
|
Returns the result of a subprocess.run command with capture output and
|
||||||
|
utf-8 encoding.
|
||||||
|
"""
|
||||||
|
return subprocess.run(command, capture_output=True,
|
||||||
|
shell=True, check=True, encoding='UTF-8')
|
||||||
|
|
||||||
|
|
||||||
|
def get_volume() -> int:
|
||||||
|
"""Returns the volume of the system."""
|
||||||
|
args = ['pulsemixer --get-volume']
|
||||||
|
proc = execute_with_capture(args)
|
||||||
|
output = proc.stdout
|
||||||
|
volume = int(output.split(' ')[0])
|
||||||
|
return volume
|
||||||
|
|
||||||
|
|
||||||
|
def check_mute() -> int:
|
||||||
|
"""Returns 1 when system muted. 0 otherwise."""
|
||||||
|
args = ['pulsemixer --get-mute']
|
||||||
|
proc = execute_with_capture(args)
|
||||||
|
return int(proc.stdout)
|
||||||
|
|
||||||
|
|
||||||
|
def get_icon_path(volume: int) -> str:
|
||||||
|
"""Gets the icons path based on the current volume."""
|
||||||
|
# base_dir = pathlib.Path('/usr/share/icons/gnome/16x16/status/')
|
||||||
|
base_dir = Path(config.BASE_DIR)
|
||||||
|
if volume == 0:
|
||||||
|
path = base_dir.joinpath(config.MUTED)
|
||||||
|
elif 0 < volume < 40:
|
||||||
|
path = base_dir.joinpath(config.LOW)
|
||||||
|
elif 40 <= volume < 70:
|
||||||
|
path = base_dir.joinpath(config.MEDIUM)
|
||||||
|
elif volume >= 70:
|
||||||
|
path = base_dir.joinpath(config.HIGH)
|
||||||
|
return str(path)
|
||||||
|
|
||||||
|
|
||||||
|
def main(event: str) -> None:
|
||||||
|
"""Main driver function."""
|
||||||
|
if event in ('increase', 'decrease'):
|
||||||
|
volume = get_volume()
|
||||||
|
icon_path = get_icon_path(volume)
|
||||||
|
output_command = f'dunstify -i {icon_path} -h \
|
||||||
|
string:x-dunst-stack-tag:audio "Volume: {volume}%" -h \
|
||||||
|
int:value:{volume}'
|
||||||
|
elif event == 'mute':
|
||||||
|
muted = check_mute()
|
||||||
|
if muted:
|
||||||
|
icon_path = get_icon_path(0)
|
||||||
|
output_command = f'dunstify -i {icon_path} -h \
|
||||||
|
string:x-dunst-stack-tag:audio "Volume: Muted" -h \
|
||||||
|
int:value:0'
|
||||||
|
else:
|
||||||
|
volume = get_volume()
|
||||||
|
icon_path = get_icon_path(volume)
|
||||||
|
output_command = f'dunstify -i {icon_path} -h \
|
||||||
|
string:x-dunst-stack-tag:audio "Volume: {volume}%" -h \
|
||||||
|
int:value:{volume}'
|
||||||
|
os.system(output_command)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
if len(sys.argv) < 2:
|
||||||
|
print('not nice')
|
||||||
|
sys.exit(1)
|
||||||
|
e = sys.argv[1]
|
||||||
|
main(e)
|
10
scripts/get-player-title
Executable file
10
scripts/get-player-title
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
STAT=`playerctl status 2>/dev/null`
|
||||||
|
if [[ $STAT == "" ]]; then
|
||||||
|
printf "\n"
|
||||||
|
elif [[ $(playerctl status 2>/dev/null) == "Playing" ]]; then
|
||||||
|
printf "%s\n" "Playing: $(playerctl metadata title)"
|
||||||
|
else
|
||||||
|
printf "%s\n" "Paused: $(playerctl metadata title)"
|
||||||
|
fi
|
11
scripts/launch.sh
Executable file
11
scripts/launch.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
## Add this to your wm startup file.
|
||||||
|
|
||||||
|
# Terminate already running bar instances
|
||||||
|
killall -q polybar
|
||||||
|
|
||||||
|
# Wait until the processes have been shut down
|
||||||
|
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||||
|
|
||||||
|
polybar -c ~/i3/configs/config.ini main &
|
12
scripts/launch_desktop.sh
Executable file
12
scripts/launch_desktop.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
## Add this to your wm startup file.
|
||||||
|
|
||||||
|
# Terminate already running bar instances
|
||||||
|
killall -q polybar
|
||||||
|
|
||||||
|
# Wait until the processes have been shut down
|
||||||
|
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||||
|
|
||||||
|
# Launch bar1 and bar2
|
||||||
|
polybar -c ~/i3/configs/config.desktop.ini main &
|
5
scripts/launcher
Executable file
5
scripts/launcher
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Created By Aditya Shakya
|
||||||
|
|
||||||
|
rofi -modi run,drun -show drun -location 7 -xoffset 14 -yoffset -52 -line-padding 4 -columns 1 -width 20 -lines 10 -padding 25 -hide-scrollbar -show-icons -drun-icon-theme
|
5
scripts/launcher-alt
Executable file
5
scripts/launcher-alt
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Created By Aditya Shakya
|
||||||
|
|
||||||
|
rofi -modi run,drun -show drun -line-padding 4 -columns 2 -width 40 -padding 30 -hide-scrollbar -show-icons -drun-icon-theme "Papirus"
|
5
scripts/launcher-full
Executable file
5
scripts/launcher-full
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Created By Aditya Shakya
|
||||||
|
|
||||||
|
rofi -show run -fullscreen True -lines 5 -line-margin 5 -padding 300 -bw 0
|
3
scripts/lupdates
Executable file
3
scripts/lupdates
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
termite -e "sudo pacman -Syu"
|
67
scripts/menu
Executable file
67
scripts/menu
Executable file
@ -0,0 +1,67 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Custom Rofi Script
|
||||||
|
|
||||||
|
BORDER="#1F1F1F"
|
||||||
|
SEPARATOR="#1F1F1F"
|
||||||
|
FOREGROUND="#A9ABB0"
|
||||||
|
BACKGROUND="#1F1F1F"
|
||||||
|
# BACKGROUND_ALT="#252525"
|
||||||
|
BACKGROUND_ALT="#282c34"
|
||||||
|
HIGHLIGHT_BACKGROUND="#56a7b5"
|
||||||
|
# HIGHLIGHT_BACKGROUND="#311B92"
|
||||||
|
# HIGHLIGHT_FOREGROUND="#FFFFFF"
|
||||||
|
HIGHLIGHT_FOREGROUND="#a8d385"
|
||||||
|
|
||||||
|
BLACK="#000000"
|
||||||
|
WHITE="#ffffff"
|
||||||
|
RED="#e53935"
|
||||||
|
GREEN="#43a047"
|
||||||
|
YELLOW="#fdd835"
|
||||||
|
BLUE="#1e88e5"
|
||||||
|
MAGENTA="#00897b"
|
||||||
|
CYAN="#00acc1"
|
||||||
|
PINK="#d81b60"
|
||||||
|
PURPLE="#8e24aa"
|
||||||
|
INDIGO="#3949ab"
|
||||||
|
TEAL="#00897b"
|
||||||
|
LIME="#c0ca33"
|
||||||
|
AMBER="#ffb300"
|
||||||
|
ORANGE="#fb8c00"
|
||||||
|
BROWN="#6d4c41"
|
||||||
|
GREY="#757575"
|
||||||
|
BLUE_GREY="#546e7a"
|
||||||
|
DEEP_PURPLE="#5e35b1"
|
||||||
|
DEEP_ORANGE="#f4511e"
|
||||||
|
LIGHT_BLUE="#039be5"
|
||||||
|
LIGHT_GREEN="#7cb342"
|
||||||
|
|
||||||
|
# Launch Rofi
|
||||||
|
rofi -no-lazy-grab -show drun \
|
||||||
|
-display-drun "Applications :" -drun-display-format "{name}" \
|
||||||
|
-hide-scrollbar true \
|
||||||
|
-bw 0 \
|
||||||
|
-lines 12 \
|
||||||
|
-line-padding 8 \
|
||||||
|
-padding 20 \
|
||||||
|
-width 90 \
|
||||||
|
-xoffset 27 -yoffset 60 \
|
||||||
|
-location 1 \
|
||||||
|
-columns 3 \
|
||||||
|
-markup \
|
||||||
|
-show-icons -icon-theme "Qogir-dark" \
|
||||||
|
-font "FiraCode Nerd Font 34" \
|
||||||
|
-color-enabled true \
|
||||||
|
-color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
|
||||||
|
-color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
|
||||||
|
-color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
|
||||||
|
-color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND"
|
||||||
|
|
||||||
|
# More Options
|
||||||
|
# -fullscreen \
|
||||||
|
|
||||||
|
# Theming help
|
||||||
|
# color window = background, border, separator
|
||||||
|
# color normal = background, foreground, background-alt, highlight-background, highlight-foreground
|
||||||
|
# color active = background, foreground, background-alt, highlight-background, highlight-foreground
|
||||||
|
# color urgent = background, foreground, background-alt, highlight-background, highlight-foreground
|
67
scripts/menu-desktop
Executable file
67
scripts/menu-desktop
Executable file
@ -0,0 +1,67 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Custom Rofi Script
|
||||||
|
|
||||||
|
BORDER="#1F1F1F"
|
||||||
|
SEPARATOR="#1F1F1F"
|
||||||
|
FOREGROUND="#A9ABB0"
|
||||||
|
BACKGROUND="#1F1F1F"
|
||||||
|
# BACKGROUND_ALT="#252525"
|
||||||
|
BACKGROUND_ALT="#282c34"
|
||||||
|
HIGHLIGHT_BACKGROUND="#56a7b5"
|
||||||
|
# HIGHLIGHT_BACKGROUND="#311B92"
|
||||||
|
# HIGHLIGHT_FOREGROUND="#FFFFFF"
|
||||||
|
HIGHLIGHT_FOREGROUND="#a8d385"
|
||||||
|
|
||||||
|
BLACK="#000000"
|
||||||
|
WHITE="#ffffff"
|
||||||
|
RED="#e53935"
|
||||||
|
GREEN="#43a047"
|
||||||
|
YELLOW="#fdd835"
|
||||||
|
BLUE="#1e88e5"
|
||||||
|
MAGENTA="#00897b"
|
||||||
|
CYAN="#00acc1"
|
||||||
|
PINK="#d81b60"
|
||||||
|
PURPLE="#8e24aa"
|
||||||
|
INDIGO="#3949ab"
|
||||||
|
TEAL="#00897b"
|
||||||
|
LIME="#c0ca33"
|
||||||
|
AMBER="#ffb300"
|
||||||
|
ORANGE="#fb8c00"
|
||||||
|
BROWN="#6d4c41"
|
||||||
|
GREY="#757575"
|
||||||
|
BLUE_GREY="#546e7a"
|
||||||
|
DEEP_PURPLE="#5e35b1"
|
||||||
|
DEEP_ORANGE="#f4511e"
|
||||||
|
LIGHT_BLUE="#039be5"
|
||||||
|
LIGHT_GREEN="#7cb342"
|
||||||
|
|
||||||
|
# Launch Rofi
|
||||||
|
rofi -no-lazy-grab -show drun \
|
||||||
|
-display-drun "Applications :" -drun-display-format "{name}" \
|
||||||
|
-hide-scrollbar true \
|
||||||
|
-bw 0 \
|
||||||
|
-lines 12 \
|
||||||
|
-line-padding 8 \
|
||||||
|
-padding 20 \
|
||||||
|
-width 80 \
|
||||||
|
-xoffset 27 -yoffset 60 \
|
||||||
|
-location 1 \
|
||||||
|
-columns 2 \
|
||||||
|
-markup \
|
||||||
|
-show-icons -icon-theme "Qogir-dark" \
|
||||||
|
-font "FiraCode Nerd Font 24" \
|
||||||
|
-color-enabled true \
|
||||||
|
-color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
|
||||||
|
-color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
|
||||||
|
-color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
|
||||||
|
-color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND"
|
||||||
|
|
||||||
|
# More Options
|
||||||
|
# -fullscreen \
|
||||||
|
|
||||||
|
# Theming help
|
||||||
|
# color window = background, border, separator
|
||||||
|
# color normal = background, foreground, background-alt, highlight-background, highlight-foreground
|
||||||
|
# color active = background, foreground, background-alt, highlight-background, highlight-foreground
|
||||||
|
# color urgent = background, foreground, background-alt, highlight-background, highlight-foreground
|
68
scripts/menu_full
Executable file
68
scripts/menu_full
Executable file
@ -0,0 +1,68 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Custom Rofi Script
|
||||||
|
|
||||||
|
BORDER="#1F1F1F"
|
||||||
|
SEPARATOR="#1F1F1F"
|
||||||
|
FOREGROUND="#A9ABB0"
|
||||||
|
BACKGROUND="#1F1F1F"
|
||||||
|
BACKGROUND_ALT="#282c34"
|
||||||
|
HIGHLIGHT_BACKGROUND="#56a7b5"
|
||||||
|
HIGHLIGHT_FOREGROUND="#FFFFFF"
|
||||||
|
HIGHLIGHT_FOREGROUND="#a8d385"
|
||||||
|
# HIGHLIGHT_FOREGROUND="#6b2144"
|
||||||
|
|
||||||
|
BLACK="#000000"
|
||||||
|
WHITE="#ffffff"
|
||||||
|
RED="#e53935"
|
||||||
|
GREEN="#43a047"
|
||||||
|
YELLOW="#fdd835"
|
||||||
|
BLUE="#1e88e5"
|
||||||
|
MAGENTA="#00897b"
|
||||||
|
CYAN="#00acc1"
|
||||||
|
PINK="#d81b60"
|
||||||
|
PURPLE="#8e24aa"
|
||||||
|
INDIGO="#3949ab"
|
||||||
|
TEAL="#00897b"
|
||||||
|
LIME="#c0ca33"
|
||||||
|
AMBER="#ffb300"
|
||||||
|
ORANGE="#fb8c00"
|
||||||
|
BROWN="#6d4c41"
|
||||||
|
GREY="#757575"
|
||||||
|
BLUE_GREY="#546e7a"
|
||||||
|
DEEP_PURPLE="#5e35b1"
|
||||||
|
DEEP_ORANGE="#f4511e"
|
||||||
|
LIGHT_BLUE="#039be5"
|
||||||
|
LIGHT_GREEN="#7cb342"
|
||||||
|
|
||||||
|
# Launch Rofi
|
||||||
|
rofi -no-lazy-grab -show drun \
|
||||||
|
-display-drun "Applications :" -drun-display-format "{name}" \
|
||||||
|
-hide-scrollbar true \
|
||||||
|
-bw 0 \
|
||||||
|
-lines 12 \
|
||||||
|
-line-padding 10 \
|
||||||
|
-padding 60 \
|
||||||
|
-width 20 \
|
||||||
|
-height 50 \
|
||||||
|
-xoffset 10 -yoffset 40 \
|
||||||
|
-location 1 \
|
||||||
|
-fullscreen \
|
||||||
|
-columns 4 \
|
||||||
|
-show-icons -icon-theme "Qogir-dark" \
|
||||||
|
-font "FiraCode Nerd Font 34" \
|
||||||
|
-markup \
|
||||||
|
-color-enabled true \
|
||||||
|
-color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
|
||||||
|
-color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
|
||||||
|
-color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
|
||||||
|
-color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND"
|
||||||
|
|
||||||
|
# More Options
|
||||||
|
# -fullscreen \
|
||||||
|
|
||||||
|
# Theming help
|
||||||
|
# color window = background, border, separator
|
||||||
|
# color normal = background, foreground, background-alt, highlight-background, highlight-foreground
|
||||||
|
# color active = background, foreground, background-alt, highlight-background, highlight-foreground
|
||||||
|
# color urgent = background, foreground, background-alt, highlight-background, highlight-foreground
|
68
scripts/menu_full_desktop
Executable file
68
scripts/menu_full_desktop
Executable file
@ -0,0 +1,68 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Custom Rofi Script
|
||||||
|
|
||||||
|
BORDER="#1F1F1F"
|
||||||
|
SEPARATOR="#1F1F1F"
|
||||||
|
FOREGROUND="#A9ABB0"
|
||||||
|
BACKGROUND="#1F1F1F"
|
||||||
|
BACKGROUND_ALT="#282c34"
|
||||||
|
HIGHLIGHT_BACKGROUND="#56a7b5"
|
||||||
|
HIGHLIGHT_FOREGROUND="#FFFFFF"
|
||||||
|
HIGHLIGHT_FOREGROUND="#a8d385"
|
||||||
|
# HIGHLIGHT_FOREGROUND="#6b2144"
|
||||||
|
|
||||||
|
BLACK="#000000"
|
||||||
|
WHITE="#ffffff"
|
||||||
|
RED="#e53935"
|
||||||
|
GREEN="#43a047"
|
||||||
|
YELLOW="#fdd835"
|
||||||
|
BLUE="#1e88e5"
|
||||||
|
MAGENTA="#00897b"
|
||||||
|
CYAN="#00acc1"
|
||||||
|
PINK="#d81b60"
|
||||||
|
PURPLE="#8e24aa"
|
||||||
|
INDIGO="#3949ab"
|
||||||
|
TEAL="#00897b"
|
||||||
|
LIME="#c0ca33"
|
||||||
|
AMBER="#ffb300"
|
||||||
|
ORANGE="#fb8c00"
|
||||||
|
BROWN="#6d4c41"
|
||||||
|
GREY="#757575"
|
||||||
|
BLUE_GREY="#546e7a"
|
||||||
|
DEEP_PURPLE="#5e35b1"
|
||||||
|
DEEP_ORANGE="#f4511e"
|
||||||
|
LIGHT_BLUE="#039be5"
|
||||||
|
LIGHT_GREEN="#7cb342"
|
||||||
|
|
||||||
|
# Launch Rofi
|
||||||
|
rofi -no-lazy-grab -show drun \
|
||||||
|
-display-drun "Applications :" -drun-display-format "{name}" \
|
||||||
|
-hide-scrollbar true \
|
||||||
|
-bw 0 \
|
||||||
|
-lines 12 \
|
||||||
|
-line-padding 10 \
|
||||||
|
-padding 60 \
|
||||||
|
-width 20 \
|
||||||
|
-height 50 \
|
||||||
|
-xoffset 10 -yoffset 40 \
|
||||||
|
-location 1 \
|
||||||
|
-fullscreen \
|
||||||
|
-columns 4 \
|
||||||
|
-show-icons -icon-theme "Qogir-dark" \
|
||||||
|
-font "FiraCode Nerd Font 18" \
|
||||||
|
-markup \
|
||||||
|
-color-enabled true \
|
||||||
|
-color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
|
||||||
|
-color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
|
||||||
|
-color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
|
||||||
|
-color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND"
|
||||||
|
|
||||||
|
# More Options
|
||||||
|
# -fullscreen \
|
||||||
|
|
||||||
|
# Theming help
|
||||||
|
# color window = background, border, separator
|
||||||
|
# color normal = background, foreground, background-alt, highlight-background, highlight-foreground
|
||||||
|
# color active = background, foreground, background-alt, highlight-background, highlight-foreground
|
||||||
|
# color urgent = background, foreground, background-alt, highlight-background, highlight-foreground
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user