diff --git a/alacritty/fonts.toml b/alacritty/fonts.toml index 1fca9c6..b0cd536 100644 --- a/alacritty/fonts.toml +++ b/alacritty/fonts.toml @@ -11,19 +11,19 @@ builtin_box_drawing = true ## Normal font family. [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. [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. [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. [font.bold_italic] -family = "0xProto Nerd Font Mono" +family = "0xProto Nerd Font" ## 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. diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 5cb8a38..2f06f4d 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -23,6 +23,7 @@ # See https://wiki.hyprland.org/Configuring/Monitors/ monitor=eDP-1, preferred, 0x0, 1 +# monitor=DP-4, preferred, auto, 1, mirror, eDP-1 monitor=,preferred,auto,auto # trigger when the switch is turning off # 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 input { kb_layout = us - kb_variant = dvorak-intl + kb_variant = dvorak-intl, intl kb_model = kb_options = kb_rules = @@ -330,3 +331,4 @@ windowrule = suppressevent maximize, class:.* # Fix some dragging issues with XWayland windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0 +windowrulev2=noblur,class:^()$,title:^()$ diff --git a/nvim/init.lua b/nvim/init.lua index 8f7fd88..f307456 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -14,6 +14,14 @@ require('mini.deps').setup() local add = MiniDeps.add +add({ + source = 'neovim/nvim-lspconfig' +}) + +add({ + source = 'chomosuke/typst-preview.nvim' +}) + add({ source = 'williamboman/mason.nvim' }) diff --git a/waybar/scripts/power-profile.sh b/waybar/scripts/power-profile.sh new file mode 100755 index 0000000..7fda66b --- /dev/null +++ b/waybar/scripts/power-profile.sh @@ -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:]')" +