First commit
This commit is contained in:
commit
bf3f97279e
9
.bash_profile
Normal file
9
.bash_profile
Normal file
@ -0,0 +1,9 @@
|
||||
#
|
||||
# ~/.bash_profile
|
||||
#
|
||||
|
||||
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
||||
|
||||
if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
|
||||
exec startx
|
||||
fi
|
1
.config/README.md
Normal file
1
.config/README.md
Normal file
@ -0,0 +1 @@
|
||||
Path: `~/`
|
550
.config/alacritty/alacritty.yml
Normal file
550
.config/alacritty/alacritty.yml
Normal file
@ -0,0 +1,550 @@
|
||||
# Configuration for Alacritty, the GPU enhanced terminal emulator.
|
||||
|
||||
# Any items in the `env` entry below will be added as
|
||||
# environment variables. Some entries may override variables
|
||||
# set by alacritty itself.
|
||||
env:
|
||||
# TERM variable
|
||||
#
|
||||
# This value is used to set the `$TERM` environment variable for
|
||||
# each instance of Alacritty. If it is not present, alacritty will
|
||||
# check the local terminfo database and use `alacritty` if it is
|
||||
# available, otherwise `xterm-256color` is used.
|
||||
TERM: xterm-256color
|
||||
|
||||
window:
|
||||
# Window dimensions (changes require restart)
|
||||
#
|
||||
# Specified in number of columns/lines, not pixels.
|
||||
# If both are `0`, this setting is ignored.
|
||||
#dimensions:
|
||||
# columns: 0
|
||||
# lines: 0
|
||||
|
||||
# Window position (changes require restart)
|
||||
#
|
||||
# Specified in number of pixels.
|
||||
# If the position is not set, the window manager will handle the placement.
|
||||
#position:
|
||||
# x: 0
|
||||
# y: 0
|
||||
|
||||
# Window padding (changes require restart)
|
||||
#
|
||||
# Blank space added around the window in pixels. This padding is scaled
|
||||
# by DPI and the specified value is always added at both opposing sides.
|
||||
padding:
|
||||
x: 6
|
||||
y: 6
|
||||
|
||||
# Spread additional padding evenly around the terminal content.
|
||||
#dynamic_padding: false
|
||||
|
||||
# Window decorations
|
||||
#
|
||||
# Values for `decorations`:
|
||||
# - full: Borders and title bar
|
||||
# - none: Neither borders nor title bar
|
||||
#
|
||||
# Values for `decorations` (macOS only):
|
||||
# - transparent: Title bar, transparent background and title bar buttons
|
||||
# - buttonless: Title bar, transparent background, but no title bar buttons
|
||||
#decorations: full
|
||||
|
||||
# Startup Mode (changes require restart)
|
||||
#
|
||||
# Values for `startup_mode`:
|
||||
# - Windowed
|
||||
# - Maximized
|
||||
# - Fullscreen
|
||||
#
|
||||
# Values for `startup_mode` (macOS only):
|
||||
# - SimpleFullscreen
|
||||
#startup_mode: Windowed
|
||||
|
||||
# Window title
|
||||
title: Alacritty
|
||||
|
||||
# Window class (Linux/BSD only):
|
||||
class:
|
||||
# Application instance name
|
||||
instance: Alacritty
|
||||
# General application class
|
||||
general: Alacritty
|
||||
|
||||
# GTK theme variant (Linux/BSD only)
|
||||
#
|
||||
# Override the variant of the GTK theme. Commonly supported values are `dark` and `light`.
|
||||
# Set this to `None` to use the default theme variant.
|
||||
#gtk_theme_variant: None
|
||||
|
||||
scrolling:
|
||||
# Maximum number of lines in the scrollback buffer.
|
||||
# Specifying '0' will disable scrolling.
|
||||
history: 5000
|
||||
|
||||
# Number of lines the viewport will move for every line scrolled when
|
||||
# scrollback is enabled (history > 0).
|
||||
#multiplier: 3
|
||||
|
||||
# Scroll to the bottom when new text is written to the terminal.
|
||||
#auto_scroll: false
|
||||
|
||||
# Spaces per Tab (changes require restart)
|
||||
#
|
||||
# This setting defines the width of a tab in cells.
|
||||
#
|
||||
# Some applications, like Emacs, rely on knowing about the width of a tab.
|
||||
# To prevent unexpected behavior in these applications, it's also required to
|
||||
# change the `it` value in terminfo when altering this setting.
|
||||
#tabspaces: 8
|
||||
|
||||
# Font configuration
|
||||
font:
|
||||
# Normal (roman) font face
|
||||
normal:
|
||||
# Font family
|
||||
#
|
||||
# Default:
|
||||
# - (macOS) Menlo
|
||||
# - (Linux/BSD) monospace
|
||||
# - (Windows) Consolas
|
||||
family: Agave 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: Agave 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: Agave 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: Agave Nerd Font
|
||||
|
||||
# The `style` can be specified to pick a specific face.
|
||||
style: Bold Italic
|
||||
|
||||
# Point size
|
||||
size: 13.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: 1
|
||||
y: 1
|
||||
|
||||
# Glyph offset determines the locations of the glyphs within their cells with
|
||||
# the default being at the bottom. Increasing `x` moves the glyph to the right,
|
||||
# increasing `y` moves the glyph upwards.
|
||||
#glyph_offset:
|
||||
# x: 0
|
||||
# y: 0
|
||||
|
||||
# Thin stroke font rendering (macOS only)
|
||||
#
|
||||
# Thin strokes are suitable for retina displays, but for non-retina screens
|
||||
# it is recommended to set `use_thin_strokes` to `false`
|
||||
#
|
||||
# macOS >= 10.14.x:
|
||||
#
|
||||
# If the font quality on non-retina display looks bad then set
|
||||
# `use_thin_strokes` to `true` and enable font smoothing by running the
|
||||
# following command:
|
||||
# `defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO`
|
||||
#
|
||||
# This is a global setting and will require a log out or restart to take
|
||||
# effect.
|
||||
#use_thin_strokes: true
|
||||
|
||||
# If `true`, bold text is drawn using the bright color variants.
|
||||
#draw_bold_text_with_bright_colors: true
|
||||
|
||||
# Colors (Tomorrow Night Bright)
|
||||
colors:
|
||||
# Default colors
|
||||
primary:
|
||||
background: '0x292d3e'
|
||||
foreground: '0xbbc5ff'
|
||||
|
||||
# Bright and dim foreground colors
|
||||
#
|
||||
# The dimmed foreground color is calculated automatically if it is not present.
|
||||
# If the bright foreground color is not set, or `draw_bold_text_with_bright_colors`
|
||||
# is `false`, the normal foreground color will be used.
|
||||
#dim_foreground: '0x9a9a9a'
|
||||
#bright_foreground: '0xffffff'
|
||||
|
||||
# Cursor colors
|
||||
#
|
||||
# Colors which should be used to draw the terminal cursor. If these are unset,
|
||||
# the cursor color will be the inverse of the cell color.
|
||||
#cursor:
|
||||
# text: '0x000000'
|
||||
# cursor: '0xffffff'
|
||||
|
||||
# Selection colors
|
||||
#
|
||||
# Colors which should be used to draw the selection area. If selection
|
||||
# background is unset, selection color will be the inverse of the cell colors.
|
||||
# If only text is unset the cell text color will remain the same.
|
||||
selection:
|
||||
text: '0x292d3e'
|
||||
background: '0xbbc5ff'
|
||||
|
||||
# Normal colors
|
||||
normal:
|
||||
black: '0x292d3e'
|
||||
red: '0xf07178'
|
||||
green: '0xc3e88d'
|
||||
yellow: '0xffcb6b'
|
||||
blue: '0x82aaff'
|
||||
magenta: '0xc792ea'
|
||||
cyan: '0x89ddff'
|
||||
white: '0xd0d0d0'
|
||||
|
||||
# Bright colors
|
||||
bright:
|
||||
black: '0x434758'
|
||||
red: '0xff8b92'
|
||||
green: '0xddffa7'
|
||||
yellow: '0xffe585'
|
||||
blue: '0x9cc4ff'
|
||||
magenta: '0xe1acff'
|
||||
cyan: '0xa3f7ff'
|
||||
white: '0xffffff'
|
||||
|
||||
# Dim colors
|
||||
#
|
||||
# If the dim colors are not set, they will be calculated automatically based
|
||||
# on the `normal` colors.
|
||||
#dim:
|
||||
# black: '0x000000'
|
||||
# red: '0x8c3336'
|
||||
# green: '0x7a8530'
|
||||
# yellow: '0x97822e'
|
||||
# blue: '0x506d8f'
|
||||
# magenta: '0x80638e'
|
||||
# cyan: '0x497e7a'
|
||||
# white: '0x9a9a9a'
|
||||
|
||||
# Indexed Colors
|
||||
#
|
||||
# The indexed colors include all colors from 16 to 256.
|
||||
# When these are not set, they're filled with sensible defaults.
|
||||
#
|
||||
# Example:
|
||||
# `- { index: 16, color: '0xff00ff' }`
|
||||
#
|
||||
#indexed_colors: []
|
||||
|
||||
# Visual Bell
|
||||
#
|
||||
# Any time the BEL code is received, Alacritty "rings" the visual bell. Once
|
||||
# rung, the terminal background will be set to white and transition back to the
|
||||
# default background color. You can control the rate of this transition by
|
||||
# setting the `duration` property (represented in milliseconds). You can also
|
||||
# configure the transition function by setting the `animation` property.
|
||||
#
|
||||
# Values for `animation`:
|
||||
# - Ease
|
||||
# - EaseOut
|
||||
# - EaseOutSine
|
||||
# - EaseOutQuad
|
||||
# - EaseOutCubic
|
||||
# - EaseOutQuart
|
||||
# - EaseOutQuint
|
||||
# - EaseOutExpo
|
||||
# - EaseOutCirc
|
||||
# - Linear
|
||||
#
|
||||
# Specifying a `duration` of `0` will disable the visual bell.
|
||||
#visual_bell:
|
||||
# animation: EaseOutExpo
|
||||
# duration: 0
|
||||
# color: '0xffffff'
|
||||
|
||||
# Background opacity
|
||||
#
|
||||
# Window opacity as a floating point number from `0.0` to `1.0`.
|
||||
# The value `0.0` is completely transparent and `1.0` is opaque.
|
||||
# background_opacity: 1.0
|
||||
background_opacity: 1.0
|
||||
|
||||
#selection:
|
||||
#semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"
|
||||
|
||||
# When set to `true`, selected text will be copied to the primary clipboard.
|
||||
#save_to_clipboard: false
|
||||
|
||||
# Allow terminal applications to change Alacritty's window title.
|
||||
#dynamic_title: true
|
||||
|
||||
#cursor:
|
||||
# Cursor style
|
||||
#
|
||||
# Values for `style`:
|
||||
# - ▇ Block
|
||||
# - _ Underline
|
||||
# - | Beam
|
||||
#style: Block
|
||||
|
||||
# If this is `true`, the cursor will be rendered as a hollow box when the
|
||||
# window is not focused.
|
||||
#unfocused_hollow: true
|
||||
|
||||
# Live config reload (changes require restart)
|
||||
#live_config_reload: true
|
||||
|
||||
# Shell
|
||||
#
|
||||
# You can set `shell.program` to the path of your favorite shell, e.g. `/bin/fish`.
|
||||
# Entries in `shell.args` are passed unmodified as arguments to the shell.
|
||||
#
|
||||
# Default:
|
||||
# - (macOS) /bin/bash --login
|
||||
# - (Linux/BSD) user login shell
|
||||
# - (Windows) powershell
|
||||
shell:
|
||||
program: /bin/fish
|
||||
# args:
|
||||
# - --login
|
||||
|
||||
# Startup directory
|
||||
#
|
||||
# Directory the shell is started in. If this is unset, or `None`, the working
|
||||
# directory of the parent process will be used.
|
||||
#working_directory: None
|
||||
|
||||
# WinPTY backend (Windows only)
|
||||
#
|
||||
# Alacritty defaults to using the newer ConPTY backend if it is available,
|
||||
# since it resolves a lot of bugs and is quite a bit faster. If it is not
|
||||
# available, the the WinPTY backend will be used instead.
|
||||
#
|
||||
# Setting this option to `true` makes Alacritty use the legacy WinPTY backend,
|
||||
# even if the ConPTY backend is available.
|
||||
#winpty_backend: false
|
||||
|
||||
# Send ESC (\x1b) before characters when alt is pressed.
|
||||
#alt_send_esc: true
|
||||
|
||||
#debug:
|
||||
# Display the time it takes to redraw each frame.
|
||||
#render_timer: false
|
||||
|
||||
# Keep the log file after quitting Alacritty.
|
||||
#persistent_logging: false
|
||||
|
||||
# Log level
|
||||
#
|
||||
# Values for `log_level`:
|
||||
# - None
|
||||
# - Error
|
||||
# - Warn
|
||||
# - Info
|
||||
# - Debug
|
||||
# - Trace
|
||||
#log_level: Warn
|
||||
|
||||
# Print all received window events.
|
||||
#print_events: false
|
||||
|
||||
# Record all characters and escape sequences as test data.
|
||||
#ref_test: false
|
||||
|
||||
mouse:
|
||||
# Click settings
|
||||
#
|
||||
# The `double_click` and `triple_click` settings control the time
|
||||
# alacritty should wait for accepting multiple clicks as one double
|
||||
# or triple click.
|
||||
#double_click: { threshold: 300 }
|
||||
#triple_click: { threshold: 300 }
|
||||
|
||||
# If this is `true`, the cursor is temporarily hidden when typing.
|
||||
hide_when_typing: true
|
||||
|
||||
#url:
|
||||
# URL launcher
|
||||
#
|
||||
# This program is executed when clicking on a text which is recognized as a URL.
|
||||
# The URL is always added to the command as the last parameter.
|
||||
#
|
||||
# When set to `None`, URL launching will be disabled completely.
|
||||
#
|
||||
# Default:
|
||||
# - (macOS) open
|
||||
# - (Linux/BSD) xdg-open
|
||||
# - (Windows) explorer
|
||||
#launcher:
|
||||
# program: xdg-open
|
||||
# args: []
|
||||
|
||||
# URL modifiers
|
||||
#
|
||||
# These are the modifiers that need to be held down for opening URLs when clicking
|
||||
# on them. The available modifiers are documented in the key binding section.
|
||||
#modifiers: None
|
||||
|
||||
# Mouse bindings
|
||||
#
|
||||
# Mouse bindings are specified as a list of objects, much like the key
|
||||
# bindings further below.
|
||||
#
|
||||
# Each mouse binding will specify a:
|
||||
#
|
||||
# - `mouse`:
|
||||
#
|
||||
# - Middle
|
||||
# - Left
|
||||
# - Right
|
||||
# - Numeric identifier such as `5`
|
||||
#
|
||||
# - `action` (see key bindings)
|
||||
#
|
||||
# And optionally:
|
||||
#
|
||||
# - `mods` (see key bindings)
|
||||
#mouse_bindings:
|
||||
# - { mouse: Middle, action: PasteSelection }
|
||||
|
||||
# Key bindings
|
||||
#
|
||||
# Key bindings are specified as a list of objects. For example, this is the
|
||||
# default paste binding:
|
||||
#
|
||||
# `- { key: V, mods: Control|Shift, action: Paste }`
|
||||
#
|
||||
# Each key binding will specify a:
|
||||
#
|
||||
# - `key`: Identifier of the key pressed
|
||||
#
|
||||
# - A-Z
|
||||
# - F1-F24
|
||||
# - Key0-Key9
|
||||
#
|
||||
# A full list with available key codes can be found here:
|
||||
# https://docs.rs/glutin/*/glutin/event/enum.VirtualKeyCode.html#variants
|
||||
#
|
||||
# Instead of using the name of the keys, the `key` field also supports using
|
||||
# the scancode of the desired key. Scancodes have to be specified as a
|
||||
# decimal number. This command will allow you to display the hex scancodes
|
||||
# for certain keys:
|
||||
#
|
||||
# `showkey --scancodes`.
|
||||
#
|
||||
# Then exactly one of:
|
||||
#
|
||||
# - `chars`: Send a byte sequence to the running application
|
||||
#
|
||||
# The `chars` field writes the specified string to the terminal. This makes
|
||||
# it possible to pass escape sequences. To find escape codes for bindings
|
||||
# like `PageUp` (`"\x1b[5~"`), you can run the command `showkey -a` outside
|
||||
# of tmux. Note that applications use terminfo to map escape sequences back
|
||||
# to keys. It is therefore required to update the terminfo when changing an
|
||||
# escape sequence.
|
||||
#
|
||||
# - `action`: Execute a predefined action
|
||||
#
|
||||
# - Copy
|
||||
# - Paste
|
||||
# - PasteSelection
|
||||
# - IncreaseFontSize
|
||||
# - DecreaseFontSize
|
||||
# - ResetFontSize
|
||||
# - ScrollPageUp
|
||||
# - ScrollPageDown
|
||||
# - ScrollLineUp
|
||||
# - ScrollLineDown
|
||||
# - ScrollToTop
|
||||
# - ScrollToBottom
|
||||
# - ClearHistory
|
||||
# - Hide
|
||||
# - Minimize
|
||||
# - Quit
|
||||
# - ToggleFullscreen
|
||||
# - SpawnNewInstance
|
||||
# - ClearLogNotice
|
||||
# - ReceiveChar
|
||||
# - None
|
||||
#
|
||||
# (macOS only):
|
||||
# - ToggleSimpleFullscreen: Enters fullscreen without occupying another space
|
||||
#
|
||||
# - `command`: Fork and execute a specified command plus arguments
|
||||
#
|
||||
# The `command` field must be a map containing a `program` string and an
|
||||
# `args` array of command line parameter strings. For example:
|
||||
# `{ program: "alacritty", args: ["-e", "vttest"] }`
|
||||
#
|
||||
# And optionally:
|
||||
#
|
||||
# - `mods`: Key modifiers to filter binding actions
|
||||
#
|
||||
# - Command
|
||||
# - Control
|
||||
# - Option
|
||||
# - Super
|
||||
# - Shift
|
||||
# - Alt
|
||||
#
|
||||
# Multiple `mods` can be combined using `|` like this:
|
||||
# `mods: Control|Shift`.
|
||||
# Whitespace and capitalization are relevant and must match the example.
|
||||
#
|
||||
# - `mode`: Indicate a binding for only specific terminal reported modes
|
||||
#
|
||||
# This is mainly used to send applications the correct escape sequences
|
||||
# when in different modes.
|
||||
#
|
||||
# - AppCursor
|
||||
# - AppKeypad
|
||||
# - Alt
|
||||
#
|
||||
# A `~` operator can be used before a mode to apply the binding whenever
|
||||
# the mode is *not* active, e.g. `~Alt`.
|
||||
#
|
||||
# Bindings are always filled by default, but will be replaced when a new
|
||||
# binding with the same triggers is defined. To unset a default binding, it can
|
||||
# be mapped to the `ReceiveChar` action. Alternatively, you can use `None` for
|
||||
# a no-op if you do not wish to receive input characters for that binding.
|
||||
key_bindings:
|
||||
# (Windows, Linux, and BSD only)
|
||||
- { key: V, mods: Control|Shift, action: Paste }
|
||||
- { key: C, mods: Control|Shift, action: Copy }
|
||||
- { key: Insert, mods: Shift, action: PasteSelection }
|
||||
- { key: R, mods: Control, action: ResetFontSize }
|
||||
- { key: Equals, mods: Control, action: IncreaseFontSize }
|
||||
- { key: Minus, mods: Control, action: DecreaseFontSize }
|
||||
|
||||
- { key: Paste, action: Paste }
|
||||
- { key: Copy, action: Copy }
|
||||
- { key: L, mods: Control, action: ClearLogNotice }
|
||||
- { key: L, mods: Control, chars: "\x0c" }
|
||||
- { key: PageUp, mods: Shift, action: ScrollPageUp, mode: ~Alt }
|
||||
- { key: PageDown, mods: Shift, action: ScrollPageDown, mode: ~Alt }
|
||||
- { key: Home, mods: Shift, action: ScrollToTop, mode: ~Alt }
|
||||
- { key: End, mods: Shift, action: ScrollToBottom, mode: ~Alt }
|
434
.config/dunst/dunstrc
Normal file
434
.config/dunst/dunstrc
Normal file
@ -0,0 +1,434 @@
|
||||
[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 = "300x5-30+20"
|
||||
geometry = "300x5-5+32"
|
||||
|
||||
# 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 = 8
|
||||
|
||||
# Horizontal padding.
|
||||
horizontal_padding = 8
|
||||
|
||||
# Defines width in pixels of frame around the notification window.
|
||||
# Set to 0 to disable.
|
||||
frame_width = 3
|
||||
|
||||
# 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 = Monospace 8
|
||||
font = Agave Nerd Font 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
|
||||
line_height = 5
|
||||
|
||||
# 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 = 0
|
||||
|
||||
# Scale larger icons down to this size, set to 0 to disable
|
||||
max_icon_size = 32
|
||||
|
||||
# Paths to default icons.
|
||||
icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/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
|
||||
|
||||
### 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
|
||||
|
||||
[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.
|
||||
close = ctrl+space
|
||||
|
||||
# Close all notifications.
|
||||
close_all = ctrl+shift+space
|
||||
|
||||
# Redisplay last message(s).
|
||||
# On the US keyboard layout "grave" is normally above TAB and left
|
||||
# of "1". Make sure this key actually exists on your keyboard layout,
|
||||
# e.g. check output of 'xmodmap -pke'
|
||||
history = ctrl+grave
|
||||
|
||||
# Context menu.
|
||||
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 = 10
|
||||
# Icon for notifications with low urgency, uncomment to enable
|
||||
#icon = /path/to/icon
|
||||
|
||||
[urgency_normal]
|
||||
background = "#285577"
|
||||
foreground = "#ffffff"
|
||||
timeout = 10
|
||||
# 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
|
1
.config/fish/config.fish
Normal file
1
.config/fish/config.fish
Normal file
@ -0,0 +1 @@
|
||||
set fish_greeting
|
7
.config/fish/functions/cl.fish
Normal file
7
.config/fish/functions/cl.fish
Normal file
@ -0,0 +1,7 @@
|
||||
function cl
|
||||
/usr/bin/cat /dev/null > ~/.cache/rofi-2.sshcache
|
||||
/usr/bin/cat /dev/null > ~/.python_history
|
||||
/usr/bin/cat /dev/null > ~/.bash_history
|
||||
/usr/bin/cat /dev/null > ~/.ssh/known_hosts
|
||||
echo "Garbage cleared!"
|
||||
end
|
3
.config/fish/functions/fish_prompt.fish
Normal file
3
.config/fish/functions/fish_prompt.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function fish_prompt
|
||||
printf '%s > ' (whoami)
|
||||
end
|
849
.config/neofetch/config.conf
Normal file
849
.config/neofetch/config.conf
Normal file
@ -0,0 +1,849 @@
|
||||
# See this wiki page for more info:
|
||||
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
|
||||
print_info() {
|
||||
info title
|
||||
info underline
|
||||
|
||||
info "OS" distro
|
||||
info "Host" model
|
||||
info "Kernel" kernel
|
||||
info "Uptime" uptime
|
||||
info "Packages" packages
|
||||
info "Shell" shell
|
||||
info "Resolution" resolution
|
||||
info "DE" de
|
||||
info "WM" wm
|
||||
info "WM Theme" wm_theme
|
||||
info "Theme" theme
|
||||
info "Icons" icons
|
||||
info "Terminal" term
|
||||
info "Terminal Font" term_font
|
||||
info "CPU" cpu
|
||||
info "GPU" gpu
|
||||
info "Memory" memory
|
||||
|
||||
# info "GPU Driver" gpu_driver # Linux/macOS only
|
||||
# info "CPU Usage" cpu_usage
|
||||
# info "Disk" disk
|
||||
# info "Battery" battery
|
||||
# info "Font" font
|
||||
# info "Song" song
|
||||
# [[ "$player" ]] && prin "Music Player" "$player"
|
||||
info "Local IP" local_ip
|
||||
# info "Public IP" public_ip
|
||||
# info "Users" users
|
||||
# info "Locale" locale # This only works on glibc systems.
|
||||
|
||||
info cols
|
||||
}
|
||||
|
||||
# Title
|
||||
|
||||
|
||||
# Hide/Show Fully qualified domain name.
|
||||
#
|
||||
# Default: 'off'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --title_fqdn
|
||||
title_fqdn="off"
|
||||
|
||||
|
||||
# Kernel
|
||||
|
||||
|
||||
# Shorten the output of the kernel function.
|
||||
#
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --kernel_shorthand
|
||||
# Supports: Everything except *BSDs (except PacBSD and PC-BSD)
|
||||
#
|
||||
# Example:
|
||||
# on: '4.8.9-1-ARCH'
|
||||
# off: 'Linux 4.8.9-1-ARCH'
|
||||
kernel_shorthand="on"
|
||||
|
||||
|
||||
# Distro
|
||||
|
||||
|
||||
# Shorten the output of the distro function
|
||||
#
|
||||
# Default: 'off'
|
||||
# Values: 'on', 'tiny', 'off'
|
||||
# Flag: --distro_shorthand
|
||||
# Supports: Everything except Windows and Haiku
|
||||
distro_shorthand="off"
|
||||
|
||||
# Show/Hide OS Architecture.
|
||||
# Show 'x86_64', 'x86' and etc in 'Distro:' output.
|
||||
#
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --os_arch
|
||||
#
|
||||
# Example:
|
||||
# on: 'Arch Linux x86_64'
|
||||
# off: 'Arch Linux'
|
||||
os_arch="on"
|
||||
|
||||
|
||||
# Uptime
|
||||
|
||||
|
||||
# Shorten the output of the uptime function
|
||||
#
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'tiny', 'off'
|
||||
# Flag: --uptime_shorthand
|
||||
#
|
||||
# Example:
|
||||
# on: '2 days, 10 hours, 3 mins'
|
||||
# tiny: '2d 10h 3m'
|
||||
# off: '2 days, 10 hours, 3 minutes'
|
||||
uptime_shorthand="on"
|
||||
|
||||
|
||||
# Memory
|
||||
|
||||
|
||||
# Show memory pecentage in output.
|
||||
#
|
||||
# Default: 'off'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --memory_percent
|
||||
#
|
||||
# Example:
|
||||
# on: '1801MiB / 7881MiB (22%)'
|
||||
# off: '1801MiB / 7881MiB'
|
||||
memory_percent="off"
|
||||
|
||||
|
||||
# Packages
|
||||
|
||||
|
||||
# Show/Hide Package Manager names.
|
||||
#
|
||||
# Default: 'tiny'
|
||||
# Values: 'on', 'tiny' 'off'
|
||||
# Flag: --package_managers
|
||||
#
|
||||
# Example:
|
||||
# on: '998 (pacman), 8 (flatpak), 4 (snap)'
|
||||
# tiny: '908 (pacman, flatpak, snap)'
|
||||
# off: '908'
|
||||
package_managers="on"
|
||||
|
||||
|
||||
# Shell
|
||||
|
||||
|
||||
# Show the path to $SHELL
|
||||
#
|
||||
# Default: 'off'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --shell_path
|
||||
#
|
||||
# Example:
|
||||
# on: '/bin/bash'
|
||||
# off: 'bash'
|
||||
shell_path="off"
|
||||
|
||||
# Show $SHELL version
|
||||
#
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --shell_version
|
||||
#
|
||||
# Example:
|
||||
# on: 'bash 4.4.5'
|
||||
# off: 'bash'
|
||||
shell_version="on"
|
||||
|
||||
|
||||
# CPU
|
||||
|
||||
|
||||
# CPU speed type
|
||||
#
|
||||
# Default: 'bios_limit'
|
||||
# Values: 'scaling_cur_freq', 'scaling_min_freq', 'scaling_max_freq', 'bios_limit'.
|
||||
# Flag: --speed_type
|
||||
# Supports: Linux with 'cpufreq'
|
||||
# NOTE: Any file in '/sys/devices/system/cpu/cpu0/cpufreq' can be used as a value.
|
||||
speed_type="bios_limit"
|
||||
|
||||
# CPU speed shorthand
|
||||
#
|
||||
# Default: 'off'
|
||||
# Values: 'on', 'off'.
|
||||
# Flag: --speed_shorthand
|
||||
# NOTE: This flag is not supported in systems with CPU speed less than 1 GHz
|
||||
#
|
||||
# Example:
|
||||
# on: 'i7-6500U (4) @ 3.1GHz'
|
||||
# off: 'i7-6500U (4) @ 3.100GHz'
|
||||
speed_shorthand="of"
|
||||
|
||||
# Enable/Disable CPU brand in output.
|
||||
#
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --cpu_brand
|
||||
#
|
||||
# Example:
|
||||
# on: 'Intel i7-6500U'
|
||||
# off: 'i7-6500U (4)'
|
||||
cpu_brand="on"
|
||||
|
||||
# CPU Speed
|
||||
# Hide/Show CPU speed.
|
||||
#
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --cpu_speed
|
||||
#
|
||||
# Example:
|
||||
# on: 'Intel i7-6500U (4) @ 3.1GHz'
|
||||
# off: 'Intel i7-6500U (4)'
|
||||
cpu_speed="on"
|
||||
|
||||
# CPU Cores
|
||||
# Display CPU cores in output
|
||||
#
|
||||
# Default: 'logical'
|
||||
# Values: 'logical', 'physical', 'off'
|
||||
# Flag: --cpu_cores
|
||||
# Support: 'physical' doesn't work on BSD.
|
||||
#
|
||||
# Example:
|
||||
# logical: 'Intel i7-6500U (4) @ 3.1GHz' (All virtual cores)
|
||||
# physical: 'Intel i7-6500U (2) @ 3.1GHz' (All physical cores)
|
||||
# off: 'Intel i7-6500U @ 3.1GHz'
|
||||
cpu_cores="logical"
|
||||
|
||||
# CPU Temperature
|
||||
# Hide/Show CPU temperature.
|
||||
# Note the temperature is added to the regular CPU function.
|
||||
#
|
||||
# Default: 'off'
|
||||
# Values: 'C', 'F', 'off'
|
||||
# Flag: --cpu_temp
|
||||
# Supports: Linux, BSD
|
||||
# NOTE: For FreeBSD and NetBSD-based systems, you'll need to enable
|
||||
# coretemp kernel module. This only supports newer Intel processors.
|
||||
#
|
||||
# Example:
|
||||
# C: 'Intel i7-6500U (4) @ 3.1GHz [27.2°C]'
|
||||
# F: 'Intel i7-6500U (4) @ 3.1GHz [82.0°F]'
|
||||
# off: 'Intel i7-6500U (4) @ 3.1GHz'
|
||||
cpu_temp="C"
|
||||
|
||||
|
||||
# GPU
|
||||
|
||||
|
||||
# Enable/Disable GPU Brand
|
||||
#
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --gpu_brand
|
||||
#
|
||||
# Example:
|
||||
# on: 'AMD HD 7950'
|
||||
# off: 'HD 7950'
|
||||
gpu_brand="on"
|
||||
|
||||
# Which GPU to display
|
||||
#
|
||||
# Default: 'all'
|
||||
# Values: 'all', 'dedicated', 'integrated'
|
||||
# Flag: --gpu_type
|
||||
# Supports: Linux
|
||||
#
|
||||
# Example:
|
||||
# all:
|
||||
# GPU1: AMD HD 7950
|
||||
# GPU2: Intel Integrated Graphics
|
||||
#
|
||||
# dedicated:
|
||||
# GPU1: AMD HD 7950
|
||||
#
|
||||
# integrated:
|
||||
# GPU1: Intel Integrated Graphics
|
||||
gpu_type="all"
|
||||
|
||||
|
||||
# Resolution
|
||||
|
||||
|
||||
# Display refresh rate next to each monitor
|
||||
# Default: 'off'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --refresh_rate
|
||||
# Supports: Doesn't work on Windows.
|
||||
#
|
||||
# Example:
|
||||
# on: '1920x1080 @ 60Hz'
|
||||
# off: '1920x1080'
|
||||
refresh_rate="on"
|
||||
|
||||
|
||||
# Gtk Theme / Icons / Font
|
||||
|
||||
|
||||
# Shorten output of GTK Theme / Icons / Font
|
||||
#
|
||||
# Default: 'off'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --gtk_shorthand
|
||||
#
|
||||
# Example:
|
||||
# on: 'Numix, Adwaita'
|
||||
# off: 'Numix [GTK2], Adwaita [GTK3]'
|
||||
gtk_shorthand="off"
|
||||
|
||||
|
||||
# Enable/Disable gtk2 Theme / Icons / Font
|
||||
#
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --gtk2
|
||||
#
|
||||
# Example:
|
||||
# on: 'Numix [GTK2], Adwaita [GTK3]'
|
||||
# off: 'Adwaita [GTK3]'
|
||||
gtk2="on"
|
||||
|
||||
# Enable/Disable gtk3 Theme / Icons / Font
|
||||
#
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --gtk3
|
||||
#
|
||||
# Example:
|
||||
# on: 'Numix [GTK2], Adwaita [GTK3]'
|
||||
# off: 'Numix [GTK2]'
|
||||
gtk3="on"
|
||||
|
||||
|
||||
# IP Address
|
||||
|
||||
|
||||
# Website to ping for the public IP
|
||||
#
|
||||
# Default: 'http://ident.me'
|
||||
# Values: 'url'
|
||||
# Flag: --ip_host
|
||||
public_ip_host="http://ident.me"
|
||||
|
||||
# Public IP timeout.
|
||||
#
|
||||
# Default: '2'
|
||||
# Values: 'int'
|
||||
# Flag: --ip_timeout
|
||||
public_ip_timeout=2
|
||||
|
||||
|
||||
# Desktop Environment
|
||||
|
||||
|
||||
# Show Desktop Environment version
|
||||
#
|
||||
# Default: 'off'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --de_version
|
||||
de_version="off"
|
||||
|
||||
|
||||
# Disk
|
||||
|
||||
|
||||
# Which disks to display.
|
||||
# The values can be any /dev/sdXX, mount point or directory.
|
||||
# NOTE: By default we only show the disk info for '/'.
|
||||
#
|
||||
# Default: '/'
|
||||
# Values: '/', '/dev/sdXX', '/path/to/drive'.
|
||||
# Flag: --disk_show
|
||||
#
|
||||
# Example:
|
||||
# disk_show=('/' '/dev/sdb1'):
|
||||
# 'Disk (/): 74G / 118G (66%)'
|
||||
# 'Disk (/mnt/Videos): 823G / 893G (93%)'
|
||||
#
|
||||
# disk_show=('/'):
|
||||
# 'Disk (/): 74G / 118G (66%)'
|
||||
#
|
||||
disk_show=('/')
|
||||
|
||||
# Disk subtitle.
|
||||
# What to append to the Disk subtitle.
|
||||
#
|
||||
# Default: 'mount'
|
||||
# Values: 'mount', 'name', 'dir', 'none'
|
||||
# Flag: --disk_subtitle
|
||||
#
|
||||
# Example:
|
||||
# name: 'Disk (/dev/sda1): 74G / 118G (66%)'
|
||||
# 'Disk (/dev/sdb2): 74G / 118G (66%)'
|
||||
#
|
||||
# mount: 'Disk (/): 74G / 118G (66%)'
|
||||
# 'Disk (/mnt/Local Disk): 74G / 118G (66%)'
|
||||
# 'Disk (/mnt/Videos): 74G / 118G (66%)'
|
||||
#
|
||||
# dir: 'Disk (/): 74G / 118G (66%)'
|
||||
# 'Disk (Local Disk): 74G / 118G (66%)'
|
||||
# 'Disk (Videos): 74G / 118G (66%)'
|
||||
#
|
||||
# none: 'Disk: 74G / 118G (66%)'
|
||||
# 'Disk: 74G / 118G (66%)'
|
||||
# 'Disk: 74G / 118G (66%)'
|
||||
disk_subtitle="mount"
|
||||
|
||||
# Disk percent.
|
||||
# Show/Hide disk percent.
|
||||
#
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --disk_percent
|
||||
#
|
||||
# Example:
|
||||
# on: 'Disk (/): 74G / 118G (66%)'
|
||||
# off: 'Disk (/): 74G / 118G'
|
||||
disk_percent="on"
|
||||
|
||||
|
||||
# Song
|
||||
|
||||
|
||||
# Manually specify a music player.
|
||||
#
|
||||
# Default: 'auto'
|
||||
# Values: 'auto', 'player-name'
|
||||
# Flag: --music_player
|
||||
#
|
||||
# Available values for 'player-name':
|
||||
#
|
||||
# amarok
|
||||
# audacious
|
||||
# banshee
|
||||
# bluemindo
|
||||
# clementine
|
||||
# cmus
|
||||
# deadbeef
|
||||
# deepin-music
|
||||
# dragon
|
||||
# elisa
|
||||
# exaile
|
||||
# gnome-music
|
||||
# gmusicbrowser
|
||||
# gogglesmm
|
||||
# guayadeque
|
||||
# io.elementary.music
|
||||
# iTunes
|
||||
# juk
|
||||
# lollypop
|
||||
# mocp
|
||||
# mopidy
|
||||
# mpd
|
||||
# muine
|
||||
# netease-cloud-music
|
||||
# pogo
|
||||
# pragha
|
||||
# qmmp
|
||||
# quodlibet
|
||||
# rhythmbox
|
||||
# sayonara
|
||||
# smplayer
|
||||
# spotify
|
||||
# strawberry
|
||||
# tomahawk
|
||||
# vlc
|
||||
# xmms2d
|
||||
# xnoise
|
||||
# yarock
|
||||
music_player="auto"
|
||||
|
||||
# Format to display song information.
|
||||
#
|
||||
# Default: '%artist% - %album% - %title%'
|
||||
# Values: '%artist%', '%album%', '%title%'
|
||||
# Flag: --song_format
|
||||
#
|
||||
# Example:
|
||||
# default: 'Song: Jet - Get Born - Sgt Major'
|
||||
song_format="%artist% - %album% - %title%"
|
||||
|
||||
# Print the Artist, Album and Title on separate lines
|
||||
#
|
||||
# Default: 'off'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --song_shorthand
|
||||
#
|
||||
# Example:
|
||||
# on: 'Artist: The Fratellis'
|
||||
# 'Album: Costello Music'
|
||||
# 'Song: Chelsea Dagger'
|
||||
#
|
||||
# off: 'Song: The Fratellis - Costello Music - Chelsea Dagger'
|
||||
song_shorthand="off"
|
||||
|
||||
# 'mpc' arguments (specify a host, password etc).
|
||||
#
|
||||
# Default: ''
|
||||
# Example: mpc_args=(-h HOST -P PASSWORD)
|
||||
mpc_args=()
|
||||
|
||||
|
||||
# Text Colors
|
||||
|
||||
|
||||
# Text Colors
|
||||
#
|
||||
# Default: 'distro'
|
||||
# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
|
||||
# Flag: --colors
|
||||
#
|
||||
# Each number represents a different part of the text in
|
||||
# this order: 'title', '@', 'underline', 'subtitle', 'colon', 'info'
|
||||
#
|
||||
# Example:
|
||||
# colors=(distro) - Text is colored based on Distro colors.
|
||||
# colors=(4 6 1 8 8 6) - Text is colored in the order above.
|
||||
colors=(distro)
|
||||
|
||||
|
||||
# Text Options
|
||||
|
||||
|
||||
# Toggle bold text
|
||||
#
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --bold
|
||||
bold="on"
|
||||
|
||||
# Enable/Disable Underline
|
||||
#
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --underline
|
||||
underline_enabled="on"
|
||||
|
||||
# Underline character
|
||||
#
|
||||
# Default: '-'
|
||||
# Values: 'string'
|
||||
# Flag: --underline_char
|
||||
underline_char="-"
|
||||
|
||||
|
||||
# Info Separator
|
||||
# Replace the default separator with the specified string.
|
||||
#
|
||||
# Default: ':'
|
||||
# Flag: --separator
|
||||
#
|
||||
# Example:
|
||||
# separator="->": 'Shell-> bash'
|
||||
# separator=" =": 'WM = dwm'
|
||||
separator=":"
|
||||
|
||||
|
||||
# Color Blocks
|
||||
|
||||
|
||||
# Color block range
|
||||
# The range of colors to print.
|
||||
#
|
||||
# Default: '0', '15'
|
||||
# Values: 'num'
|
||||
# Flag: --block_range
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# Display colors 0-7 in the blocks. (8 colors)
|
||||
# neofetch --block_range 0 7
|
||||
#
|
||||
# Display colors 0-15 in the blocks. (16 colors)
|
||||
# neofetch --block_range 0 15
|
||||
block_range=(0 15)
|
||||
|
||||
# Toggle color blocks
|
||||
#
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --color_blocks
|
||||
color_blocks="on"
|
||||
|
||||
# Color block width in spaces
|
||||
#
|
||||
# Default: '3'
|
||||
# Values: 'num'
|
||||
# Flag: --block_width
|
||||
block_width=3
|
||||
|
||||
# Color block height in lines
|
||||
#
|
||||
# Default: '1'
|
||||
# Values: 'num'
|
||||
# Flag: --block_height
|
||||
block_height=1
|
||||
|
||||
# Color Alignment
|
||||
#
|
||||
# Default: 'auto'
|
||||
# Values: 'auto', 'num'
|
||||
# Flag: --col_offset
|
||||
#
|
||||
# Number specifies how far from the left side of the terminal (in spaces) to
|
||||
# begin printing the columns, in case you want to e.g. center them under your
|
||||
# text.
|
||||
# Example:
|
||||
# col_offset="auto" - Default behavior of neofetch
|
||||
# col_offset=7 - Leave 7 spaces then print the colors
|
||||
col_offset="auto"
|
||||
|
||||
# Progress Bars
|
||||
|
||||
|
||||
# Bar characters
|
||||
#
|
||||
# Default: '-', '='
|
||||
# Values: 'string', 'string'
|
||||
# Flag: --bar_char
|
||||
#
|
||||
# Example:
|
||||
# neofetch --bar_char 'elapsed' 'total'
|
||||
# neofetch --bar_char '-' '='
|
||||
bar_char_elapsed="-"
|
||||
bar_char_total="="
|
||||
|
||||
# Toggle Bar border
|
||||
#
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --bar_border
|
||||
bar_border="on"
|
||||
|
||||
# Progress bar length in spaces
|
||||
# Number of chars long to make the progress bars.
|
||||
#
|
||||
# Default: '15'
|
||||
# Values: 'num'
|
||||
# Flag: --bar_length
|
||||
bar_length=15
|
||||
|
||||
# Progress bar colors
|
||||
# When set to distro, uses your distro's logo colors.
|
||||
#
|
||||
# Default: 'distro', 'distro'
|
||||
# Values: 'distro', 'num'
|
||||
# Flag: --bar_colors
|
||||
#
|
||||
# Example:
|
||||
# neofetch --bar_colors 3 4
|
||||
# neofetch --bar_colors distro 5
|
||||
bar_color_elapsed="distro"
|
||||
bar_color_total="distro"
|
||||
|
||||
|
||||
# Info display
|
||||
# Display a bar with the info.
|
||||
#
|
||||
# Default: 'off'
|
||||
# Values: 'bar', 'infobar', 'barinfo', 'off'
|
||||
# Flags: --cpu_display
|
||||
# --memory_display
|
||||
# --battery_display
|
||||
# --disk_display
|
||||
#
|
||||
# Example:
|
||||
# bar: '[---=======]'
|
||||
# infobar: 'info [---=======]'
|
||||
# barinfo: '[---=======] info'
|
||||
# off: 'info'
|
||||
cpu_display="off"
|
||||
memory_display="off"
|
||||
battery_display="off"
|
||||
disk_display="off"
|
||||
|
||||
|
||||
# Backend Settings
|
||||
|
||||
|
||||
# Image backend.
|
||||
#
|
||||
# Default: 'ascii'
|
||||
# Values: 'ascii', 'caca', 'chafa', 'jp2a', 'iterm2', 'off',
|
||||
# 'termpix', 'pixterm', 'tycat', 'w3m', 'kitty'
|
||||
# Flag: --backend
|
||||
image_backend="ascii"
|
||||
|
||||
# Image Source
|
||||
#
|
||||
# Which image or ascii file to display.
|
||||
#
|
||||
# Default: 'auto'
|
||||
# Values: 'auto', 'ascii', 'wallpaper', '/path/to/img', '/path/to/ascii', '/path/to/dir/'
|
||||
# 'command output (neofetch --ascii "$(fortune | cowsay -W 30)")'
|
||||
# Flag: --source
|
||||
#
|
||||
# NOTE: 'auto' will pick the best image source for whatever image backend is used.
|
||||
# In ascii mode, distro ascii art will be used and in an image mode, your
|
||||
# wallpaper will be used.
|
||||
image_source="auto"
|
||||
|
||||
|
||||
# Ascii Options
|
||||
|
||||
|
||||
# Ascii distro
|
||||
# Which distro's ascii art to display.
|
||||
#
|
||||
# Default: 'auto'
|
||||
# Values: 'auto', 'distro_name'
|
||||
# Flag: --ascii_distro
|
||||
# NOTE: AIX, Alpine, Anarchy, Android, Antergos, antiX, AOSC,
|
||||
# Apricity, ArcoLinux, ArchBox, ARCHlabs, ArchStrike,
|
||||
# XFerience, ArchMerge, Arch, Artix, Arya, Bedrock, Bitrig,
|
||||
# BlackArch, BLAG, BlankOn, BlueLight, bonsai, BSD,
|
||||
# BunsenLabs, Calculate, Carbs, CentOS, Chakra, ChaletOS,
|
||||
# Chapeau, Chrom*, Cleanjaro, ClearOS, Clear_Linux, Clover,
|
||||
# Condres, Container_Linux, CRUX, Cucumber, Debian, Deepin,
|
||||
# DesaOS, Devuan, DracOS, DragonFly, Drauger, Elementary,
|
||||
# EndeavourOS, Endless, EuroLinux, Exherbo, Fedora, Feren, FreeBSD,
|
||||
# FreeMiNT, Frugalware, Funtoo, GalliumOS, Gentoo, Pentoo,
|
||||
# gNewSense, GNU, GoboLinux, Grombyang, Guix, Haiku, Huayra,
|
||||
# Hyperbola, janus, Kali, KaOS, KDE_neon, Kibojoe, Kogaion,
|
||||
# Korora, KSLinux, Kubuntu, LEDE, LFS, Linux_Lite,
|
||||
# LMDE, Lubuntu, Lunar, macos, Mageia, MagpieOS, Mandriva,
|
||||
# Manjaro, Maui, Mer, Minix, LinuxMint, MX_Linux, Namib,
|
||||
# Neptune, NetBSD, Netrunner, Nitrux, NixOS, Nurunner,
|
||||
# NuTyX, OBRevenge, OpenBSD, OpenIndiana, OpenMandriva,
|
||||
# OpenWrt, osmc, Oracle, PacBSD, Parabola, Pardus, Parrot,
|
||||
# Parsix, TrueOS, PCLinuxOS, Peppermint, popos, Porteus,
|
||||
# PostMarketOS, Proxmox, Puppy, PureOS, Qubes, Radix, Raspbian,
|
||||
# Reborn_OS, Redstar, Redcore, Redhat, Refracted_Devuan, Regata,
|
||||
# Rosa, sabotage, Sabayon, Sailfish, SalentOS, Scientific, Septor,
|
||||
# SharkLinux, Siduction, Slackware, SliTaz, SmartOS, Solus,
|
||||
# Source_Mage, Sparky, Star, SteamOS, SunOS, openSUSE_Leap,
|
||||
# openSUSE_Tumbleweed, openSUSE, SwagArch, Tails, Trisquel,
|
||||
# Ubuntu-Budgie, Ubuntu-GNOME, Ubuntu-MATE, Ubuntu-Studio, Ubuntu,
|
||||
# Void, Obarun, windows10, Windows7, Xubuntu, Zorin, and IRIX
|
||||
# have ascii logos
|
||||
# NOTE: Arch, Ubuntu, Redhat, and Dragonfly have 'old' logo variants.
|
||||
# Use '{distro name}_old' to use the old logos.
|
||||
# NOTE: Ubuntu has flavor variants.
|
||||
# Change this to Lubuntu, Kubuntu, Xubuntu, Ubuntu-GNOME,
|
||||
# Ubuntu-Studio, Ubuntu-Mate or Ubuntu-Budgie to use the flavors.
|
||||
# NOTE: Arcolinux, Dragonfly, Fedora, Alpine, Arch, Ubuntu,
|
||||
# CRUX, Debian, Gentoo, FreeBSD, Mac, NixOS, OpenBSD, android,
|
||||
# Antrix, CentOS, Cleanjaro, ElementaryOS, GUIX, Hyperbola,
|
||||
# Manjaro, MXLinux, NetBSD, Parabola, POP_OS, PureOS,
|
||||
# Slackware, SunOS, LinuxLite, OpenSUSE, Raspbian,
|
||||
# postmarketOS, and Void have a smaller logo variant.
|
||||
# Use '{distro name}_small' to use the small variants.
|
||||
ascii_distro="auto"
|
||||
|
||||
# Ascii Colors
|
||||
#
|
||||
# Default: 'distro'
|
||||
# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
|
||||
# Flag: --ascii_colors
|
||||
#
|
||||
# Example:
|
||||
# ascii_colors=(distro) - Ascii is colored based on Distro colors.
|
||||
# ascii_colors=(4 6 1 8 8 6) - Ascii is colored using these colors.
|
||||
ascii_colors=(distro)
|
||||
|
||||
# Bold ascii logo
|
||||
# Whether or not to bold the ascii logo.
|
||||
#
|
||||
# Default: 'on'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --ascii_bold
|
||||
ascii_bold="on"
|
||||
|
||||
|
||||
# Image Options
|
||||
|
||||
|
||||
# Image loop
|
||||
# Setting this to on will make neofetch redraw the image constantly until
|
||||
# Ctrl+C is pressed. This fixes display issues in some terminal emulators.
|
||||
#
|
||||
# Default: 'off'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --loop
|
||||
image_loop="off"
|
||||
|
||||
# Thumbnail directory
|
||||
#
|
||||
# Default: '~/.cache/thumbnails/neofetch'
|
||||
# Values: 'dir'
|
||||
thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"
|
||||
|
||||
# Crop mode
|
||||
#
|
||||
# Default: 'normal'
|
||||
# Values: 'normal', 'fit', 'fill'
|
||||
# Flag: --crop_mode
|
||||
#
|
||||
# See this wiki page to learn about the fit and fill options.
|
||||
# https://github.com/dylanaraps/neofetch/wiki/What-is-Waifu-Crop%3F
|
||||
crop_mode="normal"
|
||||
|
||||
# Crop offset
|
||||
# Note: Only affects 'normal' crop mode.
|
||||
#
|
||||
# Default: 'center'
|
||||
# Values: 'northwest', 'north', 'northeast', 'west', 'center'
|
||||
# 'east', 'southwest', 'south', 'southeast'
|
||||
# Flag: --crop_offset
|
||||
crop_offset="center"
|
||||
|
||||
# Image size
|
||||
# The image is half the terminal width by default.
|
||||
#
|
||||
# Default: 'auto'
|
||||
# Values: 'auto', '00px', '00%', 'none'
|
||||
# Flags: --image_size
|
||||
# --size
|
||||
image_size="auto"
|
||||
|
||||
# Gap between image and text
|
||||
#
|
||||
# Default: '3'
|
||||
# Values: 'num', '-num'
|
||||
# Flag: --gap
|
||||
gap=3
|
||||
|
||||
# Image offsets
|
||||
# Only works with the w3m backend.
|
||||
#
|
||||
# Default: '0'
|
||||
# Values: 'px'
|
||||
# Flags: --xoffset
|
||||
# --yoffset
|
||||
yoffset=0
|
||||
xoffset=0
|
||||
|
||||
# Image background color
|
||||
# Only works with the w3m backend.
|
||||
#
|
||||
# Default: ''
|
||||
# Values: 'color', 'blue'
|
||||
# Flag: --bg_color
|
||||
background_color=
|
||||
|
||||
|
||||
# Misc Options
|
||||
|
||||
# Stdout mode
|
||||
# Turn off all colors and disables image backend (ASCII/Image).
|
||||
# Useful for piping into another command.
|
||||
# Default: 'off'
|
||||
# Values: 'on', 'off'
|
||||
stdout="off"
|
33
.config/rofi/config
Normal file
33
.config/rofi/config
Normal file
@ -0,0 +1,33 @@
|
||||
rofi.color-enabled: true
|
||||
|
||||
! Window: 'background', 'border', 'separator'
|
||||
rofi.color-window: argb:cc252936, #9575cd, argb:ffffffff
|
||||
|
||||
! State: 'bg', 'fg', 'altbg', 'hlbg', hlfg
|
||||
rofi.color-normal: argb:00252936, #ffffff, argb:00252936, argb:009575cd, #ff9575cd
|
||||
rofi.color-active: argb:00252936, #252936, argb:00252936, argb:009575cd, #ffc000
|
||||
rofi.color-urgent: argb:00252936, #ff0000, argb:00252936, argb:00252936, #ff0000
|
||||
|
||||
rofi.width: 100
|
||||
rofi.padding: 400
|
||||
rofi.line-margin: 15
|
||||
rofi.lines: 5
|
||||
rofi.separator-style: none
|
||||
rofi.columns: 1
|
||||
rofi.font: Agave Nerd Font 22
|
||||
rofi.bw: 0
|
||||
rofi.eh: 2
|
||||
rofi.hide-scrollbar: true
|
||||
rofi.auto-select: true
|
||||
|
||||
rofi.terminal: alacritty
|
||||
rofi.ssh-client: ssh
|
||||
rofi.ssh-command: {terminal} -e {ssh-client} {host}
|
||||
rofi.run-command: {cmd}
|
||||
rofi.run-shell-command: {terminal} -e {cmd}
|
||||
rofi.disable-history: false
|
||||
rofi.levenshtein-sort: false
|
||||
rofi.case-sensitive: false
|
||||
rofi.auto-select: false
|
||||
rofi.parse-hosts: false
|
||||
rofi.parse-known-hosts: false
|
70
.config/spectrwm/bar
Executable file
70
.config/spectrwm/bar
Executable file
@ -0,0 +1,70 @@
|
||||
#! /usr/bin/env bash
|
||||
|
||||
entropy() {
|
||||
entropy=$(cat /proc/sys/kernel/random/entropy_avail)
|
||||
echo -e "Entr.: $entropy"
|
||||
}
|
||||
|
||||
iface() {
|
||||
# if Docker isn't installed, write '1p' insted of '2p'
|
||||
# iface=$(ls /sys/class/net/ | tr " " "\n" | sed -n '2p')
|
||||
# ip=$(ip addr show $iface | awk '{print $2}' | sed -n '3p')
|
||||
# echo -e "$iface: $ip"
|
||||
ip=$(hostname -i)
|
||||
echo -e "IP: $ip"
|
||||
}
|
||||
|
||||
kernelver() {
|
||||
kernelver=$(uname -r)
|
||||
echo -e "Kernel: $kernelver"
|
||||
}
|
||||
|
||||
home() {
|
||||
# disk=$(df -h | awk 'NR==9{print $3, $5}')
|
||||
home=$(df -h | awk 'NR==9{print $3}')
|
||||
echo -e "/home: $home"
|
||||
}
|
||||
|
||||
root() {
|
||||
# disk=$(df -h | awk 'NR==4{print $3, $5}')
|
||||
root=$(df -h | awk 'NR==4{print $3}')
|
||||
echo -e "/: $root"
|
||||
}
|
||||
|
||||
memory() {
|
||||
# memory=$(free | awk '/Mem/ {printf "%dMB / %dMB\n", $3 / 1024.0, $2 / 1024.0 }')
|
||||
memory=$(free | awk '/Mem/ {printf "%d MB\n", $3 / 1024.0, $2 / 1024.0 }')
|
||||
echo -e "RAM: $memory"
|
||||
}
|
||||
|
||||
cpu() {
|
||||
cpu=$(top -bn1 | grep "Cpu(s)" | sed "s/.*, *\([0-9.]*\)%* id.*/\1/" | awk '{print 100 - $1"%"}')
|
||||
echo -e "CPU: $cpu"
|
||||
}
|
||||
|
||||
battery() {
|
||||
battery=$(cat /sys/class/power_supply/BAT0/capacity)
|
||||
echo -e "Bat.: $battery%"
|
||||
}
|
||||
|
||||
volume() {
|
||||
volume=$(amixer get Master | awk -F'[][]' 'END{ print $4":"$2 }' | sed 's/on://g')
|
||||
echo -e "Vol.: $volume"
|
||||
}
|
||||
|
||||
brightness() {
|
||||
brightness=$(xbacklight -get | sed 's/\..*$//')
|
||||
echo -e "Bright.: $brightness%"
|
||||
}
|
||||
|
||||
strengthness() {
|
||||
strengthness=$(iwconfig wlp2s0 | grep -oP -- '-\d+ dBm')
|
||||
echo -e "Wi-Fi stren.: $strengthness"
|
||||
}
|
||||
|
||||
SLEEP_SEC=5
|
||||
|
||||
while :; do
|
||||
echo "$(volume) | $(battery) | $(memory) | $(strengthness) | $(home) |"
|
||||
sleep $SLEEP_SEC
|
||||
done
|
170
.config/spectrwm/spectrwm.conf
Normal file
170
.config/spectrwm/spectrwm.conf
Normal file
@ -0,0 +1,170 @@
|
||||
# PLEASE READ THE MAN PAGE BEFORE EDITING THIS FILE!
|
||||
# https://htmlpreview.github.io/?https://github.com/conformal/spectrwm/blob/master/spectrwm.html
|
||||
# NOTE: all rgb color values in this file are in hex! see XQueryColor for examples
|
||||
|
||||
workspace_limit = 9
|
||||
focus_mode = follow
|
||||
focus_close = last
|
||||
focus_close_wrap = 1
|
||||
focus_default = first
|
||||
spawn_position = next
|
||||
workspace_clamp = 0
|
||||
warp_focus = 1
|
||||
warp_pointer = 1
|
||||
|
||||
# Window Decoration
|
||||
border_width = 0
|
||||
color_focus = rgb:bb/c5/ff
|
||||
color_focus_maximized = yellow
|
||||
color_unfocus = rgb:88/88/88
|
||||
color_unfocus_maximized = rgb:88/88/00
|
||||
region_padding = 5
|
||||
tile_gap = 5
|
||||
|
||||
# Region containment
|
||||
# Distance window must be dragged/resized beyond the region edge before it is
|
||||
# allowed outside the region.
|
||||
# boundary_width = 50
|
||||
|
||||
# Remove window border when bar is disabled and there is only one window in workspace
|
||||
# disable_border = 1
|
||||
|
||||
# Bar Settings
|
||||
bar_enabled = 1
|
||||
bar_border_width = 4
|
||||
bar_border[1] = rgb:28/2a/36
|
||||
bar_border_unfocus[1] = rgb:28/2a/36
|
||||
bar_color[1] = rgb:28/2a/36, rgb:00/80/80
|
||||
bar_color_selected[1] = rgb:00/80/80
|
||||
bar_font_color[1] = rgb:bb/c5/ff, rgb:e1/ac/ff, rgb:dd/ff/a7, rgb:ff/8b/92, rgb:ff/e5/85, rgb:89/dd/ff
|
||||
bar_font_color_selected = black
|
||||
bar_font = Agave Nerd Font:size=14:antialias:true
|
||||
bar_action = ~/.config/spectrwm/bar
|
||||
bar_justify = left
|
||||
# bar_format = +|L+1<+N:+I +S (+D) +W +|R+A %a %b %d %R
|
||||
# bar_format = +I +W +|R+A %a %b %d %R
|
||||
bar_format = +I +W +|R+A (%a) %F %I:%M %p
|
||||
workspace_indicator = listcurrent,listactive,markcurrent,printnames
|
||||
bar_at_bottom = 0
|
||||
stack_enabled = 1
|
||||
clock_enabled = 1
|
||||
clock_format = %a %b %d %R %Z %Y
|
||||
iconic_enabled = 0
|
||||
maximize_hide_bar = 0
|
||||
window_class_enabled = 1
|
||||
window_instance_enabled = 1
|
||||
window_name_enabled = 1
|
||||
verbose_layout = 1
|
||||
urgent_enabled = 1
|
||||
|
||||
# Dialog box size ratio when using TRANSSZ quirk; 0.3 < dialog_ratio <= 1.0
|
||||
# dialog_ratio = 0.6
|
||||
|
||||
# Split a non-RandR dual head setup into one region per monitor
|
||||
# (non-standard driver-based multihead is not seen by spectrwm)
|
||||
# region = screen[1]:1280x1024+0+0
|
||||
# region = screen[1]:1280x1024+1280+0
|
||||
|
||||
# Launch applications in a workspace of choice
|
||||
autorun = ws[1]:/usr/bin/redshift -P -O 3000
|
||||
# autorun = ws[2]:xombrero http://www.openbsd.org
|
||||
|
||||
# Customize workspace layout at start
|
||||
# layout = ws[1]:4:0:0:0:vertical
|
||||
# layout = ws[2]:0:0:0:0:horizontal
|
||||
# layout = ws[3]:0:0:0:0:fullscreen
|
||||
# layout = ws[4]:4:0:0:0:vertical_flip
|
||||
# layout = ws[5]:0:0:0:0:horizontal_flip
|
||||
|
||||
# Set workspace name at start
|
||||
# name = ws[1]:term
|
||||
# name = ws[2]:www
|
||||
# name = ws[3]:Browse
|
||||
# name = ws[10]:Music
|
||||
|
||||
# Mod key, (Windows key is Mod4) (Apple key on OSX is Mod2)
|
||||
modkey = Mod4
|
||||
|
||||
# This allows you to include pre-defined key bindings for your keyboard layout.
|
||||
keyboard_mapping = ~/.config/spectrwm/spectrwm_fr.conf
|
||||
|
||||
# PROGRAMS
|
||||
|
||||
program[raise_volume] = pulseaudio-ctl up
|
||||
program[lower_volume] = pulseaudio-ctl down
|
||||
program[mute_volume] = pulseaudio-ctl mute
|
||||
|
||||
bind[raise_volume] = XF86AudioRaiseVolume
|
||||
bind[lower_volume] = XF86AudioLowerVolume
|
||||
bind[mute_volume] = XF86AudioMute
|
||||
|
||||
program[raise_bright] = xbacklight -inc 10
|
||||
program[lower_bright] = xbacklight -dec 10
|
||||
|
||||
bind[raise_bright] = XF86MonBrightnessUp
|
||||
bind[lower_bright] = XF86MonBrightnessDown
|
||||
|
||||
#program[raise_backlite] = XF86KbdBrightnessUp
|
||||
#program[lower_backlite] = XF86KbdBrightnessDown
|
||||
|
||||
#bind[raise_backlite] =
|
||||
#bind[lower_backlite] =
|
||||
|
||||
program[lock] = slock
|
||||
bind[lock] = MOD+l
|
||||
|
||||
program[alacritty] = alacritty -e fish
|
||||
bind[alacritty] = MOD+Return
|
||||
|
||||
program[rofi] = rofi -show run
|
||||
bind[rofi] = MOD+r
|
||||
|
||||
program[rofi-ssh] = rofi -show ssh
|
||||
bind[rofi-ssh] = MOD+s
|
||||
|
||||
program[firefox] = firefox
|
||||
bind[firefox] = MOD+w
|
||||
|
||||
program[intellij] = intellij-idea-ultimate-edition
|
||||
bind[intellij] = MOD+i
|
||||
|
||||
#program[chrome] = google-chrome-stable
|
||||
#bind[chrome] = MOD+g
|
||||
|
||||
# Validated default programs:
|
||||
# program[lock] = xlock
|
||||
# program[term] = xterm
|
||||
# program[menu] = dmenu_run $dmenu_bottom -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_color_selected -sf $bar_font_color_selected
|
||||
# program[search] = dmenu $dmenu_bottom -i -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_color_selected -sf $bar_font_color_selected
|
||||
# program[name_workspace] = dmenu $dmenu_bottom -p Workspace -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_color_selected -sf $bar_font_color_selected
|
||||
|
||||
# To disable validation of the above, free the respective binding(s):
|
||||
# bind[] = MOD+Shift+Delete # disable lock
|
||||
# bind[] = MOD+Shift+Return # disable term
|
||||
# bind[] = MOD+p # disable menu
|
||||
|
||||
# Optional default programs that will only be validated if you override:
|
||||
# program[screenshot_all] = screenshot.sh full # optional
|
||||
# program[screenshot_wind] = screenshot.sh window # optional
|
||||
# program[initscr] = initscreen.sh # optional
|
||||
|
||||
# EXAMPLE: Define 'firefox' action and bind to key.
|
||||
# program[firefox] = firefox http://spectrwm.org/
|
||||
# bind[firefox] = MOD+Shift+b
|
||||
|
||||
# QUIRKS
|
||||
# Default quirks, remove with: quirk[class:name] = NONE
|
||||
# quirk[MPlayer:xv] = FLOAT + FULLSCREEN + FOCUSPREV
|
||||
# quirk[OpenOffice.org 2.4:VCLSalFrame] = FLOAT
|
||||
# quirk[OpenOffice.org 3.0:VCLSalFrame] = FLOAT
|
||||
# quirk[OpenOffice.org 3.1:VCLSalFrame] = FLOAT
|
||||
# quirk[Firefox-bin:firefox-bin] = TRANSSZ
|
||||
# quirk[Firefox:Dialog] = FLOAT
|
||||
# quirk[Gimp:gimp] = FLOAT + ANYWHERE
|
||||
# quirk[XTerm:xterm] = XTERM_FONTADJ
|
||||
# quirk[xine:Xine Window] = FLOAT + ANYWHERE
|
||||
# quirk[Xitk:Xitk Combo] = FLOAT + ANYWHERE
|
||||
# quirk[xine:xine Panel] = FLOAT + ANYWHERE
|
||||
# quirk[Xitk:Xine Window] = FLOAT + ANYWHERE
|
||||
# quirk[xine:xine Video Fullscreen Window] = FULLSCREEN + FLOAT
|
||||
# quirk[pcb:pcb] = FLOAT
|
122
.config/spectrwm/spectrwm_fr.conf
Normal file
122
.config/spectrwm/spectrwm_fr.conf
Normal file
@ -0,0 +1,122 @@
|
||||
# Key bindings for French (fr) keyboards
|
||||
# unbind with: bind[] = <keys>
|
||||
|
||||
bind[bar_toggle] = MOD+b
|
||||
bind[bar_toggle_ws] = MOD+Shift+b
|
||||
#bind[button2] = MOD+v
|
||||
#bind[cycle_layout] = MOD+space
|
||||
#bind[flip_layout] = MOD+z
|
||||
bind[float_toggle] = MOD+t
|
||||
#bind[focus_main] = MOD+m
|
||||
#bind[focus_next] = MOD+j
|
||||
bind[focus_next] = MOD+Tab
|
||||
#bind[focus_prev] = MOD+k
|
||||
bind[focus_prev] = MOD+Shift+Tab
|
||||
#bind[focus_urgent] = MOD+u
|
||||
bind[height_grow] = MOD+i
|
||||
bind[height_shrink] = MOD+k
|
||||
#bind[iconify] = MOD+w
|
||||
#bind[initscr] = MOD+Shift+i
|
||||
#bind[lock] = MOD+Shift+Delete
|
||||
bind[master_add] = MOD+h
|
||||
bind[master_del] = MOD+v
|
||||
bind[master_grow] = MOD+z
|
||||
bind[master_shrink] = MOD+a
|
||||
bind[maximize_toggle] = MOD+f
|
||||
bind[menu] = MOD+p
|
||||
#bind[move_down] = MOD+Shift+asterisk
|
||||
#bind[move_left] = MOD+ugrave
|
||||
#bind[move_right] = MOD+asterisk
|
||||
#bind[move_up] = MOD+shift+ugrave
|
||||
#bind[mvrg_1] = MOD+Shift+KP_End
|
||||
#bind[mvrg_2] = MOD+Shift+KP_Down
|
||||
#bind[mvrg_3] = MOD+Shift+KP_Next
|
||||
#bind[mvrg_4] = MOD+Shift+KP_Left
|
||||
#bind[mvrg_5] = MOD+Shift+KP_Begin
|
||||
#bind[mvrg_6] = MOD+Shift+KP_Right
|
||||
#bind[mvrg_7] = MOD+Shift+KP_Home
|
||||
#bind[mvrg_8] = MOD+Shift+KP_Up
|
||||
#bind[mvrg_9] = MOD+Shift+KP_Prior
|
||||
bind[mvws_1] = MOD+Shift+ampersand
|
||||
bind[mvws_2] = MOD+Shift+eacute
|
||||
bind[mvws_3] = MOD+Shift+quotedbl
|
||||
bind[mvws_4] = MOD+Shift+apostrophe
|
||||
bind[mvws_5] = MOD+Shift+parenleft
|
||||
bind[mvws_6] = MOD+Shift+minus
|
||||
bind[mvws_7] = MOD+Shift+egrave
|
||||
bind[mvws_8] = MOD+Shift+underscore
|
||||
bind[mvws_9] = MOD+Shift+ccedilla
|
||||
#bind[mvws_10] = MOD+Shift+agrave
|
||||
#bind[mvws_11] = MOD+Shift+F1
|
||||
#bind[mvws_12] = MOD+Shift+F2
|
||||
#bind[mvws_13] = MOD+Shift+F3
|
||||
#bind[mvws_14] = MOD+Shift+F4
|
||||
#bind[mvws_15] = MOD+Shift+F5
|
||||
#bind[mvws_16] = MOD+Shift+F6
|
||||
#bind[mvws_17] = MOD+Shift+F7
|
||||
#bind[mvws_18] = MOD+Shift+F8
|
||||
#bind[mvws_19] = MOD+Shift+F9
|
||||
#bind[mvws_20] = MOD+Shift+F10
|
||||
#bind[mvws_21] = MOD+Shift+F11
|
||||
#bind[mvws_22] = MOD+Shift+F12
|
||||
#bind[name_workspace] = MOD+Shift+slash
|
||||
bind[quit] = MOD+Shift+q
|
||||
#bind[raise_toggle] = MOD+Shift+r
|
||||
bind[restart] = MOD+Shift+r
|
||||
#bind[rg_1] = MOD+KP_End
|
||||
#bind[rg_2] = MOD+KP_Down
|
||||
#bind[rg_3] = MOD+KP_Next
|
||||
#bind[rg_4] = MOD+KP_Left
|
||||
#bind[rg_5] = MOD+KP_Begin
|
||||
#bind[rg_6] = MOD+KP_Right
|
||||
#bind[rg_7] = MOD+KP_Home
|
||||
#bind[rg_8] = MOD+KP_Up
|
||||
#bind[rg_9] = MOD+KP_Prior
|
||||
#bind[rg_next] = MOD+Shift+Right
|
||||
#bind[rg_prev] = MOD+Shift+Left
|
||||
#bind[screenshot_all] = MOD+s
|
||||
#bind[screenshot_wind] = MOD+Shift+s
|
||||
#bind[search_win] = MOD+f
|
||||
#bind[search_workspace] = MOD+slash
|
||||
bind[stack_dec] = MOD+semicolon
|
||||
bind[stack_inc] = MOD+comma
|
||||
bind[stack_reset] = MOD+Shift+space
|
||||
#bind[swap_main] = MOD+Return
|
||||
bind[swap_next] = MOD+Shift+j
|
||||
bind[swap_prev] = MOD+Shift+k
|
||||
#bind[term] = MOD+Shift+Return
|
||||
#bind[uniconify] = MOD+Shift+w
|
||||
#bind[version] = MOD+Shift+v
|
||||
#bind[width_grow] = MOD+l
|
||||
#bind[width_shrink] = MOD+j
|
||||
#bind[wind_del] = MOD+x
|
||||
bind[wind_kill] = MOD+c
|
||||
bind[ws_1] = MOD+ampersand
|
||||
bind[ws_2] = MOD+eacute
|
||||
bind[ws_3] = MOD+quotedbl
|
||||
bind[ws_4] = MOD+apostrophe
|
||||
bind[ws_5] = MOD+parenleft
|
||||
bind[ws_6] = MOD+minus
|
||||
bind[ws_7] = MOD+egrave
|
||||
bind[ws_8] = MOD+underscore
|
||||
bind[ws_9] = MOD+ccedilla
|
||||
#bind[ws_10] = MOD+agrave
|
||||
#bind[ws_11] = MOD+F1
|
||||
#bind[ws_12] = MOD+F2
|
||||
#bind[ws_13] = MOD+F3
|
||||
#bind[ws_14] = MOD+F4
|
||||
#bind[ws_15] = MOD+F5
|
||||
#bind[ws_16] = MOD+F6
|
||||
#bind[ws_17] = MOD+F7
|
||||
#bind[ws_18] = MOD+F8
|
||||
#bind[ws_19] = MOD+F9
|
||||
#bind[ws_20] = MOD+F10
|
||||
#bind[ws_21] = MOD+F11
|
||||
#bind[ws_22] = MOD+F12
|
||||
#bind[ws_next] = MOD+Right
|
||||
#bind[ws_next_all] = MOD+Up
|
||||
#bind[ws_next_move] = MOD+Shift+Up
|
||||
#bind[ws_prev] = MOD+Left
|
||||
#bind[ws_prev_all] = MOD+Down
|
||||
#bind[ws_prev_move] = MOD+Shift+Down
|
||||
#bind[ws_prior] = MOD+a
|
1
.config/yubikey-touch-detector/service.conf
Normal file
1
.config/yubikey-touch-detector/service.conf
Normal file
@ -0,0 +1 @@
|
||||
YUBIKEY_TOUCH_DETECTOR_LIBNOTIFY=true
|
3
.fehbg
Executable file
3
.fehbg
Executable file
@ -0,0 +1,3 @@
|
||||
#! /usr/bin/env fish
|
||||
|
||||
/usr/bin/feh --no-fehbg --bg-scale '~/Pictures/wallpaper.jpg'
|
5
.tmux.conf
Normal file
5
.tmux.conf
Normal file
@ -0,0 +1,5 @@
|
||||
set -g default-terminal xterm-256color
|
||||
|
||||
set -g default-command /usr/bin/fish
|
||||
|
||||
set -g default-shell /usr/bin/fish
|
27
.xinitrc
Normal file
27
.xinitrc
Normal file
@ -0,0 +1,27 @@
|
||||
#! /usr/bin/env bash
|
||||
|
||||
# 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
|
||||
|
||||
# set the keyboard using the X keyboard extension
|
||||
/usr/bin/setxkbmap fr
|
||||
|
||||
# activate numlock on bootup
|
||||
/usr/bin/numlockx
|
||||
|
||||
# fire up xautolock in case of inactivity under X
|
||||
/usr/bin/xautolock -time 3 -locker slock &
|
||||
|
||||
# set the backgroup
|
||||
~/.fehbg
|
||||
|
||||
# launch dunst
|
||||
/usr/bin/dunst &
|
||||
|
||||
# launch spectrwm
|
||||
exec spectrwm
|
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2020 Adrien
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
194
README.md
Normal file
194
README.md
Normal file
@ -0,0 +1,194 @@
|
||||
# dotfiles
|
||||
|
||||
## Bulk commands
|
||||
```
|
||||
yay -S spectrwm fish openssh rofi xorg xorg-server scrot xorg-xinit alacritty ranger feh nerd-fonts-complete xf86-video-intel firefox cifs-utils pulseaudio-alsa pulseaudio-ctl slock xautolock zip unzip alsa-utils redshift-minimal numlockx usbutils cmatrix yubikey-touch-detector
|
||||
cp dotfiles/.xinitrc ~/.xinitrc
|
||||
cp dotfiles/.fehbg ~/.fehbg
|
||||
chmod +x ~/.fehbg
|
||||
cp dotfiles/.bash_profile ~/.bash_profile
|
||||
mkdir -p ~/.config/{spectrwm,alacritty,rofi,fish/{functions}}
|
||||
cp dotfiles/.config/spectrwm/spectrwm.conf ~/.config/spectrwm/spectrwm.conf
|
||||
cp dotfiles/.config/spectrwm/spectrwm_fr.conf ~/.config/spectrwm/spectrwm_fr.conf
|
||||
cp dotfiles/.config/spectrwm/bar ~/.config/spectrwm/bar
|
||||
cp dotfiles/.config/alacritty/alcaritty.yml ~/.config/alacritty/alacritty.yml
|
||||
cp dotfiles/.config/rogi/config ~/.config/rofi/config
|
||||
cp dotfiles/.config/fish/config.fish ~/config/fish/config.fish
|
||||
cp dotfiles/.config/fish/functions/cl.fish ~/.config/fish/functions/cl.fish
|
||||
cp dotfiles/.config/fish/functions/fish_prompt.fish ~/.config/fish/functions/fish_prompt.fish
|
||||
sudo sed -i "s/autospawn = no/autospawn = yes/" /etc/pulse/client.conf
|
||||
```
|
||||
|
||||
## Packages
|
||||
|
||||
### General purposes
|
||||
```
|
||||
yay -S spectrwm fish openssh rofi xorg xorg-server scrot xorg-xinit alacritty ranger feh nerd-fonts-complete xf86-video-intel firefox cifs-utils pulseaudio-alsa pulseaudio-ctl slock xautolock zip unzip alsa-utils redshift-minimal numlockx usbutils cmatrix yubikey-touch-detector
|
||||
```
|
||||
|
||||
### Pentest purposes
|
||||
```
|
||||
yay -S wfuzz exploitdb nmap gobuster nikto hydra perl-image-exiftool zsteg rtl88xxau-aircrack-dkms-git rockyou seclists-git fcrackzip gdb radare2 enum4linux peass hashcat intel-compute-runtime metasploit
|
||||
```
|
||||
|
||||
## Configurations
|
||||
|
||||
### Locale
|
||||
```
|
||||
sudo localectl set-keymap fr
|
||||
sudo localectl --no-convert set-x11-keymap fr pc104
|
||||
sudo localectl set-locale LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8
|
||||
sudo timedatectl set-timezone Europe/Paris
|
||||
```
|
||||
|
||||
### Permissions
|
||||
```
|
||||
chown $USER:users .bash_profile
|
||||
chown -R $USER:users .config/
|
||||
chown $USER:users .fehbg
|
||||
sudo chown root:root pulse/
|
||||
sudo chown root:root system/
|
||||
chown $USER:users .tmux.conf
|
||||
sudo chown root:root X11/
|
||||
chown $USER:users .xinitrc
|
||||
sudo chown root:root xorg.conf.d/
|
||||
```
|
||||
|
||||
### Freebox share
|
||||
```
|
||||
sudo mkdir -p /mnt/data
|
||||
sudo mkdir /etc/samba/credentials
|
||||
sudo chown root:root /etc/samba/credentials
|
||||
echo "username=<username>
|
||||
password=<password> | sudo tee -a /etc/samba/credentials/data
|
||||
sudo chmod 700 /etc/samba/credentials/
|
||||
sudo chmod 600 /etc/samba/credentials/data
|
||||
```
|
||||
|
||||
### Enable services
|
||||
```
|
||||
sudo systemctl enable slock@ap.service
|
||||
sudo systemctl enable --now mnt-data.automount
|
||||
```
|
||||
|
||||
## Misc
|
||||
|
||||
### Generate a WPA-PSK for `netctl` Wi-Fi config files
|
||||
Copy the value of the `psk` key and paste it in the `netctl` config file and prefix it with `Key=\"`.
|
||||
|
||||
```
|
||||
wpa_passphrase <ssid> <password>
|
||||
```
|
||||
|
||||
## Specific installations
|
||||
|
||||
### Docker
|
||||
In some cases, closing (and then reopening) your session is necessary.
|
||||
|
||||
```
|
||||
yay -S docker
|
||||
sudo gpasswd --add $USER docker
|
||||
sudo systemctl start docker
|
||||
sudo systemctl enable docker (optional)
|
||||
```
|
||||
|
||||
#### Simple test
|
||||
```
|
||||
docker run --name nginx -p 80:80 -d nginx
|
||||
```
|
||||
|
||||
#### Clean Docker (images, volumes and more that are not used)
|
||||
```
|
||||
docker system prune --all --volumes
|
||||
```
|
||||
|
||||
### Tinygo
|
||||
```
|
||||
yay -S tinygo avrdude avr-gcc avr-libc
|
||||
```
|
||||
|
||||
#### Commands
|
||||
|
||||
##### Upload led blinking to Arduino Nano
|
||||
```
|
||||
tinygo flash -target=arduino-nano -port=/dev/ttyUSB0 examples/blinky1
|
||||
```
|
||||
|
||||
##### Upload source code to Arduino Nano
|
||||
```
|
||||
tinygo flash -target arduino-nano /path/to/code
|
||||
```
|
||||
|
||||
### Arduino IDE and Arduino CLI
|
||||
```
|
||||
yay -S arduino arduino-cli
|
||||
sudo usermod -aG uucp $USER or sudo usermod -aG tty $USER
|
||||
sudo chmod a+rw /dev/ttyUSBX
|
||||
```
|
||||
|
||||
### Jekyll
|
||||
```
|
||||
yay -S ruby
|
||||
gem update
|
||||
gem install bundler jekyll
|
||||
```
|
||||
|
||||
#### Add gem's path to fish's path
|
||||
```
|
||||
set -U fish_user_paths ~/.gem/ruby/2.7.0/bin $fish_user_paths
|
||||
```
|
||||
|
||||
### Rust
|
||||
Replace `{default, stable, nighlty}` by the toolchain you want install.
|
||||
|
||||
```
|
||||
yay -S rustup
|
||||
rustup {default, stable, nightly}
|
||||
```
|
||||
|
||||
#### Update toolchain
|
||||
```
|
||||
rustup update
|
||||
```
|
||||
|
||||
### IntelliJ IDEA
|
||||
```
|
||||
yay -S intellij-idea-ultimate-edition-jre
|
||||
```
|
||||
|
||||
#### Use fish shell inside IntelliJ IDEA
|
||||
```
|
||||
sudo ln -s ~/.config/fish/fish_variables /opt/intellij-idea-ultimate-edition/plugins/terminal/fish/fish_variables
|
||||
```
|
||||
|
||||
### Laravel
|
||||
|
||||
#### Install Composer
|
||||
```
|
||||
yay -S composer
|
||||
```
|
||||
|
||||
#### Install Laravel Installer
|
||||
```
|
||||
composer global require laravel/installer
|
||||
```
|
||||
|
||||
#### Add Laravel Installer's path to fish's path
|
||||
```
|
||||
set -U fish_user_paths ~/.config/composer/vendor/laravel/installer/bin $fish_user_paths
|
||||
```
|
||||
|
||||
### Fish
|
||||
|
||||
#### Remove a path into fish's path
|
||||
|
||||
##### List current path(s)
|
||||
```
|
||||
echo $fish_user_paths | tr " " "\n" | nl
|
||||
1 ~/.config/composer/vendor/laravel/installer/bin
|
||||
```
|
||||
|
||||
##### Delete the useless one (replace 1 by the desired index)
|
||||
```
|
||||
set --erase --universal fish_user_paths[1]
|
||||
```
|
1
X11/README.md
Normal file
1
X11/README.md
Normal file
@ -0,0 +1 @@
|
||||
Path: `/etc/X11/`
|
4
X11/xorg.conf
Normal file
4
X11/xorg.conf
Normal file
@ -0,0 +1,4 @@
|
||||
Section "ServerFlags"
|
||||
Option "DontVTSwitch" "True"
|
||||
Option "DontZap" "True"
|
||||
EndSection
|
1
pulse/README.md
Normal file
1
pulse/README.md
Normal file
@ -0,0 +1 @@
|
||||
Path: `/etc/pulse/`
|
36
pulse/client.conf
Normal file
36
pulse/client.conf
Normal file
@ -0,0 +1,36 @@
|
||||
# This file is part of PulseAudio.
|
||||
#
|
||||
# PulseAudio is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# PulseAudio 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 Lesser General Public License
|
||||
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
## Configuration file for PulseAudio clients. See pulse-client.conf(5) for
|
||||
## more information. Default values are commented out. Use either ; or # for
|
||||
## commenting.
|
||||
|
||||
; default-sink =
|
||||
; default-source =
|
||||
; default-server =
|
||||
; default-dbus-server =
|
||||
|
||||
autospawn = yes
|
||||
; autospawn = yes
|
||||
; daemon-binary = /usr/bin/pulseaudio
|
||||
; extra-arguments = --log-target=syslog
|
||||
|
||||
; cookie-file =
|
||||
|
||||
; enable-shm = yes
|
||||
; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
|
||||
|
||||
; auto-connect-localhost = no
|
||||
; auto-connect-display = no
|
1
system/README.md
Normal file
1
system/README.md
Normal file
@ -0,0 +1 @@
|
||||
Path: `/etc/systemd/system/`
|
8
system/mnt-data.automount
Normal file
8
system/mnt-data.automount
Normal file
@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=Auto mount Freebox share
|
||||
|
||||
[Automount]
|
||||
Where=/mnt/data
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
17
system/mnt-data.mount
Normal file
17
system/mnt-data.mount
Normal file
@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=Freebox share
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Mount]
|
||||
Environment="SERVER='//192.168.0.254/Data'"
|
||||
What=$SERVER
|
||||
Where=/mnt/data
|
||||
Type=cifs
|
||||
Options=credentials=/etc/samba/credentials/data,_netdev,cache=none,users,user,noacl,guest,rw,,uid=1000,gid=985,iocharset=utf8,vers=1.0
|
||||
SloppyOptions=On
|
||||
DirectoryMode=0755
|
||||
TimeoutSec=10
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
12
system/slock@.service
Normal file
12
system/slock@.service
Normal file
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Lock X11 session using slock for user %i
|
||||
Before=sleep.target
|
||||
|
||||
[Service]
|
||||
User=%i
|
||||
Environment=DISPLAY=:0
|
||||
ExecStartPre=/usr/bin/xset dpms force suspend
|
||||
ExecStart=/usr/bin/slock
|
||||
|
||||
[Install]
|
||||
WantedBy=sleep.target
|
6
xorg.conf.d/20-intel.conf
Normal file
6
xorg.conf.d/20-intel.conf
Normal file
@ -0,0 +1,6 @@
|
||||
Section "Device"
|
||||
Identifier "Intel Graphics"
|
||||
Driver "intel"
|
||||
Option "AccelMethod" "sna"
|
||||
Option "TearFree" "true"
|
||||
EndSection
|
1
xorg.conf.d/README.md
Normal file
1
xorg.conf.d/README.md
Normal file
@ -0,0 +1 @@
|
||||
Path: `/etc/X11/xorg.conf.d/`
|
Loading…
Reference in New Issue
Block a user