added base config
@@ -0,0 +1,70 @@
|
||||
title: Terminal
|
||||
background_opacity: 0.8
|
||||
|
||||
env:
|
||||
TERM: xterm-256color
|
||||
|
||||
window:
|
||||
dynamic_padding: true
|
||||
padding:
|
||||
x: 30
|
||||
y: 30
|
||||
|
||||
cursor:
|
||||
hide_when_typing: true
|
||||
|
||||
font:
|
||||
normal:
|
||||
family: Hack Nerd Font
|
||||
style: Regular
|
||||
|
||||
bold:
|
||||
family: Hack Nerd Font
|
||||
style: Bold
|
||||
|
||||
italic:
|
||||
family: Hack Nerd Font
|
||||
style: Italic
|
||||
|
||||
bold_italic:
|
||||
family: Hack Nerd Font
|
||||
style: Bold Italic
|
||||
|
||||
size: 12.5
|
||||
|
||||
offset:
|
||||
x: 0
|
||||
y: -1
|
||||
|
||||
key_bindings:
|
||||
- { key: Return, mods: Control|Shift, action: SpawnNewInstance } # Spawn new instance in same directory
|
||||
|
||||
# Thinkpad Colors
|
||||
colors:
|
||||
# Default colors
|
||||
primary:
|
||||
background: '#171717'
|
||||
foreground: '#eeeeee'
|
||||
|
||||
# Normal colors
|
||||
normal:
|
||||
black: '#000000'
|
||||
blue: '#912d2d'
|
||||
magenta: '#a12529'
|
||||
red: '#cc2929' # thinkpad red
|
||||
green: '#ca131e'
|
||||
cyan: '#c11720'
|
||||
yellow: '#e20817'
|
||||
white: '#777777'
|
||||
|
||||
# Bright colors
|
||||
bright:
|
||||
black: '#000000'
|
||||
blue: '#c93c3c'
|
||||
magenta: '#cf2d33'
|
||||
red: '#e82e2e' # thinkpad red
|
||||
green: '#e61521'
|
||||
cyan: '#e61924'
|
||||
yellow: '#f50718'
|
||||
white: '#777777'
|
||||
|
||||
@@ -0,0 +1,572 @@
|
||||
# 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: 0
|
||||
# y: 0
|
||||
|
||||
# Spread additional padding evenly around the terminal content.
|
||||
#dynamic_padding: false
|
||||
|
||||
# Window decorations
|
||||
#
|
||||
# Values for `decorations`:
|
||||
# - full: Borders and title bar
|
||||
# - none: Neither borders nor title bar
|
||||
#
|
||||
# Values for `decorations` (macOS only):
|
||||
# - transparent: Title bar, transparent background and title bar buttons
|
||||
# - buttonless: Title bar, transparent background, but no title bar buttons
|
||||
#decorations: full
|
||||
|
||||
# Startup Mode (changes require restart)
|
||||
#
|
||||
# Values for `startup_mode`:
|
||||
# - Windowed
|
||||
# - Maximized
|
||||
# - Fullscreen
|
||||
#
|
||||
# Values for `startup_mode` (macOS only):
|
||||
# - SimpleFullscreen
|
||||
#startup_mode: Windowed
|
||||
|
||||
# Window title
|
||||
#title: Alacritty
|
||||
|
||||
# Window class (Linux/BSD only):
|
||||
#class:
|
||||
# Application instance name
|
||||
#instance: Alacritty
|
||||
# General application class
|
||||
#general: Alacritty
|
||||
|
||||
# GTK theme variant (Linux/BSD only)
|
||||
#
|
||||
# Override the variant of the GTK theme. Commonly supported values are `dark` and `light`.
|
||||
# Set this to `None` to use the default theme variant.
|
||||
#gtk_theme_variant: None
|
||||
|
||||
#scrolling:
|
||||
# Maximum number of lines in the scrollback buffer.
|
||||
# Specifying '0' will disable scrolling.
|
||||
#history: 10000
|
||||
|
||||
# Number of lines the viewport will move for every line scrolled when
|
||||
# scrollback is enabled (history > 0).
|
||||
#multiplier: 3
|
||||
|
||||
# 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: monospace
|
||||
|
||||
# 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: monospace
|
||||
|
||||
# The `style` can be specified to pick a specific face.
|
||||
#style: Bold
|
||||
|
||||
# Italic font face
|
||||
#italic:
|
||||
# Font family
|
||||
#
|
||||
# If the italic family is not specified, it will fall back to the
|
||||
# value specified for the normal font.
|
||||
#family: monospace
|
||||
|
||||
# The `style` can be specified to pick a specific face.
|
||||
#style: Italic
|
||||
|
||||
# Bold italic font face
|
||||
#bold_italic:
|
||||
# Font family
|
||||
#
|
||||
# If the bold italic family is not specified, it will fall back to the
|
||||
# value specified for the normal font.
|
||||
#family: monospace
|
||||
|
||||
# The `style` can be specified to pick a specific face.
|
||||
#style: Bold Italic
|
||||
|
||||
# Point size
|
||||
#size: 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 upwards.
|
||||
#glyph_offset:
|
||||
# x: 0
|
||||
# y: 0
|
||||
|
||||
# Thin stroke font rendering (macOS only)
|
||||
#
|
||||
# Thin strokes are suitable for retina displays, but for non-retina screens
|
||||
# it is recommended to set `use_thin_strokes` to `false`
|
||||
#
|
||||
# macOS >= 10.14.x:
|
||||
#
|
||||
# If the font quality on non-retina display looks bad then set
|
||||
# `use_thin_strokes` to `true` and enable font smoothing by running the
|
||||
# following command:
|
||||
# `defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO`
|
||||
#
|
||||
# This is a global setting and will require a log out or restart to take
|
||||
# effect.
|
||||
#use_thin_strokes: true
|
||||
|
||||
# If `true`, bold text is drawn using the bright color variants.
|
||||
#draw_bold_text_with_bright_colors: false
|
||||
|
||||
# Colors (Tomorrow Night Bright)
|
||||
#colors:
|
||||
# Default colors
|
||||
#primary:
|
||||
# background: '0x000000'
|
||||
# foreground: '0xeaeaea'
|
||||
|
||||
# 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: '0xeaeaea'
|
||||
# background: '0x404040'
|
||||
|
||||
# Normal colors
|
||||
#normal:
|
||||
# black: '0x000000'
|
||||
# red: '0xd54e53'
|
||||
# green: '0xb9ca4a'
|
||||
# yellow: '0xe6c547'
|
||||
# blue: '0x7aa6da'
|
||||
# magenta: '0xc397d8'
|
||||
# cyan: '0x70c0ba'
|
||||
# white: '0xeaeaea'
|
||||
|
||||
# Bright colors
|
||||
#bright:
|
||||
# black: '0x666666'
|
||||
# red: '0xff3334'
|
||||
# green: '0x9ec400'
|
||||
# yellow: '0xe7c547'
|
||||
# blue: '0x7aa6da'
|
||||
# magenta: '0xb77ee0'
|
||||
# cyan: '0x54ced6'
|
||||
# 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
|
||||
|
||||
#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/bash
|
||||
# args:
|
||||
# - --login
|
||||
|
||||
# Startup directory
|
||||
#
|
||||
# Directory the shell is started in. If this is unset, or `None`, the working
|
||||
# directory of the parent process will be used.
|
||||
#working_directory: None
|
||||
|
||||
# WinPTY backend (Windows only)
|
||||
#
|
||||
# Alacritty defaults to using the newer ConPTY backend if it is available,
|
||||
# since it resolves a lot of bugs and is quite a bit faster. If it is not
|
||||
# available, the the WinPTY backend will be used instead.
|
||||
#
|
||||
# Setting this option to `true` makes Alacritty use the legacy WinPTY backend,
|
||||
# even if the ConPTY backend is available.
|
||||
#winpty_backend: false
|
||||
|
||||
# Send ESC (\x1b) before characters when alt is pressed.
|
||||
#alt_send_esc: true
|
||||
|
||||
#debug:
|
||||
# Display the time it takes to redraw each frame.
|
||||
#render_timer: false
|
||||
|
||||
# Keep the log file after quitting Alacritty.
|
||||
#persistent_logging: false
|
||||
|
||||
# Log level
|
||||
#
|
||||
# Values for `log_level`:
|
||||
# - None
|
||||
# - Error
|
||||
# - Warn
|
||||
# - Info
|
||||
# - Debug
|
||||
# - Trace
|
||||
#log_level: Warn
|
||||
|
||||
# Print all received window events.
|
||||
#print_events: false
|
||||
|
||||
# Record all characters and escape sequences as test data.
|
||||
#ref_test: false
|
||||
|
||||
#mouse:
|
||||
# Click settings
|
||||
#
|
||||
# The `double_click` and `triple_click` settings control the time
|
||||
# alacritty should wait for accepting multiple clicks as one double
|
||||
# or triple click.
|
||||
#double_click: { threshold: 300 }
|
||||
#triple_click: { threshold: 300 }
|
||||
|
||||
# If this is `true`, the cursor is temporarily hidden when typing.
|
||||
#hide_when_typing: false
|
||||
|
||||
#url:
|
||||
# URL launcher
|
||||
#
|
||||
# This program is executed when clicking on a text which is recognized as a URL.
|
||||
# The URL is always added to the command as the last parameter.
|
||||
#
|
||||
# When set to `None`, URL launching will be disabled completely.
|
||||
#
|
||||
# Default:
|
||||
# - (macOS) open
|
||||
# - (Linux/BSD) xdg-open
|
||||
# - (Windows) explorer
|
||||
#launcher:
|
||||
# program: xdg-open
|
||||
# args: []
|
||||
|
||||
# URL modifiers
|
||||
#
|
||||
# These are the modifiers that need to be held down for opening URLs when clicking
|
||||
# on them. The available modifiers are documented in the key binding section.
|
||||
#modifiers: None
|
||||
|
||||
# Mouse bindings
|
||||
#
|
||||
# Mouse bindings are specified as a list of objects, much like the key
|
||||
# bindings further below.
|
||||
#
|
||||
# To trigger mouse bindings when an application running within Alacritty captures the mouse, the
|
||||
# `Shift` modifier is automatically added as a requirement.
|
||||
#
|
||||
# Each mouse binding will specify a:
|
||||
#
|
||||
# - `mouse`:
|
||||
#
|
||||
# - Middle
|
||||
# - Left
|
||||
# - Right
|
||||
# - Numeric identifier such as `5`
|
||||
#
|
||||
# - `action` (see key bindings)
|
||||
#
|
||||
# And optionally:
|
||||
#
|
||||
# - `mods` (see key bindings)
|
||||
#mouse_bindings:
|
||||
# - { mouse: Middle, action: PasteSelection }
|
||||
|
||||
# Key bindings
|
||||
#
|
||||
# Key bindings are specified as a list of objects. For example, this is the
|
||||
# default paste binding:
|
||||
#
|
||||
# `- { key: V, mods: Control|Shift, action: Paste }`
|
||||
#
|
||||
# Each key binding will specify a:
|
||||
#
|
||||
# - `key`: Identifier of the key pressed
|
||||
#
|
||||
# - A-Z
|
||||
# - F1-F24
|
||||
# - Key0-Key9
|
||||
#
|
||||
# A full list with available key codes can be found here:
|
||||
# https://docs.rs/glutin/*/glutin/event/enum.VirtualKeyCode.html#variants
|
||||
#
|
||||
# Instead of using the name of the keys, the `key` field also supports using
|
||||
# the scancode of the desired key. Scancodes have to be specified as a
|
||||
# decimal number. This command will allow you to display the hex scancodes
|
||||
# for certain keys:
|
||||
#
|
||||
# `showkey --scancodes`.
|
||||
#
|
||||
# Then exactly one of:
|
||||
#
|
||||
# - `chars`: Send a byte sequence to the running application
|
||||
#
|
||||
# The `chars` field writes the specified string to the terminal. This makes
|
||||
# it possible to pass escape sequences. To find escape codes for bindings
|
||||
# like `PageUp` (`"\x1b[5~"`), you can run the command `showkey -a` outside
|
||||
# of tmux. Note that applications use terminfo to map escape sequences back
|
||||
# to keys. It is therefore required to update the terminfo when changing an
|
||||
# escape sequence.
|
||||
#
|
||||
# - `action`: Execute a predefined action
|
||||
#
|
||||
# - Copy
|
||||
# - Paste
|
||||
# - PasteSelection
|
||||
# - IncreaseFontSize
|
||||
# - DecreaseFontSize
|
||||
# - ResetFontSize
|
||||
# - ScrollPageUp
|
||||
# - ScrollPageDown
|
||||
# - ScrollLineUp
|
||||
# - ScrollLineDown
|
||||
# - ScrollToTop
|
||||
# - ScrollToBottom
|
||||
# - ClearHistory
|
||||
# - Hide
|
||||
# - Minimize
|
||||
# - Quit
|
||||
# - ToggleFullscreen
|
||||
# - SpawnNewInstance
|
||||
# - ClearLogNotice
|
||||
# - ReceiveChar
|
||||
# - None
|
||||
#
|
||||
# (macOS only):
|
||||
# - ToggleSimpleFullscreen: Enters fullscreen without occupying another space
|
||||
#
|
||||
# - `command`: Fork and execute a specified command plus arguments
|
||||
#
|
||||
# The `command` field must be a map containing a `program` string and an
|
||||
# `args` array of command line parameter strings. For example:
|
||||
# `{ program: "alacritty", args: ["-e", "vttest"] }`
|
||||
#
|
||||
# And optionally:
|
||||
#
|
||||
# - `mods`: Key modifiers to filter binding actions
|
||||
#
|
||||
# - Command
|
||||
# - Control
|
||||
# - Option
|
||||
# - Super
|
||||
# - Shift
|
||||
# - Alt
|
||||
#
|
||||
# Multiple `mods` can be combined using `|` like this:
|
||||
# `mods: Control|Shift`.
|
||||
# Whitespace and capitalization are relevant and must match the example.
|
||||
#
|
||||
# - `mode`: Indicate a binding for only specific terminal reported modes
|
||||
#
|
||||
# This is mainly used to send applications the correct escape sequences
|
||||
# when in different modes.
|
||||
#
|
||||
# - AppCursor
|
||||
# - AppKeypad
|
||||
# - Alt
|
||||
#
|
||||
# A `~` operator can be used before a mode to apply the binding whenever
|
||||
# the mode is *not* active, e.g. `~Alt`.
|
||||
#
|
||||
# Bindings are always filled by default, but will be replaced when a new
|
||||
# binding with the same triggers is defined. To unset a default binding, it can
|
||||
# be mapped to the `ReceiveChar` action. Alternatively, you can use `None` for
|
||||
# a no-op if you do not wish to receive input characters for that binding.
|
||||
#
|
||||
# If the same trigger is assigned to multiple actions, all of them are executed
|
||||
# at once.
|
||||
#key_bindings:
|
||||
# (Windows, Linux, and BSD only)
|
||||
#- { key: V, mods: Control|Shift, action: Paste }
|
||||
#- { key: C, mods: Control|Shift, action: Copy }
|
||||
#- { key: Insert, mods: Shift, action: PasteSelection }
|
||||
#- { key: Key0, mods: Control, action: ResetFontSize }
|
||||
#- { key: Equals, mods: Control, action: IncreaseFontSize }
|
||||
#- { key: Add, mods: Control, action: IncreaseFontSize }
|
||||
#- { key: Subtract, mods: Control, action: DecreaseFontSize }
|
||||
#- { key: Minus, mods: Control, action: DecreaseFontSize }
|
||||
|
||||
# (Windows only)
|
||||
#- { key: Return, mods: Alt, action: ToggleFullscreen }
|
||||
|
||||
# (macOS only)
|
||||
#- { key: Key0, mods: Command, action: ResetFontSize }
|
||||
#- { key: Equals, mods: Command, action: IncreaseFontSize }
|
||||
#- { key: Add, mods: Command, action: IncreaseFontSize }
|
||||
#- { key: Minus, mods: Command, action: DecreaseFontSize }
|
||||
#- { key: K, mods: Command, action: ClearHistory }
|
||||
#- { key: K, mods: Command, chars: "\x0c" }
|
||||
#- { key: V, mods: Command, action: Paste }
|
||||
#- { key: C, mods: Command, action: Copy }
|
||||
#- { key: H, mods: Command, action: Hide }
|
||||
#- { key: M, mods: Command, action: Minimize }
|
||||
#- { key: Q, mods: Command, action: Quit }
|
||||
#- { key: W, mods: Command, action: Quit }
|
||||
#- { key: F, mods: Command|Control, action: ToggleFullscreen }
|
||||
|
||||
#- { key: Paste, action: Paste }
|
||||
#- { key: Copy, action: Copy }
|
||||
#- { key: L, mods: Control, action: ClearLogNotice }
|
||||
#- { key: L, mods: Control, chars: "\x0c" }
|
||||
#- { key: PageUp, mods: Shift, action: ScrollPageUp, mode: ~Alt }
|
||||
#- { key: PageDown, mods: Shift, action: ScrollPageDown, mode: ~Alt }
|
||||
#- { key: Home, mods: Shift, action: ScrollToTop, mode: ~Alt }
|
||||
#- { key: End, mods: Shift, action: ScrollToBottom, mode: ~Alt }
|
||||
@@ -0,0 +1,67 @@
|
||||
title: Terminal
|
||||
background_opacity: 0.8
|
||||
|
||||
window:
|
||||
dynamic_padding: true
|
||||
padding:
|
||||
x: 30
|
||||
y: 30
|
||||
|
||||
cursor:
|
||||
hide_when_typing: true
|
||||
|
||||
font:
|
||||
normal:
|
||||
family: Hack Nerd Font
|
||||
style: Regular
|
||||
|
||||
bold:
|
||||
family: Hack Nerd Font
|
||||
style: Bold
|
||||
|
||||
italic:
|
||||
family: Hack Nerd Font
|
||||
style: Italic
|
||||
|
||||
bold_italic:
|
||||
family: Hack Nerd Font
|
||||
style: Bold Italic
|
||||
|
||||
size: 12.5
|
||||
|
||||
offset:
|
||||
x: 0
|
||||
y: -1
|
||||
|
||||
key_bindings:
|
||||
- { key: Return, mods: Control|Shift, action: SpawnNewInstance } # Spawn new instance in same directory
|
||||
|
||||
# Thinkpad Colors
|
||||
colors:
|
||||
# Default colors
|
||||
primary:
|
||||
background: '#171717'
|
||||
foreground: '#eeeeee'
|
||||
|
||||
# Normal colors
|
||||
normal:
|
||||
black: '0x0d0d0d'
|
||||
red: '0xFF301B'
|
||||
green: '0xA0E521'
|
||||
yellow: '0xFFC620'
|
||||
blue: '0x1BA6FA'
|
||||
magenta: '0x8763B8'
|
||||
cyan: '0x21DEEF'
|
||||
white: '0xEBEBEB'
|
||||
|
||||
# Bright colors
|
||||
bright:
|
||||
black: '0x6D7070'
|
||||
red: '0xFF4352'
|
||||
green: '0xB8E466'
|
||||
yellow: '0xFFD750'
|
||||
blue: '0x1BA6FA'
|
||||
magenta: '0xA578EA'
|
||||
cyan: '0x73FBF1'
|
||||
white: '0xFEFEF8'
|
||||
|
||||
@@ -0,0 +1,385 @@
|
||||
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
|
||||
|
||||
# Autostart w/ i3 #######################################################################
|
||||
|
||||
# General
|
||||
exec_always --no-startup-id fix_xcursor
|
||||
|
||||
# display
|
||||
exec --no-startup-id "nvidia-settings --load-config-only"
|
||||
exec --no-startup-id "picom -b --blur-background"
|
||||
exec --no-startup-id zsh ~/.config/polybar/launch_polybar.sh
|
||||
exec --no-startup-id "nitrogen --restore"
|
||||
exec --no-startup-id "unclutter --timeout 5 --jitter 5 --ignore-scrolling"
|
||||
|
||||
# audio
|
||||
#exec --no-startup-id zsh ~/Userdata/Scripts/restart_pulseaudio.sh
|
||||
exec --no-startup-id zsh -c "pactl unload-module module-role-cork"
|
||||
|
||||
# extra
|
||||
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||
exec --no-startup-id "rfkill unblock bluetooth"
|
||||
exec --no-startup-id blueberry-tray
|
||||
#exec --no-startup-id onboard
|
||||
exec --no-startup-id nm-applet
|
||||
#exec --no-startup-id zsh ~/Userdata/Scripts/launch_insync.sh
|
||||
exec --no-startup-id "nextcloud"
|
||||
|
||||
|
||||
################################################################################################
|
||||
# General Hotkeys
|
||||
|
||||
# Set mod key (Mod1=<Alt>, Mod4=<Super>)
|
||||
set $mod Mod4
|
||||
|
||||
# set default desktop layout (default is tiling)
|
||||
# workspace_layout tabbed <stacking|tabbed>
|
||||
|
||||
# Configure border style <normal|1pixel|pixel xx|none|pixel>
|
||||
new_window none
|
||||
new_float none
|
||||
default_border none
|
||||
|
||||
# Hide borders
|
||||
#hide_edge_borders none
|
||||
|
||||
# Change Borders
|
||||
bindsym $mod+u border none
|
||||
bindsym $mod+y border pixel 2
|
||||
bindsym $mod+n border normal
|
||||
|
||||
# Font for window titles
|
||||
font xft:Roboto Mono 11
|
||||
|
||||
# Use Mouse+$mod to drag floating windows
|
||||
floating_modifier $mod
|
||||
|
||||
# Kill focused window
|
||||
bindsym $mod+Shift+q kill
|
||||
|
||||
# Terminal
|
||||
bindsym $mod+Return exec --no-startup-id alacritty
|
||||
|
||||
# System Monitor
|
||||
bindsym Control+Shift+Escape exec --no-startup-id "alacritty -e sh -c 'htop'"
|
||||
|
||||
# Type Clipboad
|
||||
bindsym $mod+Shift+v exec --no-startup-id sh ~/Userdata/Scripts/xclip_type.sh
|
||||
|
||||
|
||||
################################################################################################
|
||||
# Program Launchers
|
||||
|
||||
# rofi
|
||||
bindsym $mod+d exec --no-startup-id "rofi -show drun -show-icons -icon-theme Adwaita -drun-display-format {name} -sort -sort-method fzf"
|
||||
bindsym $mod+Tab exec --no-startup-id "rofi -show window -show-icons -icon-theme Adwaita -drun-display-format {name} -sort -sort-method fzf"
|
||||
|
||||
# dmenu
|
||||
#bindsym $mod+d exec --no-startup-id dmenu_recency
|
||||
|
||||
################################################################################################
|
||||
# Music
|
||||
|
||||
bindsym $mod+slash exec --no-startup-id "playerctl play-pause"
|
||||
bindsym $mod+period exec --no-startup-id "playerctl next"
|
||||
bindsym $mod+comma exec --no-startup-id "playerctl previous"
|
||||
|
||||
exec --no-startup-id pulseaudio
|
||||
#exec --no-startup-id pa-applet
|
||||
bindsym $mod+Ctrl+m exec --no-startup-id pavucontrol
|
||||
|
||||
# Pulse Audio controls
|
||||
# run amixer sset Master on
|
||||
bindsym XF86AudioMute exec "amixer sset 'Master' toggle;"
|
||||
bindsym XF86AudioLowerVolume exec "amixer sset 'Master' 5%-;"
|
||||
bindsym XF86AudioRaiseVolume exec "amixer sset 'Master' 5%+;"
|
||||
|
||||
|
||||
################################################################################################
|
||||
# Screen
|
||||
|
||||
# Hide / Unhide statusbar
|
||||
bindsym $mod+m exec --no-startup-id polybar-msg cmd toggle
|
||||
|
||||
bindsym XF86MonBrightnessUp exec "xbacklight -inc 10"
|
||||
bindsym XF86MonBrightnessDown exec "xbacklight -dec 10"
|
||||
|
||||
|
||||
################################################################################################
|
||||
# Applications
|
||||
|
||||
# Screenshot [fullscreen, select area, select area with 3 second delay]
|
||||
bindsym Print exec --no-startup-id "flameshot gui"
|
||||
bindsym $mod+Print exec --no-startup-id "flameshot full"
|
||||
#bindsym $mod+Shift+Print exec --no-startup-id deepin-screenshot -d 3 -s /home/sim/Pictures/Screenshots
|
||||
|
||||
# Firefox
|
||||
bindsym $mod+F2 exec --no-startup-id firefox
|
||||
bindsym $mod+Shift+F2 exec --no-startup-id "firefox google.com"
|
||||
bindsym $mod+Shift+F4 exec --no-startup-id "firefox -new-window web.whatsapp.com"
|
||||
|
||||
# Nautilus
|
||||
bindsym $mod+F3 exec --no-startup-id nautilus
|
||||
bindsym $mod+Ctrl+x --release exec --no-startup-id xkill
|
||||
|
||||
# Telegram
|
||||
bindsym $mod+F4 exec telegram-desktop
|
||||
|
||||
|
||||
################################################################################################
|
||||
# Window Management
|
||||
|
||||
focus_follows_mouse yes
|
||||
|
||||
# move focus arrow keys
|
||||
bindsym $mod+Left focus left
|
||||
bindsym $mod+Right focus right
|
||||
bindsym $mod+Up focus up
|
||||
bindsym $mod+Down focus down
|
||||
|
||||
# move focused window arrow 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
|
||||
|
||||
# workspace back and forth (with/without active container)
|
||||
workspace_auto_back_and_forth yes
|
||||
bindsym $mod+b workspace back_and_forth
|
||||
bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth
|
||||
|
||||
# split orientation
|
||||
bindsym $mod+h split h;exec notify-send 'tile horizontally'
|
||||
bindsym $mod+v split v;exec notify-send 'tile vertically'
|
||||
bindsym $mod+q split toggle
|
||||
|
||||
# toggle fullscreen mode for the focused container
|
||||
bindsym $mod+f fullscreen toggle
|
||||
|
||||
# change container layout (stacked, tabbed, toggle split)
|
||||
bindsym $mod+i layout stacking
|
||||
bindsym $mod+o layout tabbed
|
||||
bindsym $mod+p layout toggle split
|
||||
|
||||
# toggle tiling / floating
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
|
||||
# change focus between tiling / floating windows
|
||||
bindsym $mod+space focus mode_toggle
|
||||
|
||||
# toggle sticky
|
||||
bindsym $mod+Shift+s sticky toggle
|
||||
|
||||
#navigate workspaces next / previous
|
||||
bindsym $mod+Ctrl+Right workspace next
|
||||
bindsym $mod+Ctrl+Left workspace prev
|
||||
|
||||
|
||||
################################################################################################
|
||||
# Workspaces
|
||||
|
||||
# Workspace names
|
||||
# to display names or symbols instead of plain workspace numbers you can use
|
||||
# something like: set $ws1 1:mail
|
||||
# set $ws2 2:
|
||||
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 10
|
||||
set $ws9 9:
|
||||
set $ws10 10:
|
||||
|
||||
# switch to workspace
|
||||
bindsym $mod+1 workspace $ws1
|
||||
bindsym $mod+2 workspace $ws2
|
||||
bindsym $mod+3 workspace $ws3
|
||||
bindsym $mod+4 workspace $ws4
|
||||
bindsym $mod+5 workspace $ws5
|
||||
bindsym $mod+6 workspace $ws6
|
||||
bindsym $mod+7 workspace $ws7
|
||||
bindsym $mod+8 workspace $ws8
|
||||
bindsym $mod+9 workspace $ws9
|
||||
bindsym $mod+0 workspace $ws10
|
||||
|
||||
# Move focused container to workspace
|
||||
bindsym $mod+Ctrl+1 move container to workspace $ws1
|
||||
bindsym $mod+Ctrl+2 move container to workspace $ws2
|
||||
bindsym $mod+Ctrl+3 move container to workspace $ws3
|
||||
bindsym $mod+Ctrl+4 move container to workspace $ws4
|
||||
bindsym $mod+Ctrl+5 move container to workspace $ws5
|
||||
bindsym $mod+Ctrl+6 move container to workspace $ws6
|
||||
bindsym $mod+Ctrl+7 move container to workspace $ws7
|
||||
bindsym $mod+Ctrl+8 move container to workspace $ws8
|
||||
bindsym $mod+Ctrl+9 move container to workspace $ws9
|
||||
bindsym $mod+Ctrl+0 move container to workspace $ws10
|
||||
|
||||
# Move to workspace with focused container
|
||||
bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1
|
||||
bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2
|
||||
bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3
|
||||
bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4
|
||||
bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5
|
||||
bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6
|
||||
bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7
|
||||
bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8
|
||||
bindsym $mod+Shift+9 move container to workspace $ws9; workspace $ws9
|
||||
bindsym $mod+Shift+0 move container to workspace $ws10; workspace $ws10
|
||||
|
||||
|
||||
################################################################################################
|
||||
# App / Window specific settings
|
||||
|
||||
# Open applications on specific workspaces
|
||||
assign [class="(?i)virtualbox"] $ws10
|
||||
|
||||
# Open specific applications in floating mode
|
||||
for_window [class="Lightdm-settings"] floating enable
|
||||
for_window [class="Lxappearance"] floating enable sticky enable border normal
|
||||
for_window [class="^.*"] none
|
||||
|
||||
for_window [title="Qalculate!"] floating enable border normal
|
||||
for_window [title="Insync"] floating enable
|
||||
for_window [title="Volume Control"] floating enable
|
||||
for_window [title="xopp 2 pdf"] floating enable
|
||||
for_window [title="Microsoft Teams Notification"] floating enable
|
||||
|
||||
# switch to workspace with urgent window automatically
|
||||
for_window [urgent=latest] focus
|
||||
|
||||
# reload the configuration file
|
||||
#bindsym $mod+Shift+o reload
|
||||
bindsym $mod+Shift+o exec --no-startup-id "sh ~/.config/i3/reload_w_polybar.sh"
|
||||
|
||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||
bindsym $mod+Shift+i reload
|
||||
|
||||
|
||||
################################################################################################
|
||||
# Shutdown / Resize Menu
|
||||
|
||||
# Set shut down, restart and locking features
|
||||
bindsym $mod+Escape mode "$mode_system"
|
||||
set $mode_system | [s]hutdown , [r]eboot , [p]owersave , [h]ibernate , [l]ock , [e]xit
|
||||
mode "$mode_system" {
|
||||
bindsym s exec --no-startup-id bash ~/Userdata/Scripts/glitchlock/glitchlock.sh shutdown, mode "default"
|
||||
bindsym r exec --no-startup-id bash ~/Userdata/Scripts/glitchlock/glitchlock.sh reboot, mode "default"
|
||||
bindsym p exec --no-startup-id bash ~/Userdata/Scripts/glitchlock/glitchlock.sh suspend, mode "default"
|
||||
bindsym h exec --no-startup-id bash ~/Userdata/Scripts/glitchlock/glitchlock.sh hibernate, mode "default"
|
||||
bindsym l exec --no-startup-id bash ~/Userdata/Scripts/glitchlock/glitchlock.sh lock, mode "default"
|
||||
bindsym e exec --no-startup-id bash ~/Userdata/Scripts/glitchlock/glitchlock.sh logout, mode "default"
|
||||
|
||||
# exit system mode: "Enter" or "Escape"
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
bindsym $mod+Escape mode "default"
|
||||
}
|
||||
|
||||
# Resize window (you can also use the mouse for that)
|
||||
bindsym $mod+r mode "| Resize "
|
||||
mode "| Resize " {
|
||||
# These bindings trigger as soon as you enter the resize mode
|
||||
# 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
|
||||
|
||||
bindsym Shift+Left resize shrink width 50 px or 50 ppt
|
||||
bindsym Shift+Down resize grow height 50 px or 50 ppt
|
||||
bindsym Shift+Up resize shrink height 50 px or 50 ppt
|
||||
bindsym Shift+Right resize grow width 50 px or 50 ppt
|
||||
|
||||
# exit resize mode: Enter or Escape
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
|
||||
################################################################################################
|
||||
# Themes / Colors / Design / Look and Feel
|
||||
|
||||
# Colors
|
||||
# class border backgr. text indic. child_border
|
||||
client.focused #e60012 #e60012 #ffffff #e60012
|
||||
client.focused_inactive #e60012 #691f1f #ffffff #691f1f
|
||||
client.unfocused #e60012 #691f1f #ffffff #691f1f
|
||||
client.urgent #f1a800 #f1a800 #ffffff #f1a800
|
||||
client.placeholder #000000 #000000 #ffffff #000000
|
||||
|
||||
client.background #2B2C2B
|
||||
|
||||
################################################
|
||||
# i3-gaps
|
||||
|
||||
# Set inner/outer gaps
|
||||
gaps inner 25
|
||||
gaps outer 5
|
||||
|
||||
# Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size.
|
||||
# gaps inner|outer current|all set|plus|minus <px>
|
||||
# gaps inner all set 10
|
||||
# gaps outer all plus 5
|
||||
|
||||
# Smart gaps (gaps used if only more than one container on the workspace)
|
||||
smart_gaps on
|
||||
|
||||
# Smart borders (draw borders around container only if it is not the only container on this workspace)
|
||||
# on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0)
|
||||
smart_borders on
|
||||
|
||||
# Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps. Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace). If you also press Shift with these keys, the change will be global for all workspaces.
|
||||
set $mode_gaps Gaps: (o) outer, (i) inner
|
||||
set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||
set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||
bindsym $mod+Shift+g mode "$mode_gaps"
|
||||
|
||||
set $toggle_gaps Toggle gaps: (0) off / (1) on
|
||||
bindsym $mod+g mode "$toggle_gaps"
|
||||
mode "$toggle_gaps" {
|
||||
bindsym 1 mode "default", gaps inner all set 25, gaps outer all set 5
|
||||
bindsym 0 mode "default", gaps inner all set 0, gaps outer all set 0
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
mode "$mode_gaps" {
|
||||
bindsym o mode "$mode_gaps_outer"
|
||||
bindsym i mode "$mode_gaps_inner"
|
||||
bindsym Return mode "default"
|
||||
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 "default"
|
||||
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 "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
################################################
|
||||
# i3-gaps-rounded
|
||||
|
||||
#border_radius 10
|
||||
@@ -0,0 +1,319 @@
|
||||
# i3 config file (v4)
|
||||
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
|
||||
|
||||
# Autostart w/ i3
|
||||
#exec --no-startup-id onboard
|
||||
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||
exec --no-startup-id "unclutter --timeout 5 --jitter 5 --ignore-scrolling"
|
||||
exec --no-startup-id zsh ~/.config/polybar/launch_polybar.sh
|
||||
exec --no-startup-id zsh ~/Userdata/Scripts/restart_pulseaudio.sh
|
||||
exec --no-startup-id nm-applet
|
||||
exec --no-startup-id "rfkill unblock bluetooth"
|
||||
exec --no-startup-id blueberry-tray
|
||||
exec --no-startup-id "nitrogen --restore"
|
||||
exec --no-startup-id "fluxgui"
|
||||
#exec --no-startup-id zsh ~/Userdata/Scripts/launch_insync.sh
|
||||
exec --no-startup-id zsh -c "pactl unload-module module-role-cork"
|
||||
|
||||
# Autostart applications
|
||||
exec_always --no-startup-id fix_xcursor
|
||||
|
||||
# Set mod key (Mod1=<Alt>, Mod4=<Super>)
|
||||
set $mod Mod4
|
||||
|
||||
# set default desktop layout (default is tiling)
|
||||
# workspace_layout tabbed <stacking|tabbed>
|
||||
|
||||
# Configure border style <normal|1pixel|pixel xx|none|pixel>
|
||||
new_window pixel 2
|
||||
new_float normal
|
||||
default_border pixel 2
|
||||
for_window [class="^.*"] border pixel 2
|
||||
|
||||
# Hide borders
|
||||
#hide_edge_borders none
|
||||
|
||||
# Screenshot
|
||||
bindsym Print exec --no-startup-id gnome-screenshot
|
||||
bindsym $mod+Print exec --no-startup-id gnome-screenshot -a
|
||||
bindsym $mod+Shift+Print exec --no-startup-id gnome-screenshot -i
|
||||
|
||||
# change borders
|
||||
bindsym $mod+u border none
|
||||
bindsym $mod+y border pixel 2
|
||||
bindsym $mod+n border normal
|
||||
|
||||
# Font for window titles. Will also be used by the bar unless a different font
|
||||
# is used in the bar {} block below.
|
||||
font xft:Roboto Mono 11
|
||||
|
||||
# Use Mouse+$mod to drag floating windows
|
||||
floating_modifier $mod
|
||||
|
||||
# start a terminal
|
||||
bindsym $mod+Return exec i3-sensible-terminal
|
||||
|
||||
# kill focused window
|
||||
bindsym $mod+Shift+q kill
|
||||
|
||||
# start program launcher
|
||||
#bindsym $mod+d exec --no-startup-id dmenu_recency
|
||||
bindsym Control+Shift+Escape exec --no-startup-id "urxvt -e sh -c 'htop'"
|
||||
bindsym Control+Mod1+Tab exec --no-startup-id "rofi -show drun -show-icons -icon-theme Adwaita -drun-display-format {name} -sort -sort-method fzf"
|
||||
bindsym $mod+d exec --no-startup-id "rofi -show drun -show-icons -icon-theme Adwaita -drun-display-format {name} -sort -sort-method fzf"
|
||||
bindsym $mod+Shift+d exec --no-startup-id "quicklaunch"
|
||||
#bindsym Super_L exec --no-startup-id "quicklaunch"
|
||||
|
||||
################################################################################################
|
||||
## sound-section - DO NOT EDIT if you wish to automatically upgrade Alsa -> Pulseaudio later! ##
|
||||
################################################################################################
|
||||
|
||||
exec --no-startup-id pulseaudio
|
||||
#exec --no-startup-id pa-applet
|
||||
bindsym $mod+Ctrl+m exec pavucontrol
|
||||
|
||||
################################################################################################
|
||||
|
||||
# Pulse Audio controls
|
||||
# run amixer sset Master on
|
||||
# https://askubuntu.com/questions/823669/volume-sound-and-screen-brightness-controls-not-working
|
||||
bindsym XF86AudioMute exec "amixer sset 'Master' toggle;"
|
||||
bindsym XF86AudioLowerVolume exec "amixer sset 'Master' 5%-;"
|
||||
bindsym XF86AudioRaiseVolume exec "amixer sset 'Master' 5%+;"
|
||||
|
||||
# Screen brightness controls
|
||||
bindsym XF86MonBrightnessUp exec "xbacklight -inc 10"
|
||||
bindsym XF86MonBrightnessDown exec "xbacklight -dec 10"
|
||||
|
||||
# Start Applications
|
||||
bindsym $mod+F2 exec firefox
|
||||
bindsym $mod+Shift+F2 exec "firefox google.com"
|
||||
bindsym $mod+F3 exec nautilus
|
||||
bindsym $mod+Ctrl+x --release exec --no-startup-id xkill
|
||||
bindsym $mod+F4 exec telegram-desktop
|
||||
bindsym $mod+Shift+F4 exec "firefox -new-window web.whatsapp.com"
|
||||
bindsym $mod+F5 exec "firefox -new-window borys.webuntis.com/WebUntis/?school=htl-salzburg#/basic/timetable"
|
||||
|
||||
focus_follows_mouse yes
|
||||
|
||||
# move focus arrow keys
|
||||
bindsym $mod+Left focus left
|
||||
bindsym $mod+Down focus down
|
||||
bindsym $mod+Up focus up
|
||||
bindsym $mod+Right focus right
|
||||
|
||||
# move focused window arrow 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
|
||||
|
||||
# workspace back and forth (with/without active container)
|
||||
workspace_auto_back_and_forth yes
|
||||
bindsym $mod+b workspace back_and_forth
|
||||
bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth
|
||||
|
||||
# split orientation
|
||||
bindsym $mod+h split h;exec notify-send 'tile horizontally'
|
||||
bindsym $mod+v split v;exec notify-send 'tile vertically'
|
||||
bindsym $mod+q split toggle
|
||||
|
||||
# toggle fullscreen mode for the focused container
|
||||
bindsym $mod+f fullscreen toggle
|
||||
|
||||
# change container layout (stacked, tabbed, toggle split)
|
||||
bindsym $mod+i layout stacking
|
||||
bindsym $mod+o layout tabbed
|
||||
bindsym $mod+p layout toggle split
|
||||
|
||||
# toggle tiling / floating
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
|
||||
# change focus between tiling / floating windows
|
||||
bindsym $mod+space focus mode_toggle
|
||||
|
||||
# toggle sticky
|
||||
bindsym $mod+Shift+s sticky toggle
|
||||
|
||||
#navigate workspaces next / previous
|
||||
bindsym $mod+Ctrl+Right workspace next
|
||||
bindsym $mod+Ctrl+Left workspace prev
|
||||
|
||||
# Workspace names
|
||||
# to display names or symbols instead of plain workspace numbers you can use
|
||||
# something like: set $ws1 1:mail
|
||||
# set $ws2 2:
|
||||
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 10:
|
||||
|
||||
# switch to workspace
|
||||
bindsym $mod+1 workspace $ws1
|
||||
bindsym $mod+2 workspace $ws2
|
||||
bindsym $mod+3 workspace $ws3
|
||||
bindsym $mod+4 workspace $ws4
|
||||
bindsym $mod+5 workspace $ws5
|
||||
bindsym $mod+6 workspace $ws6
|
||||
bindsym $mod+7 workspace $ws7
|
||||
bindsym $mod+8 workspace $ws8
|
||||
bindsym $mod+9 workspace $ws9
|
||||
bindsym $mod+0 workspace $ws10
|
||||
|
||||
# Move focused container to workspace
|
||||
bindsym $mod+Ctrl+1 move container to workspace $ws1
|
||||
bindsym $mod+Ctrl+2 move container to workspace $ws2
|
||||
bindsym $mod+Ctrl+3 move container to workspace $ws3
|
||||
bindsym $mod+Ctrl+4 move container to workspace $ws4
|
||||
bindsym $mod+Ctrl+5 move container to workspace $ws5
|
||||
bindsym $mod+Ctrl+6 move container to workspace $ws6
|
||||
bindsym $mod+Ctrl+7 move container to workspace $ws7
|
||||
bindsym $mod+Ctrl+8 move container to workspace $ws8
|
||||
bindsym $mod+Ctrl+9 move container to workspace $ws9
|
||||
bindsym $mod+Ctrl+0 move container to workspace $ws10
|
||||
|
||||
# Move to workspace with focused container
|
||||
bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1
|
||||
bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2
|
||||
bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3
|
||||
bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4
|
||||
bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5
|
||||
bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6
|
||||
bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7
|
||||
bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8
|
||||
bindsym $mod+Shift+9 move container to workspace $ws9; workspace $ws9
|
||||
bindsym $mod+Shift+0 move container to workspace $ws10; workspace $ws10
|
||||
|
||||
# Open applications on specific workspaces
|
||||
assign [class="(?i)virtualbox"] $ws10
|
||||
|
||||
# Open specific applications in floating mode
|
||||
for_window [class="Lightdm-settings"] floating enable
|
||||
for_window [class="Lxappearance"] floating enable sticky enable border normal
|
||||
for_window [title="h45_Quicklaunch"] floating enable border normal
|
||||
for_window [title="Qalculate!"] floating enable border normal
|
||||
for_window [title="Insync"] floating enable
|
||||
for_window [title="Volume Control"] floating enable
|
||||
for_window [title="xopp 2 pdf"] floating enable
|
||||
|
||||
# switch to workspace with urgent window automatically
|
||||
for_window [urgent=latest] focus
|
||||
|
||||
# reload the configuration file
|
||||
bindsym $mod+Shift+o reload
|
||||
|
||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||
bindsym $mod+Shift+i restart
|
||||
|
||||
# Set shut down, restart and locking features
|
||||
bindsym $mod+Escape mode "$mode_system"
|
||||
set $mode_system | [s]hutdown , [r]eboot , [p]owersave , [h]ibernate , [l]ock , [e]xit
|
||||
mode "$mode_system" {
|
||||
bindsym s exec --no-startup-id bash ~/Userdata/Scripts/glitchlock/glitchlock.sh shutdown, mode "default"
|
||||
bindsym r exec --no-startup-id bash ~/Userdata/Scripts/glitchlock/glitchlock.sh reboot, mode "default"
|
||||
bindsym p exec --no-startup-id bash ~/Userdata/Scripts/glitchlock/glitchlock.sh suspend, mode "default"
|
||||
bindsym h exec --no-startup-id bash ~/Userdata/Scripts/glitchlock/glitchlock.sh hibernate, mode "default"
|
||||
bindsym l exec --no-startup-id bash ~/Userdata/Scripts/glitchlock/glitchlock.sh lock, mode "default"
|
||||
bindsym e exec --no-startup-id bash ~/Userdata/Scripts/glitchlock/glitchlock.sh logout, mode "default"
|
||||
|
||||
# exit system mode: "Enter" or "Escape"
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
bindsym $mod+Escape mode "default"
|
||||
}
|
||||
|
||||
# Resize window (you can also use the mouse for that)
|
||||
bindsym $mod+r mode "| Resize "
|
||||
mode "| Resize " {
|
||||
# These bindings trigger as soon as you enter the resize mode
|
||||
# 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
|
||||
|
||||
bindsym Shift+Left resize shrink width 50 px or 50 ppt
|
||||
bindsym Shift+Down resize grow height 50 px or 50 ppt
|
||||
bindsym Shift+Up resize shrink height 50 px or 50 ppt
|
||||
bindsym Shift+Right resize grow width 50 px or 50 ppt
|
||||
|
||||
# exit resize mode: Enter or Escape
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
# hide/unhide i3status bar
|
||||
bindsym $mod+m exec --no-startup-id polybar-msg cmd toggle
|
||||
|
||||
# Theme colors
|
||||
# class border backgr. text indic. child_border
|
||||
client.focused #005c96 #005c96 #80FFF9 #FDF6E3
|
||||
client.focused_inactive #2F3D44 #2F3D44 #1ABC9C #454948
|
||||
client.unfocused #2F3D44 #2F3D44 #1ABC9C #454948
|
||||
client.urgent #CB4B16 #FDF6E3 #1ABC9C #268BD2
|
||||
client.placeholder #000000 #0c0c0c #ffffff #000000
|
||||
|
||||
client.background #2B2C2B
|
||||
|
||||
#############################
|
||||
### settings for i3-gaps: ###
|
||||
#############################
|
||||
|
||||
# Set inner/outer gaps
|
||||
gaps inner 5
|
||||
gaps outer 0
|
||||
|
||||
# Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size.
|
||||
# gaps inner|outer current|all set|plus|minus <px>
|
||||
# gaps inner all set 10
|
||||
# gaps outer all plus 5
|
||||
|
||||
# Smart gaps (gaps used if only more than one container on the workspace)
|
||||
smart_gaps on
|
||||
|
||||
# Smart borders (draw borders around container only if it is not the only container on this workspace)
|
||||
# on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0)
|
||||
smart_borders on
|
||||
|
||||
# Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps. Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace). If you also press Shift with these keys, the change will be global for all workspaces.
|
||||
set $mode_gaps Gaps: (o) outer, (i) inner
|
||||
set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||
set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||
bindsym $mod+Shift+g mode "$mode_gaps"
|
||||
|
||||
mode "$mode_gaps" {
|
||||
bindsym o mode "$mode_gaps_outer"
|
||||
bindsym i mode "$mode_gaps_inner"
|
||||
bindsym Return mode "default"
|
||||
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 "default"
|
||||
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 "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
@@ -0,0 +1,503 @@
|
||||
;=====================================================
|
||||
;
|
||||
; To learn more about how to configure Polybar
|
||||
; go to https://github.com/jaagr/polybar
|
||||
;
|
||||
; The README contains alot of information
|
||||
;
|
||||
;=====================================================
|
||||
|
||||
[colors]
|
||||
background = #000
|
||||
foreground = #fff
|
||||
foreground-alt = #555
|
||||
|
||||
[bar/landscape]
|
||||
|
||||
; not used: songname menu-media xbacklightbuttons
|
||||
modules-left = i3touchmenu update ovpn nvpn usbmodem1 usbmodem2 usbmodem3 eth wlan
|
||||
modules-center = xbacklight i3 volume
|
||||
modules-right = cpu memory temperature disk battery date
|
||||
|
||||
monitor = ${env:MONITOR:eDP1}
|
||||
width = 100%
|
||||
height = 20
|
||||
fixed-center = true
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
line-size = 3
|
||||
line-color = #000
|
||||
separator =|
|
||||
module-margin-left = 1
|
||||
module-margin-right = 1
|
||||
padding-right= 2
|
||||
font-0 = Hack Nerd Font:fontformat=truetype:pixelsize=10;1
|
||||
font-1 = Font Awesome 5 Free:fontformat=truetype:pixelsize=10:antialias=true;0
|
||||
tray-position = left
|
||||
tray-padding = 9
|
||||
tray-detached = false
|
||||
tray-maxsize = 15
|
||||
tray-background = ${root.background}
|
||||
tray-scale = 1.0
|
||||
enable-ipc = true
|
||||
|
||||
[bar/portrait]
|
||||
; not used: songname menu-media update disk eth
|
||||
modules-left = i3touchmenu xbacklightbuttons ovpn nvpn usbmodem1 usbmodem2 usbmodem3 wlanshort
|
||||
modules-center = xbacklight i3 volume
|
||||
modules-right = cpu memory temperature batteryshort date
|
||||
|
||||
monitor = ${env:MONITOR:eDP1}
|
||||
width = 100%
|
||||
height = 20
|
||||
fixed-center = true
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
line-size = 3
|
||||
line-color = #000
|
||||
separator =|
|
||||
module-margin-left = 1
|
||||
module-margin-right = 1
|
||||
padding-right= 2
|
||||
font-0 = Hack Nerd Font:fontformat=truetype:pixelsize=10;1
|
||||
font-1 = Font Awesome 5 Free:fontformat=truetype:pixelsize=10:antialias=true;0
|
||||
tray-position = left
|
||||
tray-padding = 9
|
||||
tray-detached = false
|
||||
tray-maxsize = 15
|
||||
tray-background = ${root.background}
|
||||
tray-scale = 1.0
|
||||
enable-ipc = true
|
||||
|
||||
|
||||
|
||||
[module/i3]
|
||||
type = internal/i3
|
||||
pin-workspaces = false
|
||||
strip-wsnumbers = true
|
||||
index-sort = true
|
||||
enable-click = true
|
||||
enable-scroll = true
|
||||
wrapping-scroll = true
|
||||
reverse-scroll = true
|
||||
fuzzy-match = false
|
||||
format = <label-state> <label-mode>
|
||||
label-mode = %mode%
|
||||
label-mode-padding = 1
|
||||
label-mode-background = ${colors.background}
|
||||
label-focused =%icon%%name%
|
||||
label-focused-foreground = ${colors.foreground}
|
||||
label-focused-background = ${colors.background}
|
||||
label-focused-underline = #fff
|
||||
label-focused-margin = 2
|
||||
label-unfocused =%icon%%name%
|
||||
label-unfocused-foreground = ${colors.foreground}
|
||||
label-unfocused-background = ${colors.background}
|
||||
label-unfocused-margin = 1
|
||||
label-visible =%icon%%name%
|
||||
label-visible-underline = #fff
|
||||
label-visible-margin = 1
|
||||
label-urgent =%icon%%name%!
|
||||
label-urgent-foreground = ${colors.foreground-alt}
|
||||
label-urgent-background = ${colors.background}
|
||||
label-urgent-padding = 1
|
||||
|
||||
[module/menu-media]
|
||||
type = custom/menu
|
||||
expand-right = true
|
||||
label-open =
|
||||
label-close =
|
||||
label-separator = " "
|
||||
menu-0-0 =
|
||||
menu-0-0-exec = "playerctl previous"
|
||||
menu-0-1 =
|
||||
menu-0-1-exec = "playerctl play-pause"
|
||||
menu-0-2 =
|
||||
menu-0-2-exec = "playerctl next"
|
||||
|
||||
[module/ovpn]
|
||||
type = custom/script
|
||||
interval = 3
|
||||
format = ovpn: <label>
|
||||
label-maxlen=50
|
||||
label-ellipsis=true
|
||||
exec = echo $(nmcli con show --active | grep vpn | cut -c1-12 | tr -d ' ')
|
||||
|
||||
[module/nvpn]
|
||||
type = custom/script
|
||||
interval = 3
|
||||
format = nvpn: <label>
|
||||
label-maxlen=50
|
||||
label-ellipsis=true
|
||||
exec = echo $(nordvpn status | grep -oP '(?<=Current server: ).*' | cut -f1 -d'.')
|
||||
|
||||
[module/update]
|
||||
type = custom/script
|
||||
interval = 60
|
||||
format = upd: <label>
|
||||
label-maxlen=15
|
||||
label-ellipsis=true
|
||||
exec = "echo $(yay -Qu 2>/dev/null | wc -l | awk '$1 ~ /^[[:digit:]]+$/')"
|
||||
click-left = "setsid urxvt -e sh -c 'echo ---UPDATE LIST---; echo; yay -Qu; echo ; read -p ---END---'"
|
||||
click-right = "setsid urxvt -e sh -c 'echo ---UPDATING---; echo ; yay -Syu --sudoloop; echo ; read -p ---END---'"
|
||||
click-middle = "setsid urxvt -e sh -c 'echo ---UPDATING, NOCONFIRM---; echo ; yay -Syu --sudoloop --noconfirm; echo ; read -p ---END---'"
|
||||
|
||||
[module/quicklaunch]
|
||||
type = custom/script
|
||||
format = | <label>
|
||||
interval = 999999999
|
||||
exec = echo quick
|
||||
label = quick
|
||||
label-maxlen=5
|
||||
label-ellipsis=false
|
||||
click-left = "setsid quicklaunch"
|
||||
|
||||
[module/songname]
|
||||
type = custom/script
|
||||
interval = 3
|
||||
format = <label>
|
||||
label-maxlen=50
|
||||
label-ellipsis=true
|
||||
exec = echo $(printf "%s: %s" "$(playerctl metadata artist 2>&1)" "$(playerctl metadata title 2>&1)" | sed -r 's/No players found//g;' | awk 'length > 2')
|
||||
click-left = "playerctl play-pause"
|
||||
click-right = "playerctl next"
|
||||
click-middle = "playerctl previous"
|
||||
|
||||
[module/xbacklightbuttons]
|
||||
type = custom/menu
|
||||
expand-right = true
|
||||
label-open = blght
|
||||
label-close = x
|
||||
label-separator = " "
|
||||
menu-0-0 = -
|
||||
menu-0-0-exec = "xbacklight -dec 10; notify-send 'brightness down'"
|
||||
menu-0-1 = +
|
||||
menu-0-1-exec = "xbacklight -inc 10; notify-send 'brightness up'"
|
||||
|
||||
[module/xbacklight]
|
||||
type = internal/xbacklight
|
||||
format = <label>
|
||||
label = %percentage%
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
interval = 2
|
||||
label = cpu: %percentage%%
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
interval = 2
|
||||
label = ram: %percentage_used%%
|
||||
|
||||
[module/temperature]
|
||||
type = internal/temperature
|
||||
interval = 3
|
||||
label = tmp: %temperature-c%
|
||||
|
||||
[module/wlan]
|
||||
type = internal/network
|
||||
interface = wlp2s0
|
||||
interval = 3
|
||||
format-connected = <label-connected>
|
||||
label-connected = %ifname%: %local_ip% [%essid%]
|
||||
|
||||
[module/wlanshort]
|
||||
type = internal/network
|
||||
interface = wlp2s0
|
||||
interval = 3
|
||||
format-connected = <label-connected>
|
||||
label-connected = %essid%
|
||||
|
||||
[module/eth]
|
||||
type = internal/network
|
||||
interface = enp60s0u1u4
|
||||
interval = 3
|
||||
format-connected = <label-connected>
|
||||
label-connected = %ifname%: %local_ip%
|
||||
|
||||
[module/usbmodem1]
|
||||
type = custom/script
|
||||
format = usb: <label>
|
||||
interval = 3
|
||||
exec = echo $(ip -4 addr show enp0s20f0u1 2>&1 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
|
||||
|
||||
[module/usbmodem2]
|
||||
type = custom/script
|
||||
format = usb: <label>
|
||||
interval = 3
|
||||
exec = echo $(ip -4 addr show enp0s20f0u6 2>&1 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
|
||||
|
||||
[module/usbmodem3]
|
||||
type = custom/script
|
||||
format = usb: <label>
|
||||
interval = 3
|
||||
exec = echo $(ip -4 addr show enp0s20f0u3 2>&1 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
interval = 1
|
||||
date = tme:
|
||||
date-alt = %d.%m.%Y,
|
||||
time = %H:%M
|
||||
time-alt = %H:%M:%S
|
||||
label = %date% %time%
|
||||
|
||||
[module/volume]
|
||||
type = internal/alsa
|
||||
format-volume = <label-volume>
|
||||
label-volume = %percentage%
|
||||
label-volume-foreground = ${root.foreground}
|
||||
format-muted-foreground = ${root.foreground}
|
||||
label-muted = x
|
||||
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
battery = BAT0
|
||||
poll-interval = 3
|
||||
adapter = ADP1
|
||||
full-at = 95
|
||||
label-full = bat: %percentage%%
|
||||
label-charging = bat: %percentage%% (+%consumption%W, %time%)
|
||||
label-discharging = bat: %percentage%% (-%consumption%W, %time%)
|
||||
|
||||
[module/batteryshort]
|
||||
type = internal/battery
|
||||
battery = BAT0
|
||||
poll-interval = 3
|
||||
adapter = ADP1
|
||||
full-at = 95
|
||||
label-full = bat: %percentage%%
|
||||
label-charging = bat: %percentage%%
|
||||
label-discharging = bat: %percentage%%
|
||||
|
||||
[module/disk]
|
||||
type = internal/fs
|
||||
mount-0 = /
|
||||
interval = 10
|
||||
fixed-values = true
|
||||
spacing = 4
|
||||
label-mounted = dsk: %used% / %total%
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
||||
|
||||
[global/wm]
|
||||
margin-top = 0
|
||||
margin-bottom = 5
|
||||
|
||||
[module/i3touchmenu]
|
||||
type = custom/menu
|
||||
|
||||
expand-right = true
|
||||
|
||||
format-spacing = 1
|
||||
|
||||
;; Open the menu
|
||||
label-open = "| touch"
|
||||
label-open-foreground = #FFF
|
||||
|
||||
;; Close the menu
|
||||
label-close = "| x"
|
||||
label-separator = "'"
|
||||
|
||||
;; Launcher
|
||||
menu-0-0 =
|
||||
menu-0-0-exec = menu-open-1
|
||||
|
||||
;; Move
|
||||
menu-0-1 =
|
||||
menu-0-1-exec = menu-open-2
|
||||
|
||||
;; Layout
|
||||
menu-0-2 =
|
||||
menu-0-2-exec = menu-open-3
|
||||
|
||||
;; Split
|
||||
menu-0-3 =
|
||||
menu-0-3-exec = menu-open-4
|
||||
|
||||
;; Resize
|
||||
menu-0-4 =
|
||||
menu-0-4-exec = menu-open-5
|
||||
|
||||
;; Move to workspace
|
||||
menu-0-5 =
|
||||
menu-0-5-exec = menu-open-6
|
||||
|
||||
;; Kill
|
||||
menu-0-6 =
|
||||
menu-0-6-exec = menu-open-7
|
||||
|
||||
|
||||
;; Power
|
||||
menu-0-7 =""
|
||||
menu-0-7-exec = menu-open-8
|
||||
|
||||
;; Launcher: Back to main menu
|
||||
menu-1-0 =
|
||||
menu-1-0-exec = menu-open-0
|
||||
|
||||
;; Launcher
|
||||
menu-1-1="quick"
|
||||
menu-1-1-exec= setsid quicklaunch
|
||||
|
||||
:: Launcher
|
||||
menu-1-2="xournal"
|
||||
menu-1-2-exec = "setsid xournalpp"
|
||||
|
||||
:: Launcher
|
||||
menu-1-3="sync"
|
||||
menu-1-3-exec = "setsid python Sync/o_school/5AHEL/Notebooks/pdfconvert.py"
|
||||
|
||||
:: Launcher
|
||||
menu-1-4=""
|
||||
menu-1-4-exec = urxvt &
|
||||
|
||||
;; Move: Back to main menu
|
||||
menu-2-0 =
|
||||
menu-2-0-exec = menu-open-0
|
||||
|
||||
;; Move: Left
|
||||
menu-2-1 =
|
||||
menu-2-1-exec = i3-msg 'move left'
|
||||
|
||||
;; Move: Right
|
||||
menu-2-2 =
|
||||
menu-2-2-exec = i3-msg 'move right'
|
||||
|
||||
;; Move: Up
|
||||
menu-2-3 =
|
||||
menu-2-3-exec = i3-msg 'move up'
|
||||
|
||||
;; Move: Down
|
||||
menu-2-4 = ""
|
||||
menu-2-4-exec = i3-msg 'move down'
|
||||
|
||||
;; Layout: Back to main menu
|
||||
menu-3-0 =
|
||||
menu-3-0-exec = menu-open-0
|
||||
|
||||
|
||||
;; Layout: Split
|
||||
menu-3-1 = split
|
||||
menu-3-1-exec = i3-msg 'layout toggle split'
|
||||
|
||||
;; Layout: Stacking
|
||||
menu-3-2 = stack
|
||||
menu-3-2-exec = i3-msg 'layout stacking'
|
||||
|
||||
;; Layout: Tabbed
|
||||
menu-3-3 = tab
|
||||
menu-3-3-exec = i3-msg 'layout tabbed'
|
||||
|
||||
;; Layout: Toggle floating
|
||||
menu-3-4 = float
|
||||
menu-3-4-exec = i3-msg 'floating toggle'
|
||||
|
||||
;; Split: Back to main menu
|
||||
menu-4-0 =
|
||||
menu-4-0-exec = menu-open-0
|
||||
|
||||
|
||||
;; Split: Vertical
|
||||
menu-4-1 = vert
|
||||
menu-4-1-exec = i3-msg 'split v'
|
||||
|
||||
;; Split: Horizontal
|
||||
menu-4-2 = horz
|
||||
menu-4-2-exec = i3-msg 'split h'
|
||||
|
||||
;; Resize: Back to main menu
|
||||
menu-5-0 =
|
||||
menu-5-0-exec = menu-open-0
|
||||
|
||||
|
||||
;; Resize: Grow height
|
||||
menu-5-1 = h+
|
||||
menu-5-1-exec = i3-msg 'resize grow height 5 px or 5 ppt'
|
||||
|
||||
;; Resize: Shrink height
|
||||
menu-5-2 = h-
|
||||
menu-5-2-exec = i3-msg 'resize shrink height 5 px or 5 ppt'
|
||||
|
||||
;; Resize: Grow width
|
||||
menu-5-3 = w+
|
||||
menu-5-3-exec = i3-msg 'resize grow width 5 px or 5 ppt'
|
||||
|
||||
;; Resize: Shrink width
|
||||
menu-5-4 = w-
|
||||
menu-5-4-exec = i3-msg 'resize shrink width 5 px or 5 ppt'
|
||||
|
||||
;; Move to workspace: Back to main menu
|
||||
menu-6-0 =
|
||||
menu-6-0-exec = menu-open-0
|
||||
|
||||
|
||||
;; Move to workspace: 1
|
||||
menu-6-1 = 1
|
||||
menu-6-1-exec = i3-msg 'move container to workspace 1'
|
||||
|
||||
;; Move to workspace: 2
|
||||
menu-6-2 = 2
|
||||
menu-6-2-exec = i3-msg 'move container to workspace 2'
|
||||
|
||||
;; Move to workspace: 3
|
||||
menu-6-3 = 3
|
||||
menu-6-3-exec = i3-msg 'move container to workspace 3'
|
||||
|
||||
;; Move to workspace: 4
|
||||
menu-6-4 = 4
|
||||
menu-6-4-exec = i3-msg 'move container to workspace 4'
|
||||
|
||||
;; Move to workspace: 5
|
||||
menu-6-5 = 5
|
||||
menu-6-5-exec = i3-msg 'move container to workspace 5'
|
||||
|
||||
;; Move to workspace: 6
|
||||
menu-6-6 = 6
|
||||
menu-6-6-exec = i3-msg 'move container to workspace 6'
|
||||
|
||||
;; Move to workspace: 7
|
||||
menu-6-7 = 7
|
||||
menu-6-7-exec = i3-msg 'move container to workspace 7'
|
||||
|
||||
;; Move to workspace: 8
|
||||
menu-6-8 = 8
|
||||
menu-6-8-exec = i3-msg 'move container to workspace 8'
|
||||
|
||||
;; Move to workspace: 9
|
||||
menu-6-9 = 9
|
||||
menu-6-9-exec = i3-msg 'move container to workspace 9'
|
||||
|
||||
;; Move to workspace: 10
|
||||
menu-6-10 = "10"
|
||||
menu-6-10-exec = i3-msg 'move container to workspace 10'
|
||||
|
||||
;; Kill: Back to main menu
|
||||
menu-7-0 =
|
||||
menu-7-0-exec = menu-open-0
|
||||
|
||||
|
||||
;; Kill: Kill
|
||||
menu-7-1 = "confirm"
|
||||
menu-7-1-exec = i3-msg 'kill'
|
||||
|
||||
;; Power: Back to main menu
|
||||
menu-8-0 =
|
||||
menu-8-0-exec = menu-open-0
|
||||
|
||||
;; Power: Screen off
|
||||
menu-8-1 =
|
||||
menu-8-1-exec = xset dpms force off
|
||||
|
||||
;; Power: Lock
|
||||
menu-8-2 =
|
||||
menu-8-2-exec = i3lock
|
||||
|
||||
;; Power: Reboot
|
||||
menu-8-3 =
|
||||
menu-8-3-exec = shutdown -r now
|
||||
|
||||
;; Power: Shutdown
|
||||
menu-8-4 = ""
|
||||
menu-8-4-exec = shutdown -h now
|
||||
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Terminate already running bar instances
|
||||
killall -q polybar
|
||||
|
||||
# Wait until the processes have been shut down
|
||||
while pgrep -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
# Launch
|
||||
polybar landscape -r &
|
||||
|
||||
insync
|
||||
echo "Bar launched..."
|
||||
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Terminate already running bar instances
|
||||
killall -q polybar
|
||||
|
||||
# Wait until the processes have been shut down
|
||||
while pgrep -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
# Launch
|
||||
polybar portrait -r &
|
||||
|
||||
insync
|
||||
|
||||
echo "Bar launched..."
|
||||
@@ -0,0 +1,339 @@
|
||||
# https://github.com/jaagr/dots/tree/master/.local/etc/themer/themes
|
||||
|
||||
[bar/top]
|
||||
monitor = eDP-1
|
||||
width = 100%
|
||||
height = 34
|
||||
|
||||
background = #00000000
|
||||
foreground = #ccffffff
|
||||
|
||||
line-color = ${bar/bottom.background}
|
||||
line-size = 16
|
||||
|
||||
spacing = 2
|
||||
padding-right = 5
|
||||
module-margin = 4
|
||||
|
||||
font-0 = NotoSans-Regular:size=8;-1
|
||||
font-1 = MaterialIcons:size=10;0
|
||||
font-2 = Termsynu:size=8:antialias=false;-2
|
||||
font-3 = FontAwesome:size=10;0
|
||||
|
||||
modules-left = powermenu mpd
|
||||
modules-right = volume backlight wireless-network wired-network battery date
|
||||
|
||||
[bar/bottom]
|
||||
monitor = eDP-1
|
||||
bottom = true
|
||||
width = 100%
|
||||
height = 27
|
||||
|
||||
background = ${bar/top.background}
|
||||
foreground = ${bar/top.foreground}
|
||||
|
||||
line-color = ${bar/top.background}
|
||||
line-size = 2
|
||||
|
||||
spacing = 3
|
||||
padding-right = 4
|
||||
module-margin-left = 0
|
||||
module-margin-right = 6
|
||||
|
||||
font-0 = NotoSans-Regular:size=8;0
|
||||
font-1 = unifont:size=6;-3
|
||||
font-2 = FontAwesome:size=8;-2
|
||||
font-3 = NotoSans-Regular:size=8;-1
|
||||
font-4 = MaterialIcons:size=10;-1
|
||||
font-5 = Termsynu:size=8:antialias=false;0
|
||||
|
||||
modules-left = bspwm
|
||||
modules-right = cpu memory
|
||||
|
||||
[module/backlight]
|
||||
type = internal/xbacklight
|
||||
format = <ramp> <bar>
|
||||
|
||||
ramp-0 =
|
||||
ramp-1 =
|
||||
ramp-2 =
|
||||
|
||||
bar-width = 10
|
||||
bar-indicator = |
|
||||
bar-indicator-font = 3
|
||||
bar-indicator-foreground = #ff
|
||||
bar-fill = ─
|
||||
bar-fill-font = 3
|
||||
bar-fill-foreground = #c9665e
|
||||
bar-empty = ─
|
||||
bar-empty-font = 3
|
||||
bar-empty-foreground = #44
|
||||
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
full-at = 98
|
||||
|
||||
format-charging = <animation-charging> <label-charging>
|
||||
format-discharging = <ramp-capacity> <label-discharging>
|
||||
format-full = <ramp-capacity> <label-full>
|
||||
|
||||
ramp-capacity-0 =
|
||||
ramp-capacity-0-foreground = #f53c3c
|
||||
ramp-capacity-1 =
|
||||
ramp-capacity-1-foreground = #ffa900
|
||||
ramp-capacity-2 =
|
||||
ramp-capacity-3 =
|
||||
ramp-capacity-4 =
|
||||
|
||||
bar-capacity-width = 10
|
||||
bar-capacity-format = %{+u}%{+o}%fill%%empty%%{-u}%{-o}
|
||||
bar-capacity-fill = █
|
||||
bar-capacity-fill-foreground = #ddffffff
|
||||
bar-capacity-fill-font = 3
|
||||
bar-capacity-empty = █
|
||||
bar-capacity-empty-font = 3
|
||||
bar-capacity-empty-foreground = #44ffffff
|
||||
|
||||
animation-charging-0 =
|
||||
animation-charging-1 =
|
||||
animation-charging-2 =
|
||||
animation-charging-3 =
|
||||
animation-charging-4 =
|
||||
animation-charging-framerate = 750
|
||||
|
||||
[module/bspwm]
|
||||
type = internal/bspwm
|
||||
|
||||
ws-icon-0 = term;
|
||||
ws-icon-1 = web;
|
||||
ws-icon-2 = code;
|
||||
ws-icon-3 = music;
|
||||
ws-icon-4 = irssi;
|
||||
ws-icon-default =
|
||||
|
||||
format = <label-state> <label-mode>
|
||||
|
||||
label-dimmed-underline = ${BAR.background}
|
||||
|
||||
label-active = %icon%
|
||||
label-active-foreground = #fff
|
||||
label-active-background = #773f3f3f
|
||||
label-active-underline = #c9665e
|
||||
label-active-font = 4
|
||||
label-active-padding = 4
|
||||
|
||||
label-occupied = %icon%
|
||||
label-occupied-foreground = #dd
|
||||
label-occupied-underline = #666
|
||||
label-occupied-font = 4
|
||||
label-occupied-padding = 4
|
||||
|
||||
label-urgent = %icon%
|
||||
label-urgent-foreground = #000000
|
||||
label-urgent-background = #bd2c40
|
||||
label-urgent-underline = #9b0a20
|
||||
label-urgent-font = 4
|
||||
label-urgent-padding = 4
|
||||
|
||||
label-empty = %icon%
|
||||
label-empty-foreground = #55
|
||||
label-empty-font = 4
|
||||
label-empty-padding = 4
|
||||
|
||||
label-monocle =
|
||||
label-monocle-underline = ${module/bspwm.label-active-underline}
|
||||
label-monocle-background = #33ffffff
|
||||
label-monocle-padding = 2
|
||||
|
||||
label-locked =
|
||||
label-locked-foreground = #bd2c40
|
||||
label-locked-underline = ${module/bspwm.label-monocle-underline}
|
||||
label-locked-padding = ${module/bspwm.label-monocle-padding}
|
||||
|
||||
label-sticky =
|
||||
label-sticky-foreground = #fba922
|
||||
label-sticky-underline = ${module/bspwm.label-monocle-underline}
|
||||
label-sticky-padding = ${module/bspwm.label-monocle-padding}
|
||||
|
||||
label-private =
|
||||
label-private-foreground = #bd2c40
|
||||
label-private-underline = ${module/bspwm.label-monocle-underline}
|
||||
label-private-padding = ${module/bspwm.label-monocle-padding}
|
||||
|
||||
[module/bspwm-tmp]
|
||||
type = internal/bspwm
|
||||
format = <label-state>
|
||||
|
||||
label-active =
|
||||
label-active-padding = 1
|
||||
label-occupied =
|
||||
label-occupied-padding = 1
|
||||
label-empty =
|
||||
label-empty-padding = 1
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
interval = 0.5
|
||||
format = <label> <ramp-coreload>
|
||||
label = CPU
|
||||
|
||||
ramp-coreload-0 = ▁
|
||||
ramp-coreload-0-font = 2
|
||||
ramp-coreload-0-foreground = #aaff77
|
||||
ramp-coreload-1 = ▂
|
||||
ramp-coreload-1-font = 2
|
||||
ramp-coreload-1-foreground = #aaff77
|
||||
ramp-coreload-2 = ▃
|
||||
ramp-coreload-2-font = 2
|
||||
ramp-coreload-2-foreground = #aaff77
|
||||
ramp-coreload-3 = ▄
|
||||
ramp-coreload-3-font = 2
|
||||
ramp-coreload-3-foreground = #aaff77
|
||||
ramp-coreload-4 = ▅
|
||||
ramp-coreload-4-font = 2
|
||||
ramp-coreload-4-foreground = #fba922
|
||||
ramp-coreload-5 = ▆
|
||||
ramp-coreload-5-font = 2
|
||||
ramp-coreload-5-foreground = #fba922
|
||||
ramp-coreload-6 = ▇
|
||||
ramp-coreload-6-font = 2
|
||||
ramp-coreload-6-foreground = #ff5555
|
||||
ramp-coreload-7 = █
|
||||
ramp-coreload-7-font = 2
|
||||
ramp-coreload-7-foreground = #ff5555
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
date = %%{F#99}%Y-%m-%d%%{F-} %%{F#fff}%H:%M%%{F-}
|
||||
date-alt = %%{F#fff}%A, %d %B %Y %%{F#fff}%H:%M%%{F#666}:%%{F#fba922}%S%%{F-}
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
format = <label> <bar-used>
|
||||
label = RAM
|
||||
|
||||
bar-used-width = 30
|
||||
bar-used-foreground-0 = #aaff77
|
||||
bar-used-foreground-1 = #aaff77
|
||||
bar-used-foreground-2 = #fba922
|
||||
bar-used-foreground-3 = #ff5555
|
||||
bar-used-indicator = |
|
||||
bar-used-indicator-font = 6
|
||||
bar-used-indicator-foreground = #ff
|
||||
bar-used-fill = ─
|
||||
bar-used-fill-font = 6
|
||||
bar-used-empty = ─
|
||||
bar-used-empty-font = 6
|
||||
bar-used-empty-foreground = #444444
|
||||
|
||||
[module/mpd]
|
||||
type = internal/mpd
|
||||
format-online = <icon-prev> <icon-stop> <toggle> <icon-next> <icon-repeat> <icon-random> <bar-progress> <label-time> <label-song>
|
||||
|
||||
icon-play =
|
||||
icon-pause =
|
||||
icon-stop =
|
||||
icon-prev =
|
||||
icon-next =
|
||||
icon-random =
|
||||
icon-repeat =
|
||||
|
||||
toggle-on-foreground =
|
||||
toggle-off-foreground = #55
|
||||
|
||||
bar-progress-width = 45
|
||||
bar-progress-format = %{A4:mpdseek+2: A5:mpdseek-2:}%fill%%indicator%%empty%%{A A}
|
||||
bar-progress-indicator = |
|
||||
bar-progress-indicator-foreground = #ff
|
||||
bar-progress-indicator-font = 3
|
||||
bar-progress-fill = ─
|
||||
bar-progress-fill-foreground = #bb
|
||||
bar-progress-fill-font = 3
|
||||
bar-progress-empty = ─
|
||||
bar-progress-empty-font = 3
|
||||
bar-progress-empty-foreground = #44
|
||||
|
||||
[module/wireless-network]
|
||||
type = internal/network
|
||||
interface = net1
|
||||
interval = 3.0
|
||||
ping-interval = 10
|
||||
|
||||
format-connected = <ramp-signal> <label-connected>
|
||||
label-connected = %essid%
|
||||
label-disconnected = not connected
|
||||
label-disconnected-foreground = #66
|
||||
|
||||
ramp-signal-0 =
|
||||
ramp-signal-1 =
|
||||
ramp-signal-2 =
|
||||
ramp-signal-3 =
|
||||
ramp-signal-4 =
|
||||
|
||||
animation-packetloss-0 =
|
||||
animation-packetloss-0-foreground = #ffa64c
|
||||
animation-packetloss-1 =
|
||||
animation-packetloss-1-foreground = ${bar/top.foreground}
|
||||
animation-packetloss-framerate = 500
|
||||
|
||||
[module/wired-network]
|
||||
type = internal/network
|
||||
interface = net0
|
||||
interval = 3.0
|
||||
|
||||
label-connected = %{T3}%local_ip%%{T-}
|
||||
label-disconnected-foreground = #66
|
||||
|
||||
[module/volume]
|
||||
type = internal/volume
|
||||
speaker-mixer = Speaker
|
||||
headphone-mixer = Headphone
|
||||
headphone-id = 9
|
||||
|
||||
format-volume = <ramp-volume> <label-volume>
|
||||
label-muted = muted
|
||||
label-muted-foreground = #66
|
||||
|
||||
ramp-volume-0 =
|
||||
ramp-volume-1 =
|
||||
ramp-volume-2 =
|
||||
ramp-volume-3 =
|
||||
|
||||
[module/powermenu]
|
||||
type = custom/menu
|
||||
|
||||
format-padding = 5
|
||||
|
||||
label-open =
|
||||
label-close =
|
||||
|
||||
menu-0-0 = Terminate WM
|
||||
menu-0-0-foreground = #fba922
|
||||
menu-0-0-exec = bspc quit -1
|
||||
menu-0-1 = Reboot
|
||||
menu-0-1-foreground = #fba922
|
||||
menu-0-1-exec = menu_open-1
|
||||
menu-0-2 = Power off
|
||||
menu-0-2-foreground = #fba922
|
||||
menu-0-2-exec = menu_open-2
|
||||
|
||||
menu-1-0 = Cancel
|
||||
menu-1-0-foreground = #fba922
|
||||
menu-1-0-exec = menu_open-0
|
||||
menu-1-1 = Reboot
|
||||
menu-1-1-foreground = #fba922
|
||||
menu-1-1-exec = sudo reboot
|
||||
|
||||
menu-2-0 = Power off
|
||||
menu-2-0-foreground = #fba922
|
||||
menu-2-0-exec = sudo poweroff
|
||||
menu-2-1 = Cancel
|
||||
menu-2-1-foreground = #fba922
|
||||
menu-2-1-exec = menu_open-0
|
||||
|
||||
[module/clock]
|
||||
type = internal/date
|
||||
interval = 2
|
||||
date = %%{F#999}%Y-%m-%d%%{F-} %%{F#fff}%H:%M%%{F-}
|
||||
|
||||
; vim:ft=dosini
|
||||
@@ -0,0 +1,122 @@
|
||||
#!/bin/python
|
||||
|
||||
import sys
|
||||
import dbus
|
||||
import argparse
|
||||
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument(
|
||||
'-t',
|
||||
'--trunclen',
|
||||
type=int,
|
||||
metavar='trunclen'
|
||||
)
|
||||
parser.add_argument(
|
||||
'-f',
|
||||
'--format',
|
||||
type=str,
|
||||
metavar='custom format',
|
||||
dest='custom_format'
|
||||
)
|
||||
parser.add_argument(
|
||||
'-p',
|
||||
'--playpause',
|
||||
type=str,
|
||||
metavar='play-pause indicator',
|
||||
dest='play_pause'
|
||||
)
|
||||
parser.add_argument(
|
||||
'--font',
|
||||
type=str,
|
||||
metavar='the index of the font to use for the main label',
|
||||
dest='font'
|
||||
)
|
||||
parser.add_argument(
|
||||
'--playpause-font',
|
||||
type=str,
|
||||
metavar='the index of the font to use to display the playpause indicator',
|
||||
dest='play_pause_font'
|
||||
)
|
||||
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
def fix_string(string):
|
||||
# corrects encoding for the python version used
|
||||
if sys.version_info.major == 3:
|
||||
return string
|
||||
else:
|
||||
return string.encode('utf-8')
|
||||
|
||||
# Default parameters
|
||||
output = fix_string(u'{play_pause} {artist}: {song}')
|
||||
trunclen = 25
|
||||
play_pause = fix_string(u'\u25B6,\u23F8') # first character is play, second is paused
|
||||
|
||||
label_with_font = '%{{T{font}}}{label}%{{T-}}'
|
||||
font = args.font
|
||||
play_pause_font = args.play_pause_font
|
||||
|
||||
# parameters can be overwritten by args
|
||||
if args.trunclen is not None:
|
||||
trunclen = args.trunclen
|
||||
if args.custom_format is not None:
|
||||
output = args.custom_format
|
||||
if args.play_pause is not None:
|
||||
play_pause = args.play_pause
|
||||
|
||||
try:
|
||||
session_bus = dbus.SessionBus()
|
||||
spotify_bus = session_bus.get_object(
|
||||
'org.mpris.MediaPlayer2.spotify',
|
||||
'/org/mpris/MediaPlayer2'
|
||||
)
|
||||
|
||||
spotify_properties = dbus.Interface(
|
||||
spotify_bus,
|
||||
'org.freedesktop.DBus.Properties'
|
||||
)
|
||||
|
||||
metadata = spotify_properties.Get('org.mpris.MediaPlayer2.Player', 'Metadata')
|
||||
status = spotify_properties.Get('org.mpris.MediaPlayer2.Player', 'PlaybackStatus')
|
||||
|
||||
# Handle play/pause label
|
||||
|
||||
play_pause = play_pause.split(',')
|
||||
|
||||
if status == 'Playing':
|
||||
play_pause = play_pause[0]
|
||||
elif status == 'Paused':
|
||||
play_pause = play_pause[1]
|
||||
else:
|
||||
play_pause = str()
|
||||
|
||||
if play_pause_font:
|
||||
play_pause = label_with_font.format(font=play_pause_font, label=play_pause)
|
||||
|
||||
# Handle main label
|
||||
|
||||
artist = fix_string(metadata['xesam:artist'][0]) if metadata['xesam:artist'] else ''
|
||||
song = fix_string(metadata['xesam:title']) if metadata['xesam:title'] else ''
|
||||
|
||||
if not artist and not song:
|
||||
print('')
|
||||
else:
|
||||
if len(song) > trunclen:
|
||||
song = song[0:trunclen]
|
||||
song += '...'
|
||||
if ('(' in song) and (')' not in song):
|
||||
song += ')'
|
||||
|
||||
if font:
|
||||
artist = label_with_font.format(font=font, label=artist)
|
||||
song = label_with_font.format(font=font, label=song)
|
||||
|
||||
print(output.format(artist=artist, song=song, play_pause=play_pause))
|
||||
|
||||
except Exception as e:
|
||||
if isinstance(e, dbus.exceptions.DBusException):
|
||||
print('')
|
||||
else:
|
||||
print(e)
|
||||
@@ -0,0 +1,4 @@
|
||||
SUBSYSTEM=="bluetooth"
|
||||
ACTION=="add"
|
||||
ATTRS{address}=="90:7F:61:39:20:62"
|
||||
RUN+="su sim -c 'bash /home/sim/Userdata/Scripts/activepen_button_udev.sh'"
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
notify-send "Pen Button"
|
||||
touch "hii.txt"
|
||||
@@ -0,0 +1,55 @@
|
||||
#!/bin/zsh
|
||||
|
||||
# *INSTALL******
|
||||
#
|
||||
# cp batalert.sh /usr/share/scripts/batalert.sh
|
||||
#
|
||||
# /etc/systemd/system/batalert.service
|
||||
# [Unit]
|
||||
# Description=Check battery state and alert with i3-nagbar
|
||||
#
|
||||
# [Service]
|
||||
# Type=oneshot
|
||||
# ExecStart=/usr/share/scripts/batalert.sh
|
||||
#
|
||||
# /etc/systemd/system/batalert.timer
|
||||
# [Unit]
|
||||
# Description= Periodically check battery state and alert with i3-nagbar
|
||||
#
|
||||
# [Timer]
|
||||
# OnUnitActiveSec=60s
|
||||
# OnBootSec=30s
|
||||
#
|
||||
# [Install]
|
||||
# WantedBy=timers.target
|
||||
#
|
||||
# systemctl daemon-reload
|
||||
#
|
||||
# systemctl enable batalert.timer
|
||||
# systemctl start batalert.timer
|
||||
#
|
||||
# systemctl list-timers --all
|
||||
# systemctl status batalert.timer
|
||||
# systemctl status batalert.service
|
||||
#
|
||||
# *CONFIG*******
|
||||
#
|
||||
WARNING_PERCENTAGE=20
|
||||
#
|
||||
# *CODE*********
|
||||
|
||||
#i3-nagbar -t warning -m "Test"
|
||||
export DISPLAY=:0.0
|
||||
|
||||
if [ $(cat /sys/class/power_supply/BAT0/capacity) -lt $WARNING_PERCENTAGE ] && \
|
||||
[ $(cat /sys/class/power_supply/BAT0/status) = "Discharging" ] && \
|
||||
[[ ! -f ".bat-alert.lock" ]];
|
||||
then
|
||||
i3-nagbar -t warning -m "Low Battery ($(cat /sys/class/power_supply/BAT0/capacity)%)" -B "Shut down" "systemctl poweroff" -B "Hibernate" "systemctl hibernate"
|
||||
touch ".bat-alert.lock"
|
||||
else
|
||||
if [[ -f ".bat-alert.lock" ]];
|
||||
then
|
||||
rm ".bat-alert.lock"
|
||||
fi
|
||||
fi
|
||||
@@ -0,0 +1,15 @@
|
||||
tput civis
|
||||
while true;
|
||||
do
|
||||
clear
|
||||
|
||||
COUNT=0
|
||||
while [[ COUNT -lt (($LINES/2)-4) ]];
|
||||
do
|
||||
echo ""
|
||||
let COUNT=$COUNT+1
|
||||
done
|
||||
echo ""
|
||||
date +"%H : %M : %S" | figlet -c -t -f slant | lolcat
|
||||
sleep 1
|
||||
done
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
wmctrl -a firefox
|
||||
xdotool key Ctrl+w
|
||||
wmctrl -r firefox -b add,shaded
|
||||
|
After Width: | Height: | Size: 201 KiB |
|
After Width: | Height: | Size: 221 KiB |
|
After Width: | Height: | Size: 276 KiB |
|
After Width: | Height: | Size: 256 KiB |
|
After Width: | Height: | Size: 165 KiB |
|
After Width: | Height: | Size: 172 KiB |
|
After Width: | Height: | Size: 150 KiB |
|
After Width: | Height: | Size: 196 KiB |
|
After Width: | Height: | Size: 172 KiB |
|
After Width: | Height: | Size: 322 KiB |
|
After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 209 KiB |
|
After Width: | Height: | Size: 259 KiB |
|
After Width: | Height: | Size: 183 KiB |
|
After Width: | Height: | Size: 286 KiB |
|
After Width: | Height: | Size: 159 KiB |
|
After Width: | Height: | Size: 229 KiB |
|
After Width: | Height: | Size: 132 KiB |
|
After Width: | Height: | Size: 254 KiB |
|
After Width: | Height: | Size: 334 KiB |
|
After Width: | Height: | Size: 189 KiB |
|
After Width: | Height: | Size: 261 KiB |
|
After Width: | Height: | Size: 197 KiB |
|
After Width: | Height: | Size: 184 KiB |
|
After Width: | Height: | Size: 99 KiB |
|
After Width: | Height: | Size: 98 KiB |
|
After Width: | Height: | Size: 134 KiB |
|
After Width: | Height: | Size: 144 KiB |
|
After Width: | Height: | Size: 145 KiB |
|
After Width: | Height: | Size: 198 KiB |
|
After Width: | Height: | Size: 162 KiB |
|
After Width: | Height: | Size: 181 KiB |
|
After Width: | Height: | Size: 237 KiB |
|
After Width: | Height: | Size: 218 KiB |
|
After Width: | Height: | Size: 238 KiB |
|
After Width: | Height: | Size: 199 KiB |
|
After Width: | Height: | Size: 215 KiB |
|
After Width: | Height: | Size: 228 KiB |
|
After Width: | Height: | Size: 202 KiB |
|
After Width: | Height: | Size: 249 KiB |
|
After Width: | Height: | Size: 316 KiB |
|
After Width: | Height: | Size: 248 KiB |
|
After Width: | Height: | Size: 208 KiB |
|
After Width: | Height: | Size: 282 KiB |
|
After Width: | Height: | Size: 242 KiB |
|
After Width: | Height: | Size: 204 KiB |
|
After Width: | Height: | Size: 213 KiB |
|
After Width: | Height: | Size: 218 KiB |
|
After Width: | Height: | Size: 234 KiB |
|
After Width: | Height: | Size: 288 KiB |
|
After Width: | Height: | Size: 215 KiB |
|
After Width: | Height: | Size: 251 KiB |
|
After Width: | Height: | Size: 242 KiB |
|
After Width: | Height: | Size: 213 KiB |
|
After Width: | Height: | Size: 263 KiB |
|
After Width: | Height: | Size: 215 KiB |
|
After Width: | Height: | Size: 200 KiB |
|
After Width: | Height: | Size: 228 KiB |
|
After Width: | Height: | Size: 214 KiB |
|
After Width: | Height: | Size: 225 KiB |
|
After Width: | Height: | Size: 294 KiB |
|
After Width: | Height: | Size: 204 KiB |
|
After Width: | Height: | Size: 304 KiB |
|
After Width: | Height: | Size: 272 KiB |
|
After Width: | Height: | Size: 212 KiB |
|
After Width: | Height: | Size: 271 KiB |
|
After Width: | Height: | Size: 239 KiB |
|
After Width: | Height: | Size: 257 KiB |
|
After Width: | Height: | Size: 187 KiB |
|
After Width: | Height: | Size: 248 KiB |
|
After Width: | Height: | Size: 304 KiB |
|
After Width: | Height: | Size: 233 KiB |
|
After Width: | Height: | Size: 230 KiB |
|
After Width: | Height: | Size: 224 KiB |
|
After Width: | Height: | Size: 231 KiB |
|
After Width: | Height: | Size: 208 KiB |
|
After Width: | Height: | Size: 269 KiB |
|
After Width: | Height: | Size: 204 KiB |
|
After Width: | Height: | Size: 270 KiB |
|
After Width: | Height: | Size: 237 KiB |
|
After Width: | Height: | Size: 185 KiB |
|
After Width: | Height: | Size: 277 KiB |
|
After Width: | Height: | Size: 243 KiB |
|
After Width: | Height: | Size: 251 KiB |
|
After Width: | Height: | Size: 307 KiB |