Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a398b6d1d1 | ||
|
|
8344503822 | ||
|
|
14f0c144f9 |
No files matched your search
@@ -1,13 +1,130 @@
|
|||||||
#
|
# ~/.bashrc: executed by bash(1) for non-login shells.
|
||||||
# ~/.bashrc
|
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
|
||||||
#
|
# for examples
|
||||||
|
|
||||||
# If not running interactively, don't do anything
|
# If not running interactively, don't do anything
|
||||||
[[ $- != *i* ]] && return
|
case $- in
|
||||||
|
*i*) ;;
|
||||||
|
*) return;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# don't put duplicate lines or lines starting with space in the history.
|
||||||
|
# See bash(1) for more options
|
||||||
|
HISTCONTROL=ignoreboth
|
||||||
|
|
||||||
|
# append to the history file, don't overwrite it
|
||||||
|
shopt -s histappend
|
||||||
|
|
||||||
|
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
||||||
|
HISTSIZE=1000
|
||||||
|
HISTFILESIZE=2000
|
||||||
|
|
||||||
|
# check the window size after each command and, if necessary,
|
||||||
|
# update the values of LINES and COLUMNS.
|
||||||
|
shopt -s checkwinsize
|
||||||
|
|
||||||
|
# If set, the pattern "**" used in a pathname expansion context will
|
||||||
|
# match all files and zero or more directories and subdirectories.
|
||||||
|
#shopt -s globstar
|
||||||
|
|
||||||
|
# make less more friendly for non-text input files, see lesspipe(1)
|
||||||
|
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
||||||
|
|
||||||
|
# set variable identifying the chroot you work in (used in the prompt below)
|
||||||
|
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
|
||||||
|
debian_chroot=$(cat /etc/debian_chroot)
|
||||||
|
fi
|
||||||
|
|
||||||
|
# set a fancy prompt (non-color, unless we know we "want" color)
|
||||||
|
case "$TERM" in
|
||||||
|
xterm-color|*-256color) color_prompt=yes;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# uncomment for a colored prompt, if the terminal has the capability; turned
|
||||||
|
# off by default to not distract the user: the focus in a terminal window
|
||||||
|
# should be on the output of commands, not on the prompt
|
||||||
|
#force_color_prompt=yes
|
||||||
|
|
||||||
|
if [ -n "$force_color_prompt" ]; then
|
||||||
|
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
|
||||||
|
# We have color support; assume it's compliant with Ecma-48
|
||||||
|
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
|
||||||
|
# a case would tend to support setf rather than setaf.)
|
||||||
|
color_prompt=yes
|
||||||
|
else
|
||||||
|
color_prompt=
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
source ~/.local/scripts/git-prompt.sh
|
||||||
|
if [ "$color_prompt" = yes ]; then
|
||||||
|
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$(__git_ps1 " (%s)") \n\$ '
|
||||||
|
else
|
||||||
|
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
|
||||||
|
fi
|
||||||
|
|
||||||
|
unset color_prompt force_color_prompt
|
||||||
|
|
||||||
|
# If this is an xterm set the title to user@host:dir
|
||||||
|
case "$TERM" in
|
||||||
|
xterm*|rxvt*)
|
||||||
|
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# enable color support of ls and also add handy aliases
|
||||||
|
if [ -x /usr/bin/dircolors ]; then
|
||||||
|
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||||||
|
alias ls='ls --color=auto'
|
||||||
|
#alias dir='dir --color=auto'
|
||||||
|
#alias vdir='vdir --color=auto'
|
||||||
|
|
||||||
|
alias grep='grep --color=auto'
|
||||||
|
alias fgrep='fgrep --color=auto'
|
||||||
|
alias egrep='egrep --color=auto'
|
||||||
|
fi
|
||||||
|
|
||||||
|
# colored GCC warnings and errors
|
||||||
|
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
||||||
|
|
||||||
|
# some more ls aliases
|
||||||
|
alias ll='ls -alF'
|
||||||
|
alias la='ls -A'
|
||||||
|
alias l='ls -CF'
|
||||||
|
|
||||||
|
# Add an "alert" alias for long running commands. Use like so:
|
||||||
|
# sleep 10; alert
|
||||||
|
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
||||||
|
|
||||||
|
# Alias definitions.
|
||||||
|
# You may want to put all your additions into a separate file like
|
||||||
|
# ~/.bash_aliases, instead of adding them here directly.
|
||||||
|
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
|
||||||
|
|
||||||
|
if [ -f ~/.bash_aliases ]; then
|
||||||
|
. ~/.bash_aliases
|
||||||
|
fi
|
||||||
|
|
||||||
|
# enable programmable completion features (you don't need to enable
|
||||||
|
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
||||||
|
# sources /etc/bash.bashrc).
|
||||||
|
if ! shopt -oq posix; then
|
||||||
|
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||||||
|
. /usr/share/bash-completion/bash_completion
|
||||||
|
elif [ -f /etc/bash_completion ]; then
|
||||||
|
. /etc/bash_completion
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
PATH=$PATH:~/.local/bin/
|
||||||
|
export WLR_DRM_NO_MODIFIERS=1
|
||||||
|
|
||||||
alias ls='ls --color=auto'
|
|
||||||
alias grep='grep --color=auto'
|
|
||||||
alias vim='nvim'
|
alias vim='nvim'
|
||||||
PS1='[\u@\h \W]\$ '
|
alias ssh='ssh -XC'
|
||||||
|
alias xfreerdp='xfreerdp +clipboard /dynamic-resolution '
|
||||||
|
|
||||||
|
# Set up fzf key bindings and fuzzy completion
|
||||||
eval "$(fzf --bash)"
|
eval "$(fzf --bash)"
|
||||||
|
|
||||||
+19
-48
@@ -1,63 +1,34 @@
|
|||||||
# Idle / lock for SWAY (wlroots), not Hyprland.
|
|
||||||
#
|
|
||||||
# Two things in the original Hyprland template silently did nothing under sway:
|
|
||||||
# * `loginctl lock-session` -> sway implements no freedesktop login1 Session
|
|
||||||
# Lock protocol, so it is a no-op. Lock directly.
|
|
||||||
# * `hyprctl dispatch dpms` -> "HYPRLAND_INSTANCE_SIGNATURE not set!".
|
|
||||||
# Use `swaymsg "output * power on|off"`.
|
|
||||||
# Also: a hyprlock instance can outlive a sway session and then make the
|
|
||||||
# `pidof hyprlock || hyprlock` guard a permanent no-op; the sway config kills
|
|
||||||
# leftovers at login (`exec --no-startup-id pkill -x hyprlock`).
|
|
||||||
|
|
||||||
general {
|
general {
|
||||||
lock_cmd = pidof hyprlock || hyprlock
|
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
|
||||||
# pre-suspend uses swaylock: fast, sway-native, exits cleanly (no leak)
|
before_sleep_cmd = loginctl lock-session # lock before suspend.
|
||||||
before_sleep_cmd = swaylock -f -c 000000
|
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
|
||||||
# DPMS "power on" alone does not clear a post-resume eDP page-flip stall
|
|
||||||
# ("Atomic commit failed: Device or resource busy" for tens of minutes).
|
|
||||||
# The script does a full disable/enable (forced modeset) but ONLY when the
|
|
||||||
# journal actually shows the stall -- it used to fire unconditionally, which
|
|
||||||
# risked the shikane VariantInProgress deadlock on healthy resumes. The
|
|
||||||
# original i915 PSR2/DC4 cause is gone; this laptop uses the `xe` driver.
|
|
||||||
# Lid-aware so it does not race shikane's "External Display" profile.
|
|
||||||
after_sleep_cmd = /home/work/.config/sway/scripts/recover-output-after-resume.sh
|
|
||||||
}
|
}
|
||||||
|
|
||||||
listener {
|
listener {
|
||||||
timeout = 150 # 2.5min
|
timeout = 150 # 2.5min.
|
||||||
on-timeout = brightnessctl -s set 10
|
on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor.
|
||||||
on-resume = brightnessctl -r
|
on-resume = brightnessctl -r # monitor backlight restore.
|
||||||
}
|
}
|
||||||
|
|
||||||
# keyboard backlight
|
# turn off keyboard backlight, comment out this section if you dont have a keyboard backlight.
|
||||||
listener {
|
listener {
|
||||||
timeout = 150
|
timeout = 150 # 2.5min.
|
||||||
on-timeout = brightnessctl -sd rgb:kbd_backlight set 0
|
on-timeout = brightnessctl -sd rgb:kbd_backlight set 0 # turn off keyboard backlight.
|
||||||
on-resume = brightnessctl -rd rgb:kbd_backlight
|
on-resume = brightnessctl -rd rgb:kbd_backlight # turn on keyboard backlight.
|
||||||
}
|
}
|
||||||
|
|
||||||
listener {
|
listener {
|
||||||
timeout = 300 # 5min -> lock
|
timeout = 300 # 5min
|
||||||
on-timeout = pidof hyprlock || hyprlock
|
on-timeout = loginctl lock-session # lock screen when timeout has passed
|
||||||
}
|
}
|
||||||
|
|
||||||
listener {
|
listener {
|
||||||
timeout = 330 # 5.5min -> output power off
|
timeout = 330 # 5.5min
|
||||||
on-timeout = swaymsg "output * power off"
|
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
|
||||||
on-resume = swaymsg "output * power on" && brightnessctl -r
|
on-resume = hyprctl dispatch dpms on && brightnessctl -r # screen on when activity is detected after timeout has fired.
|
||||||
}
|
}
|
||||||
# 10min -> s2idle. This listener used to be missing entirely: the panel powered
|
|
||||||
# off at 330s but the machine never suspended, so a lid-open idle laptop kept
|
|
||||||
# draining ~6-7W (10h battery) forever. Closing the lid did suspend, because
|
|
||||||
# logind's default HandleLidSwitch=suspend -- but only the lid path.
|
|
||||||
# logind's own IdleAction stays Ignore on purpose (it cannot run swaymsg/hyprlock
|
|
||||||
# pre-sleep hooks; hypridle's before_sleep_cmd can).
|
|
||||||
# 600s = long enough that a compile/syncthing burst usually finishes; a suspend
|
|
||||||
# mid-task is recoverable, and before_sleep_cmd locks on resume.
|
|
||||||
# Verified: polkit org.freedesktop.login1.suspend allow_active=yes, so this
|
|
||||||
# needs no auth prompt from an active local session. Plain suspend (not
|
|
||||||
# suspend-then-hibernate) because swap is zram-only -> hibernate impossible.
|
|
||||||
listener {
|
listener {
|
||||||
timeout = 600 # 10min -> suspend
|
timeout = 1800 # 30min
|
||||||
on-timeout = systemctl suspend
|
on-timeout = systemctl suspend # suspend pc
|
||||||
}
|
}
|
||||||
@@ -35,7 +35,6 @@ monitor=,preferred,auto,auto
|
|||||||
|
|
||||||
# Set programs that you use
|
# Set programs that you use
|
||||||
$terminal = kitty
|
$terminal = kitty
|
||||||
#$terminal = foot
|
|
||||||
$fileManager = nautilus
|
$fileManager = nautilus
|
||||||
$menu = wofi --show drun -GI
|
$menu = wofi --show drun -GI
|
||||||
|
|
||||||
@@ -196,7 +195,7 @@ animations {
|
|||||||
|
|
||||||
# See https://wiki.hypr.land/Configuring/Dwindle-Layout/ for more
|
# See https://wiki.hypr.land/Configuring/Dwindle-Layout/ for more
|
||||||
dwindle {
|
dwindle {
|
||||||
#pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||||
preserve_split = true # You probably want this
|
preserve_split = true # You probably want this
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -209,29 +208,15 @@ master {
|
|||||||
misc {
|
misc {
|
||||||
force_default_wallpaper = 0 # Set to 0 or 1 to disable the anime mascot wallpapers
|
force_default_wallpaper = 0 # Set to 0 or 1 to disable the anime mascot wallpapers
|
||||||
disable_hyprland_logo = true# If true disables the random hyprland logo / anime girl background. :(
|
disable_hyprland_logo = true# If true disables the random hyprland logo / anime girl background. :(
|
||||||
#vfr = true
|
vfr = true
|
||||||
}
|
}
|
||||||
|
|
||||||
xwayland {
|
xwayland {
|
||||||
force_zero_scaling = true
|
force_zero_scaling = true
|
||||||
}
|
}
|
||||||
|
|
||||||
env = GTK_SCALE,1
|
env = GTK_SCALE,1
|
||||||
env = XCURSOR_SIZE,32
|
env = XCURSOR_SIZE,32
|
||||||
|
|
||||||
plugin {
|
|
||||||
hy3 {
|
|
||||||
tabs {
|
|
||||||
# height of the tab bar
|
|
||||||
height = 2 # default: 22
|
|
||||||
|
|
||||||
# render the window title on the bar
|
|
||||||
render_text = false # default: true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#############
|
#############
|
||||||
### INPUT ###
|
### INPUT ###
|
||||||
@@ -281,7 +266,7 @@ bind = $mainMod, M, exec, hyprlock
|
|||||||
|
|
||||||
bind = $mainMod SHIFT, SPACE, togglefloating,
|
bind = $mainMod SHIFT, SPACE, togglefloating,
|
||||||
bind = $mainMod SHIFT, Q, hy3:killactive,
|
bind = $mainMod SHIFT, Q, hy3:killactive,
|
||||||
bind = $mainMod SHIFT, E, exit,
|
bind = $mainMod SHIFT, M, exit,
|
||||||
bind = $mainMod SHIFT, S, pin
|
bind = $mainMod SHIFT, S, pin
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ background {
|
|||||||
|
|
||||||
input-field {
|
input-field {
|
||||||
monitor =
|
monitor =
|
||||||
size = 15%, 5%
|
size = 20%, 5%
|
||||||
font_family = Noto Sans
|
font_family = Noto Sans
|
||||||
dots_size = 0.08
|
dots_size = 0.08
|
||||||
}
|
}
|
||||||
@@ -15,6 +15,6 @@ input-field {
|
|||||||
label {
|
label {
|
||||||
monitor =
|
monitor =
|
||||||
text = $TIME
|
text = $TIME
|
||||||
font_size = 200
|
font_size = 80
|
||||||
position = 0, 200
|
position = 0, -10
|
||||||
}
|
}
|
||||||
@@ -3,18 +3,19 @@
|
|||||||
"spacing": 2, // Gaps between modules (4px)
|
"spacing": 2, // Gaps between modules (4px)
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
"hyprland/workspaces",
|
"hyprland/workspaces",
|
||||||
"hyprland/submap",
|
"hyprland/mode",
|
||||||
|
"hyprland/scratchpad",
|
||||||
"hyprland/window"
|
"hyprland/window"
|
||||||
],
|
],
|
||||||
//"modules-center": [
|
"modules-center": [
|
||||||
//"sway/window"
|
//"sway/window"
|
||||||
//],
|
"clock",
|
||||||
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
//"mpd",
|
//"mpd",
|
||||||
"pulseaudio",
|
"pulseaudio",
|
||||||
//"network",
|
//"network",
|
||||||
"battery",
|
"battery",
|
||||||
"clock",
|
|
||||||
"tray"
|
"tray"
|
||||||
//"custom/power"
|
//"custom/power"
|
||||||
],
|
],
|
||||||
@@ -22,8 +23,9 @@
|
|||||||
"format": "<span style=\"italic\">{}</span>"
|
"format": "<span style=\"italic\">{}</span>"
|
||||||
},
|
},
|
||||||
"sway/scratchpad": {
|
"sway/scratchpad": {
|
||||||
"format": "{count}",
|
"format": "{icon} {count}",
|
||||||
"show-empty": false,
|
"show-empty": false,
|
||||||
|
"format-icons": ["", ""],
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"tooltip-format": "{app}: {title}"
|
"tooltip-format": "{app}: {title}"
|
||||||
},
|
},
|
||||||
@@ -38,7 +40,7 @@
|
|||||||
"clock": {
|
"clock": {
|
||||||
//"timezone": "America/Los_Angeles",
|
//"timezone": "America/Los_Angeles",
|
||||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||||
"format": "{:%r %Y-%m-%d}",
|
"format": "{:%c}",
|
||||||
//"format": "{:%R %p %Y-%m-%d}",
|
//"format": "{:%R %p %Y-%m-%d}",
|
||||||
//"format-alt": "{:%Y-%m-%d}"
|
//"format-alt": "{:%Y-%m-%d}"
|
||||||
},
|
},
|
||||||
@@ -48,53 +50,66 @@
|
|||||||
"warning": 30,
|
"warning": 30,
|
||||||
"critical": 15
|
"critical": 15
|
||||||
},
|
},
|
||||||
"format": "{time} {capacity}%",
|
//"format": "{time} {capacity}% {icon}",
|
||||||
"format-full": "{capacity}%",
|
"format": "{capacity}% {icon}",
|
||||||
|
"format-full": "{capacity}% {icon}",
|
||||||
"format-charging": "{capacity}% C",
|
"format-charging": "{capacity}% C",
|
||||||
"format-plugged": "{capacity}% P",
|
"format-plugged": "{capacity}% P",
|
||||||
"format-alt": "{time}",
|
"format-alt": "{time} {icon}",
|
||||||
// "format-good": "", // An empty format will hide the module
|
// "format-good": "", // An empty format will hide the module
|
||||||
// "format-full": "",
|
// "format-full": "",
|
||||||
|
"format-icons": ["", "", "", "", ""]
|
||||||
},
|
},
|
||||||
"battery#bat2": {
|
"battery#bat2": {
|
||||||
"bat": "BAT2"
|
"bat": "BAT2"
|
||||||
},
|
},
|
||||||
"power-profiles-daemon": {
|
"power-profiles-daemon": {
|
||||||
"format": "{profile}",
|
"format": "{icon}",
|
||||||
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
|
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"format-icons": {"default": [""]}
|
"format-icons": {
|
||||||
|
"default": "",
|
||||||
|
"performance": "",
|
||||||
|
"balanced": "",
|
||||||
|
"power-saver": ""
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"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": "{ipaddr}/{cidr}",
|
//"format-ethernet": "{ipaddr}/{cidr} ",
|
||||||
//"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 ⚠",
|
||||||
"format-disconnected": "Disconnected",
|
"format-disconnected": "Disconnected",
|
||||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||||
},
|
},
|
||||||
"pulseaudio": {
|
"pulseaudio": {
|
||||||
// "scroll-step": 1, // %, can be a float
|
// "scroll-step": 1, // %, can be a float
|
||||||
"format": "{volume}% {format_source}",
|
"format": "{volume}% {icon} {format_source}",
|
||||||
"format-bluetooth": "{volume}% {format_source}",
|
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||||
"format-bluetooth-muted": " {format_source}",
|
"format-bluetooth-muted": " {icon} {format_source}",
|
||||||
"format-muted": " {format_source}",
|
"format-muted": " {format_source}",
|
||||||
"format-source": "{volume}%",
|
"format-source": "{volume}% ",
|
||||||
"format-source-muted": "",
|
"format-source-muted": "",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"default": [""]
|
"headphone": "",
|
||||||
|
"hands-free": "",
|
||||||
|
"headset": "",
|
||||||
|
"phone": "",
|
||||||
|
"portable": "",
|
||||||
|
"car": "",
|
||||||
|
"default": ["", "", ""]
|
||||||
},
|
},
|
||||||
"on-click": "pavucontrol"
|
"on-click": "pavucontrol"
|
||||||
},
|
},
|
||||||
"custom/media": {
|
"custom/media": {
|
||||||
"format": "{text}",
|
"format": "{icon} {text}",
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
"max-length": 40,
|
"max-length": 40,
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"spotify": "",
|
"spotify": "",
|
||||||
"default": ""
|
"default": "🎜"
|
||||||
},
|
},
|
||||||
"escape": true,
|
"escape": true,
|
||||||
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
/*font-family: "JetBrainsMono NF";*/
|
/*font-family: "JetBrainsMono NF";*/
|
||||||
font-family: "JetBrainsMonoNFM-Regular";
|
font-family: "JetBrainsMonoNFM-Regular";
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: normal;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
window#waybar {
|
window#waybar {
|
||||||
@@ -49,7 +49,7 @@ button:hover {
|
|||||||
|
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
padding: 0 4px;
|
padding: 0 4px;
|
||||||
background-color: transparent;
|
/*background-color: transparent;*/
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -57,25 +57,15 @@ button:hover {
|
|||||||
background: rgba(0, 0, 0, 0.2);
|
background: rgba(0, 0, 0, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.active {
|
#workspaces button.focused {
|
||||||
background-color: #eb4d4b;
|
background-color: #64727D;
|
||||||
box-shadow: inset 0 -3px #ffffff;
|
/*box-shadow: inset 0 -3px #ffffff;*/
|
||||||
color: #ffffff;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.urgent {
|
#workspaces button.urgent {
|
||||||
background-color: #eb4d4b;
|
background-color: #eb4d4b;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.visible {
|
|
||||||
background-color: #64727D;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.empty {
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
#mode {
|
#mode {
|
||||||
background-color: #64727D;
|
background-color: #64727D;
|
||||||
box-shadow: inset 0 -3px #ffffff;
|
box-shadow: inset 0 -3px #ffffff;
|
||||||
@@ -103,17 +93,17 @@ button:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#window,
|
#window,
|
||||||
#workspaces-hyprland {
|
#workspaces {
|
||||||
margin: 0 4px;
|
margin: 0 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If workspaces is the leftmost module, omit left margin */
|
/* If workspaces is the leftmost module, omit left margin */
|
||||||
.modules-left > widget:first-child > #workspaces-hyprland {
|
.modules-left > widget:first-child > #workspaces {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If workspaces is the rightmost module, omit right margin */
|
/* If workspaces is the rightmost module, omit right margin */
|
||||||
.modules-right > widget:last-child > #workspaces-hyprland {
|
.modules-right > widget:last-child > #workspaces {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
font_size 10.5
|
font_size 11.5
|
||||||
|
|
||||||
#text_composition_strategy legacy
|
#text_composition_strategy legacy
|
||||||
#modify_font cell_width 95%
|
#modify_font cell_width 95%
|
||||||
@@ -9,6 +9,11 @@ cursor_trail_start_threshold 0
|
|||||||
shell_integration no-cursor
|
shell_integration no-cursor
|
||||||
cursor_trail_decay 0.01 0.15
|
cursor_trail_decay 0.01 0.15
|
||||||
cursor_shape block
|
cursor_shape block
|
||||||
|
cursor_blink true
|
||||||
|
|
||||||
|
map cmd+c copy_to_clipboard
|
||||||
|
map cmd+v paste_from_clipboard
|
||||||
|
map shift+insert paste_from_clipboard
|
||||||
|
|
||||||
linux_display_server wayland
|
linux_display_server wayland
|
||||||
wayland_enable_ime yes
|
wayland_enable_ime yes
|
||||||
|
|||||||
@@ -1,32 +1,125 @@
|
|||||||
// -*- mode: jsonc -*-
|
// -*- mode: jsonc -*-
|
||||||
{
|
{
|
||||||
"spacing": 2, // Gaps between modules (4px)
|
// "layer": "top", // Waybar at top layer
|
||||||
|
// "position": "bottom", // Waybar position (top|bottom|left|right)
|
||||||
|
//"height": 10, // Waybar height (to be removed for auto height)
|
||||||
|
// "width": 1280, // Waybar width
|
||||||
|
"spacing": 6, // Gaps between modules (4px)
|
||||||
|
// Choose the order of the modules
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
"hyprland/workspaces",
|
"ext/workspaces",
|
||||||
"hyprland/submap",
|
"dwl/window",
|
||||||
"hyprland/window"
|
"sway/mode",
|
||||||
|
"sway/scratchpad",
|
||||||
|
"custom/media"
|
||||||
],
|
],
|
||||||
//"modules-center": [
|
//"modules-center": [
|
||||||
//"sway/window"
|
//"sway/window"
|
||||||
//],
|
//],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
//"mpd",
|
"mpd",
|
||||||
|
"custom/audio_idle_inhibitor",
|
||||||
"pulseaudio",
|
"pulseaudio",
|
||||||
//"network",
|
"network",
|
||||||
|
//"power-profiles-daemon",
|
||||||
|
//"cpu",
|
||||||
|
//"memory",
|
||||||
|
//"temperature",
|
||||||
|
//"backlight",
|
||||||
|
//"keyboard-state",
|
||||||
|
//"sway/language",
|
||||||
"battery",
|
"battery",
|
||||||
|
//"battery#bat2",
|
||||||
"clock",
|
"clock",
|
||||||
"tray"
|
"tray"
|
||||||
//"custom/power"
|
//"custom/power"
|
||||||
],
|
],
|
||||||
|
"ext/workspaces": {
|
||||||
|
"format": "{icon}",
|
||||||
|
"ignore-hidden": true,
|
||||||
|
"on-click": "activate",
|
||||||
|
"on-click-right": "deactivate",
|
||||||
|
"sort-by-id": true,
|
||||||
|
},
|
||||||
|
"dwl/tags": {
|
||||||
|
"num-tags":9,
|
||||||
|
},
|
||||||
|
"dwl/window": {
|
||||||
|
"format": "[{layout}] {title}"
|
||||||
|
//"format": "[{layout}]"
|
||||||
|
},
|
||||||
|
// Modules configuration
|
||||||
|
// "sway/workspaces": {
|
||||||
|
// "disable-scroll": true,
|
||||||
|
// "all-outputs": true,
|
||||||
|
// "warp-on-scroll": false,
|
||||||
|
// "format": "{name}: {icon}",
|
||||||
|
// "format-icons": {
|
||||||
|
// "1": "",
|
||||||
|
// "2": "",
|
||||||
|
// "3": "",
|
||||||
|
// "4": "",
|
||||||
|
// "5": "",
|
||||||
|
// "urgent": "",
|
||||||
|
// "focused": "",
|
||||||
|
// "default": ""
|
||||||
|
// }
|
||||||
|
// },
|
||||||
|
"keyboard-state": {
|
||||||
|
"numlock": true,
|
||||||
|
"capslock": true,
|
||||||
|
"format": "{name} {icon}",
|
||||||
|
"format-icons": {
|
||||||
|
"locked": "",
|
||||||
|
"unlocked": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
"sway/mode": {
|
"sway/mode": {
|
||||||
"format": "<span style=\"italic\">{}</span>"
|
"format": "<span style=\"italic\">{}</span>"
|
||||||
},
|
},
|
||||||
"sway/scratchpad": {
|
"sway/scratchpad": {
|
||||||
"format": "{count}",
|
"format": "{icon} {count}",
|
||||||
"show-empty": false,
|
"show-empty": false,
|
||||||
|
"format-icons": ["", ""],
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"tooltip-format": "{app}: {title}"
|
"tooltip-format": "{app}: {title}"
|
||||||
},
|
},
|
||||||
|
"mpd": {
|
||||||
|
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {title} ⸨{songPosition}|{queueLength}⸩% ",
|
||||||
|
"format-alt": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩% ",
|
||||||
|
"format-disconnected": "Disconnected ",
|
||||||
|
//"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
|
||||||
|
"format-stopped": "",
|
||||||
|
//"unknown-tag": "N/A",
|
||||||
|
"unknown-tag": "",
|
||||||
|
"interval": 5,
|
||||||
|
"consume-icons": {
|
||||||
|
"on": " "
|
||||||
|
},
|
||||||
|
"random-icons": {
|
||||||
|
"off": "<span color=\"#f53c3c\"></span> ",
|
||||||
|
"on": " "
|
||||||
|
},
|
||||||
|
"repeat-icons": {
|
||||||
|
"on": " "
|
||||||
|
},
|
||||||
|
"single-icons": {
|
||||||
|
"on": "1 "
|
||||||
|
},
|
||||||
|
"state-icons": {
|
||||||
|
"paused": "",
|
||||||
|
"playing": ""
|
||||||
|
},
|
||||||
|
"tooltip-format": "MPD (connected)",
|
||||||
|
"tooltip-format-disconnected": "MPD (disconnected)"
|
||||||
|
},
|
||||||
|
"idle_inhibitor": {
|
||||||
|
"format": "{icon}",
|
||||||
|
"format-icons": {
|
||||||
|
"activated": "",
|
||||||
|
"deactivated": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
"tray": {
|
"tray": {
|
||||||
// "icon-size": 21,
|
// "icon-size": 21,
|
||||||
"spacing": 10,
|
"spacing": 10,
|
||||||
@@ -42,62 +135,117 @@
|
|||||||
//"format": "{:%R %p %Y-%m-%d}",
|
//"format": "{:%R %p %Y-%m-%d}",
|
||||||
//"format-alt": "{:%Y-%m-%d}"
|
//"format-alt": "{:%Y-%m-%d}"
|
||||||
},
|
},
|
||||||
|
"cpu": {
|
||||||
|
"format": "{usage}% ",
|
||||||
|
"tooltip": false
|
||||||
|
},
|
||||||
|
"memory": {
|
||||||
|
"format": "{}% "
|
||||||
|
},
|
||||||
|
"temperature": {
|
||||||
|
// "thermal-zone": 2,
|
||||||
|
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||||||
|
"critical-threshold": 80,
|
||||||
|
// "format-critical": "{temperatureC}°C {icon}",
|
||||||
|
"format": "{temperatureC}°C {icon}",
|
||||||
|
"format-icons": ["", "", ""]
|
||||||
|
},
|
||||||
|
"backlight": {
|
||||||
|
// "device": "acpi_video1",
|
||||||
|
"format": "{percent}% {icon}",
|
||||||
|
"format-icons": ["", "", "", "", "", "", "", "", ""]
|
||||||
|
},
|
||||||
"battery": {
|
"battery": {
|
||||||
"states": {
|
"states": {
|
||||||
// "good": 95,
|
// "good": 95,
|
||||||
"warning": 30,
|
"warning": 30,
|
||||||
"critical": 15
|
"critical": 15
|
||||||
},
|
},
|
||||||
"format": "{time} {capacity}%",
|
"format": "{time} {capacity}% {icon}",
|
||||||
"format-full": "{capacity}%",
|
"format-full": "{capacity}% {icon}",
|
||||||
"format-charging": "{capacity}% C",
|
"format-charging": "{capacity}% C",
|
||||||
"format-plugged": "{capacity}% P",
|
"format-plugged": "{capacity}% P",
|
||||||
"format-alt": "{time}",
|
"format-alt": "{time} {icon}",
|
||||||
// "format-good": "", // An empty format will hide the module
|
// "format-good": "", // An empty format will hide the module
|
||||||
// "format-full": "",
|
// "format-full": "",
|
||||||
|
"format-icons": ["", "", "", "", ""]
|
||||||
},
|
},
|
||||||
"battery#bat2": {
|
"battery#bat2": {
|
||||||
"bat": "BAT2"
|
"bat": "BAT2"
|
||||||
},
|
},
|
||||||
"power-profiles-daemon": {
|
"power-profiles-daemon": {
|
||||||
"format": "{profile}",
|
"format": "{icon}",
|
||||||
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
|
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"format-icons": {"default": [""]}
|
"format-icons": {
|
||||||
|
"default": "",
|
||||||
|
"performance": "",
|
||||||
|
"balanced": "",
|
||||||
|
"power-saver": ""
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"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": "{ipaddr}/{cidr}",
|
"format-ethernet": "{ipaddr}/{cidr} ",
|
||||||
//"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 ⚠",
|
||||||
"format-disconnected": "Disconnected",
|
|
||||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||||
},
|
},
|
||||||
"pulseaudio": {
|
"pulseaudio": {
|
||||||
// "scroll-step": 1, // %, can be a float
|
// "scroll-step": 1, // %, can be a float
|
||||||
"format": "{volume}% {format_source}",
|
"format": "{volume}% {icon} {format_source}",
|
||||||
"format-bluetooth": "{volume}% {format_source}",
|
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||||
"format-bluetooth-muted": " {format_source}",
|
"format-bluetooth-muted": " {icon} {format_source}",
|
||||||
"format-muted": " {format_source}",
|
"format-muted": " {format_source}",
|
||||||
"format-source": "{volume}%",
|
"format-source": "{volume}% ",
|
||||||
"format-source-muted": "",
|
"format-source-muted": "",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"default": [""]
|
"headphone": "",
|
||||||
|
"hands-free": "",
|
||||||
|
"headset": "",
|
||||||
|
"phone": "",
|
||||||
|
"portable": "",
|
||||||
|
"car": "",
|
||||||
|
"default": ["", "", ""]
|
||||||
},
|
},
|
||||||
"on-click": "pavucontrol"
|
"on-click": "pavucontrol"
|
||||||
},
|
},
|
||||||
"custom/media": {
|
"custom/media": {
|
||||||
"format": "{text}",
|
"format": "{icon} {text}",
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
"max-length": 40,
|
"max-length": 40,
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"spotify": "",
|
"spotify": "",
|
||||||
"default": ""
|
"default": "🎜"
|
||||||
},
|
},
|
||||||
"escape": true,
|
"escape": true,
|
||||||
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
||||||
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
|
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
|
||||||
}
|
},
|
||||||
|
"custom/power": {
|
||||||
|
"format" : "⏻ ",
|
||||||
|
"tooltip": false,
|
||||||
|
"menu": "on-click",
|
||||||
|
"menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder
|
||||||
|
"menu-actions": {
|
||||||
|
"shutdown": "shutdown",
|
||||||
|
"reboot": "reboot",
|
||||||
|
"suspend": "systemctl suspend",
|
||||||
|
"hibernate": "systemctl hibernate"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"custom/audio_idle_inhibitor": {
|
||||||
|
"format": "{icon} ",
|
||||||
|
"exec": "sway-audio-idle-inhibit --dry-print-both-waybar",
|
||||||
|
"exec-if": "which sway-audio-idle-inhibit",
|
||||||
|
"return-type": "json",
|
||||||
|
"format-icons": {
|
||||||
|
"output": "",
|
||||||
|
"input": "",
|
||||||
|
"output-input": " ",
|
||||||
|
"none": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -7,7 +7,7 @@ vim.o.background = "dark" -- or "light" for light mode
|
|||||||
--vim.cmd("colorscheme gruvbox ")
|
--vim.cmd("colorscheme gruvbox ")
|
||||||
--vim.cmd("colorscheme retrobox")
|
--vim.cmd("colorscheme retrobox")
|
||||||
|
|
||||||
vim.opt.clipboard:append("unnamedplus") -- sync yank/delete/put with system clipboard
|
-- vim.opt.clipboard = "unnamedplus" -- uses the clipboard register for all operations except yank.
|
||||||
|
|
||||||
vim.cmd("set nocompatible")
|
vim.cmd("set nocompatible")
|
||||||
vim.cmd("syntax on")
|
vim.cmd("syntax on")
|
||||||
@@ -16,9 +16,9 @@ vim.cmd("set number")
|
|||||||
|
|
||||||
vim.cmd("set relativenumber")
|
vim.cmd("set relativenumber")
|
||||||
vim.cmd("set expandtab")
|
vim.cmd("set expandtab")
|
||||||
vim.cmd("set shiftwidth=2")
|
vim.cmd("set shiftwidth=4")
|
||||||
vim.cmd("set softtabstop=2")
|
vim.cmd("set softtabstop=4")
|
||||||
vim.cmd("set tabstop=2")
|
vim.cmd("set tabstop=4")
|
||||||
vim.cmd("set smartindent")
|
vim.cmd("set smartindent")
|
||||||
|
|
||||||
vim.cmd("set backspace=indent,eol,start")
|
vim.cmd("set backspace=indent,eol,start")
|
||||||
|
|||||||
@@ -0,0 +1,63 @@
|
|||||||
|
return {
|
||||||
|
"yetone/avante.nvim",
|
||||||
|
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
|
||||||
|
-- ⚠️ must add this setting! ! !
|
||||||
|
build = vim.fn.has("win32") ~= 0
|
||||||
|
and "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false"
|
||||||
|
or "make",
|
||||||
|
event = "VeryLazy",
|
||||||
|
version = false, -- Never set this value to "*"! Never!
|
||||||
|
---@module 'avante'
|
||||||
|
---@type avante.Config
|
||||||
|
opts = {
|
||||||
|
-- add any opts here
|
||||||
|
-- this file can contain specific instructions for your project
|
||||||
|
instructions_file = "avante.md",
|
||||||
|
-- for example
|
||||||
|
provider = "ollama",
|
||||||
|
providers = {
|
||||||
|
ollama = {
|
||||||
|
model = "devstral-small-2:24b-32k",
|
||||||
|
--is_env_set = require("avante.providers.ollama").check_endpoint_alive,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
"MunifTanjim/nui.nvim",
|
||||||
|
--- The below dependencies are optional,
|
||||||
|
"nvim-mini/mini.pick", -- for file_selector provider mini.pick
|
||||||
|
"nvim-telescope/telescope.nvim", -- for file_selector provider telescope
|
||||||
|
"hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions
|
||||||
|
"ibhagwan/fzf-lua", -- for file_selector provider fzf
|
||||||
|
"stevearc/dressing.nvim", -- for input provider dressing
|
||||||
|
"folke/snacks.nvim", -- for input provider snacks
|
||||||
|
"nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
|
||||||
|
"zbirenbaum/copilot.lua", -- for providers='copilot'
|
||||||
|
{
|
||||||
|
-- support for image pasting
|
||||||
|
"HakonHarnes/img-clip.nvim",
|
||||||
|
event = "VeryLazy",
|
||||||
|
opts = {
|
||||||
|
-- recommended settings
|
||||||
|
default = {
|
||||||
|
embed_image_as_base64 = false,
|
||||||
|
prompt_for_file_name = false,
|
||||||
|
drag_and_drop = {
|
||||||
|
insert_mode = true,
|
||||||
|
},
|
||||||
|
-- required for Windows users
|
||||||
|
use_absolute_path = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
-- Make sure to set this up properly if you have lazy=true
|
||||||
|
'MeanderingProgrammer/render-markdown.nvim',
|
||||||
|
opts = {
|
||||||
|
file_types = { "markdown", "Avante" },
|
||||||
|
},
|
||||||
|
ft = { "markdown", "Avante" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -3,7 +3,6 @@ return {
|
|||||||
dependencies = {
|
dependencies = {
|
||||||
{"mason-org/mason.nvim"},
|
{"mason-org/mason.nvim"},
|
||||||
{'neovim/nvim-lspconfig'},
|
{'neovim/nvim-lspconfig'},
|
||||||
|
|
||||||
{'nvim-mini/mini.nvim'},
|
{'nvim-mini/mini.nvim'},
|
||||||
{'nvim-mini/mini.completion'},
|
{'nvim-mini/mini.completion'},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2,6 +2,6 @@ return {
|
|||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
config = function()
|
config = function()
|
||||||
--require("nvim-treesitter").install({})
|
require("nvim-treesitter").install({})
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
# Agent Instructions
|
|
||||||
|
|
||||||
If you're not sure about something, search it up on the web.
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://opencode.ai/config.json",
|
|
||||||
"instructions": ["AGENTS.md"],
|
|
||||||
"provider": {
|
|
||||||
"openwebui": {
|
|
||||||
"npm": "@ai-sdk/openai-compatible",
|
|
||||||
"name": "OpenWebUI",
|
|
||||||
"options": {
|
|
||||||
"baseURL": "https://ai.zamudio.dev/api",
|
|
||||||
"apiKey": "{env:OPENWEBUI_API_KEY}"
|
|
||||||
},
|
|
||||||
"models": {
|
|
||||||
"Qwen3.6-35B-A3B": {
|
|
||||||
"name": "Qwen3.6-35B-A3B"
|
|
||||||
},
|
|
||||||
"Qwen3.6-27B": {
|
|
||||||
"name": "Qwen3.6-27B"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
[[profile]]
|
|
||||||
name = "laptop"
|
|
||||||
exec = ["notify-send shikane \"Profile $SHIKANE_PROFILE_NAME has been applied\""]
|
|
||||||
[[profile.output]]
|
|
||||||
enable = true
|
|
||||||
search = "eDP-1"
|
|
||||||
# Panel on the Framework Laptop 13 Pro is CSOT MND508ZB1-1 = 2880x1920 (3:2)
|
|
||||||
# @120Hz. /sys/class/drm/card0-eDP-1/modes exposes ONLY 2880x1920@120000Hz
|
|
||||||
# and @60000Hz. The previous value here, [email protected], was the OLD
|
|
||||||
# ThinkPad's panel mode and does not exist on this panel, so shikane could
|
|
||||||
# never satisfy the variant -- the most likely root cause of the
|
|
||||||
# VariantInProgress deadlocks.
|
|
||||||
mode = "2880x1920@120Hz"
|
|
||||||
position = "0,0"
|
|
||||||
# Scale 1.75 chosen deliberately (2026-10-27).
|
|
||||||
# Panel: CSOT MND508ZB1-1, 2880x1920 on 13.5in = 256 PPI. What matters is
|
|
||||||
# effective DPI = PPI/scale; 1.75 -> 147 DPI, which matches the 145 DPI this
|
|
||||||
# laptop's owner previously used on the old ThinkPad (2880x1800 on 14in at
|
|
||||||
# 1.67). The exact equivalent would be 1.765; 1.75 is the nearest value that
|
|
||||||
# is exactly representable as float32 (sway stores scale as float).
|
|
||||||
# 2.0 is the only integer scale (1:1 pixel mapping, no resampling, sharpest)
|
|
||||||
# but gives just 1440x960 logical. 1.5 = max workspace at 171 DPI (small).
|
|
||||||
# History: 1.67/1.5/1.6 all tried; 1.6 was not float-exact (1.600000024).
|
|
||||||
scale = 1.75
|
|
||||||
transform = "normal"
|
|
||||||
adaptive_sync = false
|
|
||||||
|
|
||||||
[[profile]]
|
|
||||||
name = "External Display"
|
|
||||||
exec = ["notify-send shikane \"Profile $SHIKANE_PROFILE_NAME has been applied\""]
|
|
||||||
[[profile.output]]
|
|
||||||
enable = false
|
|
||||||
search = "eDP-1"
|
|
||||||
# Even a disabled block carries a mode string that shikane must resolve
|
|
||||||
# against the panel's mode list, so keep it valid.
|
|
||||||
mode = "2880x1920@120Hz"
|
|
||||||
position = "0,0"
|
|
||||||
scale = 1.75
|
|
||||||
transform = "normal"
|
|
||||||
adaptive_sync = false
|
|
||||||
|
|
||||||
[[profile.output]]
|
|
||||||
enable = true
|
|
||||||
search = "n/DP-(.*)"
|
|
||||||
scale = 1.3
|
|
||||||
transform = "normal"
|
|
||||||
adaptive_sync = false
|
|
||||||
+21
-97
@@ -6,8 +6,8 @@ font 'JetBrainsMonoNFM-Regular' 9
|
|||||||
#set $mod Mod1
|
#set $mod Mod1
|
||||||
set $mod Mod4
|
set $mod Mod4
|
||||||
|
|
||||||
set $term kitty
|
#set $term kitty -1
|
||||||
#set $term foot
|
set $term kitty
|
||||||
#set $term ghostty
|
#set $term ghostty
|
||||||
|
|
||||||
set $menu wofi -S drun -GI
|
set $menu wofi -S drun -GI
|
||||||
@@ -17,10 +17,6 @@ set $down j
|
|||||||
set $up k
|
set $up k
|
||||||
set $right l
|
set $right l
|
||||||
|
|
||||||
|
|
||||||
#env GDK_BACKEND=wayland
|
|
||||||
#env QT_QPA_PLATFORM=wayland
|
|
||||||
|
|
||||||
set $laptop eDP-1
|
set $laptop eDP-1
|
||||||
include ~/.config/sway/config.d/*
|
include ~/.config/sway/config.d/*
|
||||||
|
|
||||||
@@ -28,20 +24,13 @@ include ~/.config/sway/config.d/*
|
|||||||
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
||||||
# https://gitlab.com/w0lff/shikane for multitple display handling
|
# https://gitlab.com/w0lff/shikane for multitple display handling
|
||||||
#output * bg /home/jozamudi/Documents/Wallpapers/windows-11-stock-official-colorful-3840x2160-5658.jpg fill
|
#output * bg /home/jozamudi/Documents/Wallpapers/windows-11-stock-official-colorful-3840x2160-5658.jpg fill
|
||||||
|
#output eDP-1 scale 1.7
|
||||||
#output 'BNQ BenQ PD3200U S2N01233019' scale 1.5
|
#output 'BNQ BenQ PD3200U S2N01233019' scale 1.5
|
||||||
# Baseline for the built-in panel so sway starts at the same geometry shikane
|
|
||||||
# will apply. Panel is CSOT MND508ZB1-1: 2880x1920 (3:2) with only 120Hz/60Hz
|
|
||||||
# modes available. Without this, sway defaults to scale 2.0 and the desktop
|
|
||||||
# visibly re-flows when shikane applies 1.5 a moment after login.
|
|
||||||
output $laptop mode 2880x1920@120Hz scale 1.75
|
|
||||||
#exec_always shikanectl reload
|
#exec_always shikanectl reload
|
||||||
|
|
||||||
bindswitch --reload --locked lid:on output $laptop disable
|
bindswitch --reload --locked lid:on output $laptop disable
|
||||||
bindswitch --reload --locked lid:off output $laptop enable
|
bindswitch --reload --locked lid:off output $laptop enable
|
||||||
exec_always --no-startup-id '/home/work/.config/sway/scripts/clamshell-mode.sh'
|
exec_always --no-startup-id '/home/jozamudi/.config/sway/scripts/clamshell-mode.sh'
|
||||||
# Re-apply shikane display profile after every sway reload;
|
|
||||||
# falls back to a service restart if the daemon deadlocked
|
|
||||||
exec_always --no-startup-id /home/work/.config/sway/scripts/shikane-recover-on-reload.sh
|
|
||||||
|
|
||||||
#input "1267:12792:ELAN067B:00_04F3:31F8_Touchpad" {
|
#input "1267:12792:ELAN067B:00_04F3:31F8_Touchpad" {
|
||||||
# dwt enabled
|
# dwt enabled
|
||||||
@@ -49,16 +38,6 @@ exec_always --no-startup-id /home/work/.config/sway/scripts/shikane-recover-on-r
|
|||||||
# middle_emulation enabled
|
# middle_emulation enabled
|
||||||
#}
|
#}
|
||||||
|
|
||||||
# Touchpad (PIXA3854:00 093A:1343, clickpad): clickfinger so a two-finger press
|
|
||||||
# is a right click instead of using the bottom-right button area.
|
|
||||||
# Tap-to-click mirrors the same 1/2/3-finger lrm mapping.
|
|
||||||
input type:touchpad {
|
|
||||||
click_method clickfinger
|
|
||||||
clickfinger_button_map lrm
|
|
||||||
tap enabled
|
|
||||||
tap_button_map lrm
|
|
||||||
}
|
|
||||||
|
|
||||||
### Idle configuration
|
### Idle configuration
|
||||||
#exec swayidle -w \
|
#exec swayidle -w \
|
||||||
# timeout 300 'swaylock -f -c 000000' \
|
# timeout 300 'swaylock -f -c 000000' \
|
||||||
@@ -69,100 +48,45 @@ input type:touchpad {
|
|||||||
|
|
||||||
seat seat0 xcursor_theme Adwaita 35
|
seat seat0 xcursor_theme Adwaita 35
|
||||||
|
|
||||||
# Portal implementations are pinned in ~/.config/xdg-desktop-portal/portals.conf
|
|
||||||
# (default=gtk, ScreenCast/Screenshot=wlr, Inhibit=none, GlobalShortcuts=hyprland).
|
|
||||||
exec systemctl --user start xdg-desktop-portal-wlr.service
|
|
||||||
#exec pipewire
|
#exec pipewire
|
||||||
# swaync is started by its systemd user unit / D-Bus activation; starting it
|
exec swaync
|
||||||
# here too caused "already running" crash-loops (start-limit-hit).
|
exec shikane
|
||||||
#exec swaync
|
|
||||||
# NOTE: the command must be quoted -- sway splits unquoted ';' into separate
|
|
||||||
# sway commands and fails with "Unknown/invalid command 'waybar'"
|
|
||||||
exec_always --no-startup-id "pkill -x waybar; waybar -c ~/.config/sway/waybar/config.jsonc -s ~/.config/sway/waybar/style.css"
|
|
||||||
exec nm-applet
|
exec nm-applet
|
||||||
exec blueman-applet
|
exec blueman-applet
|
||||||
# Guarded with pkill because `exec`/`exec_always` re-runs on every sway config
|
|
||||||
# reload: a second hypridle instance would double-fire every listener (two
|
|
||||||
# suspend timers, two lock screens) and fight over the sleep inhibitor.
|
|
||||||
exec_always --no-startup-id "pkill -x hypridle; sleep 0.3; hypridle >/dev/null 2>&1 &"
|
|
||||||
# hyprlock can outlive a sway session; a stale instance then makes hypridle's
|
|
||||||
# "pidof hyprlock || hyprlock" guard a permanent no-op. Clear leftovers at login.
|
|
||||||
exec --no-startup-id pkill -x hyprlock
|
|
||||||
|
|
||||||
# Polkit authentication agent.
|
exec systemctl --user start hyperolkitagent
|
||||||
# The original line was a typo ("hyperolkitagent"), so no agent ever started.
|
exec waybar -c ~/.config/sway/waybar/config.jsonc -s ~/.config/sway/waybar/style.css
|
||||||
# hyprpolkitagent is installed but aborts on this machine: hyprtoolkit vendors
|
|
||||||
# aquamarine, which refuses to create a GBM allocator because the Intel Iris Xe
|
|
||||||
# iGPU has no PRIME export (drmGetCap DRM_CAP_PRIME -> unsupported) and then
|
|
||||||
# asserts "Couldn't open a gbm fd" instead of falling back -- 5/5 core dumps.
|
|
||||||
# Keep hyprpolkitagent.service disabled; polkit-gnome is used instead.
|
|
||||||
exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
|
||||||
exec flatpak run com.github.wwmm.easyeffects -w
|
exec flatpak run com.github.wwmm.easyeffects -w
|
||||||
exec xrdb -merge ~/.Xresources
|
exec xrdb -merge ~/.Xresources
|
||||||
|
exec wl-paste -t text --watch clipman store --no-persist
|
||||||
|
|
||||||
# Removed 2026-10-27 (power audit): forcing the power-saver profile made TLP apply
|
exec hypridle
|
||||||
# *_ON_SAV keys even on AC, so the platform profile stayed low-power when docked and
|
exec gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"
|
||||||
# the *_ON_BAT tuning in /etc/tlp.d/90-framework.conf never ran. tlp-pd's default
|
|
||||||
# 'balanced' profile already switches on charger events -- no script needed.
|
|
||||||
# # Removed 2026-10-28 (power audit): forcing power-saver made TLP apply *_ON_SAV
|
|
||||||
# keys even on AC, so the docked platform profile stayed low-power and the
|
|
||||||
# *_ON_BAT tuning never ran. tlp-pd's 'balanced' profile switches on charger
|
|
||||||
# events by itself. NOTE: profile writes are polkit-gated -- flip manually with
|
|
||||||
# tlpctl set balanced (from the desktop session, not via runuser/su).
|
|
||||||
# exec tlpctl power-saver
|
|
||||||
|
|
||||||
#exec gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"
|
|
||||||
|
|
||||||
#exec mpd
|
#exec mpd
|
||||||
#exec syncthing
|
#exec syncthing
|
||||||
|
|
||||||
# Auto start .desktop files using dex -- dex is not installed (and there is no
|
# Auto start .desktop files using dex
|
||||||
# ~/.config/autostart), so this was a no-op.
|
exec dex -a
|
||||||
#exec dex -a
|
|
||||||
|
|
||||||
#exec wl-paste -t text --watch clipman store --no-persist
|
#exec wl-paste -t text --watch clipman store --no-persist
|
||||||
# There are two wl-paste watchers on purpose: one for the regular clipboard,
|
# There are two wl-paste processes running, one for the primary and one for the normal clipboard
|
||||||
# one for the primary selection (clipman keeps a single shared history, the
|
exec wl-paste -t text --watch clipman store
|
||||||
# --primary flag on `pick` only decides where the picked item is served).
|
exec wl-paste -p -t text --watch clipman store
|
||||||
# Guarded with pkill because `exec` re-runs on every `swaymsg reload`: a stale
|
|
||||||
# `store --no-persist` instance from an older config survived three reloads and
|
|
||||||
# ran alongside the current pair.
|
|
||||||
# NOTE: `pkill -x` matches the process *name* only. Do NOT use `pkill -f` here --
|
|
||||||
# sway runs exec lines through `sh -c`, so the wrapper's own command line
|
|
||||||
# contains the pattern and pkill would kill the shell that is about to start
|
|
||||||
# the replacements (learned the hard way).
|
|
||||||
# [aur-cleanup 2026-10-28] clipman-git uninstalled -- AUR-only, no pacman equivalent.
|
|
||||||
# Disabled so sway doesn't spawn ENOENT on the missing `clipman` binary.
|
|
||||||
# Restore by reinstalling clipman-git, or port to extra/cliphist:
|
|
||||||
# exec_always --no-startup-id "pkill -x wl-paste; sleep 0.3; \
|
|
||||||
# wl-paste -t text --watch cliphist store & \
|
|
||||||
# wl-paste -p -t text --watch cliphist store & \
|
|
||||||
# wait"
|
|
||||||
# bindsym $mod+y exec sh -c 'cliphist list | wofi --dmenu | cliphist decode | wl-copy'
|
|
||||||
# bindsym $mod+Shift+y exec cliphist wipe
|
|
||||||
# (verify flag order with `cliphist -h`; -p selects the primary buffer)
|
|
||||||
#
|
|
||||||
# exec_always --no-startup-id "pkill -x wl-paste; sleep 0.3; \
|
|
||||||
# wl-paste -t text --watch clipman store & \
|
|
||||||
# wl-paste -p -t text --watch clipman store & \
|
|
||||||
# wait"
|
|
||||||
# The keybind to select a clipping
|
# The keybind to select a clipping
|
||||||
# bindsym $mod+y exec clipman --primary pick --tool wofi
|
bindsym $mod+y exec clipman --primary pick --tool wofi
|
||||||
# Clear all clippings
|
# Clear all clippings
|
||||||
# bindsym $mod+Shift+y exec clipman clear -a
|
bindsym $mod+Shift+y exec clipman clear -a
|
||||||
# Remove a selected clipping
|
# Remove a selected clipping
|
||||||
# bindsym $mod+Mod1+y exec clipman clear --tool wofi
|
bindsym $mod+Mod1+y exec clipman clear --tool wofi
|
||||||
# Empty the current clipping
|
# Empty the current clipping
|
||||||
bindsym $mod+Ctrl+y exec : | wl-copy -p
|
bindsym $mod+Ctrl+y exec : | wl-copy -p
|
||||||
|
|
||||||
#better audio
|
#better audio
|
||||||
#exec easyeffects -w -l Laptop
|
#exec easyeffects -w -l Laptop
|
||||||
|
|
||||||
default_border pixel 2
|
#default_border pixel 2
|
||||||
#default_floating_border pixel 2
|
#default_floating_border pixel 2
|
||||||
exec systemctl --user import-environment XDG_SESSION_TYPE XDG_CURRENT_DESKTOP WAYLAND_DISPLAY SWAYSOCK
|
exec systemctl --user import-environment XDG_SESSION_TYPE XDG_CURRENT_DESKTOP
|
||||||
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP=sway XDG_SESSION_DESKTOP=sway
|
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP=sway XDG_SESSION_DESKTOP=sway
|
||||||
# Activate graphical-session.target so xdg-desktop-portal (Requisite=graphical-session.target) can start
|
|
||||||
exec systemctl --user start sway-session.target
|
|
||||||
#exec --no-startup-id dbus-update-activation-environment --all
|
|
||||||
|
|
||||||
@@ -13,9 +13,7 @@ bindsym $mod+d exec $menu
|
|||||||
# Despite the name, also works for non-floating windows.
|
# Despite the name, also works for non-floating windows.
|
||||||
# Change normal to inverse to use left mouse button for resizing and right
|
# Change normal to inverse to use left mouse button for resizing and right
|
||||||
# mouse button for dragging.
|
# mouse button for dragging.
|
||||||
# DISABLED 2026-09-28: experiment for windows popping out (accidental mod+click)
|
|
||||||
floating_modifier $mod normal
|
floating_modifier $mod normal
|
||||||
#floating_modifier none
|
|
||||||
|
|
||||||
# Reload the configuration file
|
# Reload the configuration file
|
||||||
bindsym $mod+Shift+c reload
|
bindsym $mod+Shift+c reload
|
||||||
@@ -128,11 +126,14 @@ bindsym $mod+bracketright exec playerctl next
|
|||||||
bindsym $mod+backslash exec playerctl play-pause
|
bindsym $mod+backslash exec playerctl play-pause
|
||||||
|
|
||||||
|
|
||||||
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
|
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% \
|
||||||
|
&& pkill -RTMIN+10 i3blocks;
|
||||||
|
|
||||||
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
|
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% \
|
||||||
|
&& pkill -RTMIN+10 i3blocks;
|
||||||
|
|
||||||
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
|
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle \
|
||||||
|
&& pkill -RTMIN+10 i3blocks;
|
||||||
|
|
||||||
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
||||||
|
|
||||||
|
|||||||
@@ -1,61 +1,34 @@
|
|||||||
#smart_corner_radius on
|
#smart_corner_radius on
|
||||||
|
|
||||||
# ╔══════════════════════════════════════════════════════════════════╗
|
|
||||||
# ║ COLOR PALETTE ║
|
|
||||||
# ║ To change colors: ║
|
|
||||||
# ║ 1. Edit the $base00–$base0F values below ║
|
|
||||||
# ║ 2. Mirror those hex values in ~/.config/sway/waybar/style.css ║
|
|
||||||
# ║ (search for @define-color and replace the hex codes) ║
|
|
||||||
# ║ 3. Run: swaymsg reload ║
|
|
||||||
# ╚══════════════════════════════════════════════════════════════════╝
|
|
||||||
|
|
||||||
gaps inner 2
|
gaps inner 2
|
||||||
|
|
||||||
default_border pixel 2
|
default_border pixel 2
|
||||||
|
|
||||||
# ╔══════════════════════════════════════════════════════════════════╗
|
#corner_radius 8
|
||||||
# ║ COLOR PALETTE (your 5 colors + black) ║
|
#blur enable
|
||||||
# ║ ║
|
#blur_passes 2
|
||||||
# ║ To change colors: ║
|
#blur_radius 2
|
||||||
# ║ 1. Edit the $base00–$base0F hex values below ║
|
#layer_effects "waybar" "blur enable"; shadows enable
|
||||||
# ║ 2. Mirror those hex values in ~/.config/sway/waybar/style.css ║
|
#shadows on
|
||||||
# ║ (search for @define-color and replace the hex codes) ║
|
#shadow_blur_radius 5
|
||||||
# ║ 3. Run: swaymsg reload ║
|
|
||||||
# ╚══════════════════════════════════════════════════════════════════╝
|
|
||||||
|
|
||||||
set $base00 #000000
|
#https://github.com/rkubosz/base16-sway
|
||||||
set $base01 #111111
|
|
||||||
set $base02 #222222
|
|
||||||
set $base03 #333333
|
|
||||||
set $base04 #666666
|
|
||||||
set $base05 #999999
|
|
||||||
set $base06 #CCCCCC
|
|
||||||
set $base07 #FFFFFF
|
|
||||||
set $base08 #999999
|
|
||||||
set $base09 #999999
|
|
||||||
set $base0A #CCCCCC
|
|
||||||
set $base0B #999999
|
|
||||||
set $base0C #CCCCCC
|
|
||||||
set $base0D #999999
|
|
||||||
set $base0E #CCCCCC
|
|
||||||
set $base0F #666666
|
|
||||||
|
|
||||||
# base00-02=bg #3E3B33, base03=olive #8C9A6B, base04=peach #F3B49F, base05=rust #D9714C, base06-07=cream #FFE8DB
|
set $base00 #031A16
|
||||||
|
set $base01 #0B342D
|
||||||
# ╔══════════════════════════════════════════════════════════════════╗
|
set $base02 #184E45
|
||||||
# ║ FOCUS RING (subtle gray ramp) ║
|
set $base03 #2B685E
|
||||||
# ║ ║
|
set $base04 #5F9C92
|
||||||
# ║ With `border pixel` the line you actually see around a window is ║
|
set $base05 #81B5AC
|
||||||
# ║ child_border (5th color). `border` (1st) only paints title bars, ║
|
set $base06 #A7CEC8
|
||||||
# ║ which pixel borders don't have -- so both are set to the same ║
|
set $base07 #D2E7E4
|
||||||
# ║ gray here. Previously child_border for focused windows was ║
|
set $base08 #3E9688
|
||||||
# ║ $base00 (#000000) = invisible on a black background, which is ║
|
set $base09 #3E7996
|
||||||
# ║ why the focused window was hard to spot. ║
|
set $base0A #3E4C96
|
||||||
# ║ ║
|
set $base0B #883E96
|
||||||
# ║ Tune: lighter = easier to spot, darker = less obvious. ║
|
set $base0C #963E4C
|
||||||
# ╚══════════════════════════════════════════════════════════════════╝
|
set $base0D #96883E
|
||||||
set $border_focus #252525
|
set $base0E #4C963E
|
||||||
set $border_inactive #171717
|
set $base0F #3E965B
|
||||||
set $border_unfocused #0D0D0D
|
|
||||||
|
|
||||||
#set $base00 #000000
|
#set $base00 #000000
|
||||||
#set $base01 #121212
|
#set $base01 #121212
|
||||||
@@ -75,9 +48,9 @@ set $border_unfocused #0D0D0D
|
|||||||
#set $base0F #444444
|
#set $base0F #444444
|
||||||
|
|
||||||
# Property Name Border BG Text Indicator Child Border
|
# Property Name Border BG Text Indicator Child Border
|
||||||
client.focused $border_focus $base00 $base07 $border_focus $border_focus
|
client.focused $base05 $base0D $base00 $base0D $base0D
|
||||||
client.focused_inactive $border_inactive $base00 $base05 $border_inactive $border_inactive
|
client.focused_inactive $base01 $base01 $base05 $base03 $base01
|
||||||
client.unfocused $border_unfocused $base00 $base05 $border_unfocused $border_unfocused
|
client.unfocused $base01 $base00 $base05 $base01 $base01
|
||||||
client.urgent #FFA14C #FFA14C $base00 #FFA14C #FFA14C
|
client.urgent $base08 $base08 $base00 $base08 $base08
|
||||||
client.placeholder $base00 $base00 $base05 $base00 $base00
|
client.placeholder $base00 $base00 $base05 $base00 $base00
|
||||||
client.background $base00
|
client.background $base07
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
# Generated windows.
|
# Generated windows.
|
||||||
for_window [title="(?:Open|Save) (?:File|Folder|As)"] floating enable
|
for_window [title="(?:Open|Save) (?:File|Folder|As)"] floating enable;
|
||||||
for_window [title="(?:Open|Save) (?:File|Folder|As)"] resize set 800 600
|
for_window [title="(?:Open|Save) (?:File|Folder|As)"] resize set 800 600
|
||||||
for_window [window_role="pop-up"] floating enable
|
for_window [window_role="pop-up"] floating enable
|
||||||
for_window [window_role="bubble"] floating enable
|
for_window [window_role="bubble"] floating enable
|
||||||
@@ -10,7 +10,7 @@ for_window [window_type="menu"] floating enable
|
|||||||
|
|
||||||
for_window [shell="xwayland"] title_format "[XWayland] %title"
|
for_window [shell="xwayland"] title_format "[XWayland] %title"
|
||||||
for_window [title="LUCID"] floating enable
|
for_window [title="LUCID"] floating enable
|
||||||
for_window [title="(?i)pydm"] floating enable
|
for_window [title="Pydm|pydm"] floating enable
|
||||||
for_window [title="Form"] floating enable
|
for_window [title="Form"] floating enable
|
||||||
for_window [title="zoom"] floating enable
|
for_window [title="zoom"] floating enable
|
||||||
|
|
||||||
@@ -1,357 +0,0 @@
|
|||||||
import Quickshell._Window
|
|
||||||
import Quickshell.I3
|
|
||||||
import Quickshell.Services.UPower
|
|
||||||
import Quickshell.Services.Pipewire
|
|
||||||
import Quickshell.Services.SystemTray
|
|
||||||
import Quickshell
|
|
||||||
import Quickshell.Widgets
|
|
||||||
import QtQuick
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import QtQuick.Controls as QQC2
|
|
||||||
|
|
||||||
FloatingWindow {
|
|
||||||
id: root
|
|
||||||
title: "Quickshell Bar"
|
|
||||||
visible: true
|
|
||||||
implicitWidth: 1920
|
|
||||||
implicitHeight: 40
|
|
||||||
|
|
||||||
property string mode: ""
|
|
||||||
property string windowTitle: ""
|
|
||||||
|
|
||||||
Component.onCompleted: {
|
|
||||||
I3.rawEvent.connect(handleRawEvent)
|
|
||||||
pollWindowTitle()
|
|
||||||
pinBar()
|
|
||||||
}
|
|
||||||
|
|
||||||
function pinBar() {
|
|
||||||
I3.dispatch('[title="Quickshell Bar"] floating enable')
|
|
||||||
I3.dispatch('[title="Quickshell Bar"] move absolute position 0 0')
|
|
||||||
I3.dispatch('[title="Quickshell Bar"] resize set 1920 40')
|
|
||||||
I3.dispatch('[title="Quickshell Bar"] sticky enable')
|
|
||||||
}
|
|
||||||
|
|
||||||
function handleRawEvent(event) {
|
|
||||||
if (event.type === "mode") {
|
|
||||||
root.mode = event.data === "default" ? "" : event.data
|
|
||||||
}
|
|
||||||
if (event.type === "window" || event.type === "workspace") {
|
|
||||||
pollWindowTitle()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function pollWindowTitle() {
|
|
||||||
try {
|
|
||||||
var ws = I3.focusedWorkspace
|
|
||||||
if (ws && ws.lastIpcObject) {
|
|
||||||
root.windowTitle = findFocusedTitle(ws.lastIpcObject.nodes || [])
|
|
||||||
}
|
|
||||||
} catch (e) { root.windowTitle = "" }
|
|
||||||
}
|
|
||||||
|
|
||||||
function findFocusedTitle(nodes) {
|
|
||||||
for (var i = 0; i < nodes.length; i++) {
|
|
||||||
var n = nodes[i]
|
|
||||||
if (n.focused && n.name && !["$external", "i3bar"].includes(n.name)) {
|
|
||||||
return n.name
|
|
||||||
}
|
|
||||||
if (n.nodes && findFocusedTitle(n.nodes)) return findFocusedTitle(n.nodes)
|
|
||||||
if (n.floating_nodes) {
|
|
||||||
for (var j = 0; j < n.floating_nodes.length; j++) {
|
|
||||||
var fn = n.floating_nodes[j]
|
|
||||||
if (fn.focused && fn.name && fn.name !== "$external") return fn.name
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
function wsColor(num) {
|
|
||||||
var colors = ["#eb4d4b", "#64727D", "#f7ca18", "#fb6f92",
|
|
||||||
"#2ecc71", "#2980b9", "#f7768e", "#667581"]
|
|
||||||
return colors[num % 8] || colors[0]
|
|
||||||
}
|
|
||||||
|
|
||||||
function updateBattery() {
|
|
||||||
if (!UPower.displayDevice || !UPower.displayDevice.isReady ||
|
|
||||||
!UPower.displayDevice.powerSupply) {
|
|
||||||
batteryLabel.text = ""
|
|
||||||
return
|
|
||||||
}
|
|
||||||
var dev = UPower.displayDevice
|
|
||||||
var pct = Math.round(dev.percentage)
|
|
||||||
var state = dev.state
|
|
||||||
batteryItem.isCritical = pct <= 15 && state === 2
|
|
||||||
|
|
||||||
if (state === 4) { batteryLabel.text = pct + "%"; return }
|
|
||||||
|
|
||||||
var timeStr = ""
|
|
||||||
var seconds = 0
|
|
||||||
if (state === 1 || state === 5) seconds = dev.timeToFull * 60
|
|
||||||
else if (state === 2 || state === 6) seconds = dev.timeToEmpty * 60
|
|
||||||
|
|
||||||
if (seconds > 0 && seconds < 86400) {
|
|
||||||
var h = Math.floor(seconds / 3600)
|
|
||||||
var m = Math.floor((seconds % 3600) / 60)
|
|
||||||
timeStr = h > 0 ? h + ":" + m.toString().padStart(2, '0') + " " : m + "m "
|
|
||||||
}
|
|
||||||
|
|
||||||
var suffix = ""
|
|
||||||
if (state === 1 || state === 5) suffix = " C"
|
|
||||||
else if (state === 3) suffix = " P"
|
|
||||||
|
|
||||||
batteryLabel.text = timeStr + pct + "%" + suffix
|
|
||||||
}
|
|
||||||
|
|
||||||
// Background
|
|
||||||
Rectangle {
|
|
||||||
anchors.fill: parent
|
|
||||||
color: "black"
|
|
||||||
z: 0
|
|
||||||
}
|
|
||||||
|
|
||||||
// Bar content
|
|
||||||
RowLayout {
|
|
||||||
anchors.fill: parent
|
|
||||||
anchors.leftMargin: 4
|
|
||||||
anchors.rightMargin: 4
|
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.bottom: parent.bottom
|
|
||||||
spacing: 2
|
|
||||||
z: 1
|
|
||||||
|
|
||||||
// LEFT SECTION
|
|
||||||
Item {
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.maximumWidth: root.implicitWidth * 0.33
|
|
||||||
|
|
||||||
RowLayout {
|
|
||||||
anchors.fill: parent
|
|
||||||
spacing: 2
|
|
||||||
|
|
||||||
// Workspaces
|
|
||||||
RowLayout {
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.maximumWidth: 600
|
|
||||||
spacing: 2
|
|
||||||
|
|
||||||
Repeater {
|
|
||||||
model: I3.workspaces
|
|
||||||
|
|
||||||
delegate: QQC2.ToolButton {
|
|
||||||
id: wsBtn
|
|
||||||
property bool isFocused: modelData.focused
|
|
||||||
property int wsNum: modelData.number
|
|
||||||
|
|
||||||
text: modelData.name
|
|
||||||
visible: modelData.active || modelData.focused || modelData.urgent
|
|
||||||
highlighted: isFocused
|
|
||||||
checkable: true
|
|
||||||
checked: isFocused
|
|
||||||
down: isFocused
|
|
||||||
|
|
||||||
onClicked: {
|
|
||||||
if (modelData.activate) modelData.activate()
|
|
||||||
else I3.dispatch(`workspace ${modelData.name}`)
|
|
||||||
}
|
|
||||||
|
|
||||||
font.pixelSize: 14
|
|
||||||
font.bold: true
|
|
||||||
width: implicitWidth + 8
|
|
||||||
padding: 0
|
|
||||||
|
|
||||||
palette {
|
|
||||||
button: isFocused ? wsColor(wsNum) : "transparent"
|
|
||||||
buttonText: "#ffffff"
|
|
||||||
}
|
|
||||||
|
|
||||||
// Hover underline
|
|
||||||
background: Rectangle {
|
|
||||||
anchors.fill: parent
|
|
||||||
color: "transparent"
|
|
||||||
Rectangle {
|
|
||||||
anchors.bottom: parent.bottom
|
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.right: parent.right
|
|
||||||
height: 3
|
|
||||||
color: wsBtn.hovered || wsBtn.isFocused ? "#ffffff" : "transparent"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mode indicator
|
|
||||||
QQC2.Label {
|
|
||||||
text: root.mode
|
|
||||||
visible: root.mode !== ""
|
|
||||||
color: "#64727D"
|
|
||||||
font.pixelSize: 14
|
|
||||||
font.bold: true
|
|
||||||
font.italic: true
|
|
||||||
padding: 10
|
|
||||||
}
|
|
||||||
|
|
||||||
// Window title
|
|
||||||
QQC2.Label {
|
|
||||||
text: root.windowTitle
|
|
||||||
visible: root.windowTitle !== ""
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.maximumWidth: 300
|
|
||||||
elide: Text.ElideMiddle
|
|
||||||
color: "#ffffff"
|
|
||||||
font.pixelSize: 14
|
|
||||||
font.bold: true
|
|
||||||
padding: 10
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Spacer
|
|
||||||
Item { Layout.fillWidth: true }
|
|
||||||
|
|
||||||
// RIGHT SECTION
|
|
||||||
RowLayout {
|
|
||||||
spacing: 2
|
|
||||||
|
|
||||||
// Volume
|
|
||||||
Item {
|
|
||||||
height: parent.height
|
|
||||||
|
|
||||||
QQC2.Label {
|
|
||||||
id: volumeLabel
|
|
||||||
anchors.fill: parent
|
|
||||||
anchors.leftMargin: 10
|
|
||||||
anchors.rightMargin: 10
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
color: "#ffffff"
|
|
||||||
font.pixelSize: 14
|
|
||||||
font.bold: true
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
|
|
||||||
text: {
|
|
||||||
if (!Pipewire.ready || !Pipewire.defaultAudioSink) return ""
|
|
||||||
var sink = Pipewire.defaultAudioSink
|
|
||||||
var vol = sink.audio ? sink.audio.averageVolume * 100 : 0
|
|
||||||
var muted = sink.audio ? sink.audio.isMuted : false
|
|
||||||
return muted ? "Muted" : Math.round(vol) + "%"
|
|
||||||
}
|
|
||||||
|
|
||||||
MouseArea {
|
|
||||||
anchors.fill: parent
|
|
||||||
onClicked: Qt.shellCommand("pavucontrol")
|
|
||||||
onWheel: function(event) {
|
|
||||||
if (Pipewire.ready && Pipewire.defaultAudioSink &&
|
|
||||||
Pipewire.defaultAudioSink.audio) {
|
|
||||||
var v = Pipewire.defaultAudioSink.audio.averageVolume
|
|
||||||
var step = event.angleDelta.y > 0 ? 0.05 : -0.05
|
|
||||||
Pipewire.defaultAudioSink.audio.averageVolume =
|
|
||||||
Math.max(0, Math.min(1, v + step))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Battery
|
|
||||||
Item {
|
|
||||||
id: batteryItem
|
|
||||||
height: parent.height
|
|
||||||
property bool isCritical: false
|
|
||||||
|
|
||||||
QQC2.Label {
|
|
||||||
id: batteryLabel
|
|
||||||
anchors.fill: parent
|
|
||||||
anchors.leftMargin: 10
|
|
||||||
anchors.rightMargin: 10
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
color: batteryItem.isCritical ? "#f53c3c" : "#ffffff"
|
|
||||||
font.pixelSize: 14
|
|
||||||
font.bold: true
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
}
|
|
||||||
|
|
||||||
Timer {
|
|
||||||
interval: 5000
|
|
||||||
running: true
|
|
||||||
repeat: true
|
|
||||||
onTriggered: root.updateBattery()
|
|
||||||
}
|
|
||||||
|
|
||||||
Component.onCompleted: root.updateBattery()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Clock
|
|
||||||
Item {
|
|
||||||
height: parent.height
|
|
||||||
|
|
||||||
QQC2.Label {
|
|
||||||
id: clockLabel
|
|
||||||
anchors.fill: parent
|
|
||||||
anchors.leftMargin: 10
|
|
||||||
anchors.rightMargin: 10
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
color: "#ffffff"
|
|
||||||
font.pixelSize: 14
|
|
||||||
font.bold: true
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
}
|
|
||||||
|
|
||||||
Timer {
|
|
||||||
interval: 1000
|
|
||||||
running: true
|
|
||||||
repeat: true
|
|
||||||
onTriggered: {
|
|
||||||
var now = new Date()
|
|
||||||
var h = now.getHours()
|
|
||||||
var ampm = h >= 12 ? "PM" : "AM"
|
|
||||||
h = h % 12 || 12
|
|
||||||
var time = h + ":" + now.getMinutes().toString().padStart(2, '0') +
|
|
||||||
":" + now.getSeconds().toString().padStart(2, '0') + " " + ampm
|
|
||||||
var date = now.getFullYear() + "-" +
|
|
||||||
(now.getMonth()+1).toString().padStart(2, '0') + "-" +
|
|
||||||
now.getDate().toString().padStart(2, '0')
|
|
||||||
clockLabel.text = time + " " + date
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// System Tray
|
|
||||||
Item {
|
|
||||||
id: trayContainer
|
|
||||||
height: parent.height
|
|
||||||
|
|
||||||
Repeater {
|
|
||||||
model: SystemTray.items
|
|
||||||
|
|
||||||
delegate: Item {
|
|
||||||
width: 24
|
|
||||||
height: trayContainer.height
|
|
||||||
|
|
||||||
IconImage {
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.leftMargin: 2
|
|
||||||
width: 22
|
|
||||||
height: 22
|
|
||||||
source: modelData.iconName || ""
|
|
||||||
visible: source !== ""
|
|
||||||
|
|
||||||
MouseArea {
|
|
||||||
anchors.fill: parent
|
|
||||||
onClicked: function(mouse) {
|
|
||||||
if (modelData.hasMenu) {
|
|
||||||
modelData.display(QsWindowAttached.window, 0, 0)
|
|
||||||
} else {
|
|
||||||
modelData.activate()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Executable → Regular
+1
-9
@@ -1,12 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Lid-driven laptop panel handling.
|
|
||||||
#
|
|
||||||
# shikane is authoritative for output layout/scaling
|
|
||||||
# (~/.config/shikane/config.toml + shikane-watchdog.timer). This script used to
|
|
||||||
# run `swaymsg output eDP-1 enable` whenever the lid was open, which on every
|
|
||||||
# `swaymsg reload` raced the shikane "External Display" profile (eDP-1 off) and
|
|
||||||
# contributed to "Atomic commit failed: Device or resource busy" churn.
|
|
||||||
# It now only ever disables.
|
|
||||||
|
|
||||||
LAPTOP_OUTPUT="eDP-1"
|
LAPTOP_OUTPUT="eDP-1"
|
||||||
LID_STATE_FILE="/proc/acpi/button/lid/LID/state"
|
LID_STATE_FILE="/proc/acpi/button/lid/LID/state"
|
||||||
@@ -14,7 +6,7 @@ LID_STATE_FILE="/proc/acpi/button/lid/LID/state"
|
|||||||
read -r LS < "$LID_STATE_FILE"
|
read -r LS < "$LID_STATE_FILE"
|
||||||
|
|
||||||
case "$LS" in
|
case "$LS" in
|
||||||
|
*open) swaymsg output "$LAPTOP_OUTPUT" enable ;;
|
||||||
*closed) swaymsg output "$LAPTOP_OUTPUT" disable ;;
|
*closed) swaymsg output "$LAPTOP_OUTPUT" disable ;;
|
||||||
*open) : ;; # leave to shikane
|
|
||||||
*) echo "Could not get lid state" >&2 ; exit 1 ;;
|
*) echo "Could not get lid state" >&2 ; exit 1 ;;
|
||||||
esac
|
esac
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
dbus-update-activation-environment --systemd \
|
|
||||||
WAYLAND_DISPLAY \
|
|
||||||
DISPLAY \
|
|
||||||
SWAYSOCK \
|
|
||||||
XDG_SESSION_DESKTOP=sway \
|
|
||||||
XDG_SESSION_CLASS=user \
|
|
||||||
XDG_SEAT=seat0 \
|
|
||||||
XCURSOR_THEME=Adwaita \
|
|
||||||
XCURSOR_SIZE=35 \
|
|
||||||
GDK_BACKEND=wayland \
|
|
||||||
SDL_VIDEODRIVER=wayland \
|
|
||||||
"QT_QPA_PLATFORM=wayland-egl;xcb" \
|
|
||||||
MOZ_ENABLE_WAYLAND=1 \
|
|
||||||
WLR_DRM_NO_MODIFIERS=1 \
|
|
||||||
XWAYLAND_NO_SCALE=1
|
|
||||||
Executable
+8
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
export MOZ_ENABLE_WAYLAND=1
|
||||||
|
export WLR_DRM_NO_MODIFIERS=1
|
||||||
|
export QT_QPA_PLATFORM="wayland-egl;xcb"
|
||||||
|
export SDL_VIDEODRIVER=wayland
|
||||||
|
export XDG_SESSION_TYPE=wayland
|
||||||
|
export XDG_CURRENT_DESKTOP=sway
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# recover-output-after-resume -- clear a post-resume eDP page-flip stall.
|
|
||||||
#
|
|
||||||
# Symptom (see journalctl --user --since -5m | grep 'Atomic commit failed'):
|
|
||||||
# [wlr] backend/drm/atomic.c:82 connector eDP-1: Atomic commit failed:
|
|
||||||
# Device or resource busy
|
|
||||||
# [sway] desktop/output.c:307 Page-flip failed on output eDP-1
|
|
||||||
# ...repeatedly for tens of minutes after a resume.
|
|
||||||
#
|
|
||||||
# HISTORY: this was originally a workaround for the old ThinkPad's
|
|
||||||
# /etc/modprobe.d/i915.conf, which forced PSR2 and the deepest display C-states
|
|
||||||
# (options i915 enable_guc=3 enable_psr=2 enable_dc=4 enable_rc6=1 -- both of
|
|
||||||
# which taint the kernel). With PSR2 forced on, the flip pending across suspend
|
|
||||||
# never completed, so every later commit returned EBUSY, and DPMS "power on"
|
|
||||||
# alone did not clear it -- only a full modeset did.
|
|
||||||
#
|
|
||||||
# STATUS: that file is gone. This machine is a Framework Laptop 13 Pro whose
|
|
||||||
# iGPU is driven by `xe` (Panther Lake has no i915 support at all), so the
|
|
||||||
# original cause cannot recur. The modeset below is therefore CONDITIONAL and
|
|
||||||
# only fires when the stall is actually present in the journal.
|
|
||||||
#
|
|
||||||
# Why conditional: an unconditional disable/enable plus `shikanectl reload`
|
|
||||||
# after every resume is exactly the sequence that re-triggers the shikane
|
|
||||||
# 1.1.1 VariantInProgress deadlock (see shikane-watchdog.sh). No point paying
|
|
||||||
# that risk on resumes that are already healthy.
|
|
||||||
#
|
|
||||||
# Lid-aware on purpose: a blind `output eDP-1 enable` raced shikane's
|
|
||||||
# "External Display" profile (which keeps eDP-1 off) and caused
|
|
||||||
# "Atomic commit failed: Device or resource busy" churn in clamshell mode.
|
|
||||||
# See the note in clamshell-mode.sh.
|
|
||||||
|
|
||||||
set -u
|
|
||||||
|
|
||||||
LID_STATE="${LID_STATE:-/proc/acpi/button/lid/LID/state}"
|
|
||||||
OUTPUT="${OUTPUT:-eDP-1}"
|
|
||||||
|
|
||||||
# Always undo the idle DPMS-off first (this is what after_sleep_cmd used to do).
|
|
||||||
swaymsg "output * power on" 2>/dev/null
|
|
||||||
|
|
||||||
# Only escalate to a modeset if the page-flip stall is actually being reported.
|
|
||||||
# sway runs inside the user session, so its stderr is in the user journal.
|
|
||||||
if command -v journalctl >/dev/null 2>&1; then
|
|
||||||
if ! journalctl --user --since '-3 min' --no-pager 2>/dev/null \
|
|
||||||
| grep -qE 'Atomic commit failed|Page-flip failed on output'; then
|
|
||||||
exit 0 # healthy resume -> do not disturb shikane
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# The modeset below is lid-gated only.
|
|
||||||
[ -r "$LID_STATE" ] || exit 0
|
|
||||||
grep -q 'open' "$LID_STATE" || exit 0 # lid closed -> leave layout to shikane
|
|
||||||
|
|
||||||
# Give the driver a moment to finish re-training the link before we modeset.
|
|
||||||
sleep 1
|
|
||||||
swaymsg "output $OUTPUT disable" 2>/dev/null
|
|
||||||
sleep 1
|
|
||||||
swaymsg "output $OUTPUT enable" 2>/dev/null
|
|
||||||
# Re-assert the shikane profile (mode/scale/position) on top of the modeset.
|
|
||||||
command -v shikanectl >/dev/null 2>&1 && shikanectl reload 2>/dev/null
|
|
||||||
exit 0
|
|
||||||
Executable → Regular
+2
-32
@@ -1,33 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
# Region screenshot -> ~/Pictures + clipboard.
|
|
||||||
#
|
|
||||||
# This file used to contain a single broken line (`slur`, and it was not
|
|
||||||
# executable): the typo meant `slurp` never ran, and nothing referenced it
|
|
||||||
# anyway -- the $mod+shift+p keybind in config.d/keybinds has its own inline
|
|
||||||
# pipeline. Fixed and kept as the shared implementation so the behaviour is
|
|
||||||
# identical wherever it gets wired up.
|
|
||||||
#
|
|
||||||
# Usage: screen-capture.sh [region|output|full] (default: region)
|
|
||||||
# (no "window" mode: slurp offers region, `-o` output and `-p` point selection
|
|
||||||
# only -- it cannot pick a window)
|
|
||||||
|
|
||||||
set -u
|
slur
|
||||||
|
|
||||||
outdir="${XDG_PICTURES_DIR:-$HOME/Pictures}"
|
|
||||||
mkdir -p "$outdir"
|
|
||||||
file="$outdir/$(date +%F-%H%M%S).png"
|
|
||||||
|
|
||||||
case "${1:-region}" in
|
|
||||||
region) geom=$(slurp) || exit 1 # Esc cancels
|
|
||||||
[ -n "$geom" ] || exit 1
|
|
||||||
grim -g "$geom" "$file" ;;
|
|
||||||
output) geom=$(slurp -o -f '%g') || exit 1 # pick a monitor
|
|
||||||
[ -n "$geom" ] || exit 1
|
|
||||||
grim -g "$geom" "$file" ;;
|
|
||||||
full) grim "$file" ;;
|
|
||||||
*) echo "usage: $(basename "$0") [region|output|full]" >&2; exit 2 ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
[ -s "$file" ] || { echo "capture failed" >&2; exit 1; }
|
|
||||||
wl-copy < "$file"
|
|
||||||
notify-send -i "$file" "Screenshot saved" "$file"
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# shikane-recover-on-reload: run after every sway startup/reload
|
|
||||||
# (wired up via exec_always in the sway config).
|
|
||||||
#
|
|
||||||
# Re-applies the shikane profile, then verifies the daemon came out
|
|
||||||
# the other side: if the re-apply hit the commit-failure race, the
|
|
||||||
# watchdog check (2s later) restarts the service to recover.
|
|
||||||
|
|
||||||
set -u
|
|
||||||
|
|
||||||
shikanectl reload 2>/dev/null
|
|
||||||
sleep 2
|
|
||||||
exec /home/work/.config/sway/scripts/shikane-watchdog.sh
|
|
||||||
@@ -1,62 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# shikane-watchdog: auto-recover shikane from its deadlock bug.
|
|
||||||
#
|
|
||||||
# Bug (shikane 1.1.1): if a variant application is discarded mid-way
|
|
||||||
# (e.g. by a failing DP atomic commit), the daemon gets stuck in
|
|
||||||
# VariantInProgress/Discarded. Two flavors observed:
|
|
||||||
# loud: keeps logging
|
|
||||||
# [WARN shikane::variant] Received invalid input AtomicChangeDone at state Discarded
|
|
||||||
# silent: no WARN at all; the variant state ends at "Discarded" and the
|
|
||||||
# daemon state machine simply never leaves VariantInProgress
|
|
||||||
# `shikanectl reload` does not recover it; a service restart does
|
|
||||||
# (re-applies the active profile in ~1s).
|
|
||||||
#
|
|
||||||
# A healthy daemon's last state-machine line is "VariantApplied".
|
|
||||||
|
|
||||||
set -u
|
|
||||||
|
|
||||||
unit=shikane
|
|
||||||
stuck=0
|
|
||||||
|
|
||||||
logs3=$(journalctl --user -u "$unit" -q --since "-3min" 2>/dev/null)
|
|
||||||
[ -z "$logs3" ] && exit 0
|
|
||||||
|
|
||||||
latest3=$(printf '%s\n' "$logs3" | grep 'daemon::state_machine' | tail -1)
|
|
||||||
|
|
||||||
if [ -n "$latest3" ]; then
|
|
||||||
case "$latest3" in
|
|
||||||
*VariantApplied*)
|
|
||||||
: ;; # healthy
|
|
||||||
*)
|
|
||||||
# Daemon still InProgress. Deadlock signatures (a legitimate
|
|
||||||
# slow transition has neither):
|
|
||||||
# loud: the WARN from the discarded-variant race
|
|
||||||
# silent: variant discarded but daemon never processed it
|
|
||||||
printf '%s\n' "$logs3" | grep -q 'invalid input' && stuck=1
|
|
||||||
if [ "$stuck" -eq 0 ]; then
|
|
||||||
lastvariant=$(printf '%s\n' "$logs3" \
|
|
||||||
| grep 'shikane::variant' | grep 'New variant state' | tail -1)
|
|
||||||
case "$lastvariant" in
|
|
||||||
*Discarded*) stuck=1 ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
else
|
|
||||||
# No state change in the last 3 min — check the last known state
|
|
||||||
# (unbounded: a stuck daemon may have gone silent long ago,
|
|
||||||
# e.g. across a laptop suspend)
|
|
||||||
lastline=$(journalctl --user -u "$unit" -q -n 500 2>/dev/null \
|
|
||||||
| grep 'daemon::state_machine' | tail -1)
|
|
||||||
case "$lastline" in
|
|
||||||
'' | *VariantApplied*)
|
|
||||||
: ;; # stable and applied, or nothing to check
|
|
||||||
*)
|
|
||||||
stuck=1 ;; # stuck in-progress/discarded, any age
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$stuck" -eq 1 ]; then
|
|
||||||
echo "shikane-watchdog: shikane stuck, restarting" >&2
|
|
||||||
systemctl --user restart "$unit"
|
|
||||||
fi
|
|
||||||
@@ -3,6 +3,7 @@
|
|||||||
"spacing": 2, // Gaps between modules (4px)
|
"spacing": 2, // Gaps between modules (4px)
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
"sway/workspaces",
|
"sway/workspaces",
|
||||||
|
"sway/mode",
|
||||||
"sway/scratchpad",
|
"sway/scratchpad",
|
||||||
"sway/window"
|
"sway/window"
|
||||||
],
|
],
|
||||||
@@ -22,8 +23,9 @@
|
|||||||
"format": "<span style=\"italic\">{}</span>"
|
"format": "<span style=\"italic\">{}</span>"
|
||||||
},
|
},
|
||||||
"sway/scratchpad": {
|
"sway/scratchpad": {
|
||||||
"format": "S{count}",
|
"format": "{icon} {count}",
|
||||||
"show-empty": false,
|
"show-empty": false,
|
||||||
|
"format-icons": ["", ""],
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"tooltip-format": "{app}: {title}"
|
"tooltip-format": "{app}: {title}"
|
||||||
},
|
},
|
||||||
@@ -48,53 +50,65 @@
|
|||||||
"warning": 30,
|
"warning": 30,
|
||||||
"critical": 15
|
"critical": 15
|
||||||
},
|
},
|
||||||
"format": "{time} {capacity}%",
|
"format": "{time} {capacity}% {icon}",
|
||||||
"format-full": "{capacity}%",
|
"format-full": "{capacity}% {icon}",
|
||||||
"format-charging": "{capacity}% C",
|
"format-charging": "{capacity}% C",
|
||||||
"format-plugged": "{capacity}% P",
|
"format-plugged": "{capacity}% P",
|
||||||
"format-alt": "{time}",
|
"format-alt": "{time} {icon}",
|
||||||
// "format-good": "", // An empty format will hide the module
|
// "format-good": "", // An empty format will hide the module
|
||||||
// "format-full": "",
|
// "format-full": "",
|
||||||
|
"format-icons": ["", "", "", "", ""]
|
||||||
},
|
},
|
||||||
"battery#bat2": {
|
"battery#bat2": {
|
||||||
"bat": "BAT2"
|
"bat": "BAT2"
|
||||||
},
|
},
|
||||||
"power-profiles-daemon": {
|
"power-profiles-daemon": {
|
||||||
"format": "{profile}",
|
"format": "{icon}",
|
||||||
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
|
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"format-icons": {"default": [""]}
|
"format-icons": {
|
||||||
|
"default": "",
|
||||||
|
"performance": "",
|
||||||
|
"balanced": "",
|
||||||
|
"power-saver": ""
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"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": "{ipaddr}/{cidr}",
|
//"format-ethernet": "{ipaddr}/{cidr} ",
|
||||||
//"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 ⚠",
|
||||||
"format-disconnected": "Disconnected",
|
"format-disconnected": "Disconnected",
|
||||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||||
},
|
},
|
||||||
"pulseaudio": {
|
"pulseaudio": {
|
||||||
// "scroll-step": 1, // %, can be a float
|
// "scroll-step": 1, // %, can be a float
|
||||||
"format": "{volume}% {format_source}",
|
"format": "{volume}% {icon} {format_source}",
|
||||||
"format-bluetooth": "{volume}% {format_source}",
|
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||||
"format-bluetooth-muted": " {format_source}",
|
"format-bluetooth-muted": " {icon} {format_source}",
|
||||||
"format-muted": " {format_source}",
|
"format-muted": " {format_source}",
|
||||||
"format-source": "{volume}%",
|
"format-source": "{volume}% ",
|
||||||
"format-source-muted": "",
|
"format-source-muted": "",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"default": [""]
|
"headphone": "",
|
||||||
|
"hands-free": "",
|
||||||
|
"headset": "",
|
||||||
|
"phone": "",
|
||||||
|
"portable": "",
|
||||||
|
"car": "",
|
||||||
|
"default": ["", "", ""]
|
||||||
},
|
},
|
||||||
"on-click": "pavucontrol"
|
"on-click": "pavucontrol"
|
||||||
},
|
},
|
||||||
"custom/media": {
|
"custom/media": {
|
||||||
"format": "{text}",
|
"format": "{icon} {text}",
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
"max-length": 40,
|
"max-length": 40,
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"spotify": "",
|
"spotify": "",
|
||||||
"default": ""
|
"default": "🎜"
|
||||||
},
|
},
|
||||||
"escape": true,
|
"escape": true,
|
||||||
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
||||||
|
|||||||
+166
-192
@@ -1,51 +1,17 @@
|
|||||||
/*
|
|
||||||
* Waybar theme — unified with sway color palette.
|
|
||||||
*
|
|
||||||
* ╔══════════════════════════════════════════════════════════════════╗
|
|
||||||
* ║ COLOR PALETTE ║
|
|
||||||
* ║ To change colors: ║
|
|
||||||
* ║ 1. Edit the $base00–$base0F values in ║
|
|
||||||
* ║ ~/.config/sway/config.d/swayfx ║
|
|
||||||
* ║ 2. Mirror those hex values in the @define-color block below ║
|
|
||||||
* ║ 3. Run: swaymsg reload ║
|
|
||||||
* ╚══════════════════════════════════════════════════════════════════╝
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* ── Palette (your 5 colors + black) ── */
|
|
||||||
@define-color bg #000000;
|
|
||||||
@define-color bg-dark #000000;
|
|
||||||
@define-color bg-mid #000000;
|
|
||||||
@define-color bg-light #333333;
|
|
||||||
@define-color fg-dim #666666;
|
|
||||||
@define-color fg #999999;
|
|
||||||
@define-color fg-bright #CCCCCC;
|
|
||||||
@define-color fg-max #FFFFFF;
|
|
||||||
@define-color teal #999999;
|
|
||||||
@define-color blue #999999;
|
|
||||||
@define-color indigo #CCCCCC;
|
|
||||||
@define-color magenta #999999;
|
|
||||||
@define-color red #CCCCCC;
|
|
||||||
@define-color yellow #999999;
|
|
||||||
@define-color orange #999999;
|
|
||||||
@define-color green #CCCCCC;
|
|
||||||
@define-color cyan #666666;
|
|
||||||
|
|
||||||
/* ── Semantic aliases ── */
|
|
||||||
@define-color highlight @blue;
|
|
||||||
@define-color accent @teal;
|
|
||||||
@define-color urgent @red;
|
|
||||||
@define-color warning @yellow;
|
|
||||||
@define-color success @green;
|
|
||||||
|
|
||||||
* {
|
* {
|
||||||
|
/* `otf-font-awesome` is required to be installed for icons */
|
||||||
|
/*font-family: FontAwesome, Roboto, Helvetica, Arial, sans-serif; */
|
||||||
|
/*font-family: "JetBrainsMono NF";*/
|
||||||
font-family: "JetBrainsMonoNFM-Regular";
|
font-family: "JetBrainsMonoNFM-Regular";
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
window#waybar {
|
window#waybar {
|
||||||
background-color: @bg;
|
/*background-color: rgba(43, 48, 59, 0.5);
|
||||||
color: @fg;
|
border-bottom: 3px solid rgba(100, 114, 125, 0.5); */
|
||||||
|
background-color: rgba(0, 0, 0, 1);
|
||||||
|
color: #ffffff;
|
||||||
transition-property: background-color;
|
transition-property: background-color;
|
||||||
transition-duration: .5s;
|
transition-duration: .5s;
|
||||||
}
|
}
|
||||||
@@ -54,44 +20,57 @@ window#waybar.hidden {
|
|||||||
opacity: 0.2;
|
opacity: 0.2;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Buttons ── */
|
window#waybar.empty {
|
||||||
|
/*background-color: transparent;*/
|
||||||
|
}
|
||||||
|
window#waybar.solo {
|
||||||
|
/*background-color: #FFFFFF;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
button {
|
button {
|
||||||
|
/* Use box-shadow instead of border so the text isn't offset */
|
||||||
box-shadow: inset 0 -3px transparent;
|
box-shadow: inset 0 -3px transparent;
|
||||||
|
/* Avoid rounded borders under each button name */
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
||||||
button:hover {
|
button:hover {
|
||||||
background: inherit;
|
background: inherit;
|
||||||
box-shadow: inset 0 -3px @fg-bright;
|
box-shadow: inset 0 -3px #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* you can set a style on hover for any module like this */
|
||||||
|
#pulseaudio:hover {
|
||||||
|
/*background-color: #a37800;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Workspaces ── */
|
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
padding: 0 4px;
|
padding: 0 4px;
|
||||||
color: @fg-dim;
|
/*background-color: transparent;*/
|
||||||
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button:hover {
|
#workspaces button:hover {
|
||||||
background: @bg-mid;
|
background: rgba(0, 0, 0, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.focused {
|
#workspaces button.focused {
|
||||||
background-color: @highlight;
|
background-color: #64727D;
|
||||||
color: @bg;
|
/*box-shadow: inset 0 -3px #ffffff;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.urgent {
|
#workspaces button.urgent {
|
||||||
background-color: @urgent;
|
background-color: #eb4d4b;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Mode indicator ── */
|
|
||||||
#mode {
|
#mode {
|
||||||
background-color: @blue;
|
background-color: #64727D;
|
||||||
box-shadow: inset 0 -3px @fg-bright;
|
box-shadow: inset 0 -3px #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Common module spacing ── */
|
|
||||||
#clock,
|
#clock,
|
||||||
#battery,
|
#battery,
|
||||||
#cpu,
|
#cpu,
|
||||||
@@ -110,38 +89,49 @@ button:hover {
|
|||||||
#power-profiles-daemon,
|
#power-profiles-daemon,
|
||||||
#mpd {
|
#mpd {
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
color: @fg;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Window & workspace margins ── */
|
|
||||||
#window,
|
#window,
|
||||||
#workspaces {
|
#workspaces {
|
||||||
margin: 0 4px;
|
margin: 0 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* If workspaces is the leftmost module, omit left margin */
|
||||||
.modules-left > widget:first-child > #workspaces {
|
.modules-left > widget:first-child > #workspaces {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* If workspaces is the rightmost module, omit right margin */
|
||||||
.modules-right > widget:last-child > #workspaces {
|
.modules-right > widget:last-child > #workspaces {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Battery ── */
|
#clock {
|
||||||
|
/* background-color: #64727D;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery {
|
||||||
|
/*background-color: #ffffff;
|
||||||
|
color: #000000;*/
|
||||||
|
}
|
||||||
|
|
||||||
#battery.charging, #battery.plugged {
|
#battery.charging, #battery.plugged {
|
||||||
color: @teal;
|
/*color: #ffffff;
|
||||||
|
background-color: #26A65B;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes blink {
|
@keyframes blink {
|
||||||
to {
|
to {
|
||||||
background-color: @fg-bright;
|
background-color: #ffffff;
|
||||||
color: @bg;
|
color: #000000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Using steps() instead of linear as a timing function to limit cpu usage */
|
||||||
#battery.critical:not(.charging) {
|
#battery.critical:not(.charging) {
|
||||||
background-color: @urgent;
|
background-color: #f53c3c;
|
||||||
color: @fg-max;
|
color: #ffffff;
|
||||||
animation-name: blink;
|
animation-name: blink;
|
||||||
animation-duration: 0.5s;
|
animation-duration: 0.5s;
|
||||||
animation-timing-function: steps(12);
|
animation-timing-function: steps(12);
|
||||||
@@ -149,191 +139,146 @@ button:hover {
|
|||||||
animation-direction: alternate;
|
animation-direction: alternate;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Power profiles ── */
|
|
||||||
#power-profiles-daemon {
|
#power-profiles-daemon {
|
||||||
padding-right: 15px;
|
padding-right: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#power-profiles-daemon.performance {
|
#power-profiles-daemon.performance {
|
||||||
background-color: @urgent;
|
background-color: #f53c3c;
|
||||||
color: @fg-max;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
#power-profiles-daemon.balanced {
|
#power-profiles-daemon.balanced {
|
||||||
background-color: @blue;
|
background-color: #2980b9;
|
||||||
color: @fg-max;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
#power-profiles-daemon.power-saver {
|
#power-profiles-daemon.power-saver {
|
||||||
background-color: @success;
|
background-color: #2ecc71;
|
||||||
color: @bg;
|
color: #000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Scratchpad ── */
|
label:focus {
|
||||||
#scratchpad {
|
background-color: #000000;
|
||||||
background-color: transparent;
|
|
||||||
color: @fg-dim;
|
|
||||||
opacity: 0.5;
|
|
||||||
padding: 0 6px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#scratchpad:hover {
|
#cpu {
|
||||||
opacity: 0.8;
|
background-color: #2ecc71;
|
||||||
|
color: #000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
#scratchpad.empty {
|
#memory {
|
||||||
background-color: transparent;
|
background-color: #9b59b6;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Clock ── */
|
#disk {
|
||||||
#clock {
|
background-color: #964B00;
|
||||||
/* background-color: @highlight; */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Battery ── */
|
#backlight {
|
||||||
#battery {
|
background-color: #90b1b1;
|
||||||
/* background-color: @fg-max;
|
}
|
||||||
color: @bg; */
|
|
||||||
|
#network {
|
||||||
|
/*background-color: #2980b9;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
#network.disconnected {
|
||||||
|
/*background-color: #f53c3c;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
#pulseaudio {
|
||||||
|
/*background-color: #f1c40f;*/
|
||||||
|
/*color: #000000;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
#pulseaudio.muted {
|
||||||
|
/*background-color: #90b1b1;*/
|
||||||
|
/*color: #2a5c45;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
#wireplumber {
|
||||||
|
background-color: #fff0f5;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wireplumber.muted {
|
||||||
|
background-color: #f53c3c;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-media {
|
||||||
|
background-color: #66cc99;
|
||||||
|
color: #2a5c45;
|
||||||
|
min-width: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-media.custom-spotify {
|
||||||
|
background-color: #66cc99;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-media.custom-vlc {
|
||||||
|
background-color: #ffa000;
|
||||||
|
}
|
||||||
|
|
||||||
|
#temperature {
|
||||||
|
background-color: #f0932b;
|
||||||
|
}
|
||||||
|
|
||||||
|
#temperature.critical {
|
||||||
|
background-color: #eb4d4b;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tray {
|
||||||
|
/*background-color: #2980b9;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Tray ── */
|
|
||||||
#tray > .passive {
|
#tray > .passive {
|
||||||
-gtk-icon-effect: dim;
|
-gtk-icon-effect: dim;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tray > .needs-attention {
|
#tray > .needs-attention {
|
||||||
-gtk-icon-effect: highlight;
|
-gtk-icon-effect: highlight;
|
||||||
background-color: @urgent;
|
background-color: #eb4d4b;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Pulseaudio ── */
|
|
||||||
#pulseaudio:hover {
|
|
||||||
/* hover style optional */
|
|
||||||
}
|
|
||||||
|
|
||||||
#pulseaudio.muted {
|
|
||||||
color: @fg-dim;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ── Idle inhibitor ── */
|
|
||||||
#idle_inhibitor {
|
#idle_inhibitor {
|
||||||
background-color: @bg-dark;
|
background-color: #2d3436;
|
||||||
}
|
}
|
||||||
|
|
||||||
#idle_inhibitor.activated {
|
#idle_inhibitor.activated {
|
||||||
background-color: @fg-bright;
|
background-color: #ecf0f1;
|
||||||
color: @bg-dark;
|
color: #2d3436;
|
||||||
}
|
|
||||||
|
|
||||||
label:focus {
|
|
||||||
background-color: @bg;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ── Legacy module styles (if ever enabled) ── */
|
|
||||||
#cpu {
|
|
||||||
background-color: @success;
|
|
||||||
color: @bg;
|
|
||||||
}
|
|
||||||
|
|
||||||
#memory {
|
|
||||||
background-color: @magenta;
|
|
||||||
}
|
|
||||||
|
|
||||||
#disk {
|
|
||||||
background-color: @warning;
|
|
||||||
}
|
|
||||||
|
|
||||||
#backlight {
|
|
||||||
background-color: @bg-light;
|
|
||||||
}
|
|
||||||
|
|
||||||
#network.disconnected {
|
|
||||||
background-color: @urgent;
|
|
||||||
}
|
|
||||||
|
|
||||||
#wireplumber {
|
|
||||||
background-color: @fg-max;
|
|
||||||
color: @bg;
|
|
||||||
}
|
|
||||||
|
|
||||||
#wireplumber.muted {
|
|
||||||
background-color: @urgent;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-media {
|
|
||||||
background-color: @cyan;
|
|
||||||
color: @bg-dark;
|
|
||||||
min-width: 100px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-media.custom-spotify {
|
|
||||||
background-color: @cyan;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-media.custom-vlc {
|
|
||||||
background-color: @warning;
|
|
||||||
}
|
|
||||||
|
|
||||||
#temperature {
|
|
||||||
background-color: @warning;
|
|
||||||
}
|
|
||||||
|
|
||||||
#temperature.critical {
|
|
||||||
background-color: @urgent;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#mpd {
|
#mpd {
|
||||||
background-color: @cyan;
|
background-color: #66cc99;
|
||||||
color: @bg-dark;
|
color: #2a5c45;
|
||||||
}
|
}
|
||||||
|
|
||||||
#mpd.disconnected {
|
#mpd.disconnected {
|
||||||
background-color: @urgent;
|
background-color: #f53c3c;
|
||||||
}
|
}
|
||||||
|
|
||||||
#mpd.stopped {
|
#mpd.stopped {
|
||||||
background-color: @bg-light;
|
background-color: #90b1b1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#mpd.paused {
|
#mpd.paused {
|
||||||
background-color: @accent;
|
background-color: #51a37a;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Privacy items ── */
|
|
||||||
#privacy {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#privacy-item {
|
|
||||||
padding: 0 5px;
|
|
||||||
color: @fg-max;
|
|
||||||
}
|
|
||||||
|
|
||||||
#privacy-item.screenshare {
|
|
||||||
background-color: @orange;
|
|
||||||
}
|
|
||||||
|
|
||||||
#privacy-item.audio-in {
|
|
||||||
background-color: @success;
|
|
||||||
}
|
|
||||||
|
|
||||||
#privacy-item.audio-out {
|
|
||||||
background-color: @blue;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ── Language & keyboard ── */
|
|
||||||
#language {
|
#language {
|
||||||
background: @teal;
|
background: #00b093;
|
||||||
color: @bg;
|
color: #740864;
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
min-width: 16px;
|
min-width: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#keyboard-state {
|
#keyboard-state {
|
||||||
background: @teal;
|
background: #97e1ad;
|
||||||
color: @bg;
|
color: #000000;
|
||||||
padding: 0;
|
padding: 0 0px;
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
min-width: 16px;
|
min-width: 16px;
|
||||||
}
|
}
|
||||||
@@ -343,5 +288,34 @@ label:focus {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#keyboard-state > label.locked {
|
#keyboard-state > label.locked {
|
||||||
background: @bg-dark;
|
background: rgba(0, 0, 0, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#scratchpad {
|
||||||
|
background: rgba(0, 0, 0, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
#scratchpad.empty {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
#privacy {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#privacy-item {
|
||||||
|
padding: 0 5px;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
#privacy-item.screenshare {
|
||||||
|
background-color: #cf5700;
|
||||||
|
}
|
||||||
|
|
||||||
|
#privacy-item.audio-in {
|
||||||
|
background-color: #1ca000;
|
||||||
|
}
|
||||||
|
|
||||||
|
#privacy-item.audio-out {
|
||||||
|
background-color: #0069d4;
|
||||||
|
}
|
||||||
+9
-53
@@ -1,59 +1,15 @@
|
|||||||
# swaylock configuration -- VANILLA swaylock (packaged v1.8.6).
|
|
||||||
#
|
|
||||||
# swaylock reads $XDG_CONFIG_HOME/swaylock/config automatically, so this file
|
|
||||||
# applies to every invocation, including hypridle's before_sleep_cmd and the
|
|
||||||
# $mod+m keybind.
|
|
||||||
#
|
|
||||||
# IMPORTANT: the previous version of this file used swaylock-EFFECTS options
|
|
||||||
# (clock, timestr, datestr, fade-in, effect-blur, effect-scale and a bare
|
|
||||||
# `indicator`). The packaged swaylock is vanilla, and each of those lines logs
|
|
||||||
# swaylock: unrecognized option '--effect-blur=20x2'
|
|
||||||
# + a full usage dump, then ignores it (verified against v1.8.6). So the file
|
|
||||||
# was never fatal -- but none of its styling ever applied either, which is why
|
|
||||||
# the lock screen always looked like a bare `swaylock -c 000000`. Keep only
|
|
||||||
# names that appear in `swaylock --help` (check: every key here matches one).
|
|
||||||
#
|
|
||||||
# Want the blurred background + clock lock screen? Use hyprlock (installed and
|
|
||||||
# configured at ~/.config/hypr/hyprlock.conf) -- that is what hypridle's
|
|
||||||
# lock_cmd / 300s listener already call. Or install swaylock-effects from the
|
|
||||||
# AUR and re-add the effect-* keys.
|
|
||||||
|
|
||||||
ignore-empty-password
|
ignore-empty-password
|
||||||
show-failed-attempts
|
|
||||||
indicator-caps-lock
|
|
||||||
|
|
||||||
font=JetBrainsMono Nerd Font Mono
|
clock
|
||||||
font-size=24
|
timestr=%R
|
||||||
|
datestr=%a, %e of %B
|
||||||
|
|
||||||
indicator-radius=110
|
|
||||||
indicator-thickness=12
|
|
||||||
|
|
||||||
color=000000
|
fade-in=0.2
|
||||||
|
|
||||||
inside-color=00000000
|
#screenshots
|
||||||
inside-clear-color=00000000
|
effect-blur=20x2
|
||||||
inside-ver-color=00000000
|
#effect-greyscale
|
||||||
inside-wrong-color=00000000
|
effect-scale=0.3
|
||||||
|
|
||||||
line-color=333333
|
indicator
|
||||||
line-clear-color=CCCCCC
|
|
||||||
line-ver-color=999999
|
|
||||||
line-wrong-color=FFA14C
|
|
||||||
|
|
||||||
ring-color=333333
|
|
||||||
ring-clear-color=CCCCCC
|
|
||||||
ring-ver-color=999999
|
|
||||||
ring-wrong-color=FFA14C
|
|
||||||
|
|
||||||
key-hl-color=CCCCCC
|
|
||||||
bs-hl-color=FFA14C
|
|
||||||
separator-color=222222
|
|
||||||
|
|
||||||
text-color=FFFFFF
|
|
||||||
text-clear-color=CCCCCC
|
|
||||||
text-ver-color=FFFFFF
|
|
||||||
text-wrong-color=FFA14C
|
|
||||||
|
|
||||||
layout-bg-color=00000000
|
|
||||||
layout-border-color=00000000
|
|
||||||
layout-text-color=CCCCCC
|
|
||||||
File renamed without changes.
@@ -1 +0,0 @@
|
|||||||
/usr/lib/systemd/user/swaync.service
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=shikane watchdog - restart shikane if its state machine is stuck
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=/home/work/.config/sway/scripts/shikane-watchdog.sh
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Run shikane watchdog every 2 minutes
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
OnBootSec=2min
|
|
||||||
OnUnitInactiveSec=2min
|
|
||||||
AccuracySec=5s
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=timers.target
|
|
||||||
@@ -1,17 +1,10 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=shikane
|
Description=shikane
|
||||||
PartOf=graphical-session.target
|
|
||||||
After=graphical-session.target
|
|
||||||
Requisite=graphical-session.target
|
|
||||||
# Recover from crashes without giving up permanently
|
|
||||||
StartLimitIntervalSec=60
|
|
||||||
StartLimitBurst=10
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
|
||||||
ExecStart=/usr/bin/shikane
|
ExecStart=/usr/bin/shikane
|
||||||
Restart=on-failure
|
Restart=always
|
||||||
RestartSec=2
|
RestartSec=1
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=sway-session.target
|
WantedBy=default.target
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=sway compositor session
|
|
||||||
Documentation=man:systemd.special(7)
|
|
||||||
BindsTo=graphical-session.target
|
|
||||||
Wants=graphical-session-pre.target
|
|
||||||
After=graphical-session-pre.target
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/home/work/.config/systemd/user/shikane-watchdog.timer
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/dev/null
|
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
set-option -sa terminal-overrides ",xterm*:Tc"
|
set-option -sa terminal-overrides ",xterm*:Tc"
|
||||||
set -g default-terminal "xterm-256color"
|
set -g default-terminal "xterm-256color"
|
||||||
set -g extended-keys on
|
|
||||||
|
|
||||||
bind-key r source-file ~/.config/tmux/tmux.conf \; display "Reloaded!"
|
bind-key r source-file ~/.config/tmux/tmux.conf \; display "Reloaded!"
|
||||||
|
|
||||||
|
|||||||
+36
-22
@@ -2,9 +2,10 @@
|
|||||||
{
|
{
|
||||||
"spacing": 2, // Gaps between modules (4px)
|
"spacing": 2, // Gaps between modules (4px)
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
"hyprland/workspaces",
|
"sway/workspaces",
|
||||||
"hyprland/submap",
|
"sway/mode",
|
||||||
"hyprland/window"
|
"sway/scratchpad",
|
||||||
|
"sway/window"
|
||||||
],
|
],
|
||||||
//"modules-center": [
|
//"modules-center": [
|
||||||
//"sway/window"
|
//"sway/window"
|
||||||
@@ -22,8 +23,9 @@
|
|||||||
"format": "<span style=\"italic\">{}</span>"
|
"format": "<span style=\"italic\">{}</span>"
|
||||||
},
|
},
|
||||||
"sway/scratchpad": {
|
"sway/scratchpad": {
|
||||||
"format": "{count}",
|
"format": "{icon} {count}",
|
||||||
"show-empty": false,
|
"show-empty": false,
|
||||||
|
"format-icons": ["", ""],
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"tooltip-format": "{app}: {title}"
|
"tooltip-format": "{app}: {title}"
|
||||||
},
|
},
|
||||||
@@ -48,53 +50,65 @@
|
|||||||
"warning": 30,
|
"warning": 30,
|
||||||
"critical": 15
|
"critical": 15
|
||||||
},
|
},
|
||||||
"format": "{time} {capacity}%",
|
"format": "{time} {capacity}% {icon}",
|
||||||
"format-full": "{capacity}%",
|
"format-full": "{capacity}% {icon}",
|
||||||
"format-charging": "{capacity}% C",
|
"format-charging": "{capacity}% C",
|
||||||
"format-plugged": "{capacity}% P",
|
"format-plugged": "{capacity}% P",
|
||||||
"format-alt": "{time}",
|
"format-alt": "{time} {icon}",
|
||||||
// "format-good": "", // An empty format will hide the module
|
// "format-good": "", // An empty format will hide the module
|
||||||
// "format-full": "",
|
// "format-full": "",
|
||||||
|
"format-icons": ["", "", "", "", ""]
|
||||||
},
|
},
|
||||||
"battery#bat2": {
|
"battery#bat2": {
|
||||||
"bat": "BAT2"
|
"bat": "BAT2"
|
||||||
},
|
},
|
||||||
"power-profiles-daemon": {
|
"power-profiles-daemon": {
|
||||||
"format": "{profile}",
|
"format": "{icon}",
|
||||||
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
|
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"format-icons": {"default": [""]}
|
"format-icons": {
|
||||||
|
"default": "",
|
||||||
|
"performance": "",
|
||||||
|
"balanced": "",
|
||||||
|
"power-saver": ""
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"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": "{ipaddr}/{cidr}",
|
//"format-ethernet": "{ipaddr}/{cidr} ",
|
||||||
//"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 ⚠",
|
||||||
"format-disconnected": "Disconnected",
|
"format-disconnected": "Disconnected",
|
||||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||||
},
|
},
|
||||||
"pulseaudio": {
|
"pulseaudio": {
|
||||||
// "scroll-step": 1, // %, can be a float
|
// "scroll-step": 1, // %, can be a float
|
||||||
"format": "{volume}% {format_source}",
|
"format": "{volume}% {icon} {format_source}",
|
||||||
"format-bluetooth": "{volume}% {format_source}",
|
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||||
"format-bluetooth-muted": " {format_source}",
|
"format-bluetooth-muted": " {icon} {format_source}",
|
||||||
"format-muted": " {format_source}",
|
"format-muted": " {format_source}",
|
||||||
"format-source": "{volume}%",
|
"format-source": "{volume}% ",
|
||||||
"format-source-muted": "",
|
"format-source-muted": "",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"default": [""]
|
"headphone": "",
|
||||||
|
"hands-free": "",
|
||||||
|
"headset": "",
|
||||||
|
"phone": "",
|
||||||
|
"portable": "",
|
||||||
|
"car": "",
|
||||||
|
"default": ["", "", ""]
|
||||||
},
|
},
|
||||||
"on-click": "pavucontrol"
|
"on-click": "pavucontrol"
|
||||||
},
|
},
|
||||||
"custom/media": {
|
"custom/media": {
|
||||||
"format": "{text}",
|
"format": "{icon} {text}",
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
"max-length": 40,
|
"max-length": 40,
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"spotify": "",
|
"spotify": "",
|
||||||
"default": ""
|
"default": "🎜"
|
||||||
},
|
},
|
||||||
"escape": true,
|
"escape": true,
|
||||||
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ button:hover {
|
|||||||
|
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
padding: 0 4px;
|
padding: 0 4px;
|
||||||
background-color: transparent;
|
/*background-color: transparent;*/
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -57,25 +57,15 @@ button:hover {
|
|||||||
background: rgba(0, 0, 0, 0.2);
|
background: rgba(0, 0, 0, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.active {
|
#workspaces button.focused {
|
||||||
background-color: #eb4d4b;
|
background-color: #64727D;
|
||||||
box-shadow: inset 0 -3px #ffffff;
|
/*box-shadow: inset 0 -3px #ffffff;*/
|
||||||
color: #ffffff;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.urgent {
|
#workspaces button.urgent {
|
||||||
background-color: #eb4d4b;
|
background-color: #eb4d4b;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.visible {
|
|
||||||
background-color: #64727D;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.empty {
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
#mode {
|
#mode {
|
||||||
background-color: #64727D;
|
background-color: #64727D;
|
||||||
box-shadow: inset 0 -3px #ffffff;
|
box-shadow: inset 0 -3px #ffffff;
|
||||||
@@ -103,17 +93,17 @@ button:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#window,
|
#window,
|
||||||
#workspaces-hyprland {
|
#workspaces {
|
||||||
margin: 0 4px;
|
margin: 0 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If workspaces is the leftmost module, omit left margin */
|
/* If workspaces is the leftmost module, omit left margin */
|
||||||
.modules-left > widget:first-child > #workspaces-hyprland {
|
.modules-left > widget:first-child > #workspaces {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If workspaces is the rightmost module, omit right margin */
|
/* If workspaces is the rightmost module, omit right margin */
|
||||||
.modules-right > widget:last-child > #workspaces-hyprland {
|
.modules-right > widget:last-child > #workspaces {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,22 +0,0 @@
|
|||||||
# Portal implementation pinning for the SWAY session.
|
|
||||||
#
|
|
||||||
# Without this file xdg-desktop-portal fell back to the deprecated `UseIn` key
|
|
||||||
# and picked hyprland.portal at random ("Choosing hyprland.portal ... via the
|
|
||||||
# deprecated UseIn key"), while the sway config also started the wlr portal --
|
|
||||||
# two implementations registered at once.
|
|
||||||
#
|
|
||||||
# Base is Arch's own /usr/share/xdg-desktop-portal/sway-portals.conf.
|
|
||||||
# GlobalShortcuts is added because neither wlr nor gtk implements it, and
|
|
||||||
# easyeffects requests it (journal: "Unknown method CreateSession or interface
|
|
||||||
# org.freedesktop.impl.portal.GlobalShortcuts").
|
|
||||||
|
|
||||||
[preferred]
|
|
||||||
default=gtk
|
|
||||||
org.freedesktop.impl.portal.ScreenCast=wlr
|
|
||||||
org.freedesktop.impl.portal.Screenshot=wlr
|
|
||||||
# gtk's Inhibit uses org.gnome.SessionManager / org.freedesktop.ScreenSaver,
|
|
||||||
# neither of which sway implements; "none" lets apps use Wayland's
|
|
||||||
# idle-inhibit protocol, which sway does implement.
|
|
||||||
org.freedesktop.impl.portal.Inhibit=none
|
|
||||||
org.freedesktop.impl.portal.GlobalShortcuts=hyprland
|
|
||||||
org.freedesktop.impl.portal.InputCapture=hyprland
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
[user]
|
|
||||||
email = [email protected]
|
|
||||||
name = Josue Zamudio
|
|
||||||
[diff]
|
|
||||||
tool = nvimdiff
|
|
||||||
[core]
|
|
||||||
editor = nvim
|
|
||||||
@@ -1,5 +1 @@
|
|||||||
.config/nvim/lazy-lock.json
|
.config/nvim/lazy-lock.json
|
||||||
.config/opencode/node_modules/
|
|
||||||
.config/opencode/package.json
|
|
||||||
.config/opencode/bun.lock
|
|
||||||
.config/opencode/package-lock.json
|
|
||||||
@@ -11,25 +11,3 @@ stow .
|
|||||||
```
|
```
|
||||||
If stow is not installed use ./install.sh from .dotfiles repo
|
If stow is not installed use ./install.sh from .dotfiles repo
|
||||||
|
|
||||||
# User services
|
|
||||||
|
|
||||||
## shikane-watchdog
|
|
||||||
|
|
||||||
`.config/systemd/user/shikane-watchdog.timer` (every 2 min, user unit)
|
|
||||||
runs `.config/sway/scripts/shikane-watchdog.sh`, which restarts the
|
|
||||||
`shikane` user service if its state machine is stuck.
|
|
||||||
|
|
||||||
Why: shikane 1.1.1 deadlocks when a profile application is discarded
|
|
||||||
mid-way (e.g. by a failing DP atomic commit on the external display).
|
|
||||||
The daemon then keeps logging
|
|
||||||
`[WARN shikane::variant] Received invalid input AtomicChangeDone at state Discarded`
|
|
||||||
and `shikanectl reload` no longer recovers it. The watchdog detects
|
|
||||||
that signature in the journal and runs `systemctl --user restart shikane`
|
|
||||||
(re-applies the active profile in ~1s). It never restarts a healthy
|
|
||||||
or legitimately transitioning daemon.
|
|
||||||
|
|
||||||
```console
|
|
||||||
systemctl --user status shikane-watchdog.timer # check it's active
|
|
||||||
systemctl --user disable --now shikane-watchdog.timer # disable
|
|
||||||
```
|
|
||||||
|
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Name=Zoom Workplace
|
||||||
|
Comment=Zoom Video Conference
|
||||||
|
Exec=/usr/bin/zoom %U
|
||||||
|
Icon=Zoom
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Encoding=UTF-8
|
||||||
|
Categories=Network;Application;
|
||||||
|
StartupWMClass=zoom
|
||||||
|
MimeType=x-scheme-handler/zoommtg;x-scheme-handler/zoomus;x-scheme-handler/tel;x-scheme-handler/callto;x-scheme-handler/zoomphonecall;x-scheme-handler/zoomphonesms;x-scheme-handler/zoomcontactcentercall;application/x-zoom
|
||||||
|
X-KDE-Protocols=zoommtg;zoomus;tel;callto;zoomphonecall;zoomphonesms;zoomcontactcentercall;
|
||||||
|
Name[en_US]=Zoom Workplace
|
||||||
@@ -0,0 +1,209 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Categories=Utility;X-SuSE-SyncUtility;
|
||||||
|
Type=Application
|
||||||
|
Exec=nextcloud %u
|
||||||
|
Name=Nextcloud Desktop
|
||||||
|
Comment=Nextcloud desktop synchronization client
|
||||||
|
GenericName=Folder Sync
|
||||||
|
Icon=Nextcloud
|
||||||
|
Keywords=Nextcloud;syncing;file;sharing;
|
||||||
|
X-GNOME-Autostart-Delay=3
|
||||||
|
MimeType=application/vnd.nextcloud;x-scheme-handler/nc;
|
||||||
|
Actions=Quit;
|
||||||
|
|
||||||
|
# Translations
|
||||||
|
Comment[oc]=Nextcloud sincronizacion del client
|
||||||
|
GenericName[oc]=Dorsièr de Sincronizacion
|
||||||
|
Name[oc]=Nextcloud sincronizacion del client
|
||||||
|
Icon[oc]=Nextcloud
|
||||||
|
Comment[ar]=Nextcloud زبون مزامنة مكتبي
|
||||||
|
GenericName[ar]=مزامنة المجلد
|
||||||
|
Name[ar]=Nextcloud زبون مزامنة مكتبي
|
||||||
|
Icon[ar]=Nextcloud
|
||||||
|
Comment[bg_BG]=Nextcloud клиент за десктоп синхронизация
|
||||||
|
GenericName[bg_BG]=Синхронизиране на папката
|
||||||
|
Name[bg_BG]=Nextcloud клиент десктоп синхронизация
|
||||||
|
Icon[bg_BG]=Nextcloud
|
||||||
|
Comment[ca]=Client de sincronització d'escriptori Nextcloud
|
||||||
|
GenericName[ca]=Sincronització de carpetes
|
||||||
|
Name[ca]=Client de sincronització d'escriptori Nextcloud
|
||||||
|
Icon[ca]=Nextcloud
|
||||||
|
Comment[da]=Nextcloud skrivebordsklient til synkronisering
|
||||||
|
GenericName[da]=Mappesynkronisering
|
||||||
|
Name[da]=Nextcloud skrivebordsklient til synk
|
||||||
|
Icon[da]=Nextcloud
|
||||||
|
Comment[de]=Nextcloud Desktop-Synchronisationsclient
|
||||||
|
GenericName[de]=Ordner-Synchronisation
|
||||||
|
Name[de]=Nextcloud Desktop-Synchronisationsclient
|
||||||
|
Icon[de]=Nextcloud
|
||||||
|
Comment[ja_JP]=Nextcloud デスクトップ同期クライアント
|
||||||
|
GenericName[ja_JP]=フォルダー同期
|
||||||
|
Name[ja_JP]=Nextcloud デスクトップ同期クライアント
|
||||||
|
Icon[ja_JP]=Nextcloud
|
||||||
|
Comment[el]=Nextcloud συγχρονισμός επιφάνειας εργασίας πελάτη
|
||||||
|
GenericName[el]=Συγχρονισμός φακέλου
|
||||||
|
Name[el]=Nextcloud συγχρονισμός επιφάνειας εργασίας πελάτη
|
||||||
|
Icon[el]=Nextcloud
|
||||||
|
Comment[en_GB]=Nextcloud desktop synchronisation client
|
||||||
|
GenericName[en_GB]=Folder Sync
|
||||||
|
Name[en_GB]=Nextcloud desktop sync client
|
||||||
|
Icon[en_GB]=Nextcloud
|
||||||
|
Comment[es]=Nextcloud cliente de sincronización de escritorio
|
||||||
|
GenericName[es]=Sincronización de carpeta
|
||||||
|
Name[es]=Nextcloud cliente de sincronización de escritorio
|
||||||
|
Icon[es]=Nextcloud
|
||||||
|
Comment[de_DE]=Nextcloud Desktop-Synchronisationsclient
|
||||||
|
GenericName[de_DE]=Ordner-Synchronisation
|
||||||
|
Name[de_DE]=Nextcloud Desktop-Synchronisationsclient
|
||||||
|
Icon[de_DE]=Nextcloud
|
||||||
|
Comment[eu]=Nextcloud mahaigaineko sinkronizazio bezeroa
|
||||||
|
GenericName[eu]=Karpetaren sinkronizazioa
|
||||||
|
Name[eu]=Nextcloud mahaigaineko sinkronizazio bezeroa
|
||||||
|
Icon[eu]=Nextcloud
|
||||||
|
GenericName[fa]=همسان سازی پوشهها
|
||||||
|
Name[fa]=nextcloud نسخهی همسان سازی مشتری
|
||||||
|
Icon[fa]=Nextcloud
|
||||||
|
Comment[fr]=Synchronisez vos dossiers avec un serveur Nextcloud
|
||||||
|
GenericName[fr]=Synchronisation de dossier
|
||||||
|
Name[fr]=Client de synchronisation Nextcloud
|
||||||
|
Icon[fr]=Nextcloud
|
||||||
|
Comment[gl]=Nextcloud cliente de sincronización para escritorio
|
||||||
|
GenericName[gl]=Sincronizar Cartafol
|
||||||
|
Name[gl]=Nextcloud cliente de sincronización para escritorio
|
||||||
|
Icon[gl]=Nextcloud
|
||||||
|
Comment[he]=Nextcloud לקוח סנכון שולחן עבודה
|
||||||
|
GenericName[he]=סנכון תיקייה
|
||||||
|
Name[he]=Nextcloud לקוח סנכרון שולחן עבודה
|
||||||
|
Icon[he]=Nextcloud
|
||||||
|
Comment[ia]=Nextcloud cliente de synchronisation pro scriptorio
|
||||||
|
GenericName[ia]=Synchronisar Dossier
|
||||||
|
Name[ia]=Nextcloud cliente de synchronisation pro scriptorio
|
||||||
|
Icon[ia]=Nextcloud
|
||||||
|
Comment[id]=Klien sinkronisasi desktop Nextcloud
|
||||||
|
GenericName[id]=Folder Sync
|
||||||
|
Name[id]=Klien sync desktop Nextcloud
|
||||||
|
Icon[id]=Nextcloud
|
||||||
|
Comment[is]=Nextcloud skjáborðsforrit samstillingar
|
||||||
|
GenericName[is]=Samstilling möppu
|
||||||
|
Name[is]=Nextcloud skjáborðsforrit samstillingar
|
||||||
|
Icon[is]=Nextcloud
|
||||||
|
Comment[it]=Client di sincronizzazione del desktop di Nextcloud
|
||||||
|
GenericName[it]=Sincronizzazione cartella
|
||||||
|
Name[it]=Client di sincronizzazione del desktop di Nextcloud
|
||||||
|
Icon[it]=Nextcloud
|
||||||
|
Comment[ko]=Nextcloud 데스크톱 동기화 클라이언트
|
||||||
|
GenericName[ko]=폴더 동기화
|
||||||
|
Name[ko]=Nextcloud 데스크톱 동기화 클라이언트
|
||||||
|
Icon[ko]=Nextcloud
|
||||||
|
Comment[hu_HU]=Nextcloud asztali szinkronizációs kliens
|
||||||
|
GenericName[hu_HU]=Könyvtár szinkronizálás
|
||||||
|
Name[hu_HU]=Nextcloud asztali szinkr. kliens
|
||||||
|
Icon[hu_HU]=Nextcloud
|
||||||
|
Comment[af_ZA]=Nextcloud werkskermsinchroniseerkliënt
|
||||||
|
GenericName[af_ZA]=Vouersinchronisering
|
||||||
|
Name[af_ZA]=Nextcloud werkskermsinchroniseerkliënt
|
||||||
|
Icon[af_ZA]=Nextcloud
|
||||||
|
Comment[nl]=Nextcloud desktop synchronisatie client
|
||||||
|
GenericName[nl]=Mappen sync
|
||||||
|
Name[nl]=Nextcloud desktop sync client
|
||||||
|
Icon[nl]=Nextcloud
|
||||||
|
Comment[et_EE]=Nextcloud sünkroonimise klient töölauale
|
||||||
|
GenericName[et_EE]=Kaustade sünkroonimine
|
||||||
|
Name[et_EE]=Nextcloud sünkroonimise klient töölauale
|
||||||
|
Icon[et_EE]=Nextcloud
|
||||||
|
Comment[pl]=Nextcloud klient synchronizacji dla komputerów stacjonarnych
|
||||||
|
GenericName[pl]=Folder Synchronizacji
|
||||||
|
Name[pl]=Nextcloud klient synchronizacji dla komputerów stacjonarnych
|
||||||
|
Icon[pl]=Nextcloud
|
||||||
|
Comment[pt_BR]=Nextcloud cliente de sincronização do computador
|
||||||
|
GenericName[pt_BR]=Sincronização de Pasta
|
||||||
|
Name[pt_BR]=Nextcloud cliente de sincronização de desktop
|
||||||
|
Icon[pt_BR]=Nextcloud
|
||||||
|
Comment[cs_CZ]=Nextcloud počítačový synchronizační klient
|
||||||
|
GenericName[cs_CZ]=Synchronizace adresáře
|
||||||
|
Name[cs_CZ]=Nextcloud počítačový synchronizační klient
|
||||||
|
Icon[cs_CZ]=Nextcloud
|
||||||
|
Comment[ru]=Настольный клиент синхронизации Nextcloud
|
||||||
|
GenericName[ru]=Синхронизация каталогов
|
||||||
|
Name[ru]=Настольный клиент синхронизации Nextcloud
|
||||||
|
Icon[ru]=Nextcloud
|
||||||
|
Comment[sl]=Nextcloud ‒ Program za usklajevanje datotek z namizjem
|
||||||
|
GenericName[sl]=Usklajevanje map
|
||||||
|
Name[sl]=Nextcloud ‒ Program za usklajevanje datotek z namizjem
|
||||||
|
Icon[sl]=Nextcloud
|
||||||
|
Comment[sq]=Klient njëkohësimesh Nextcloud për desktop
|
||||||
|
GenericName[sq]=Njëkohësim Dosjesh
|
||||||
|
Name[sq]=Klient njëkohësimesh Nextcloud për desktop
|
||||||
|
Icon[sq]=Nextcloud
|
||||||
|
Comment[fi_FI]=Nextcloud työpöytäsynkronointisovellus
|
||||||
|
GenericName[fi_FI]=Kansion synkronointi
|
||||||
|
Name[fi_FI]=Nextcloud työpöytäsynkronointisovellus
|
||||||
|
Icon[fi_FI]=Nextcloud
|
||||||
|
Comment[sv]=Nextcloud desktop synkroniseringsklient
|
||||||
|
GenericName[sv]=Mappsynk
|
||||||
|
Name[sv]=Nextcloud desktop synk-klient
|
||||||
|
Icon[sv]=Nextcloud
|
||||||
|
Comment[tr]=Nextcloud masaüstü eşitleme istemcisi
|
||||||
|
GenericName[tr]=Dosya Eşitleme
|
||||||
|
Name[tr]=Nextcloud masaüstü eşitleme istemcisi
|
||||||
|
Icon[tr]=Nextcloud
|
||||||
|
Comment[uk]=Настільний клієнт синхронізації Nextcloud
|
||||||
|
GenericName[uk]=Синхронізація теки
|
||||||
|
Name[uk]=Настільний клієнт синхронізації Nextcloud
|
||||||
|
Icon[uk]=Nextcloud
|
||||||
|
Comment[ro]=Nextcloud client de sincronizare pe desktop
|
||||||
|
GenericName[ro]=Sincronizare director
|
||||||
|
Name[ro]=Nextcloud client de sincronizare pe desktop
|
||||||
|
Icon[ro]=Nextcloud
|
||||||
|
Comment[zh_CN]=Nextcloud 桌面同步客户端
|
||||||
|
GenericName[zh_CN]=文件夹同步
|
||||||
|
Name[zh_CN]=Nextcloud 桌面同步客户端
|
||||||
|
Icon[zh_CN]=Nextcloud
|
||||||
|
Comment[zh_HK]=桌面版同步客户端
|
||||||
|
Comment[zh_TW]=Nextcloud 桌面同步客戶端
|
||||||
|
GenericName[zh_TW]=資料夾同步
|
||||||
|
Name[zh_TW]=Nextcloud 桌面同步客戶端
|
||||||
|
Icon[zh_TW]=Nextcloud
|
||||||
|
Comment[es_AR]=Cliente de sincronización para escritorio Nextcloud
|
||||||
|
GenericName[es_AR]=Sincronización de directorio
|
||||||
|
Name[es_AR]=Cliente de sincronización para escritorio Nextcloud
|
||||||
|
Icon[es_AR]=Nextcloud
|
||||||
|
Comment[lt_LT]=Nextcloud darbalaukio sinchronizavimo programa
|
||||||
|
GenericName[lt_LT]=Katalogo sinchnorizacija
|
||||||
|
Name[lt_LT]=Nextcloud darbalaukio programa
|
||||||
|
Icon[lt_LT]=Nextcloud
|
||||||
|
Comment[th_TH]=Nextcloud ไคลเอนต์ประสานข้อมูลเดสก์ท็อป
|
||||||
|
GenericName[th_TH]=ประสานข้อมูลโฟลเดอร์
|
||||||
|
Name[th_TH]= Nextcloud ไคลเอนต์ประสานข้อมูลเดสก์ท็อป
|
||||||
|
Icon[th_TH]=Nextcloud
|
||||||
|
Comment[es_MX]=Cliente de escritorio para sincronziación de Nextcloud
|
||||||
|
GenericName[es_MX]=Sincronización de Carpetas
|
||||||
|
Name[es_MX]=Cliente de escritorio para sincronziación de Nextcloud
|
||||||
|
Icon[es_MX]=Nextcloud
|
||||||
|
Comment[nb_NO]=Nextcloud skrivebordssynkroniseringsklient
|
||||||
|
GenericName[nb_NO]=Mappesynkronisering
|
||||||
|
Name[nb_NO]=Nextcloud skrivebordssynkroniseringsklient
|
||||||
|
Icon[nb_NO]=Nextcloud
|
||||||
|
Comment[nn_NO]=Nextcloud klient for å synkronisera frå skrivebord
|
||||||
|
GenericName[nn_NO]=Mappe synkronisering
|
||||||
|
Name[nn_NO]=Nextcloud klient for å synkronisera frå skrivebord
|
||||||
|
Icon[nn_NO]=Nextcloud
|
||||||
|
Comment[pt_PT]=Nextcloud - Cliente de Sincronização para PC
|
||||||
|
GenericName[pt_PT]=Sincronizar Pasta
|
||||||
|
Name[pt_PT]=Nextcloud - Cliente de Sincronização para PC
|
||||||
|
Icon[pt_PT]=Nextcloud
|
||||||
|
Icon[km]=Nextcloud
|
||||||
|
Comment[lb]=Nextcloud Desktop Synchronisatioun Client
|
||||||
|
GenericName[lb]=Dossier Dync
|
||||||
|
Name[lb]=Nextcloud Desktop Sync Client
|
||||||
|
Icon[lb]=Nextcloud
|
||||||
|
Implements=org.freedesktop.CloudProviders
|
||||||
|
|
||||||
|
[org.freedesktop.CloudProviders]
|
||||||
|
BusName=com.nextcloudgmbh.Nextcloud
|
||||||
|
ObjectPath=/com/nextcloudgmbh/Nextcloud
|
||||||
|
|
||||||
|
[Desktop Action Quit]
|
||||||
|
Exec=nextcloud --quit
|
||||||
|
Name=Quit Nextcloud
|
||||||
|
Icon=nextcloud
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
inode/directory=thunar.desktop
|
||||||
|
x-directory/normal=thunar.desktop
|
||||||
@@ -3,9 +3,8 @@ Name=Discord
|
|||||||
StartupWMClass=discord
|
StartupWMClass=discord
|
||||||
Comment=All-in-one voice and text chat for gamers that's free, secure, and works on both your desktop and phone.
|
Comment=All-in-one voice and text chat for gamers that's free, secure, and works on both your desktop and phone.
|
||||||
GenericName=Internet Messenger
|
GenericName=Internet Messenger
|
||||||
Exec=/usr/bin/flatpak run --socket=wayland com.discordapp.Discord --enable-features=UseOzonePlatform --ozone-platform=wayland
|
Exec=/usr/lib/discord/Discord --enable-features=UseOzonePlatform --ozone-platform=wayland
|
||||||
#Exec=/usr/lib/discord/Discord --enable-features=UseOzonePlatform --ozone-platform=wayland
|
#Exec=/usr/lib/discord/Discord
|
||||||
#Exec=/usr/lib/discord/Discord
|
|
||||||
Icon=discord
|
Icon=discord
|
||||||
Type=Application
|
Type=Application
|
||||||
Categories=Network;InstantMessaging;
|
Categories=Network;InstantMessaging;
|
||||||
|
|||||||
@@ -1,95 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
# clipboard-check.sh -- diagnose "copy did nothing" on sway/Wayland.
|
|
||||||
# READ-ONLY: lists selection metadata and reads text; never writes the clipboard,
|
|
||||||
# never runs wl-copy, never restarts anything.
|
|
||||||
# ./clipboard-check.sh -> status (what is configured right now)
|
|
||||||
# ./clipboard-check.sh test -> 20s window: copy in Firefox, then tell me who failed
|
|
||||||
set -uo pipefail
|
|
||||||
|
|
||||||
own_sig() { # identify the owner from its advertised type list
|
|
||||||
local t
|
|
||||||
t=$(wl-paste -l 2>&1); [[ -z "$t" ]] && { echo "(clipboard empty / no owner)"; return; }
|
|
||||||
case "$t" in
|
|
||||||
*x-moz-url-priv*|*text/html*) echo "Firefox (has moz/html types)" ;;
|
|
||||||
*glfw+clipboard*) echo "kitty/GLFW terminal (OSC 52 or copy_on_select)" ;;
|
|
||||||
*image/png*) echo "image (screenshot? wl-copy -b)" ;;
|
|
||||||
*) echo "some other client: $(echo "$t" | tr '\n' ' ')" ;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
if [[ "${1:-status}" == test ]]; then
|
|
||||||
echo "BEFORE owner: $(own_sig)"
|
|
||||||
echo
|
|
||||||
echo " >> Copy some text in Firefox NOW (Ctrl+C), then press Enter."
|
|
||||||
read -r _
|
|
||||||
echo "AFTER owner: $(own_sig)"
|
|
||||||
echo
|
|
||||||
if wl-paste -l >/dev/null 2>&1; then
|
|
||||||
n=$(wl-paste 2>/dev/null | wc -c)
|
|
||||||
echo " text available: $n byte(s)"
|
|
||||||
[[ $n -gt 0 ]] && echo " preview: $(wl-paste 2>/dev/null | head -c 70 | tr '\n' ' ')"
|
|
||||||
echo
|
|
||||||
echo " VERDICT: the compositor HAS the copy -> the loss is on the paste side"
|
|
||||||
echo " (stale PRIMARY for middle-click, or a clipboard-history keybind"
|
|
||||||
echo " that no longer exists since clipman was removed)."
|
|
||||||
else
|
|
||||||
echo " VERDICT: the compositor has NOTHING -> Firefox never took ownership."
|
|
||||||
echo " Usual causes, in order of likelihood:"
|
|
||||||
echo " 1) Firefox lacked keyboard focus at Ctrl+C -- Wayland only"
|
|
||||||
echo " accepts set_selection from the focused surface (a PiP window,"
|
|
||||||
echo " a toast, or a workspace switch stealing focus is enough)."
|
|
||||||
echo " 2) The page's own JS intercepted the copy event (sites that"
|
|
||||||
echo " block copying). dom.event.clipboardevents.enabled=true by"
|
|
||||||
echo " default, so page scripts may do this."
|
|
||||||
echo " 3) The offer got cancelled mid-transfer ('selection cancelled'"
|
|
||||||
echo " in sway's log) -- see: journalctl -b | grep 'selection cancelled'"
|
|
||||||
fi
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "== components =="
|
|
||||||
printf ' %-22s %s\n' "sway" "$(swaymsg --version 2>&1 | head -1)"
|
|
||||||
printf ' %-22s %s\n' "wl-clipboard" "$(wl-copy --version 2>&1 | head -1)"
|
|
||||||
printf ' %-22s %s\n' "firefox" "$(firefox --version 2>&1 | head -1) [$(pacman -Q firefox 2>/dev/null || echo '?')]"
|
|
||||||
printf ' %-22s %s\n' "cliphist" "$(command -v cliphist || echo 'NOT INSTALLED (history keybinds are dead)')"
|
|
||||||
echo
|
|
||||||
echo "== clipboard managers / watchers (a watcher that dies mid-copy LOSES the copy) =="
|
|
||||||
m=$(pgrep -af 'wl-paste|cliphist|clipman|copyq|klipper|parcellite|flameshot' 2>/dev/null || true)
|
|
||||||
[[ -n "$m" ]] && echo "$m" | sed 's/^/ RUNNING /' || echo " none running <- no history is being saved, but also nothing can steal a copy"
|
|
||||||
echo
|
|
||||||
echo "== XWayland mixing (X11<->Wayland clipboard skew is a classic cause) =="
|
|
||||||
if pgrep -x Xwayland >/dev/null 2>&1; then
|
|
||||||
echo " Xwayland IS running -> any X11 app can own the selection out-of-band:"
|
|
||||||
pgrep -a Xwayland | sed 's/^/ /'
|
|
||||||
else
|
|
||||||
echo " no Xwayland -> pure Wayland, that whole failure class is ruled out"
|
|
||||||
fi
|
|
||||||
echo
|
|
||||||
echo "== window shells (a copy from an X11-surfaced Firefox behaves differently) =="
|
|
||||||
swaymsg -t get_tree 2>/dev/null | python3 -c "
|
|
||||||
import json,sys
|
|
||||||
def walk(n):
|
|
||||||
yield n
|
|
||||||
for k in ('nodes','floating_nodes'):
|
|
||||||
for c in n.get(k) or []: yield from walk(c)
|
|
||||||
for n in walk(json.load(sys.stdin)):
|
|
||||||
if n.get('pid') and n.get('type') in ('con','floating_con'):
|
|
||||||
shell = 'x11' if n.get('window') is not None else 'wayland'
|
|
||||||
wp = n.get('window_properties') or {}
|
|
||||||
ident = str(n.get('app_id') or wp.get('class'))[:24]
|
|
||||||
print(' %-8s %-26s %s' % (shell, ident, (n.get('name') or '')[:38]))
|
|
||||||
" 2>&1 | sort -u | head -12
|
|
||||||
echo
|
|
||||||
echo "== current selections (read-only) =="
|
|
||||||
printf ' CLIPBOARD owner : %s\n' "$(own_sig)"
|
|
||||||
printf ' PRIMARY types : %s\n' "$(wl-paste -p -l 2>&1 | tr '\n' ' ' | cut -c1-100)"
|
|
||||||
echo
|
|
||||||
echo "== Firefox clipboard prefs (blank = default) =="
|
|
||||||
P=$(ls ~/.mozilla/firefox/*/prefs.js 2>/dev/null | head -1)
|
|
||||||
grep -hE 'dom\.event\.clipboardevents|middlepaste|widget\.wayland' "$P" 2>/dev/null | sed 's/^/ /' || true
|
|
||||||
grep -hE 'user_pref' "$(dirname "$P")/user.js" 2>/dev/null | grep -iE 'clipboard|wayland' | sed 's/^/ user.js: /' || true
|
|
||||||
echo
|
|
||||||
echo "== past cancellations sway logged (each one = a copy that vanished) =="
|
|
||||||
journalctl -b 0 --no-pager 2>/dev/null | grep -ic 'selection cancelled' | sed 's/^/ '\''selection cancelled'\'' events this boot: /'
|
|
||||||
echo
|
|
||||||
echo "Run '$0 test' to A/B an actual Firefox copy."
|
|
||||||
Reference in new issue
Block a user