Sway update
This commit is contained in:
15
.bashrc
15
.bashrc
@@ -10,10 +10,6 @@ alias grep='grep --color=auto'
|
|||||||
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
||||||
PS1='[\u@\h \W]\$ '
|
PS1='[\u@\h \W]\$ '
|
||||||
|
|
||||||
if [ -z "$WAYLAND_DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ] ; then
|
|
||||||
exec sway
|
|
||||||
fi
|
|
||||||
|
|
||||||
# pnpm
|
# pnpm
|
||||||
export PNPM_HOME="/home/pmcc/.local/share/pnpm"
|
export PNPM_HOME="/home/pmcc/.local/share/pnpm"
|
||||||
case ":$PATH:" in
|
case ":$PATH:" in
|
||||||
@@ -25,4 +21,13 @@ esac
|
|||||||
eval "$(starship init bash)"
|
eval "$(starship init bash)"
|
||||||
|
|
||||||
alias reboot-to-windows='sudo grub-reboot "Windows Boot Manager (on /dev/nvme1n1p1)" && sudo reboot'
|
alias reboot-to-windows='sudo grub-reboot "Windows Boot Manager (on /dev/nvme1n1p1)" && sudo reboot'
|
||||||
export PATH=~/.npm-global/bin:~/.local/bin:$PATH
|
export PATH=~/.npm-global/bin:$PATH
|
||||||
|
export SSH_AUTH_SOCK=~/.1password/agent.sock
|
||||||
|
|
||||||
|
if uwsm check may-start; then
|
||||||
|
exec uwsm start sway.desktop
|
||||||
|
fi
|
||||||
|
|
||||||
|
#if [ -z "$WAYLAND_DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ] ; then
|
||||||
|
# exec sway
|
||||||
|
#fi
|
||||||
|
|||||||
@@ -56,10 +56,10 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
|
|||||||
# Basics:
|
# Basics:
|
||||||
#
|
#
|
||||||
# Start a terminal
|
# Start a terminal
|
||||||
bindsym $mod+Return exec $term
|
bindsym $mod+Return exec uwsm app -- $term
|
||||||
|
|
||||||
# Start your launcher
|
# Start your launcher
|
||||||
bindsym $mod+space exec $menu
|
bindsym $mod+space exec uwsm app -- $menu
|
||||||
|
|
||||||
# Drag floating windows by holding down $mod and left mouse button.
|
# Drag floating windows by holding down $mod and left mouse button.
|
||||||
# Resize them with right mouse button + $mod.
|
# Resize them with right mouse button + $mod.
|
||||||
@@ -72,7 +72,7 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
|
|||||||
bindsym $mod+Shift+c reload
|
bindsym $mod+Shift+c reload
|
||||||
|
|
||||||
# Exit sway (logs you out of your Wayland session)
|
# Exit sway (logs you out of your Wayland session)
|
||||||
bindsym $mod+Shift+backspace exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
|
bindsym $mod+Shift+backspace exec uwsm stop
|
||||||
|
|
||||||
#
|
#
|
||||||
# Layout stuff:
|
# Layout stuff:
|
||||||
@@ -151,6 +151,4 @@ bindsym $mod+r mode "resize"
|
|||||||
|
|
||||||
for_window [shell="xwayland"] title_format "[XWayland] %title"
|
for_window [shell="xwayland"] title_format "[XWayland] %title"
|
||||||
|
|
||||||
#xwayland disable
|
|
||||||
|
|
||||||
include ~/.config/sway/config.d/*
|
include ~/.config/sway/config.d/*
|
||||||
|
|||||||
16
.config/sway/config.d/50-systemd-user.conf
Normal file
16
.config/sway/config.d/50-systemd-user.conf
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# sway does not set DISPLAY/WAYLAND_DISPLAY in the systemd user environment
|
||||||
|
# See FS#63021
|
||||||
|
# Adapted from xorg's 50-systemd-user.sh, which achieves a similar goal.
|
||||||
|
|
||||||
|
# Upstream refuses to set XDG_CURRENT_DESKTOP so we have to.
|
||||||
|
exec systemctl --user set-environment XDG_CURRENT_DESKTOP=sway
|
||||||
|
exec systemctl --user import-environment DISPLAY \
|
||||||
|
SWAYSOCK \
|
||||||
|
WAYLAND_DISPLAY \
|
||||||
|
XDG_CURRENT_DESKTOP
|
||||||
|
|
||||||
|
exec hash dbus-update-activation-environment 2>/dev/null && \
|
||||||
|
dbus-update-activation-environment --systemd DISPLAY \
|
||||||
|
SWAYSOCK \
|
||||||
|
XDG_CURRENT_DESKTOP=sway \
|
||||||
|
WAYLAND_DISPLAY
|
||||||
@@ -28,29 +28,22 @@ set $mantle #181825
|
|||||||
set $crust #11111b
|
set $crust #11111b
|
||||||
|
|
||||||
# Warm Sunset Window Colors
|
# Warm Sunset Window Colors
|
||||||
client.focused $peach $base $text $yellow $peach
|
client.focused $peach $peach $mantle $yellow $peach
|
||||||
client.focused_inactive $surface1 $base $subtext1 $yellow $surface1
|
client.focused_inactive $lavender $lavender $mantle $yellow $lavender
|
||||||
client.unfocused $surface0 $base $subtext0 $yellow $surface0
|
client.unfocused $blue $blue $mantle $yellow $blue
|
||||||
client.urgent $red $base $text $surface0 $red
|
client.urgent $red $base $text $surface0 $red
|
||||||
client.placeholder $surface0 $base $text $surface0 $surface0
|
client.placeholder $surface0 $surface0 $text $surface0 $surface0
|
||||||
client.background $base
|
client.background $base
|
||||||
|
|
||||||
# Gaps and borders
|
# Gaps and borders
|
||||||
gaps inner 8
|
gaps inner 4
|
||||||
gaps outer 5
|
gaps outer 10
|
||||||
default_border normal 2
|
default_border normal 4
|
||||||
default_floating_border normal 4
|
default_floating_border normal 4
|
||||||
|
|
||||||
|
font pango:"JetBrainsMono Nerd Font" Normal 14
|
||||||
|
|
||||||
# Status bar
|
# Status bar
|
||||||
bar {
|
bar {
|
||||||
position top
|
swaybar_command waybar
|
||||||
colors {
|
|
||||||
statusline $text
|
|
||||||
background $surface0
|
|
||||||
separator $overlay0
|
|
||||||
inactive_workspace $surface1 $surface0 $text
|
|
||||||
active_workspace $surface2 $surface0 $text
|
|
||||||
focused_workspace $peach $surface0 $text
|
|
||||||
urgent_workspace $red $surface0 $text
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -115,7 +115,7 @@
|
|||||||
"network": {
|
"network": {
|
||||||
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
||||||
"format-wifi": "{essid} ({signalStrength}%) ",
|
"format-wifi": "{essid} ({signalStrength}%) ",
|
||||||
"format-ethernet": "⇓{bandwidthDownBytes} ⇑{bandwidthUpBytes} ",
|
"format-ethernet": "▼{bandwidthDownBytes} ▲{bandwidthUpBytes} ",
|
||||||
"tooltip-format": "{ifname} via {gwaddr} ",
|
"tooltip-format": "{ifname} via {gwaddr} ",
|
||||||
"format-linked": "{ifname} (No IP) ",
|
"format-linked": "{ifname} (No IP) ",
|
||||||
"format-disconnected": "Disconnected ⚠",
|
"format-disconnected": "Disconnected ⚠",
|
||||||
|
|||||||
Reference in New Issue
Block a user