cachyos sway updated

This commit is contained in:
2026-01-25 18:06:08 +08:00
parent 4ac66a9b16
commit 4642facc91
4 changed files with 331 additions and 17 deletions

24
config
View File

@@ -1,7 +1,5 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
# Set default font for sway and monospace font
@@ -21,8 +19,8 @@ set $right l
set $term foot
# Your preferred application launcher
#set $menu wmenu-run
set $menu "rofi -show drun"
set $browser firefox
set $menu "wofi -show drun"
set $browser firefox-developer-edition
# ... (previous config)
@@ -78,7 +76,9 @@ client.background $base
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
#output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
output * bg /home/gh0s7/Pictures/xenoblade.jpg fill
#output * bg /home/gh0s7/Pictures/Wallpapers/130036304_p21.png fill
output * bg /home/gh0s7/Pictures/Wallpapers/ThinkPad/TP1024.BMP fill
output eDP-1 scale 1.5
#
# Example configuration:
#
@@ -141,8 +141,9 @@ input * xkb_options caps:escape_shifted_capslock
bindsym $mod+d exec $menu
bindsym Alt+Space exec $menu
bindsym Ctrl+Alt+F exec $browser
bindsym Ctrl+Alt+L exec swaylock -i ~/Pictures/crychic.jpg -s fill
bindsym Ctrl+Alt+f exec $browser
bindsym Ctrl+Alt+l exec swaylock -i /home/gh0s7/Pictures/Wallpapers/ThinkPad/IBM1024R.BMP -s fill
bindsym Ctrl+Alt+e exec dolphin
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
@@ -164,6 +165,8 @@ input * xkb_options caps:escape_shifted_capslock
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
bindsym Alt+Tab focus right
bindsym Alt+Shift+Tab focus left
# Or use $mod+[up|down|left|right]
bindsym $mod+Left focus left
bindsym $mod+Down focus down
@@ -193,7 +196,7 @@ input * xkb_options caps:escape_shifted_capslock
bindsym $mod+7 workspace number 7
bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9
bindsym $mod+0 workspace number 0
bindsym $mod+0 workspace number 10
# Move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number 1
bindsym $mod+Shift+2 move container to workspace number 2
@@ -312,9 +315,8 @@ exec_always waybar
include /etc/sway/config.d/*
#exec_always fcixt5 -d --replace
exec --no-startup-id fcitx5 -d
exec --no-startup-id brightnessctl set 2000
exec --no-startup-id /usr/libexec/pipewire-launcher
exec_always mako
exec --no-startup-id brightnessctl set 16000
#exec --no-startup-id /usr/libexec/pipewire-launcher
# Idle configuration
exec swayidle -w \
timeout 300 'swaylock -f -c 000000' \