fix sway, return visual studio vim

This commit is contained in:
Grigory Shipunov 2025-01-25 19:08:41 +01:00
parent d0cf7796a9
commit a848517698
14 changed files with 540 additions and 41 deletions

View file

@ -0,0 +1,43 @@
[colors.cursor]
text = "#000000"
cursor = "#ffff00"
[colors.primary]
foreground = "#dcdccc"
background = "#111111"
[colors.normal]
black = "#222222"
red = "#cc9393"
green = "#7f9f7f"
yellow = "#d0bf8f"
blue = "#6ca0a3"
magenta = "#dc8cc3"
cyan = "#93e0e3"
white = "#dcdccc"
[colors.bright]
black = "#666666"
red = "#dca3a3"
green = "#bfebbf"
yellow = "#f0dfaf"
blue = "#8cd0d3"
magenta = "#fcace3"
cyan = "#b3ffff"
white = "#ffffff"
[font]
size = 10
[font.bold]
family = "Hack Nerd Font Mono"
[font.bold_italic]
family = "Hack Nerd Font Mono"
[font.italic]
family = "Hack Nerd Font Mono"
[font.normal]
family = "Hack Nerd Font Mono"

View file

@ -2,7 +2,7 @@
theme = "foot"
[icons]
icons = "awesome6"
icons = "material-nf"
[[block]]
block = "time"
@ -14,23 +14,23 @@ idle_fg = { link = "idle_bg" }
[[block]]
block = "maildir"
interval = 60
inboxes = ["/home/grue/mail/dump@dvb.solutions/INBOX", "/home/grue/mail/grigory@tlm.solutions/INBOX" ]
inboxes = ["/home/0xa/mail/dump@dvb.solutions/INBOX", "/home/0xa/mail/grigory@tlm.solutions/INBOX" ]
threshold_critical = 1
display_type = "new"
[[block.click]]
button = "left"
cmd = "foot --app-id floating-foot --window-size-chars=150x50 -- zsh -c neomutt"
cmd = "alacritty --class floating-foot -e zsh -c neomutt"
[[block]]
block = "maildir"
interval = 60
inboxes = ["/home/grue/mail/mail@oxapentane.com/INBOX", "/home/grue/mail/mail@oxapentane.com/sinkhole", "/home/grue/mail/grigory@shipunov.xyz/INBOX"]
inboxes = ["/home/0xa/mail/mail@oxapentane.com/INBOX", "/home/0xa/mail/mail@oxapentane.com/sinkhole", "/home/0xa/mail/grigory@shipunov.xyz/INBOX"]
threshold_warning = 1
threshold_critical = 10
display_type = "new"
[[block.click]]
button = "left"
cmd = "foot --app-id floating-foot --window-size-chars=150x50 -- zsh -c neomutt"
cmd = "alacritty --class floating-foot -e zsh -c neomutt"
[[block]]
block = "backlight"
@ -49,20 +49,16 @@ block = "net"
device = "enp1s0f0"
format = " $icon{ | $ip $ipv6 }"
## TODO patch upstream
# [[block]]
# block = "net"
# device = "wg-mullvad"
# format = " $device "
# TODO patch upstream
#[[block]]
#block = "net"
#device = "wg-mullvad"
#format = " $device up $ip "
[[block]]
block = "memory"
format = " $icon $mem_used_percents "
[[block]]
block = "cpu"
format = " $icon $frequency $barchart $utilization "
[[block]]
block = "load"
format = " $1m.eng(w:4) $5m.eng(w:4) $15m.eng(w:4) "

View file

@ -1,14 +1,14 @@
# Default
profile {
output eDP-1 enable
output eDP-1 enable adaptive_sync on
}
# Home
profile {
output eDP-1 enable enable position -1920,960
output "LG Electronics LG HDR 4K 0x00000CA7" enable mode 3840x2160 position 0,0
output eDP-1 enable position 3840,0 adaptive_sync on
output DP-8 enable mode 3840x2160 position 0,0 adaptive_sync on
}
# Work
profile {
output eDP-1 enable position 0,1200
output "Samsung Electric Company LF24T450G HNMTA01726" enable mode 1920x1200 position 0,0
output eDP-1 enable position 0,1200 adaptive_sync on
output "Samsung Electric Company LF24T450G HNMTA01726" enable mode 1920x1200@60Hz position 0,0 adaptive_sync on
}

View file

@ -14,8 +14,8 @@ set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term foot
set $floatterm foot --app-id floating-foot
set $term alacritty
set $floatterm alacritty --class floating-foot
set $lock $HOME/.config/sway/lock.sh
# Your preferred application launcher
@ -27,9 +27,9 @@ set $menu rofi -show combi | xargs swaymsg exec --
#
# Default wallpaper (more resolutions are available in /run/current-system/sw/share/backgrounds/sway/)
# output * bg /run/current-system/sw/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
# output * bg /home/grue/Pictures/tiles/23.png tile
output * bg /home/0xa/Pictures/tiles/23.png tile
# output * bg /home/grue/Pictures/paper.jpg fill
output * bg ./wall.jpg fill
# output * bg ./wall.jpg fill
#
# Example configuration:
@ -61,6 +61,7 @@ exec swayidle -w \
dwt enabled
dwtp enabled
middle_emulation enabled
natural_scroll enabled
}
input type:keyboard {
@ -86,7 +87,7 @@ seat * hide_cursor 5000
for_window [app_id="floating-foot"] floating enable
# Start a python shell
bindsym --to-code $mod+z exec $floatterm python
bindsym --to-code $mod+z exec $floatterm -e python
# Kill focused window
bindsym --to-code $mod+Shift+q kill
@ -111,9 +112,9 @@ seat * hide_cursor 5000
bindsym --to-code --locked XF86MonBrightnessDown exec "brightnessctl set 5%-"
bindsym --to-code --locked XF86MonBrightnessUp exec "brightnessctl set +5%"
# Volume
bindsym --to-code --locked XF86AudioRaiseVolume exec 'pamixer -i 1'
bindsym --to-code --locked XF86AudioLowerVolume exec 'pamixer -d 1'
bindsym --to-code --locked XF86AudioMute exec 'pamixer -t'
bindsym --to-code --locked XF86AudioRaiseVolume exec 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+'
bindsym --to-code --locked XF86AudioLowerVolume exec 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-'
bindsym --to-code --locked XF86AudioMute exec 'wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle'
# Screen locking
bindsym --to-code $mod+Delete exec $lock
# Screenshots
@ -308,7 +309,7 @@ client.focused $color06 $color06 $color00 $color07 $color06
# Read `man 5 sway-bar` for more information about this section.
bar {
position top
font pango:Ttyp0 8
font pango:Hack 9
icon_theme "Adwaita"
status_command /run/current-system/sw/bin/i3status-rs
colors {
@ -324,7 +325,7 @@ bar {
# default border
default_border pixel 2
# Set font
font pango:Ttyp0 8
font pango:Hack 9
# bindsym --to-code $mod+t input type:touchpad toggle

View file

@ -1,13 +1,3 @@
#!/usr/bin/env bash
img="$HOME/Pictures/paper.jpg"
#grim $img
#gm convert $img -scale 5% -scale 2000% $img
#gm convert $img -blur 0x10 $img
# swaylock -Ffk -i $img -s fill
# swaylock -Ffk -i $HOME/Pictures/tiles/156.png -s tile
swaylock -Ffk -i $HOME/Pictures/tiles/23.png -s tile
# swaylock -Ffk -i $HOME/Pictures/tiles/10.png -s tile
#rm -f $img