update
This commit is contained in:
parent
cbcc20d616
commit
3713a644eb
40 changed files with 625 additions and 1764 deletions
58
sway/.config/i3status-rust/config.toml
Normal file
58
sway/.config/i3status-rust/config.toml
Normal file
|
@ -0,0 +1,58 @@
|
|||
[theme]
|
||||
name = "foot.toml"
|
||||
|
||||
[icons]
|
||||
name = "awesome6"
|
||||
|
||||
[[block]]
|
||||
block = "maildir"
|
||||
interval = 60
|
||||
inboxes = ["/home/grue/mail/mail@oxapentane.com/INBOX", "/home/grue/mail/mail@oxapentane.com/sinkhole", "/home/grue/mail/dump@dvb.solutions/INBOX", "/home/grue/mail/grigory@shipunov.xyz/INBOX"]
|
||||
threshold_warning = 1
|
||||
threshold_critical = 10
|
||||
display_type = "new"
|
||||
on_click = "foot mbsync -a"
|
||||
|
||||
[[block]]
|
||||
block = "net"
|
||||
|
||||
[[block]]
|
||||
block = "memory"
|
||||
display_type = "memory"
|
||||
format_mem = "{mem_used_percents}"
|
||||
format_swap = "{swap_used_percents}"
|
||||
|
||||
[[block]]
|
||||
block = "cpu"
|
||||
format = "{barchart} {utilization}"
|
||||
|
||||
[[block]]
|
||||
block = "load"
|
||||
interval = 1
|
||||
format = "{1m} {5m} {15m}"
|
||||
icons_format = " "
|
||||
|
||||
[[block]]
|
||||
block = "sound"
|
||||
on_click = "foot -e pulsemixer"
|
||||
|
||||
[[block]]
|
||||
block = "keyboard_layout"
|
||||
driver = "sway"
|
||||
format = "{layout}"
|
||||
[block.mappings]
|
||||
"English (US)" = "UWU"
|
||||
"Russian (N/A)" = "ЪУЪ"
|
||||
|
||||
[[block]]
|
||||
block = "battery"
|
||||
driver = "upower"
|
||||
format = "{percentage} {time}"
|
||||
if_command = "test -e /sys/class/power_supply/BAT0"
|
||||
|
||||
[[block]]
|
||||
block = "time"
|
||||
interval = 5
|
||||
format = "%a %F %T"
|
||||
interval = 1
|
||||
icons_format = " "
|
18
sway/.config/i3status-rust/themes/foot.toml
Normal file
18
sway/.config/i3status-rust/themes/foot.toml
Normal file
|
@ -0,0 +1,18 @@
|
|||
idle_bg = "#111111"
|
||||
idle_fg = "#dcdccc"
|
||||
|
||||
good_bg = "#7f9f7f"
|
||||
good_fg = "#111111"
|
||||
|
||||
info_bg = "#cc9393"
|
||||
info_fg = "#111111"
|
||||
|
||||
warning_bg = "#f0dfaf"
|
||||
warning_fg = "#111111"
|
||||
|
||||
critical_bg = "#fcace3"
|
||||
critical_fg = "#111111"
|
||||
|
||||
separator = "/"
|
||||
separator_fg = "#ffffff"
|
||||
separator_bg = "#111111"
|
18
sway/.config/sway/colors
Normal file
18
sway/.config/sway/colors
Normal file
|
@ -0,0 +1,18 @@
|
|||
set $colorFG #dcdccc
|
||||
set $colorBG #111111
|
||||
set $color00 #222222
|
||||
set $color01 #cc9393
|
||||
set $color02 #7f9f7f
|
||||
set $color03 #d0bf8f
|
||||
set $color04 #6ca0a3
|
||||
set $color05 #dc8cc3
|
||||
set $color06 #93e0e3
|
||||
set $color07 #dcdccc
|
||||
set $color10 #666666
|
||||
set $color11 #dca3a3
|
||||
set $color12 #bfebbf
|
||||
set $color13 #f0dfaf
|
||||
set $color14 #8cd0d3
|
||||
set $color15 #fcace3
|
||||
set $color16 #b3ffff
|
||||
set $color17 #ffffff
|
|
@ -14,7 +14,7 @@ set $down j
|
|||
set $up k
|
||||
set $right l
|
||||
# Your preferred terminal emulator
|
||||
set $term alacritty
|
||||
set $term foot
|
||||
# Your preferred application launcher
|
||||
# Note: pass the final command to swaymsg so that the resulting window can be opened
|
||||
# on the original workspace that the command was run on.
|
||||
|
@ -37,9 +37,9 @@ output * bg ~/.wall.png fill
|
|||
# Example configuration:
|
||||
#
|
||||
exec swayidle -w \
|
||||
timeout 300 'swaylock -i ~/.lock.png -f -c 000000' \
|
||||
timeout 300 'swaylock-fancy --show-failed-attempts --daemonize -p -t "MICROWAVE ON HIGH FOR FIVE MINUTES"' \
|
||||
timeout 303 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
||||
before-sleep 'swaylock -i ~/.lock.png -f -c 000000'
|
||||
before-sleep 'swaylock-fancy --show-failed-attempts --daemonize -p -t "MICROWAVE ON HIGH FOR FIVE MINUTES"'
|
||||
#
|
||||
# This will lock your screen after 300 seconds of inactivity, then turn off
|
||||
# your displays after another 300 seconds, and turn your screens back on when
|
||||
|
@ -64,6 +64,9 @@ exec swayidle -w \
|
|||
# You can get the names of your inputs by running: swaymsg -t get_inputs
|
||||
# Read `man 5 sway-input` for more information about this section.
|
||||
|
||||
### override defaults
|
||||
focus_follows_mouse no
|
||||
|
||||
### Key bindings
|
||||
#
|
||||
# Basics:
|
||||
|
@ -97,8 +100,10 @@ exec swayidle -w \
|
|||
bindsym --to-code XF86AudioRaiseVolume exec 'pamixer -i 1'
|
||||
bindsym --to-code XF86AudioLowerVolume exec 'pamixer -d 1'
|
||||
bindsym --to-code XF86AudioMute exec 'pamixer -t'
|
||||
bindsym --to-code $mod+BackSpace exec 'swaylock -i ~/.lock.png'
|
||||
bindsym --to-code $mod+Mod1+p exec 'flameshot gui'
|
||||
bindsym --to-code $mod+Delete exec 'swaylock-fancy --show-failed-attempts --daemonize -p -t "MICROWAVE ON HIGH FOR FIVE MINUTES"'
|
||||
#bindsym --to-code $mod+Mod1+p exec 'flameshot gui'
|
||||
bindsym --to-code $mod+p exec 'grim -g "$(slurp)" - | wl-copy'
|
||||
bindsym --to-code $mod+Mod1+p exec 'grim -g "$(slurp)" ~/Pictures/$(date +"%Y-%m-%d-%H-%M-%S").png'
|
||||
|
||||
|
||||
#
|
||||
|
@ -214,19 +219,38 @@ mode "resize" {
|
|||
}
|
||||
bindsym --to-code $mod+r mode "resize"
|
||||
|
||||
## Styling: colors
|
||||
include colors
|
||||
|
||||
## Window styling
|
||||
# Border BG Text Indicator Child Border
|
||||
client.focused $color05 $color05 $color00 $color01 $color05
|
||||
#client.focused_inactive $color00 $color00 $color00 $color00 $color00
|
||||
|
||||
#
|
||||
# Status Bar:
|
||||
#
|
||||
# Read `man 5 sway-bar` for more information about this section.
|
||||
bar {
|
||||
position top
|
||||
font pango:Hack, Font Awesome 6 Free 9
|
||||
icon_theme "Adwaita"
|
||||
status_command /run/current-system/sw/bin/i3status-rs ~/.config/sway/i3status-rs.toml
|
||||
status_command /run/current-system/sw/bin/i3status-rs
|
||||
colors {
|
||||
background $colorBG
|
||||
separator $color05
|
||||
# statusline $color15
|
||||
|
||||
# STATE Border BG Text
|
||||
focused_workspace $color15 $color05 $color00
|
||||
}
|
||||
}
|
||||
|
||||
# default border
|
||||
default_border pixel 2
|
||||
# Set font
|
||||
font pango:JuliaMono 9
|
||||
font pango:Hack, Font Awesome 6 Free 9
|
||||
# font pango:ttyp0 10
|
||||
#font pango:JuliaMono 9
|
||||
|
||||
include /etc/sway/config.d/*
|
||||
|
|
|
@ -1,48 +0,0 @@
|
|||
theme = "native"
|
||||
|
||||
[icons]
|
||||
name = "none"
|
||||
|
||||
[[block]]
|
||||
block = "networkmanager"
|
||||
interface_name_exclude = ["br\\-[0-9a-f]{12}", "docker\\d+"]
|
||||
interface_name_include = []
|
||||
ap_format = "{ssid^5}"
|
||||
device_format = "{name} {ap} {ips}"
|
||||
|
||||
[[block]]
|
||||
block = "memory"
|
||||
display_type = "memory"
|
||||
format_mem = "{mem_used_percents}"
|
||||
format_swap = "{swap_used_percents}"
|
||||
|
||||
[[block]]
|
||||
block = "load"
|
||||
interval = 1
|
||||
format = "{1m} {5m} {15m}"
|
||||
icons_format = " "
|
||||
|
||||
[[block]]
|
||||
block = "sound"
|
||||
on_click = "alacritty -e pulsemixer"
|
||||
|
||||
[[block]]
|
||||
block = "time"
|
||||
interval = 5
|
||||
format = "%a %F %T"
|
||||
interval = 1
|
||||
icons_format = " "
|
||||
|
||||
[[block]]
|
||||
block = "keyboard_layout"
|
||||
driver = "sway"
|
||||
format = "{layout}"
|
||||
[block.mappings]
|
||||
"English (US)" = "EN"
|
||||
"Russian (N/A)" = "RU"
|
||||
|
||||
[[block]]
|
||||
block = "battery"
|
||||
driver = "upower"
|
||||
format = "{percentage}"
|
||||
if_command = "test -e /sys/class/power_supply/BAT0"
|
|
@ -1,16 +0,0 @@
|
|||
{
|
||||
"layer": "top",
|
||||
"modules-left": ["sway/workspaces", "sway/mode"],
|
||||
"modules-center": ["sway/window"],
|
||||
"modules-right": ["battery", "clock"],
|
||||
"sway/window": {
|
||||
"max-length": 50
|
||||
},
|
||||
"battery": {
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
},
|
||||
"clock": {
|
||||
"format-alt": "{:%a, %d. %b %H:%M}"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue