~/.config/sway/config 文件内容
照着别人的改了一大堆
# === 基础设置 ===
set $mod Mod4
set $term foot
set $menu wofi --show drun
set $foreground "#eeeeee"
set $background "#000000"
set $color0 "#111111"
set $color1 "#f92672"
set $color2 "#8ce10b"
set $color3 "#fd971f"
set $color4 "#bbccdd"
set $color5 "#bf40bf"
set $color6 "#8ec07c"
set $color7 "#5f676a"
set $color8 "#333333"
set $color9 "#b16286"
set $color10 "#beed5f"
set $color11 "#e6da00"
set $color12 "#076678"
set $color13 "#6a78a8"
set $color14 "#427b58"
set $color15 "#ffffff"
# === 键盘布局 ===
input type:keyboard xkb_layout us
# === 壁纸 ===
output * bg /usr/share/images/desktop-base/desktopimage.jpeg fill
# 设置窗口标题栏字体(格式:字体名称 大小)
font pango:LXGW WenKai Regular 9.5
# === 自动启动 ===
exec waybar
exec nm-applet --indicator
exec swayidle -w timeout 300 'swaylock -f' timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"'
exec_always papersway
# === 窗口风格 ===
default_border normal
default_floating_border normal
hide_edge_borders --i3 smart
# === 颜色方案(深色) ===
client.focused #4c7899 #285577 #ffffff #2e9ef4 #285577
client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a
client.unfocused #333333 #222222 #888888 #292d2e #222222
client.urgent #2f343a #900000 #ffffff #900000 #900000
client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
client.background #000000
# === 快捷键(每行只定义一次!) ===
# 终端
bindsym $mod+Return exec $term
# 启动器
bindsym $mod+d exec $menu
# 关闭窗口
bindsym $mod+Shift+q kill
# 全屏
bindsym $mod+f fullscreen toggle
# 浮动切换
bindsym $mod+Shift+space floating toggle
# 重载配置
bindsym $mod+Shift+c reload
# 退出 Sway
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway?' -B 'Yes, exit sway' 'swaymsg exit'
# === 窗口导航 ===
bindsym $mod+Left exec papersway-msg focus left
bindsym $mod+Down exec papersway-msg focus down
bindsym $mod+Up exec papersway-msg focus up
bindsym $mod+Right exec papersway-msg focus right
# === 移动窗口 ===
bindsym $mod+Shift+Left exec papersway-msg move left
bindsym $mod+Shift+Down exec papersway-msg move down
bindsym $mod+Shift+Up exec papersway-msg move up
bindsym $mod+Shift+Right exec papersway-msg move right
# === 工作区切换 ===
bindsym $mod+1 workspace number 1
bindsym $mod+2 workspace number 2
bindsym $mod+3 workspace number 3
bindsym $mod+4 workspace number 4
bindsym $mod+5 workspace number 5
bindsym $mod+6 workspace number 6
bindsym $mod+7 workspace number 7
bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9
bindsym $mod+0 workspace number 10
# === 移动窗口到工作区 ===
bindsym $mod+Shift+1 move container to workspace number 1
bindsym $mod+Shift+2 move container to workspace number 2
bindsym $mod+Shift+3 move container to workspace number 3
bindsym $mod+Shift+4 move container to workspace number 4
bindsym $mod+Shift+5 move container to workspace number 5
bindsym $mod+Shift+6 move container to workspace number 6
bindsym $mod+Shift+7 move container to workspace number 7
bindsym $mod+Shift+8 move container to workspace number 8
bindsym $mod+Shift+9 move container to workspace number 9
bindsym $mod+Shift+0 move container to workspace number 10
# === 布局控制 ===
bindsym $mod+b splith
bindsym $mod+v splitv
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# === 音量 ===
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
# === 亮度 ===
bindsym XF86MonBrightnessUp exec brightnessctl s 5%+
bindsym XF86MonBrightnessDown exec brightnessctl s 5%-
# === 截图 ===
bindsym Print exec grim ~/Pictures/screenshot-$(date +%Y%m%d-%H%M%S).png
bindsym $mod+Shift+p exec grim -g "$(slurp)" ~/Pictures/screenshot-$(date +%Y%m%d-%H%M%S).png
1
2
还在为IP不纯、平台风控、频繁验证而烦恼? 丽萨主机海外原生IP VPS,双ISP住宅IP,覆盖美国、香港、日本、新加坡、台湾、德国、越南、英国等热门地区,适合跨境电商、社媒运营、AI工具、流媒体及海外业务使用。
2 条回复
排序