diff --git a/README.md b/README.md index 1fbb29d..0b7c266 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,8 @@ git clone https://github.com/draphy/draphyOS ~/.draphyOS && ~/.draphyOS/install. | `Super + Shift + 1-0` | Move to Workspace | | `Super + Shift + x` | Lock Screen | | `Super + Shift + f` | File Manager | -| `Super + Shift + b` | Browser | +| `Super + Shift + b` | Browser (Firefox) | +| `Super + Shift + v` | Text Editor | | `Print` | Screenshot (select area) | | `Super + r` | Resize mode | @@ -311,6 +312,24 @@ This will: +
+Running in a VM? Display not refreshing? + +Picom's `glx` backend doesn't work well in virtual machines. Fix: + +1. Edit `~/.config/picom/picom.conf`: + ```ini + backend = "xrender"; + corner-radius = 0; + vsync = false; + use-damage = false; + ``` +2. Restart picom: `pkill picom && picom -b` + +> **Note:** Rounded corners and blur aren't supported with `xrender`, but opacity and shadows still work. + +
+ --- ## 🤝 Contributing diff --git a/configs/i3/config b/configs/i3/config index b191641..1d850c2 100644 --- a/configs/i3/config +++ b/configs/i3/config @@ -223,10 +223,10 @@ bindsym $mod+Print exec --no-startup-id flameshot screen -c bindsym $mod+Shift+f exec thunar ## Launch // Browser // b ## -bindsym $mod+Shift+b exec brave-browser +bindsym $mod+Shift+b exec firefox -## Launch // VS Code // v ## -bindsym $mod+Shift+v exec code +## Launch // Text Editor // v ## +bindsym $mod+Shift+v exec mousepad ## System // Lock Screen // x ## bindsym $mod+Shift+x exec --no-startup-id ~/.config/i3/lock.sh diff --git a/configs/polybar/config.ini b/configs/polybar/config.ini index 7949d2d..c976ec8 100644 --- a/configs/polybar/config.ini +++ b/configs/polybar/config.ini @@ -36,12 +36,11 @@ padding-right = 2 module-margin-left = 1 module-margin-right = 1 -; Updated fonts with better fallbacks +; Fonts font-0 = "Fira Code:size=10;2" -font-1 = "FiraCode Nerd Font:size=10;2" -font-2 = "Font Awesome 6 Free Solid:size=10;2" -font-3 = "Font Awesome 6 Brands:size=10;2" -font-4 = "Noto Sans Mono:size=10;2" +font-1 = "Font Awesome 6 Free Solid:size=10;2" +font-2 = "Font Awesome 6 Brands:size=10;2" +font-3 = "Noto Sans Mono:size=10;2" ; Left: workspaces and window title modules-left = i3 xwindow diff --git a/configs/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml b/configs/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml new file mode 100644 index 0000000..1112d79 --- /dev/null +++ b/configs/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/xprofile b/configs/xprofile index 0dac139..d08d9e6 100644 --- a/configs/xprofile +++ b/configs/xprofile @@ -13,3 +13,9 @@ export SSH_AUTH_SOCK # Export keyring to D-Bus so browsers and apps can access it dbus-update-activation-environment --systemd DISPLAY XAUTHORITY SSH_AUTH_SOCK + +# Auto-detect WiFi interface for polybar (handles USB adapters changing ports) +WIFI_IFACE=$(ip link show 2>/dev/null | grep -E "^[0-9]+: wl.*state UP" | head -1 | awk -F: '{print $2}' | tr -d ' ') +if [ -n "$WIFI_IFACE" ] && [ -f ~/.config/polybar/config.ini ]; then + sed -i "s/^interface = .*/interface = $WIFI_IFACE/" ~/.config/polybar/config.ini +fi diff --git a/install.sh b/install.sh index bf6585e..133d58c 100755 --- a/install.sh +++ b/install.sh @@ -254,21 +254,6 @@ install_packages() { print_warning "Some packages may have failed. Continuing anyway..." fi - # Install Nerd Fonts (optional, don't fail if unavailable) - if ! fc-list 2>/dev/null | grep -qi "FiraCode Nerd Font"; then - print_step "Attempting to install FiraCode Nerd Font..." - if sudo dnf install -y firacode-nerd-fonts 2>/dev/null; then - print_success "FiraCode Nerd Font installed" - elif sudo dnf copr enable -y elxreno/nerd-fonts 2>/dev/null && \ - sudo dnf install -y firacode-nerd-fonts 2>/dev/null; then - print_success "FiraCode Nerd Font installed from COPR" - else - print_warning "FiraCode Nerd Font not available. Polybar will use fallback fonts." - fi - else - print_step "FiraCode Nerd Font already installed" - fi - print_success "Packages ready" } @@ -288,6 +273,7 @@ backup_configs() { "$HOME/.config/dunst" "$HOME/.config/picom" "$HOME/.config/gtk-3.0/settings.ini" + "$HOME/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml" "$HOME/.config/fish/config.fish" "$HOME/.config/redshift" "$HOME/.xprofile" @@ -341,6 +327,7 @@ install_configs() { mkdir -p "$HOME/.config/dunst" 2>/dev/null mkdir -p "$HOME/.config/picom" 2>/dev/null mkdir -p "$HOME/.config/gtk-3.0" 2>/dev/null + mkdir -p "$HOME/.config/xfce4/xfconf/xfce-perchannel-xml" 2>/dev/null mkdir -p "$HOME/.config/fish" 2>/dev/null mkdir -p "$HOME/.config/redshift" 2>/dev/null @@ -363,6 +350,7 @@ install_configs() { safe_symlink "$INSTALL_DIR/configs/dunst/dunstrc" "$HOME/.config/dunst/dunstrc" safe_symlink "$INSTALL_DIR/configs/picom/picom.conf" "$HOME/.config/picom/picom.conf" safe_symlink "$INSTALL_DIR/configs/gtk-3.0/settings.ini" "$HOME/.config/gtk-3.0/settings.ini" + safe_symlink "$INSTALL_DIR/configs/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml" "$HOME/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml" safe_symlink "$INSTALL_DIR/configs/fish/config.fish" "$HOME/.config/fish/config.fish" safe_symlink "$INSTALL_DIR/configs/redshift/redshift.conf" "$HOME/.config/redshift/redshift.conf" safe_symlink "$INSTALL_DIR/configs/xprofile" "$HOME/.xprofile" diff --git a/uninstall.sh b/uninstall.sh index bfa2d06..34748b5 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -64,6 +64,7 @@ remove_configs() { "$HOME/.config/dunst/dunstrc" "$HOME/.config/picom/picom.conf" "$HOME/.config/gtk-3.0/settings.ini" + "$HOME/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml" "$HOME/.config/fish/config.fish" "$HOME/.config/redshift/redshift.conf" "$HOME/.xprofile"