updatde alacritty and nvim
This commit is contained in:
@@ -11,19 +11,19 @@ builtin_box_drawing = true
|
|||||||
|
|
||||||
## Normal font family.
|
## Normal font family.
|
||||||
[font.normal]
|
[font.normal]
|
||||||
family = "0xProto Nerd Font Mono"
|
family = "0xProto Nerd Font"
|
||||||
|
|
||||||
## If the family is not specified, it will fall back to the value specified for the normal font.
|
## If the family is not specified, it will fall back to the value specified for the normal font.
|
||||||
[font.bold]
|
[font.bold]
|
||||||
family = "0xProto Nerd Font Mono"
|
family = "0xProto Nerd Font"
|
||||||
|
|
||||||
## If the family is not specified, it will fall back to the value specified for the normal font.
|
## If the family is not specified, it will fall back to the value specified for the normal font.
|
||||||
[font.italic]
|
[font.italic]
|
||||||
family = "0xProto Nerd Font Mono"
|
family = "0xProto Nerd Font"
|
||||||
|
|
||||||
## If the family is not specified, it will fall back to the value specified for the normal font.
|
## If the family is not specified, it will fall back to the value specified for the normal font.
|
||||||
[font.bold_italic]
|
[font.bold_italic]
|
||||||
family = "0xProto Nerd Font Mono"
|
family = "0xProto Nerd Font"
|
||||||
|
|
||||||
## Offset is the extra space around each character.
|
## Offset is the extra space around each character.
|
||||||
## 'y' can be thought of as modifying the line spacing, and 'x' as modifying the letter spacing.
|
## 'y' can be thought of as modifying the line spacing, and 'x' as modifying the letter spacing.
|
||||||
|
@@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||||
monitor=eDP-1, preferred, 0x0, 1
|
monitor=eDP-1, preferred, 0x0, 1
|
||||||
|
# monitor=DP-4, preferred, auto, 1, mirror, eDP-1
|
||||||
monitor=,preferred,auto,auto
|
monitor=,preferred,auto,auto
|
||||||
# trigger when the switch is turning off
|
# trigger when the switch is turning off
|
||||||
# bindl = , switch:off:Lid Switch,exec,hyprctl keyword monitor "eDP-1, 1920x1080@60, 0x0, 1"
|
# bindl = , switch:off:Lid Switch,exec,hyprctl keyword monitor "eDP-1, 1920x1080@60, 0x0, 1"
|
||||||
@@ -207,7 +208,7 @@ misc {
|
|||||||
# https://wiki.hyprland.org/Configuring/Variables/#input
|
# https://wiki.hyprland.org/Configuring/Variables/#input
|
||||||
input {
|
input {
|
||||||
kb_layout = us
|
kb_layout = us
|
||||||
kb_variant = dvorak-intl
|
kb_variant = dvorak-intl, intl
|
||||||
kb_model =
|
kb_model =
|
||||||
kb_options =
|
kb_options =
|
||||||
kb_rules =
|
kb_rules =
|
||||||
@@ -330,3 +331,4 @@ windowrule = suppressevent maximize, class:.*
|
|||||||
|
|
||||||
# Fix some dragging issues with XWayland
|
# Fix some dragging issues with XWayland
|
||||||
windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
|
windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
|
||||||
|
windowrulev2=noblur,class:^()$,title:^()$
|
||||||
|
@@ -14,6 +14,14 @@ require('mini.deps').setup()
|
|||||||
|
|
||||||
local add = MiniDeps.add
|
local add = MiniDeps.add
|
||||||
|
|
||||||
|
add({
|
||||||
|
source = 'neovim/nvim-lspconfig'
|
||||||
|
})
|
||||||
|
|
||||||
|
add({
|
||||||
|
source = 'chomosuke/typst-preview.nvim'
|
||||||
|
})
|
||||||
|
|
||||||
add({
|
add({
|
||||||
source = 'williamboman/mason.nvim'
|
source = 'williamboman/mason.nvim'
|
||||||
})
|
})
|
||||||
|
54
waybar/scripts/power-profile.sh
Executable file
54
waybar/scripts/power-profile.sh
Executable file
@@ -0,0 +1,54 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Script to manage and display system76-power profiles for Waybar
|
||||||
|
|
||||||
|
# Define the available power profiles
|
||||||
|
PROFILES=("Performance" "Balanced" "Battery")
|
||||||
|
|
||||||
|
# Get the current power profile
|
||||||
|
CURRENT_PROFILE=$(system76-power profile | awk '/Power Profile/ {print $3}')
|
||||||
|
|
||||||
|
# Function to switch to the next profile
|
||||||
|
switch_next_profile() {
|
||||||
|
# Find the index of the current profile
|
||||||
|
for i in "${!PROFILES[@]}"; do
|
||||||
|
if [[ "${PROFILES[$i]}" == "$CURRENT_PROFILE" ]]; then
|
||||||
|
current_index=$i
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# Calculate the index of the next profile
|
||||||
|
next_index=$(((current_index + 1) % ${#PROFILES[@]}))
|
||||||
|
NEXT_PROFILE=${PROFILES[$next_index]}
|
||||||
|
|
||||||
|
# Switch to the next profile
|
||||||
|
system76-power profile "$NEXT_PROFILE"
|
||||||
|
}
|
||||||
|
|
||||||
|
# If the script is called with "next", switch the profile
|
||||||
|
if [[ "$1" == "next" ]]; then
|
||||||
|
switch_next_profile
|
||||||
|
# After switching, get the new current profile
|
||||||
|
CURRENT_PROFILE=$(system76-power profile | awk '/Power Profile/ {print $3}')
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Set an icon based on the current profile
|
||||||
|
case $CURRENT_PROFILE in
|
||||||
|
"Performance")
|
||||||
|
ICON="🚀"
|
||||||
|
;;
|
||||||
|
"Balanced")
|
||||||
|
ICON="⚖️"
|
||||||
|
;;
|
||||||
|
"Battery")
|
||||||
|
ICON="🔋"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
ICON="❓"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Output in JSON format for Waybar
|
||||||
|
printf '{"text": "%s", "tooltip": "Power Profile: %s", "class": "%s"}\n' "$ICON" "$CURRENT_PROFILE" "$(echo $CURRENT_PROFILE | tr '[:upper:]' '[:lower:]')"
|
||||||
|
|
Reference in New Issue
Block a user