This commit is contained in:
jay 2023-04-17 01:53:49 +08:00
parent 1b3afa092b
commit 896ca95ce1
6 changed files with 44 additions and 34 deletions

View File

@ -2,8 +2,8 @@
set -x set -x
GO_VERSION="1.20.1" GO_VERSION="1.20.3"
NODE_VERSION="18.14.2" NODE_VERSION="18.15.0"
ARCH="{{ .chezmoi.arch }}" ARCH="{{ .chezmoi.arch }}"
OSTYPE="{{ .chezmoi.os }}" OSTYPE="{{ .chezmoi.os }}"
@ -16,9 +16,9 @@ if [ ! -d "$HOME/apps" ]; then
fi fi
function install_golang { function install_golang {
if command -v go ; then #if command -v go ; then
return 0 # return 0
fi #fi
local tmpDir=$(mktemp -d) local tmpDir=$(mktemp -d)
local url="https://go.dev/dl/go$GO_VERSION.$OSTYPE-$ARCH.tar.gz" local url="https://go.dev/dl/go$GO_VERSION.$OSTYPE-$ARCH.tar.gz"
@ -38,15 +38,20 @@ function install_golang {
mv "$tmpDir/go" "$HOME/apps/go-${GO_VERSION}" mv "$tmpDir/go" "$HOME/apps/go-${GO_VERSION}"
if [ -L "$HOME/apps/go" ]; then
rm -rf `readlink -f "$HOME/apps/go"`
unlink "$HOME/apps/go"
fi
ln -sf "$HOME/apps/go-${GO_VERSION}" "$HOME/apps/go" ln -sf "$HOME/apps/go-${GO_VERSION}" "$HOME/apps/go"
rm -rf "$tmpDir" rm -rf "$tmpDir"
} }
function install_nodejs { function install_nodejs {
if command -v node ; then #if command -v node ; then
return 0 # return 0
fi #fi
local tmpDir=$(mktemp -d) local tmpDir=$(mktemp -d)
local arch="" local arch=""
@ -82,6 +87,11 @@ function install_nodejs {
mv "$dirs" "$HOME/apps/node-v${NODE_VERSION}" mv "$dirs" "$HOME/apps/node-v${NODE_VERSION}"
if [ -L "$HOME/apps/node" ]; then
rm -rf `readlink -f "$HOME/apps/node"`
unlink "$HOME/apps/node"
fi
ln -sf "$HOME/apps/node-v${NODE_VERSION}" "$HOME/apps/node" ln -sf "$HOME/apps/node-v${NODE_VERSION}" "$HOME/apps/node"
rm -rf "$tmpDir" rm -rf "$tmpDir"

View File

@ -46,8 +46,8 @@ window:
# Blank space added around the window in pixels. This padding is scaled # Blank space added around the window in pixels. This padding is scaled
# by DPI and the specified value is always added at both opposing sides. # by DPI and the specified value is always added at both opposing sides.
padding: padding:
x: 1 x: 5
y: 1 y: 5
# Spread additional padding evenly around the terminal content. # Spread additional padding evenly around the terminal content.
#dynamic_padding: false #dynamic_padding: false
@ -152,7 +152,7 @@ font:
#style: Bold Italic #style: Bold Italic
# Point size # Point size
size: 7.0 size: 8.0
# Offset is the extra space around each character. `offset.y` can be thought # Offset is the extra space around each character. `offset.y` can be thought
# of as modifying the line spacing, and `offset.x` as modifying the letter # of as modifying the line spacing, and `offset.x` as modifying the letter

View File

@ -5,6 +5,9 @@ XMODIFIERS=@im=fcitx
GLFW_IM_MODULE=fcitx GLFW_IM_MODULE=fcitx
SDL_IM_MODULE=fcitx SDL_IM_MODULE=fcitx
MOZ_ENABLE_WAYLAND=1 MOZ_ENABLE_WAYLAND=1
#XDG_CURRENT_DESKTOP=sway
#XDG_SESSION_DESKTOP=sway
RTC_USE_PIPEWIRE=true RTC_USE_PIPEWIRE=true
GDK_BACKEND=wayland,x11
QT_QPA_PLATFORM="wayland;xcb"
CLUTTER_BACKEND=wayland
SDL_VIDEODRIVER=wayland

View File

@ -1,3 +1,4 @@
" vim: set ft=vim:
"***************************************************************************** "*****************************************************************************
""" Vim-Plug core """ Vim-Plug core
"***************************************************************************** "*****************************************************************************
@ -89,6 +90,7 @@ Plug 'danilo-augusto/vim-afterglow'
Plug 'vim-scripts/TaskList.vim' Plug 'vim-scripts/TaskList.vim'
Plug 'google/vim-jsonnet' Plug 'google/vim-jsonnet'
Plug 'terrastruct/d2-vim' Plug 'terrastruct/d2-vim'
Plug 'elkowar/yuck.vim'
call plug#end() call plug#end()
@ -540,9 +542,6 @@ require'nvim-tree'.setup {
hijack_cursor = false, hijack_cursor = false,
hijack_netrw = true, hijack_netrw = true,
hijack_unnamed_buffer_when_opening = false, hijack_unnamed_buffer_when_opening = false,
ignore_buffer_on_setup = false,
open_on_setup = false,
open_on_setup_file = false,
open_on_tab = false, open_on_tab = false,
sort_by = "name", sort_by = "name",
update_cwd = false, update_cwd = false,
@ -579,7 +578,6 @@ require'nvim-tree'.setup {
update_cwd = false, update_cwd = false,
ignore_list = {}, ignore_list = {},
}, },
ignore_ft_on_setup = {},
system_open = { system_open = {
cmd = nil, cmd = nil,
args = {}, args = {},

View File

@ -6,7 +6,8 @@
// "width": 1280, // Waybar width // "width": 1280, // Waybar width
"spacing": 2, // Gaps between modules (4px) "spacing": 2, // Gaps between modules (4px)
// Choose the order of the modules // Choose the order of the modules
"modules-left": ["sway/workspaces", "sway/mode", "sway/window"], "modules-left": ["wlr/workspaces", "hyprland/submap", "hyprland/window"],
// "modules-left": ["sway/workspaces", "sway/mode", "sway/window"],
"modules-center": [], "modules-center": [],
"modules-right": [ "modules-right": [
"idle_inhibitor", "idle_inhibitor",
@ -25,8 +26,6 @@
"custom/sep", "custom/sep",
"backlight", "backlight",
"custom/sep", "custom/sep",
"keyboard-state",
"custom/sep",
"battery", "battery",
"custom/sep", "custom/sep",
"clock", "clock",
@ -39,6 +38,13 @@
"interval": "once", "interval": "once",
"tooltip": false "tooltip": false
}, },
"sway/window": {
"max-length": 40
},
"wlr/workspaces": {
"format": "{name}",
"on-click": "activate"
},
"custom/pipewire": { "custom/pipewire": {
"exec": "/home/jay/bin/get-volume.sh", "exec": "/home/jay/bin/get-volume.sh",
"interval": "once", "interval": "once",
@ -51,9 +57,6 @@
}, },
"on-click": "pavucontrol" "on-click": "pavucontrol"
}, },
"sway/window": {
"max-length": 40
},
"sway/workspaces": { "sway/workspaces": {
"disable-scroll": true, "disable-scroll": true,
// "all-outputs": true, // "all-outputs": true,
@ -81,15 +84,6 @@
// "default": "" // "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>"
}, },
@ -131,7 +125,7 @@
}, },
"temperature": { "temperature": {
// "thermal-zone": 2, // "thermal-zone": 2,
"hwmon-path": "/sys/class/hwmon/hwmon5/temp1_input", "hwmon-path": "/sys/class/hwmon/hwmon4/temp1_input",
"critical-threshold": 80, "critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}", // "format-critical": "{temperatureC}°C {icon}",
"format": " {temperatureC}°C", "format": " {temperatureC}°C",

View File

@ -33,7 +33,12 @@ window#waybar.empty #window {
/* border: 1px solid #8fd4ff; */ /* border: 1px solid #8fd4ff; */
/* border-radius: 5px; */ /* border-radius: 5px; */
} }
#workspaces button.focused { /* #workspaces button.focused { */
/* color: white; */
/* border: 1px solid #8fd4ff; */
/* border-radius: 5px; */
/* } */
#workspaces button.active {
color: white; color: white;
border: 1px solid #8fd4ff; border: 1px solid #8fd4ff;
border-radius: 5px; border-radius: 5px;