sway: visuals
This commit is contained in:
parent
51bff10300
commit
22bca343fc
2 changed files with 27 additions and 86 deletions
lnx/.config
|
@ -28,6 +28,10 @@ alert = 5.0
|
||||||
block = "cpu"
|
block = "cpu"
|
||||||
interval = 1
|
interval = 1
|
||||||
|
|
||||||
|
[[block]]
|
||||||
|
block = "memory"
|
||||||
|
format = "$icon $mem_used.eng(prefix:Mi) ($mem_used_percents)"
|
||||||
|
|
||||||
#[[block]]
|
#[[block]]
|
||||||
#block = "sound"
|
#block = "sound"
|
||||||
#on_click = "pavucontrol"
|
#on_click = "pavucontrol"
|
||||||
|
@ -36,19 +40,13 @@ interval = 1
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "keyboard_layout"
|
block = "keyboard_layout"
|
||||||
driver = "sway"
|
driver = "sway"
|
||||||
|
[block.mappings]
|
||||||
#[[block]]
|
"English (US)" = "EN"
|
||||||
#block = "custom"
|
"Russian (typewriter)" = "RU"
|
||||||
#command = "printf \uf019"
|
|
||||||
#on_click = "screenshot-tool file"
|
|
||||||
#interval = 60
|
|
||||||
|
|
||||||
#[[block]]
|
|
||||||
#block = "custom"
|
|
||||||
#command = "printf \uf0ea"
|
|
||||||
#on_click = "screenshot-tool"
|
|
||||||
#interval = 60
|
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "time"
|
block = "time"
|
||||||
interval = 5
|
interval = 1
|
||||||
|
[block.format]
|
||||||
|
full = "$icon $timestamp.datetime(f:'%a %R')"
|
||||||
|
short = "$icon $timestamp.datetime(f:'%R')"
|
||||||
|
|
|
@ -1,11 +1,3 @@
|
||||||
# Default config for sway
|
|
||||||
#
|
|
||||||
# Copy this to ~/.config/sway/config and edit it to your liking.
|
|
||||||
#
|
|
||||||
# Read `man 5 sway` for a complete reference.
|
|
||||||
|
|
||||||
### Variables
|
|
||||||
#
|
|
||||||
# Logo key. Use Mod1 for Alt.
|
# Logo key. Use Mod1 for Alt.
|
||||||
set $mod Mod4
|
set $mod Mod4
|
||||||
# Home row direction keys, like vim
|
# Home row direction keys, like vim
|
||||||
|
@ -14,68 +6,34 @@ set $down j
|
||||||
set $up k
|
set $up k
|
||||||
set $right l
|
set $right l
|
||||||
|
|
||||||
set $font VascadiaMod 13
|
set $term ghostty
|
||||||
font pango:VascadiaMod 11
|
set $font Cascadia Mono 11
|
||||||
|
font pango:Cascadia Mono, Font Awesome 6 Free 11
|
||||||
|
|
||||||
#set $font Fantasque Sans Mono 15
|
#set $wallpaper /home/von/.wallpaper
|
||||||
#font pango:Fantasque Sans Mono 13
|
|
||||||
|
|
||||||
set $wallpaper /home/von/.wallpaper
|
|
||||||
|
|
||||||
default_border pixel
|
default_border pixel
|
||||||
default_floating_border pixel
|
default_floating_border pixel
|
||||||
|
|
||||||
seat seat0 xcursor_theme Vanilla-DMZ
|
seat seat0 xcursor_theme Vanilla-DMZ-AA
|
||||||
|
|
||||||
### Output configuration
|
#output * bg $wallpaper fill
|
||||||
#
|
|
||||||
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
|
|
||||||
output * bg $wallpaper fill
|
|
||||||
|
|
||||||
### Dynamic display configuration
|
output Virtual-1 resolution 1920x1080 scale 2
|
||||||
output Virtual-1 scale 2
|
|
||||||
#
|
|
||||||
# Example configuration:
|
|
||||||
#
|
|
||||||
# output HDMI-A-1 resolution 1920x1080 position 1920,0
|
|
||||||
#
|
|
||||||
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
|
||||||
|
|
||||||
### Idle configuration
|
#exec swayidle -w \
|
||||||
#
|
# timeout 300 'swaylock -f -i '$wallpaper \
|
||||||
# Example configuration:
|
# timeout 600 'swaymsg "output * dpms off"' \
|
||||||
#
|
# resume 'swaymsg "output * dpms on"' \
|
||||||
exec swayidle -w \
|
# before-sleep 'swaylock -f -i '$wallpaper
|
||||||
timeout 300 'swaylock -f -i '$wallpaper \
|
#bindsym --to-code $mod+z exec 'swaylock -f -i '$wallpaper
|
||||||
timeout 600 'swaymsg "output * dpms off"' \
|
|
||||||
resume 'swaymsg "output * dpms on"' \
|
|
||||||
before-sleep 'swaylock -f -i '$wallpaper
|
|
||||||
bindsym --to-code $mod+z exec 'swaylock -f -i '$wallpaper
|
|
||||||
#
|
|
||||||
# This will lock your screen after 300 seconds of inactivity, then turn off
|
# 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
|
# your displays after another 300 seconds, and turn your screens back on when
|
||||||
# resumed. It will also lock your screen before your computer goes to sleep.
|
# resumed. It will also lock your screen before your computer goes to sleep.
|
||||||
|
|
||||||
### Input configuration
|
# keys:
|
||||||
#
|
|
||||||
# Example configuration:
|
|
||||||
#
|
|
||||||
# input "2:14:SynPS/2_Synaptics_TouchPad" {
|
|
||||||
# dwt enabled
|
|
||||||
# tap enabled
|
|
||||||
# natural_scroll enabled
|
|
||||||
# middle_emulation enabled
|
|
||||||
# }
|
|
||||||
#
|
|
||||||
# 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.
|
|
||||||
|
|
||||||
### Key bindings
|
|
||||||
#
|
|
||||||
# Basics:
|
|
||||||
#
|
|
||||||
# Start a terminal
|
# Start a terminal
|
||||||
bindsym --to-code $mod+x exec default-terminal-emulator
|
bindsym --to-code $mod+x exec $term
|
||||||
|
|
||||||
# Kill focused window
|
# Kill focused window
|
||||||
bindsym --to-code $mod+Shift+c kill
|
bindsym --to-code $mod+Shift+c kill
|
||||||
|
@ -227,25 +185,18 @@ bindsym --to-code XF86AudioMute exec "pactl set-sink-volume 0 0%"
|
||||||
bar {
|
bar {
|
||||||
position top
|
position top
|
||||||
|
|
||||||
# When the status_command prints a new line to stdout, swaybar updates.
|
|
||||||
# The default just shows the current date and time.
|
|
||||||
#status_command while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done
|
|
||||||
status_command "i3status-rs"
|
status_command "i3status-rs"
|
||||||
|
|
||||||
colors {
|
colors {
|
||||||
separator #6d0080
|
separator #6d0080
|
||||||
background #2c2c2c
|
background #2c2c2c
|
||||||
statusline #ffffff
|
statusline #ffffff
|
||||||
# focused_workspace #6d0080 #6d0080 #ffffff
|
|
||||||
# active_workspace #6d0080 #6d0080 #ffffff
|
|
||||||
# inactive_workspace #2c2c2c #2c2c2c #ffffff
|
|
||||||
# urgent_workspace #e68b00 #e68b00 #ffffff
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
input "type:keyboard" {
|
input "type:keyboard" {
|
||||||
xkb_layout "us,ru"
|
xkb_layout "us,ru"
|
||||||
xkb_variant "altgr-intl,typewriter"
|
xkb_variant ",typewriter"
|
||||||
xkb_options "grp:win_space_toggle,compose:menu,ctrl:nocaps"
|
xkb_options "grp:win_space_toggle,compose:menu,ctrl:nocaps"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -256,14 +207,6 @@ input "type:touchpad" {
|
||||||
click_method clickfinger
|
click_method clickfinger
|
||||||
}
|
}
|
||||||
|
|
||||||
# rules
|
|
||||||
for_window [app_id="nmtui"] floating enable
|
|
||||||
for_window [app_id="pavucontrol"] floating enable
|
|
||||||
for_window [class="xfreerdp"] floating enable
|
|
||||||
for_window [app_id="zoom"] floating enable
|
|
||||||
for_window [class="^sun-awt"] floating enable
|
|
||||||
for_window [class="java-lang-Thread"] floating enable
|
|
||||||
|
|
||||||
# scratchpad
|
# scratchpad
|
||||||
for_window [app_id="keepassxc"] move scratchpad, scratchpad show
|
for_window [app_id="keepassxc"] move scratchpad, scratchpad show
|
||||||
bindsym --to-code $mod+i [app_id="keepassxc"] scratchpad show
|
bindsym --to-code $mod+i [app_id="keepassxc"] scratchpad show
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue