mirror of
https://github.com/SeriousBug/dotfiles
synced 2025-10-26 01:57:08 -05:00
Compare commits
10 commits
b1b5d9cd1b
...
3a78f76556
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3a78f76556 | ||
|
|
f3516673d2 | ||
|
|
522b9d30f4 | ||
|
|
efa091969b | ||
|
|
a6077cac12 | ||
|
|
5a7ff17743 | ||
|
|
f73870b141 | ||
|
|
7ce186b21d | ||
|
|
80ce410fa6 | ||
|
|
643f5e0179 |
|
|
@ -1,28 +0,0 @@
|
||||||
[Desktop Action new-empty-window]
|
|
||||||
Exec=/opt/visual-studio-code/code --no-sandbox --new-window %F
|
|
||||||
Icon=visual-studio-code
|
|
||||||
Name=New Empty Window
|
|
||||||
|
|
||||||
[Desktop Entry]
|
|
||||||
Actions=new-empty-window;
|
|
||||||
Categories=Utility;TextEditor;Development;IDE;
|
|
||||||
Comment[en_US]=Code Editing. Refined.
|
|
||||||
Comment=Code Editing. Refined.
|
|
||||||
Exec=env DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 /opt/visual-studio-code/code --no-sandbox --enable-features=UseOzonePlatform --ozone-platform=wayland --unity-launch %F
|
|
||||||
GenericName[en_US]=Text Editor
|
|
||||||
GenericName=Text Editor
|
|
||||||
Icon=visual-studio-code
|
|
||||||
Keywords=vscode;
|
|
||||||
MimeType=text/plain;inode/directory;application/x-visual-studio-code-workspace;
|
|
||||||
Name[en_US]=Visual Studio Code
|
|
||||||
Name=Visual Studio Code
|
|
||||||
Path=
|
|
||||||
StartupNotify=false
|
|
||||||
StartupWMClass=Code
|
|
||||||
Terminal=false
|
|
||||||
TerminalOptions=
|
|
||||||
Type=Application
|
|
||||||
X-DBUS-ServiceName=
|
|
||||||
X-DBUS-StartupType=
|
|
||||||
X-KDE-SubstituteUID=false
|
|
||||||
X-KDE-Username=
|
|
||||||
|
|
@ -118,23 +118,23 @@ group_processes = true
|
||||||
[[row]]
|
[[row]]
|
||||||
ratio=70
|
ratio=70
|
||||||
[[row.child]]
|
[[row.child]]
|
||||||
ratio=8
|
ratio=4
|
||||||
[[row.child.child]]
|
[[row.child.child]]
|
||||||
type="mem"
|
type="mem"
|
||||||
ratio=50
|
ratio=13
|
||||||
[[row.child.child]]
|
[[row.child.child]]
|
||||||
type="net"
|
type="net"
|
||||||
ratio=50
|
ratio=11
|
||||||
[[row.child]]
|
[[row.child]]
|
||||||
ratio=6
|
ratio=3
|
||||||
[[row.child.child]]
|
[[row.child.child]]
|
||||||
ratio=30
|
ratio=8
|
||||||
type="temp"
|
type="temp"
|
||||||
[[row.child.child]]
|
[[row.child.child]]
|
||||||
ratio=20
|
ratio=5
|
||||||
type="disk"
|
type="disk"
|
||||||
[[row.child.child]]
|
[[row.child.child]]
|
||||||
ratio=50
|
ratio=11
|
||||||
type="proc"
|
type="proc"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ function _nvm_install --on-event nvm_install
|
||||||
set --query nvm_mirror || set --universal nvm_mirror https://nodejs.org/dist
|
set --query nvm_mirror || set --universal nvm_mirror https://nodejs.org/dist
|
||||||
|
|
||||||
test ! -d $nvm_data && command mkdir -p $nvm_data
|
test ! -d $nvm_data && command mkdir -p $nvm_data
|
||||||
echo "Downloading the Node distribution index..." 2>/dev/null
|
echo "Downloading the Node distribution index for the first time..." 2>/dev/null
|
||||||
_nvm_index_update $nvm_mirror $nvm_data/.index
|
_nvm_index_update $nvm_mirror $nvm_data/.index
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -23,6 +23,6 @@ function _nvm_uninstall --on-event nvm_uninstall
|
||||||
functions --erase (functions --all | string match --entire --regex -- "^_nvm_")
|
functions --erase (functions --all | string match --entire --regex -- "^_nvm_")
|
||||||
end
|
end
|
||||||
|
|
||||||
if status is-interactive && set --query nvm_default_version && ! set --query nvm_current_version
|
status is-interactive &&
|
||||||
|
set --query nvm_default_version && ! set --query nvm_current_version &&
|
||||||
nvm use $nvm_default_version >/dev/null
|
nvm use $nvm_default_version >/dev/null
|
||||||
end
|
|
||||||
|
|
|
||||||
|
|
@ -7,18 +7,10 @@ direnv hook fish | source
|
||||||
# set current desktop, needed for desktop sharing with Wayland
|
# set current desktop, needed for desktop sharing with Wayland
|
||||||
set -gx XDG_CURRENT_DESKTOP sway
|
set -gx XDG_CURRENT_DESKTOP sway
|
||||||
|
|
||||||
# make Qt apps use the theme set by qt5ct
|
|
||||||
set -gx QT_QPA_PLATFORMTHEME qt5ct
|
|
||||||
|
|
||||||
# load desktop files from flatpak
|
# load desktop files from flatpak
|
||||||
set -l xdg_data_home $XDG_DATA_HOME ~/.local/share
|
set -l xdg_data_home $XDG_DATA_HOME ~/.local/share
|
||||||
set -gx --path XDG_DATA_DIRS $xdg_data_home[1]/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
|
set -gx --path XDG_DATA_DIRS $xdg_data_home[1]/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
|
||||||
|
|
||||||
# Unlock login keyring
|
|
||||||
if test -n "$DESKTOP_SESSION"
|
|
||||||
set -x (gnome-keyring-daemon --start | string split "=")
|
|
||||||
end
|
|
||||||
|
|
||||||
for flatpakdir in ~/.local/share/flatpak/exports/bin /var/lib/flatpak/exports/bin
|
for flatpakdir in ~/.local/share/flatpak/exports/bin /var/lib/flatpak/exports/bin
|
||||||
if test -d $flatpakdir
|
if test -d $flatpakdir
|
||||||
contains $flatpakdir $PATH; or set -a PATH $flatpakdir
|
contains $flatpakdir $PATH; or set -a PATH $flatpakdir
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,12 @@
|
||||||
function _nvm_index_update --argument-names mirror index
|
function _nvm_index_update --argument-names mirror index
|
||||||
if not command curl --location --silent $mirror/index.tab >$index.temp
|
command curl --location --silent $mirror/index.tab | command awk -v OFS=\t '
|
||||||
command rm -f $index.temp
|
|
||||||
echo "nvm: Can't update index, host unavailable: \"$mirror\"" >&2
|
|
||||||
return 1
|
|
||||||
end
|
|
||||||
|
|
||||||
command awk -v OFS=\t '
|
|
||||||
/v0.9.12/ { exit } # Unsupported
|
/v0.9.12/ { exit } # Unsupported
|
||||||
NR > 1 {
|
NR > 1 {
|
||||||
print $1 (NR == 2 ? " latest" : $10 != "-" ? " lts/" tolower($10) : "")
|
print $1 (NR == 2 ? " latest" : $10 != "-" ? " lts/" tolower($10) : "")
|
||||||
}
|
}
|
||||||
' $index.temp >$index
|
' >$index.temp 2>/dev/null && command mv $index.temp $index && return
|
||||||
|
|
||||||
command rm -f $index.temp
|
command rm -f $index.temp
|
||||||
|
echo "nvm: Invalid index or unavailable host: \"$mirror\"" >&2
|
||||||
|
return 1
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
function fisher --argument-names cmd --description "A plugin manager for Fish"
|
function fisher --argument-names cmd --description "A plugin manager for Fish"
|
||||||
set --query fisher_path || set --local fisher_path $__fish_config_dir
|
set --query fisher_path || set --local fisher_path $__fish_config_dir
|
||||||
set --local fisher_version 4.3.1
|
set --local fisher_version 4.3.0
|
||||||
set --local fish_plugins $__fish_config_dir/fish_plugins
|
set --local fish_plugins $__fish_config_dir/fish_plugins
|
||||||
|
|
||||||
switch "$cmd"
|
switch "$cmd"
|
||||||
|
|
@ -15,8 +15,6 @@ function fisher --argument-names cmd --description "A plugin manager for Fish"
|
||||||
echo "Options:"
|
echo "Options:"
|
||||||
echo " -v or --version Print version"
|
echo " -v or --version Print version"
|
||||||
echo " -h or --help Print this help message"
|
echo " -h or --help Print this help message"
|
||||||
echo "Variables:"
|
|
||||||
echo " \$fisher_path Plugin installation path. Default: ~/.config/fish"
|
|
||||||
case ls list
|
case ls list
|
||||||
string match --entire --regex -- "$argv[2]" $_fisher_plugins
|
string match --entire --regex -- "$argv[2]" $_fisher_plugins
|
||||||
case install update remove
|
case install update remove
|
||||||
|
|
@ -84,12 +82,11 @@ function fisher --argument-names cmd --description "A plugin manager for Fish"
|
||||||
else
|
else
|
||||||
set temp (command mktemp -d)
|
set temp (command mktemp -d)
|
||||||
set name (string split \@ $plugin) || set name[2] HEAD
|
set name (string split \@ $plugin) || set name[2] HEAD
|
||||||
set url https://api.github.com/repos/\$name[1]/tarball/\$name[2]
|
set url https://codeload.github.com/\$name[1]/tar.gz/\$name[2]
|
||||||
set header 'Accept: application/vnd.github.v3+json'
|
|
||||||
|
|
||||||
echo Fetching (set_color --underline)\$url(set_color normal)
|
echo Fetching (set_color --underline)\$url(set_color normal)
|
||||||
|
|
||||||
if curl --silent -L -H \$header \$url | tar -xzC \$temp -f - 2>/dev/null
|
if curl --silent \$url | tar -xzC \$temp -f - 2>/dev/null
|
||||||
command cp -Rf \$temp/*/* $source
|
command cp -Rf \$temp/*/* $source
|
||||||
else
|
else
|
||||||
echo fisher: Invalid plugin name or host unavailable: \\\"$plugin\\\" >&2
|
echo fisher: Invalid plugin name or host unavailable: \\\"$plugin\\\" >&2
|
||||||
|
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
function la --wraps=ls --wraps=exa --description 'alias la exa'
|
|
||||||
exa $argv;
|
|
||||||
end
|
|
||||||
|
|
@ -9,11 +9,9 @@ function nvm --argument-names cmd v --description "Node version manager"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
set --local their_version $v
|
|
||||||
|
|
||||||
switch "$cmd"
|
switch "$cmd"
|
||||||
case -v --version
|
case -v --version
|
||||||
echo "nvm, version 2.2.7"
|
echo "nvm, version 2.2.5"
|
||||||
case "" -h --help
|
case "" -h --help
|
||||||
echo "Usage: nvm install <version> Download and activate the specified Node version"
|
echo "Usage: nvm install <version> Download and activate the specified Node version"
|
||||||
echo " nvm install Install version from nearest .nvmrc file"
|
echo " nvm install Install version from nearest .nvmrc file"
|
||||||
|
|
@ -37,7 +35,7 @@ function nvm --argument-names cmd v --description "Node version manager"
|
||||||
string match --entire --regex -- (_nvm_version_match $v) <$nvm_data/.index | read v alias
|
string match --entire --regex -- (_nvm_version_match $v) <$nvm_data/.index | read v alias
|
||||||
|
|
||||||
if ! set --query v[1]
|
if ! set --query v[1]
|
||||||
echo "nvm: Invalid version number or alias: \"$their_version\"" >&2
|
echo "nvm: Invalid version number or alias: \"$argv[2..-1]\"" >&2
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -116,7 +114,7 @@ function nvm --argument-names cmd v --description "Node version manager"
|
||||||
_nvm_list | string match --entire --regex -- (_nvm_version_match $v) | read v __
|
_nvm_list | string match --entire --regex -- (_nvm_version_match $v) | read v __
|
||||||
|
|
||||||
if ! set --query v[1]
|
if ! set --query v[1]
|
||||||
echo "nvm: Can't use Node \"$their_version\", version must be installed first" >&2
|
echo "nvm: Node version not installed or invalid: \"$argv[2..-1]\"" >&2
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -137,7 +135,7 @@ function nvm --argument-names cmd v --description "Node version manager"
|
||||||
_nvm_list | string match --entire --regex -- (_nvm_version_match $v) | read v __
|
_nvm_list | string match --entire --regex -- (_nvm_version_match $v) | read v __
|
||||||
|
|
||||||
if ! set -q v[1]
|
if ! set -q v[1]
|
||||||
echo "nvm: Node version not installed or invalid: \"$their_version\"" >&2
|
echo "nvm: Node version not installed or invalid: \"$argv[2..-1]\"" >&2
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
26
sway/config
26
sway/config
|
|
@ -42,22 +42,7 @@ exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DE
|
||||||
exec wlsunset -l 40 -L -83
|
exec wlsunset -l 40 -L -83
|
||||||
|
|
||||||
# Screen sharing selection
|
# Screen sharing selection
|
||||||
#exec bash -c "/usr/lib/xdg-desktop-portal -r & /usr/lib/xdg-desktop-portal-wlr"
|
exec bash -c "/usr/lib/xdg-desktop-portal -r & /usr/lib/xdg-desktop-portal-wlr"
|
||||||
exec_always env WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway /usr/lib/xdg-desktop-portal -r &
|
|
||||||
exec_always /usr/lib/xdg-desktop-portal-wlr -r &
|
|
||||||
|
|
||||||
# policykit (graphical password prompt)
|
|
||||||
exec /usr/bin/lxqt-policykit-agent
|
|
||||||
|
|
||||||
# mic noise supression
|
|
||||||
exec systemctl --user start noisetorch.service
|
|
||||||
# KDE Connect
|
|
||||||
exec systemctl --user start kdeconnectd.service
|
|
||||||
exec kdeconnect-indicator
|
|
||||||
# Bluetooth
|
|
||||||
exec /usr/bin/blueman-applet
|
|
||||||
|
|
||||||
exec nm-applet --indicator
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Example configuration:
|
# Example configuration:
|
||||||
|
|
@ -263,7 +248,7 @@ mode "resize" {
|
||||||
|
|
||||||
# Preset sizes
|
# Preset sizes
|
||||||
bindsym q resize set width 60ppt
|
bindsym q resize set width 60ppt
|
||||||
bindsym e resize set width 25ppt
|
bindsym e resize set width 40ppt
|
||||||
}
|
}
|
||||||
bindsym $mod+r mode "resize"
|
bindsym $mod+r mode "resize"
|
||||||
|
|
||||||
|
|
@ -282,13 +267,6 @@ bar {
|
||||||
|
|
||||||
gaps inner 12
|
gaps inner 12
|
||||||
gaps outer 16
|
gaps outer 16
|
||||||
default_border pixel
|
|
||||||
|
|
||||||
client.focused #F10086 #F10086 #ffffff #F10086 #F10086
|
|
||||||
client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a
|
|
||||||
client.focused_tab_title #333333 #5f676a #ffffff
|
|
||||||
client.unfocused #711A75 #711A75 #ffffff #711A75 #711A75
|
|
||||||
client.urgent #F582A7 #F582A7 #000000 #F582A7 #F582A7
|
|
||||||
|
|
||||||
default_border pixel
|
default_border pixel
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,9 @@ StartLimitIntervalSec=600
|
||||||
StartLimitBurst=5
|
StartLimitBurst=5
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=basic
|
||||||
ExecStart=/usr/lib/kdeconnectd
|
ExecStart=/usr/lib/kdeconnectd
|
||||||
Restart=always
|
Restart=on-failure
|
||||||
RestartSec=5s
|
RestartSec=5s
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Run noisetorch input supressor.
|
Description=Run noisetorch input supressor.
|
||||||
After=pipewire.service
|
After=graphical-session.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue