Some changes
This commit is contained in:
@@ -1,65 +1,32 @@
|
|||||||
# Configuration for Alacritty, the GPU enhanced terminal emulator.
|
# 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:
|
env:
|
||||||
# TERM variable
|
|
||||||
#
|
|
||||||
# This value is used to set the `$TERM` environment variable for
|
|
||||||
# each instance of Alacritty. If it is not present, alacritty will
|
|
||||||
# check the local terminfo database and use `alacritty` if it is
|
|
||||||
# available, otherwise `xterm-256color` is used.
|
|
||||||
TERM: alacritty
|
TERM: alacritty
|
||||||
|
|
||||||
window:
|
window:
|
||||||
# Window dimensions (changes require restart)
|
|
||||||
#
|
|
||||||
# Specified in number of columns/lines, not pixels.
|
|
||||||
# If both are `0`, this setting is ignored.
|
|
||||||
#dimensions:
|
#dimensions:
|
||||||
# columns: 0
|
# columns: 0
|
||||||
# lines: 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:
|
#position:
|
||||||
# x: 0
|
# x: 0
|
||||||
# y: 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:
|
padding:
|
||||||
x: 25
|
x: 20
|
||||||
y: 25
|
y: 20
|
||||||
|
|
||||||
# Spread additional padding evenly around the terminal content.
|
|
||||||
dynamic_padding: false
|
dynamic_padding: false
|
||||||
|
|
||||||
# Window decorations
|
|
||||||
#
|
|
||||||
# Values for `decorations`:
|
# Values for `decorations`:
|
||||||
# - full: Borders and title bar
|
# - full: Borders and title bar
|
||||||
# - none: Neither borders nor 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
|
#decorations: full
|
||||||
|
|
||||||
# Startup Mode (changes require restart)
|
|
||||||
#
|
|
||||||
# Values for `startup_mode`:
|
# Values for `startup_mode`:
|
||||||
# - Windowed
|
# - Windowed
|
||||||
# - Maximized
|
# - Maximized
|
||||||
# - Fullscreen
|
# - Fullscreen
|
||||||
#
|
|
||||||
# Values for `startup_mode` (macOS only):
|
|
||||||
# - SimpleFullscreen
|
|
||||||
#startup_mode: Windowed
|
#startup_mode: Windowed
|
||||||
|
|
||||||
# Window title
|
# Window title
|
||||||
@@ -89,53 +56,22 @@ window:
|
|||||||
|
|
||||||
# Font configuration
|
# Font configuration
|
||||||
font:
|
font:
|
||||||
# Normal (roman) font face
|
|
||||||
normal:
|
normal:
|
||||||
# Font family
|
|
||||||
#
|
|
||||||
# Default:
|
|
||||||
# - (macOS) Menlo
|
|
||||||
# - (Linux/BSD) monospace
|
|
||||||
# - (Windows) Consolas
|
|
||||||
family: FiraCode Nerd Font Mono
|
family: FiraCode Nerd Font Mono
|
||||||
|
|
||||||
# The `style` can be specified to pick a specific face.
|
|
||||||
style: Regular
|
style: Regular
|
||||||
|
|
||||||
# Bold font face
|
|
||||||
#bold:
|
#bold:
|
||||||
# Font family
|
|
||||||
#
|
|
||||||
# If the bold family is not specified, it will fall back to the
|
|
||||||
# value specified for the normal font.
|
|
||||||
#family: InconsolataLGC Nerd Font Mono
|
#family: InconsolataLGC Nerd Font Mono
|
||||||
|
|
||||||
# The `style` can be specified to pick a specific face.
|
|
||||||
#style: Bold
|
#style: Bold
|
||||||
|
|
||||||
# Italic font face
|
|
||||||
#italic:
|
#italic:
|
||||||
# Font family
|
|
||||||
#
|
|
||||||
# If the italic family is not specified, it will fall back to the
|
|
||||||
# value specified for the normal font.
|
|
||||||
#family: InconsolataLGC Nerd Font Mono
|
#family: InconsolataLGC Nerd Font Mono
|
||||||
|
|
||||||
# The `style` can be specified to pick a specific face.
|
|
||||||
#style: Italic
|
#style: Italic
|
||||||
|
|
||||||
# Bold italic font face
|
|
||||||
#bold_italic:
|
#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: InconsolataLGC Nerd Font Mono
|
#family: InconsolataLGC Nerd Font Mono
|
||||||
|
|
||||||
# The `style` can be specified to pick a specific face.
|
|
||||||
#style: Bold Italic
|
#style: Bold Italic
|
||||||
|
|
||||||
# Point size
|
|
||||||
size: 12.0
|
size: 12.0
|
||||||
|
|
||||||
# Offset is the extra space around each character. `offset.y` can be thought of
|
# Offset is the extra space around each character. `offset.y` can be thought of
|
||||||
@@ -151,54 +87,6 @@ font:
|
|||||||
# x: 0
|
# x: 0
|
||||||
# y: 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 (One Dark)
|
|
||||||
# colors:
|
|
||||||
# # Default colors
|
|
||||||
# primary:
|
|
||||||
# background: '0x1e2127'
|
|
||||||
# foreground: '0xabb2bf'
|
|
||||||
#
|
|
||||||
# # Normal colors
|
|
||||||
# normal:
|
|
||||||
# black: '0x1e2127'
|
|
||||||
# red: '0xe06c75'
|
|
||||||
# green: '0x98c379'
|
|
||||||
# yellow: '0xd19a66'
|
|
||||||
# blue: '0x61afef'
|
|
||||||
# magenta: '0xc678dd'
|
|
||||||
# cyan: '0x56b6c2'
|
|
||||||
# white: '0xabb2bf'
|
|
||||||
#
|
|
||||||
# # Bright colors
|
|
||||||
# bright:
|
|
||||||
# black: '0x5c6370'
|
|
||||||
# red: '0xe06c75'
|
|
||||||
# green: '0x98c379'
|
|
||||||
# yellow: '0xd19a66'
|
|
||||||
# blue: '0x61afef'
|
|
||||||
# magenta: '0xc678dd'
|
|
||||||
# cyan: '0x56b6c2'
|
|
||||||
# white: '0xffffff'
|
|
||||||
|
|
||||||
#Colors Nord
|
#Colors Nord
|
||||||
colors:
|
colors:
|
||||||
# Default colors
|
# Default colors
|
||||||
@@ -206,32 +94,6 @@ colors:
|
|||||||
background: '0x2E3440'
|
background: '0x2E3440'
|
||||||
foreground: '0xD8DEE9'
|
foreground: '0xD8DEE9'
|
||||||
|
|
||||||
# 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: '#9a9a9a'
|
|
||||||
#bright_foreground: '#ffffff'
|
|
||||||
|
|
||||||
# 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: '#000000'
|
|
||||||
# cursor: '#ffffff'
|
|
||||||
|
|
||||||
# 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: '#eaeaea'
|
|
||||||
# background: '#404040'
|
|
||||||
|
|
||||||
# Normal colors
|
|
||||||
normal:
|
normal:
|
||||||
black: '0x3B4252'
|
black: '0x3B4252'
|
||||||
red: '0xBF616A'
|
red: '0xBF616A'
|
||||||
@@ -242,8 +104,6 @@ colors:
|
|||||||
cyan: '0x88C0D0'
|
cyan: '0x88C0D0'
|
||||||
white: '0xE5E9F0'
|
white: '0xE5E9F0'
|
||||||
|
|
||||||
|
|
||||||
# Bright colors
|
|
||||||
bright:
|
bright:
|
||||||
black: '0x4C566A'
|
black: '0x4C566A'
|
||||||
red: '0xBF616A'
|
red: '0xBF616A'
|
||||||
@@ -254,60 +114,6 @@ colors:
|
|||||||
cyan: '0x8FBCBB'
|
cyan: '0x8FBCBB'
|
||||||
white: '0xECEFF4'
|
white: '0xECEFF4'
|
||||||
|
|
||||||
# Dim colors
|
|
||||||
#
|
|
||||||
# If the dim colors are not set, they will be calculated automatically based
|
|
||||||
# on the `normal` colors.
|
|
||||||
#dim:
|
|
||||||
# black: '#000000'
|
|
||||||
# red: '#8c3336'
|
|
||||||
# green: '#7a8530'
|
|
||||||
# yellow: '#97822e'
|
|
||||||
# blue: '#506d8f'
|
|
||||||
# magenta: '#80638e'
|
|
||||||
# cyan: '#497e7a'
|
|
||||||
# white: '#9a9a9a'
|
|
||||||
|
|
||||||
# Indexed Colors
|
|
||||||
#
|
|
||||||
# The indexed colors include all colors from 16 to 256.
|
|
||||||
# When these are not set, they're filled with sensible defaults.
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# `- { index: 16, color: '#ff00ff' }`
|
|
||||||
#
|
|
||||||
#indexed_colors: []
|
|
||||||
|
|
||||||
# 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: '#ffffff'
|
|
||||||
|
|
||||||
# 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: 0.95
|
background_opacity: 0.95
|
||||||
|
|
||||||
selection:
|
selection:
|
||||||
@@ -320,8 +126,6 @@ selection:
|
|||||||
window.dynamic_title: true
|
window.dynamic_title: true
|
||||||
|
|
||||||
cursor:
|
cursor:
|
||||||
# Cursor style
|
|
||||||
#
|
|
||||||
# Values for `style`:
|
# Values for `style`:
|
||||||
# - ▇ Block
|
# - ▇ Block
|
||||||
# - _ Underline
|
# - _ Underline
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
# the top and down respectively.
|
# the top and down respectively.
|
||||||
# The width can be negative. In this case the actual width is the
|
# The width can be negative. In this case the actual width is the
|
||||||
# screen width minus the width defined in within the geometry option.
|
# screen width minus the width defined in within the geometry option.
|
||||||
geometry = "400x10-8+43"
|
geometry = "400x10-8+35"
|
||||||
|
|
||||||
# Show how many messages are currently hidden (because of geometry).
|
# Show how many messages are currently hidden (because of geometry).
|
||||||
indicate_hidden = yes
|
indicate_hidden = yes
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
frame_width = 2
|
frame_width = 2
|
||||||
|
|
||||||
# Defines color of the frame around the notification window.
|
# Defines color of the frame around the notification window.
|
||||||
frame_color = "#414458"
|
frame_color = "#4C566A"
|
||||||
|
|
||||||
# Define a color for the separator.
|
# Define a color for the separator.
|
||||||
# possible values are:
|
# possible values are:
|
||||||
@@ -268,7 +268,7 @@
|
|||||||
#icon = /path/to/icon
|
#icon = /path/to/icon
|
||||||
|
|
||||||
[urgency_critical]
|
[urgency_critical]
|
||||||
background = "#f37f97"
|
background = "#2E3440"
|
||||||
foreground = "#e5e9f0"
|
foreground = "#e5e9f0"
|
||||||
timeout = 0
|
timeout = 0
|
||||||
# Icon for notifications with critical urgency, uncomment to enable
|
# Icon for notifications with critical urgency, uncomment to enable
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ bindsym $mod+p workspace prev
|
|||||||
|
|
||||||
# Rofi and dmenu
|
# Rofi and dmenu
|
||||||
bindsym $mod+d exec "~/.config/rofi/launchers-git/launcher.sh"
|
bindsym $mod+d exec "~/.config/rofi/launchers-git/launcher.sh"
|
||||||
|
bindsym $mod+space exec "~/.config/rofi/launchers-git/launcher.sh"
|
||||||
|
|
||||||
set $nord0d '#2e3440'
|
set $nord0d '#2e3440'
|
||||||
set $frost2d '#eceff4'
|
set $frost2d '#eceff4'
|
||||||
@@ -83,6 +84,18 @@ bindsym XF86AudioPause exec playerctl pause
|
|||||||
bindsym XF86AudioNext exec playerctl next
|
bindsym XF86AudioNext exec playerctl next
|
||||||
bindsym XF86AudioPrev exec playerctl previous
|
bindsym XF86AudioPrev exec playerctl previous
|
||||||
|
|
||||||
|
# ======================================== Open Applications
|
||||||
|
mode "Launcher" {
|
||||||
|
bindsym f exec firefox
|
||||||
|
bindsym s exec spotify
|
||||||
|
bindsym d exec Discord
|
||||||
|
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
bindsym Return mode "default"
|
||||||
|
}
|
||||||
|
|
||||||
|
bindsym $mod+o mode "Launcher"
|
||||||
|
|
||||||
# ======================================== Workspaces
|
# ======================================== Workspaces
|
||||||
set $ws1 "1"
|
set $ws1 "1"
|
||||||
set $ws2 "2"
|
set $ws2 "2"
|
||||||
@@ -124,30 +137,23 @@ bindsym $mod+Shift+0 move container to workspace number $ws10
|
|||||||
new_window 1pixel
|
new_window 1pixel
|
||||||
|
|
||||||
# Set Border
|
# Set Border
|
||||||
for_window [class="^.*"] border pixel 5
|
for_window [class="^.*"] border pixel 0
|
||||||
|
|
||||||
set $nord0 "#2e3440"
|
|
||||||
|
|
||||||
set $blue1 "#88c0d0"
|
|
||||||
set $blue3 "#5E81AC"
|
|
||||||
|
|
||||||
set $frost0 "#d8dee9"
|
|
||||||
set $frost2 "#eceff4"
|
set $frost2 "#eceff4"
|
||||||
|
set $red "#A3BE8C"
|
||||||
|
|
||||||
set $green "#A3BE8C"
|
set $c0 "#2E3440"
|
||||||
set $yellow "#EBCB8B"
|
set $c8 "#434C5E"
|
||||||
set $red "#bf616a"
|
|
||||||
|
|
||||||
# class border backgr.text indic. child_border
|
# class border backgr.text indic. child_border
|
||||||
client.focused $green $green $nord0 $green $green
|
client.focused $c8 $c8 $frost2 $c8 $c8
|
||||||
client.focused_inactive $blue1 $blue1 $nord0 $nord0 $nord0
|
client.focused_inactive $c0 $c0 $frost2 $c0 $c0
|
||||||
client.unfocused $nord0 $nord0 $frost0 $blue1 $nord0
|
client.unfocused $c0 $c0 $frost0 $c0 $c0
|
||||||
client.urgent $red $red $frost2 $red $red
|
client.urgent $red $red $frost2 $red $red
|
||||||
client.background #ffffff
|
client.background $frost2
|
||||||
|
|
||||||
# i3-gaps
|
# i3-gaps
|
||||||
gaps inner 8
|
gaps inner 8
|
||||||
gaps top 35 # polybar height + gaps inner
|
|
||||||
|
|
||||||
# ============================== Autostart
|
# ============================== Autostart
|
||||||
# Keyboard layout
|
# Keyboard layout
|
||||||
@@ -155,7 +161,6 @@ exec setxkbmap -layout za
|
|||||||
|
|
||||||
# Programs
|
# Programs
|
||||||
exec feh --bg-scale $HOME/data/wallpaper/wallpaper.png
|
exec feh --bg-scale $HOME/data/wallpaper/wallpaper.png
|
||||||
exec nm-applet &
|
|
||||||
exec dunst &
|
exec dunst &
|
||||||
exec picom --experimental-backends
|
exec picom
|
||||||
exec --no-startup-id ~/.config/polybar/launch.sh laptop &
|
exec --no-startup-id ~/.config/polybar/launch.sh laptop &
|
||||||
|
|||||||
@@ -7,19 +7,19 @@ opacity-rule = [
|
|||||||
#inactive-dim = 0.15;
|
#inactive-dim = 0.15;
|
||||||
#inactive-opacity = 0.9;
|
#inactive-opacity = 0.9;
|
||||||
|
|
||||||
detect-rounded-corners = true;
|
#detect-rounded-corners = true;
|
||||||
corner-radius = 8.0;
|
#corner-radius = 0.0;
|
||||||
rounded-corners-exclude= [
|
#rounded-corners-exclude= [
|
||||||
"class_g = 'i3-frame'",
|
# "class_g = 'i3-frame'",
|
||||||
"class_g = 'dmenu'"
|
# "class_g = 'dmenu'"
|
||||||
];
|
#];
|
||||||
|
#
|
||||||
backend = "glx";
|
#backend = "glx";
|
||||||
blur: {
|
#blur: {
|
||||||
method: "dual_kawase";
|
# method: "dual_kawase";
|
||||||
size = 2;
|
# size = 2;
|
||||||
strength = 4;
|
# strength = 0;
|
||||||
background = false;
|
# background = false;
|
||||||
background-frame = false;
|
# background-frame = false;
|
||||||
background-fixed = false;
|
# background-fixed = false;
|
||||||
}
|
#}
|
||||||
|
|||||||
@@ -1,141 +1,43 @@
|
|||||||
; vim: ft=dosini
|
# vim:ft=dosini
|
||||||
|
|
||||||
[colors]
|
[colors]
|
||||||
transparent = #00000000
|
background = #000000
|
||||||
|
foreground = ${xrdb:color7}
|
||||||
|
foreground-alt = ${xrdb:color8}
|
||||||
|
urgent = ${xrdb:color1}
|
||||||
|
|
||||||
red = #BF616A
|
[bar/main]
|
||||||
orange = #D08770
|
|
||||||
yellow = #EBCB8B
|
|
||||||
green = #A3BE8C
|
|
||||||
purple = #B48EAD
|
|
||||||
|
|
||||||
blue0 = #8FBCBB
|
|
||||||
blue1 = #88C0D0
|
|
||||||
blue2 = #81A1C1
|
|
||||||
blue3 = #5E81AC
|
|
||||||
|
|
||||||
nord0 = #2E3440
|
|
||||||
nord1 = #3b4252
|
|
||||||
nord2 = #434c5e
|
|
||||||
nord3 = #4C566A
|
|
||||||
|
|
||||||
frost0 = #d8dee9
|
|
||||||
frost1 = #e5e9f0
|
|
||||||
frost2 = #ECEFF4
|
|
||||||
|
|
||||||
accent = ${colors.green}
|
|
||||||
foreground = ${colors.frost2}
|
|
||||||
background = ${colors.nord0}
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
[bar/global]
|
|
||||||
monitor = ${env:MONITOR}
|
monitor = ${env:MONITOR}
|
||||||
|
|
||||||
font-0 = "FiraCode Nerd Font Mono:pixelsize=9;3"
|
font-0 = "FiraCode Nerd Font Mono:pixelsize=9;2"
|
||||||
font-1 = "IPAGothic:fontformat=truetype:antialias=false:pixelsize=11;2"
|
font-1 = "IPAGothic:fontformat=truetype:antialias=false:pixelsize=9;2"
|
||||||
font-2 = "Siji:size=7;2"
|
|
||||||
|
|
||||||
bottom = false
|
|
||||||
radius = 12
|
|
||||||
|
|
||||||
height = 27px
|
height = 27px
|
||||||
|
width = 100%
|
||||||
|
|
||||||
|
module-margin-right = 1
|
||||||
|
module-margin-left = 1
|
||||||
|
|
||||||
|
padding-left = 1
|
||||||
|
padding-right = 1
|
||||||
|
|
||||||
|
separator = /
|
||||||
|
|
||||||
|
modules-left = i3 xwindow
|
||||||
|
modules-right = spotify network volume backlight battery date
|
||||||
|
|
||||||
foreground = ${colors.foreground}
|
foreground = ${colors.foreground}
|
||||||
background = #2e3440
|
background = ${colors.background}
|
||||||
|
|
||||||
module-margin= 0
|
|
||||||
|
|
||||||
wm-name = i3
|
wm-name = i3
|
||||||
wm-restack = i3
|
wm-restack = i3
|
||||||
|
|
||||||
################################################################################
|
|
||||||
[bar/all]
|
|
||||||
inherit = bar/global
|
|
||||||
width = 80%
|
|
||||||
|
|
||||||
override-redirect = true
|
|
||||||
|
|
||||||
padding = 3
|
|
||||||
|
|
||||||
offset-x = 10%:-8px
|
|
||||||
offset-y = 8px
|
|
||||||
|
|
||||||
modules-left = i3
|
|
||||||
modules-center = spotify
|
|
||||||
modules-right = update backlight volume date
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
[bar/workspaces]
|
|
||||||
inherit = bar/global
|
|
||||||
width = 10%
|
|
||||||
|
|
||||||
override-redirect = true
|
|
||||||
|
|
||||||
offset-x = 8px
|
|
||||||
offset-y = 8px
|
|
||||||
|
|
||||||
line-size = 3
|
|
||||||
|
|
||||||
modules-center = i3
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
[bar/music]
|
|
||||||
inherit = bar/global
|
|
||||||
width = 22%
|
|
||||||
|
|
||||||
override-redirect = true
|
|
||||||
|
|
||||||
offset-x = 11.5%-8px
|
|
||||||
offset-y = 8px
|
|
||||||
|
|
||||||
modules-center = spotify
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
[bar/status]
|
|
||||||
inherit = bar/global
|
|
||||||
width = 20%
|
|
||||||
|
|
||||||
override-redirect = true
|
|
||||||
fixed-center = true
|
|
||||||
|
|
||||||
offset-x = 80%:-8px
|
|
||||||
offset-y = 8px
|
|
||||||
|
|
||||||
module-margin = 1
|
|
||||||
|
|
||||||
line-size = 3
|
|
||||||
|
|
||||||
modules-center = backlight volume battery date
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
[bar/tray]
|
|
||||||
inherit = bar/global
|
|
||||||
width = 7%
|
|
||||||
|
|
||||||
override-redirect = true
|
|
||||||
fixed-center = true
|
|
||||||
|
|
||||||
bottom = true
|
|
||||||
|
|
||||||
offset-x = 93%:-8px
|
|
||||||
offset-y = 8px
|
|
||||||
|
|
||||||
tray-position = center
|
|
||||||
tray-padding = 2
|
|
||||||
|
|
||||||
modules-center = update
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
[module/i3]
|
[module/i3]
|
||||||
type = internal/i3
|
type = internal/i3
|
||||||
|
|
||||||
pin-workspaces = true
|
pin-workspaces = true
|
||||||
wrapping-scroll = false
|
wrapping-scroll = false
|
||||||
|
|
||||||
|
|
||||||
format = <label-state> <label-mode>
|
format = <label-state> <label-mode>
|
||||||
|
|
||||||
foreground = ${colors.foreground}
|
|
||||||
|
|
||||||
ws-icon-0 = 1;一
|
ws-icon-0 = 1;一
|
||||||
ws-icon-1 = 2;二
|
ws-icon-1 = 2;二
|
||||||
ws-icon-2 = 3;三
|
ws-icon-2 = 3;三
|
||||||
@@ -148,205 +50,50 @@ ws-icon-8 = 9;九
|
|||||||
ws-icon-9 = 10;十
|
ws-icon-9 = 10;十
|
||||||
ws-icon-default =
|
ws-icon-default =
|
||||||
|
|
||||||
#label-focused = ""
|
|
||||||
label-focused = "%icon%"
|
label-focused = "%icon%"
|
||||||
label-focused-padding = 1
|
label-focused-padding = 1
|
||||||
label-focused-underline = ${colors.green}
|
|
||||||
|
|
||||||
#label-unfocused = ""
|
|
||||||
label-unfocused = "%icon%"
|
label-unfocused = "%icon%"
|
||||||
|
label-unfocused-foreground = ${colors.foreground-alt}
|
||||||
label-unfocused-padding = 1
|
label-unfocused-padding = 1
|
||||||
|
|
||||||
label-urgent = "%icon%"
|
label-urgent = "%icon%"
|
||||||
label-urgent-foreground = ${colors.red}
|
label-urgent-foreground = ${colors.urgent}
|
||||||
label-urgent-padding = 1
|
label-urgent-padding = 1
|
||||||
|
|
||||||
###############################################################################
|
[module/xwindow]
|
||||||
[module/date]
|
|
||||||
type = internal/date
|
|
||||||
|
|
||||||
interval = 1.0
|
|
||||||
|
|
||||||
#time = %I:%M %p - %A, %d %B %Y
|
|
||||||
time = %I:%M %p %d.%m.%Y
|
|
||||||
time-alt = %I:%M %p
|
|
||||||
|
|
||||||
format = <label>
|
|
||||||
format-underline = ${colors.blue1}
|
|
||||||
|
|
||||||
label = %time%
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
[module/title]
|
|
||||||
type = internal/xwindow
|
type = internal/xwindow
|
||||||
label = %title%
|
label = %title%
|
||||||
format = <label>
|
label-maxlen = 100
|
||||||
label-maxlen = 80
|
|
||||||
label-empty = "Yoroshiku!"
|
|
||||||
|
|
||||||
###############################################################################
|
[module/date]
|
||||||
[module/cpu]
|
type = internal/date
|
||||||
type = internal/cpu
|
date = %H:%M - %d.%m.%Y%
|
||||||
|
|
||||||
interval = 5
|
[module/backlight]
|
||||||
|
type = internal/backlight
|
||||||
|
#ls -1 /sys/class/backlight
|
||||||
|
card = amdgpu_bl0
|
||||||
|
label = brgt %percentage%%
|
||||||
|
|
||||||
format = <label>
|
|
||||||
format-prefix =
|
|
||||||
|
|
||||||
label = " %percentage%%"
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
[module/memory]
|
|
||||||
type = internal/memory
|
|
||||||
|
|
||||||
interval = 3
|
|
||||||
|
|
||||||
format = <label>
|
|
||||||
format-prefix =
|
|
||||||
|
|
||||||
label = " %mb_used%"
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
[module/battery]
|
[module/battery]
|
||||||
type = internal/battery
|
type = internal/battery
|
||||||
full-at = 99
|
|
||||||
battery = BAT0
|
battery = BAT0
|
||||||
apdapter = ADP1
|
apdapter = ADP1
|
||||||
|
|
||||||
format-charging = <animation-charging> <label-charging>
|
label-charging = bat %percentage%%
|
||||||
format-charging-underline = ${colors.green}
|
label-discharging = bat %percentage%%
|
||||||
|
label-full= bat %percentage%%
|
||||||
|
|
||||||
format-discharging = <ramp-capacity> <label-discharging>
|
|
||||||
format-discharging-underline = ${colors.green}
|
|
||||||
|
|
||||||
format-full = <ramp-capacity> <label-full>
|
|
||||||
format-full-underline = ${colors.green}
|
|
||||||
|
|
||||||
label-charging = %percentage%%
|
|
||||||
label-discharging = %percentage%%
|
|
||||||
label-full = 100%
|
|
||||||
|
|
||||||
; Only applies if <ramp-capacity> is used
|
|
||||||
ramp-capacity-0 =
|
|
||||||
ramp-capacity-1 =
|
|
||||||
ramp-capacity-2 =
|
|
||||||
ramp-capacity-3 =
|
|
||||||
ramp-capacity-4 =
|
|
||||||
ramp-capacity-5 =
|
|
||||||
ramp-capacity-6 =
|
|
||||||
ramp-capacity-7 =
|
|
||||||
ramp-capacity-8 =
|
|
||||||
ramp-capacity-9 =
|
|
||||||
|
|
||||||
; Only applies if <animation-charging> is used
|
|
||||||
animation-charging-0 =
|
|
||||||
animation-charging-1 =
|
|
||||||
animation-charging-2 =
|
|
||||||
animation-charging-3 =
|
|
||||||
|
|
||||||
; Framerate in milliseconds
|
|
||||||
animation-charging-framerate = 750
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
[module/volume]
|
[module/volume]
|
||||||
type = internal/pulseaudio
|
type = internal/pulseaudio
|
||||||
|
label-volume = vol %percentage%%
|
||||||
|
label-muted = muted
|
||||||
|
|
||||||
format-volume = <ramp-volume> <label-volume>
|
|
||||||
|
|
||||||
format-volume-underline = ${colors.orange}
|
|
||||||
|
|
||||||
label-volume = %percentage%%
|
|
||||||
|
|
||||||
format-muted-prefix = " "
|
|
||||||
label-muted = "Muted"
|
|
||||||
|
|
||||||
ramp-volume-0 =
|
|
||||||
ramp-volume-1 =
|
|
||||||
ramp-volume-2 =
|
|
||||||
ramp-volume-3 =
|
|
||||||
ramp-volume-4 =
|
|
||||||
|
|
||||||
ramp-headphones-0 =
|
|
||||||
ramp-headphones-1 =
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
[module/network]
|
[module/network]
|
||||||
type = internal/network
|
type = internal/network
|
||||||
interface = wlo1
|
interface = wlo1
|
||||||
|
interval = 3.0
|
||||||
interval = 1.0
|
|
||||||
accumulate-stats = true
|
accumulate-stats = true
|
||||||
unknown-as-up = true
|
unknown-as-up = true
|
||||||
|
|
||||||
#format-connected = <ramp-signal> <label-connected>
|
|
||||||
format-connected = <label-connected>
|
|
||||||
|
|
||||||
format-disconnected = <label-disconnected>
|
|
||||||
|
|
||||||
label-connected = %essid%
|
label-connected = %essid%
|
||||||
label-disconnected = Disconnected
|
|
||||||
|
|
||||||
; Only applies if <ramp-signal> is used
|
|
||||||
ramp-signal-0 =
|
|
||||||
ramp-signal-1 =
|
|
||||||
ramp-signal-2 =
|
|
||||||
ramp-signal-3 =
|
|
||||||
ramp-signal-4 =
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
[module/backlight]
|
|
||||||
type = internal/backlight
|
|
||||||
|
|
||||||
# ls -1 /sys/class/backlight
|
|
||||||
card = amdgpu_bl0
|
|
||||||
|
|
||||||
format = <label>
|
|
||||||
format-prefix = ""
|
|
||||||
label = " %percentage%%"
|
|
||||||
format-underline = ${colors.yellow}
|
|
||||||
|
|
||||||
bar-width = 10
|
|
||||||
bar-indicator = |
|
|
||||||
bar-fill = ─
|
|
||||||
bar-empty= ─
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
[module/load]
|
|
||||||
type = custom/script
|
|
||||||
exec = ~/.config/polybar/scripts/load.sh
|
|
||||||
interval = 5.0
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
[module/spotify]
|
|
||||||
type = custom/script
|
|
||||||
|
|
||||||
format-prefix = " "
|
|
||||||
exec = ~/.config/polybar/scripts/song.sh 2>/dev/null || echo "No song is playing"
|
|
||||||
tail = true
|
|
||||||
interval = 2
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
[module/hostname]
|
|
||||||
type = custom/script
|
|
||||||
|
|
||||||
exec = ~/.config/polybar/scripts/hostname.sh
|
|
||||||
tail = true
|
|
||||||
interval = 60
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
[module/ip]
|
|
||||||
type = custom/script
|
|
||||||
|
|
||||||
format-prefix = "直 "
|
|
||||||
|
|
||||||
exec = ~/.config/polybar/scripts/ip.sh
|
|
||||||
tail = true
|
|
||||||
interval = 20
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
[module/update]
|
|
||||||
type = custom/script
|
|
||||||
exec = echo ' '
|
|
||||||
interval = 5
|
|
||||||
tail = true
|
|
||||||
click-left = alacritty -e bash -c "echo 'Upgrading packages...' && sudo dnf upgrade"
|
|
||||||
|
|||||||
352
laptop-nord/.config/polybar/config.nord
Normal file
352
laptop-nord/.config/polybar/config.nord
Normal file
@@ -0,0 +1,352 @@
|
|||||||
|
; vim: ft=dosini
|
||||||
|
[colors]
|
||||||
|
transparent = #00000000
|
||||||
|
|
||||||
|
red = #BF616A
|
||||||
|
orange = #D08770
|
||||||
|
yellow = #EBCB8B
|
||||||
|
green = #A3BE8C
|
||||||
|
purple = #B48EAD
|
||||||
|
|
||||||
|
blue0 = #8FBCBB
|
||||||
|
blue1 = #88C0D0
|
||||||
|
blue2 = #81A1C1
|
||||||
|
blue3 = #5E81AC
|
||||||
|
|
||||||
|
nord0 = #2E3440
|
||||||
|
nord1 = #3b4252
|
||||||
|
nord2 = #434c5e
|
||||||
|
nord3 = #4C566A
|
||||||
|
|
||||||
|
frost0 = #d8dee9
|
||||||
|
frost1 = #e5e9f0
|
||||||
|
frost2 = #ECEFF4
|
||||||
|
|
||||||
|
accent = ${colors.green}
|
||||||
|
foreground = ${colors.frost2}
|
||||||
|
background = ${colors.nord0}
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
[bar/global]
|
||||||
|
monitor = ${env:MONITOR}
|
||||||
|
|
||||||
|
font-0 = "FiraCode Nerd Font Mono:pixelsize=9;3"
|
||||||
|
font-1 = "IPAGothic:fontformat=truetype:antialias=false:pixelsize=11;2"
|
||||||
|
font-2 = "Siji:size=7;2"
|
||||||
|
|
||||||
|
bottom = false
|
||||||
|
radius = 12
|
||||||
|
|
||||||
|
height = 27px
|
||||||
|
|
||||||
|
foreground = ${colors.foreground}
|
||||||
|
background = #2e3440
|
||||||
|
|
||||||
|
module-margin= 0
|
||||||
|
|
||||||
|
wm-name = i3
|
||||||
|
wm-restack = i3
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
[bar/all]
|
||||||
|
inherit = bar/global
|
||||||
|
width = 80%
|
||||||
|
|
||||||
|
override-redirect = true
|
||||||
|
|
||||||
|
padding = 3
|
||||||
|
|
||||||
|
offset-x = 10%:-8px
|
||||||
|
offset-y = 8px
|
||||||
|
|
||||||
|
modules-left = i3
|
||||||
|
modules-center = spotify
|
||||||
|
modules-right = update backlight volume date
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
[bar/workspaces]
|
||||||
|
inherit = bar/global
|
||||||
|
width = 10%
|
||||||
|
|
||||||
|
override-redirect = true
|
||||||
|
|
||||||
|
offset-x = 8px
|
||||||
|
offset-y = 8px
|
||||||
|
|
||||||
|
line-size = 3
|
||||||
|
|
||||||
|
modules-center = i3
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
[bar/music]
|
||||||
|
inherit = bar/global
|
||||||
|
width = 22%
|
||||||
|
|
||||||
|
override-redirect = true
|
||||||
|
|
||||||
|
offset-x = 11.5%-8px
|
||||||
|
offset-y = 8px
|
||||||
|
|
||||||
|
modules-center = spotify
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
[bar/status]
|
||||||
|
inherit = bar/global
|
||||||
|
width = 20%
|
||||||
|
|
||||||
|
override-redirect = true
|
||||||
|
fixed-center = true
|
||||||
|
|
||||||
|
offset-x = 80%:-8px
|
||||||
|
offset-y = 8px
|
||||||
|
|
||||||
|
module-margin = 1
|
||||||
|
|
||||||
|
line-size = 3
|
||||||
|
|
||||||
|
modules-center = backlight volume battery date
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
[bar/tray]
|
||||||
|
inherit = bar/global
|
||||||
|
width = 7%
|
||||||
|
|
||||||
|
override-redirect = true
|
||||||
|
fixed-center = true
|
||||||
|
|
||||||
|
bottom = true
|
||||||
|
|
||||||
|
offset-x = 93%:-8px
|
||||||
|
offset-y = 8px
|
||||||
|
|
||||||
|
tray-position = center
|
||||||
|
tray-padding = 2
|
||||||
|
|
||||||
|
modules-center = update
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
[module/i3]
|
||||||
|
type = internal/i3
|
||||||
|
|
||||||
|
pin-workspaces = true
|
||||||
|
wrapping-scroll = false
|
||||||
|
|
||||||
|
|
||||||
|
format = <label-state> <label-mode>
|
||||||
|
|
||||||
|
foreground = ${colors.foreground}
|
||||||
|
|
||||||
|
ws-icon-0 = 1;一
|
||||||
|
ws-icon-1 = 2;二
|
||||||
|
ws-icon-2 = 3;三
|
||||||
|
ws-icon-3 = 4;四
|
||||||
|
ws-icon-4 = 5;五
|
||||||
|
ws-icon-5 = 6;六
|
||||||
|
ws-icon-6 = 7;七
|
||||||
|
ws-icon-7 = 8;八
|
||||||
|
ws-icon-8 = 9;九
|
||||||
|
ws-icon-9 = 10;十
|
||||||
|
ws-icon-default =
|
||||||
|
|
||||||
|
#label-focused = ""
|
||||||
|
label-focused = "%icon%"
|
||||||
|
label-focused-padding = 1
|
||||||
|
label-focused-underline = ${colors.green}
|
||||||
|
|
||||||
|
#label-unfocused = ""
|
||||||
|
label-unfocused = "%icon%"
|
||||||
|
label-unfocused-padding = 1
|
||||||
|
|
||||||
|
label-urgent = "%icon%"
|
||||||
|
label-urgent-foreground = ${colors.red}
|
||||||
|
label-urgent-padding = 1
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
[module/date]
|
||||||
|
type = internal/date
|
||||||
|
|
||||||
|
interval = 1.0
|
||||||
|
|
||||||
|
#time = %I:%M %p - %A, %d %B %Y
|
||||||
|
time = %I:%M %p %d.%m.%Y
|
||||||
|
time-alt = %I:%M %p
|
||||||
|
|
||||||
|
format = <label>
|
||||||
|
format-underline = ${colors.blue1}
|
||||||
|
|
||||||
|
label = %time%
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
[module/title]
|
||||||
|
type = internal/xwindow
|
||||||
|
label = %title%
|
||||||
|
format = <label>
|
||||||
|
label-maxlen = 80
|
||||||
|
label-empty = "Yoroshiku!"
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
[module/cpu]
|
||||||
|
type = internal/cpu
|
||||||
|
|
||||||
|
interval = 5
|
||||||
|
|
||||||
|
format = <label>
|
||||||
|
format-prefix =
|
||||||
|
|
||||||
|
label = " %percentage%%"
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
[module/memory]
|
||||||
|
type = internal/memory
|
||||||
|
|
||||||
|
interval = 3
|
||||||
|
|
||||||
|
format = <label>
|
||||||
|
format-prefix =
|
||||||
|
|
||||||
|
label = " %mb_used%"
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
[module/battery]
|
||||||
|
type = internal/battery
|
||||||
|
full-at = 99
|
||||||
|
battery = BAT0
|
||||||
|
apdapter = ADP1
|
||||||
|
|
||||||
|
format-charging = <animation-charging> <label-charging>
|
||||||
|
format-charging-underline = ${colors.green}
|
||||||
|
|
||||||
|
format-discharging = <ramp-capacity> <label-discharging>
|
||||||
|
format-discharging-underline = ${colors.green}
|
||||||
|
|
||||||
|
format-full = <ramp-capacity> <label-full>
|
||||||
|
format-full-underline = ${colors.green}
|
||||||
|
|
||||||
|
label-charging = %percentage%%
|
||||||
|
label-discharging = %percentage%%
|
||||||
|
label-full = 100%
|
||||||
|
|
||||||
|
; Only applies if <ramp-capacity> is used
|
||||||
|
ramp-capacity-0 =
|
||||||
|
ramp-capacity-1 =
|
||||||
|
ramp-capacity-2 =
|
||||||
|
ramp-capacity-3 =
|
||||||
|
ramp-capacity-4 =
|
||||||
|
ramp-capacity-5 =
|
||||||
|
ramp-capacity-6 =
|
||||||
|
ramp-capacity-7 =
|
||||||
|
ramp-capacity-8 =
|
||||||
|
ramp-capacity-9 =
|
||||||
|
|
||||||
|
; Only applies if <animation-charging> is used
|
||||||
|
animation-charging-0 =
|
||||||
|
animation-charging-1 =
|
||||||
|
animation-charging-2 =
|
||||||
|
animation-charging-3 =
|
||||||
|
|
||||||
|
; Framerate in milliseconds
|
||||||
|
animation-charging-framerate = 750
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
[module/volume]
|
||||||
|
type = internal/pulseaudio
|
||||||
|
|
||||||
|
format-volume = <ramp-volume> <label-volume>
|
||||||
|
|
||||||
|
format-volume-underline = ${colors.orange}
|
||||||
|
|
||||||
|
label-volume = %percentage%%
|
||||||
|
|
||||||
|
format-muted-prefix = " "
|
||||||
|
label-muted = "Muted"
|
||||||
|
|
||||||
|
ramp-volume-0 =
|
||||||
|
ramp-volume-1 =
|
||||||
|
ramp-volume-2 =
|
||||||
|
ramp-volume-3 =
|
||||||
|
ramp-volume-4 =
|
||||||
|
|
||||||
|
ramp-headphones-0 =
|
||||||
|
ramp-headphones-1 =
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
[module/network]
|
||||||
|
type = internal/network
|
||||||
|
interface = wlo1
|
||||||
|
|
||||||
|
interval = 1.0
|
||||||
|
accumulate-stats = true
|
||||||
|
unknown-as-up = true
|
||||||
|
|
||||||
|
#format-connected = <ramp-signal> <label-connected>
|
||||||
|
format-connected = <label-connected>
|
||||||
|
|
||||||
|
format-disconnected = <label-disconnected>
|
||||||
|
|
||||||
|
label-connected = %essid%
|
||||||
|
label-disconnected = Disconnected
|
||||||
|
|
||||||
|
; Only applies if <ramp-signal> is used
|
||||||
|
ramp-signal-0 =
|
||||||
|
ramp-signal-1 =
|
||||||
|
ramp-signal-2 =
|
||||||
|
ramp-signal-3 =
|
||||||
|
ramp-signal-4 =
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
[module/backlight]
|
||||||
|
type = internal/backlight
|
||||||
|
|
||||||
|
# ls -1 /sys/class/backlight
|
||||||
|
card = amdgpu_bl0
|
||||||
|
|
||||||
|
format = <label>
|
||||||
|
format-prefix = ""
|
||||||
|
label = " %percentage%%"
|
||||||
|
format-underline = ${colors.yellow}
|
||||||
|
|
||||||
|
bar-width = 10
|
||||||
|
bar-indicator = |
|
||||||
|
bar-fill = ─
|
||||||
|
bar-empty= ─
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
[module/load]
|
||||||
|
type = custom/script
|
||||||
|
exec = ~/.config/polybar/scripts/load.sh
|
||||||
|
interval = 5.0
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
[module/spotify]
|
||||||
|
type = custom/script
|
||||||
|
|
||||||
|
format-prefix = " "
|
||||||
|
exec = ~/.config/polybar/scripts/song.sh 2>/dev/null || echo "No song is playing"
|
||||||
|
tail = true
|
||||||
|
interval = 2
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
[module/hostname]
|
||||||
|
type = custom/script
|
||||||
|
|
||||||
|
exec = ~/.config/polybar/scripts/hostname.sh
|
||||||
|
tail = true
|
||||||
|
interval = 60
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
[module/ip]
|
||||||
|
type = custom/script
|
||||||
|
|
||||||
|
format-prefix = "直 "
|
||||||
|
|
||||||
|
exec = ~/.config/polybar/scripts/ip.sh
|
||||||
|
tail = true
|
||||||
|
interval = 20
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
[module/update]
|
||||||
|
type = custom/script
|
||||||
|
exec = echo ' '
|
||||||
|
interval = 5
|
||||||
|
tail = true
|
||||||
|
click-left = alacritty -e bash -c "echo 'Upgrading packages...' && sudo dnf upgrade"
|
||||||
@@ -4,13 +4,7 @@ while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
|||||||
if type "xrandr"; then
|
if type "xrandr"; then
|
||||||
for mon in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
for mon in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
||||||
if [ "$1" = "laptop" ]; then
|
if [ "$1" = "laptop" ]; then
|
||||||
MONITOR=$mon polybar --reload workspaces &
|
MONITOR=$mon polybar --reload main &
|
||||||
# MONITOR=$mon polybar --reload music &
|
|
||||||
MONITOR=$mon polybar --reload status &
|
|
||||||
MONITOR=$mon polybar --reload tray &
|
|
||||||
fi
|
|
||||||
if [ "$1" = "all" ]; then
|
|
||||||
MONITOR=$mon polybar --reload all &
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
|
|||||||
18
laptop-nord/.config/polybar/launch.sh.nord
Executable file
18
laptop-nord/.config/polybar/launch.sh.nord
Executable file
@@ -0,0 +1,18 @@
|
|||||||
|
killall -q polybar
|
||||||
|
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||||
|
|
||||||
|
if type "xrandr"; then
|
||||||
|
for mon in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
||||||
|
if [ "$1" = "laptop" ]; then
|
||||||
|
MONITOR=$mon polybar --reload workspaces &
|
||||||
|
# MONITOR=$mon polybar --reload music &
|
||||||
|
MONITOR=$mon polybar --reload status &
|
||||||
|
MONITOR=$mon polybar --reload tray &
|
||||||
|
fi
|
||||||
|
if [ "$1" = "all" ]; then
|
||||||
|
MONITOR=$mon polybar --reload all &
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
else
|
||||||
|
echo "No Bars loaded."
|
||||||
|
fi
|
||||||
@@ -43,7 +43,7 @@ window {
|
|||||||
width: 25%;
|
width: 25%;
|
||||||
location: west;
|
location: west;
|
||||||
anchor: west;
|
anchor: west;
|
||||||
x-offset: 0;
|
x-offset: 15px;
|
||||||
y-offset: 15px;
|
y-offset: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user