Merge branch 'end-4:main' into main

This commit is contained in:
Bishoy Ehab
2025-06-07 20:10:39 +03:00
committed by GitHub
7 changed files with 33 additions and 40 deletions
@@ -8,7 +8,7 @@ import Indicator from '../../services/indicator.js';
import { MaterialIcon } from '../.commonwidgets/materialicon.js';
const OsdValue = ({
name, icon, nameSetup = undefined, labelSetup, progressSetup,
name, icon, nameSetup = undefined, labelSetup, progressSetup, iconSetup,
extraClassName = '', extraProgressClassName = '',
...rest
}) => {
@@ -31,7 +31,7 @@ const OsdValue = ({
}
},
children: [
MaterialIcon(icon, 'hugeass', {vpack: 'center'}),
MaterialIcon(icon, 'hugeass', {vpack: 'center', setup: iconSetup}),
Box({
vertical: true,
className: 'spacing-v-5',
@@ -74,7 +74,6 @@ export default (monitor = 0) => {
const volumeIndicator = OsdValue({
name: 'Volume',
icon: 'volume_up',
extraClassName: 'osd-volume',
extraProgressClassName: 'osd-volume-progress',
attribute: { headphones: undefined , device: undefined},
@@ -93,7 +92,9 @@ export default (monitor = 0) => {
}),
labelSetup: (self) => self.hook(Audio, (label) => {
const newDevice = (Audio.speaker?.name);
const updateValue = Math.round(Audio.speaker?.volume * 100);
const updateValue = Audio.speaker?.stream?.isMuted
? 0
: Math.round(Audio.speaker?.volume * 100);
if (!isNaN(updateValue)) {
if (newDevice === volumeIndicator.attribute.device && updateValue != label.label) {
Indicator.popup(1);
@@ -103,12 +104,20 @@ export default (monitor = 0) => {
label.label = `${updateValue}`;
}),
progressSetup: (self) => self.hook(Audio, (progress) => {
const updateValue = Audio.speaker?.volume;
const updateValue = Audio.speaker?.stream?.isMuted
? 0
: Audio.speaker?.volume;
if (!isNaN(updateValue)) {
if (updateValue > 1) progress.value = 1;
else progress.value = updateValue;
}
}),
iconSetup: (self) => self.hook(Audio, (progress) => {
self.label =
Audio.speaker?.stream?.isMuted || !Audio.speaker.volume
? 'volume_off'
: 'volume_up';
}),
});
return MarginRevealer({
transition: 'slide_down',
@@ -49,19 +49,16 @@ get_light_dark() {
apply_fuzzel() {
# Check if template exists
if [ ! -f "scripts/templates/fuzzel/fuzzel.ini" ]; then
if [ ! -f "scripts/templates/fuzzel/fuzzel.theme" ]; then
echo "Template file not found for Fuzzel. Skipping that."
return
fi
# Copy template
mkdir -p "$CACHE_DIR"/user/generated/fuzzel
cp "scripts/templates/fuzzel/fuzzel.ini" "$CACHE_DIR"/user/generated/fuzzel/fuzzel.ini
cp "scripts/templates/fuzzel/fuzzel.theme" "$XDG_CONFIG_HOME"/fuzzel/fuzzel.theme
# Apply colors
for i in "${!colorlist[@]}"; do
sed -i "s/{{ ${colorlist[$i]} }}/${colorvalues[$i]#\#}/g" "$CACHE_DIR"/user/generated/fuzzel/fuzzel.ini
sed -i "s/{{ ${colorlist[$i]} }}/${colorvalues[$i]#\#}/g" "$XDG_CONFIG_HOME"/fuzzel/fuzzel.theme
done
cp "$CACHE_DIR"/user/generated/fuzzel/fuzzel.ini "$XDG_CONFIG_HOME"/fuzzel/fuzzel.ini
}
apply_term() {
@@ -1,8 +1,3 @@
font=Gabarito
terminal=foot -e
prompt=">> "
layer=overlay
[colors]
background={{ $background }}ff
text={{ $onBackground }}ff
@@ -11,11 +6,3 @@ selection-text={{ $onSurfaceVariant }}ff
border={{ $surfaceVariant }}dd
match={{ $primary }}ff
selection-match={{ $primary }}ff
[border]
radius=17
width=1
[dmenu]
exit-immediately-if-empty=yes
+1 -10
View File
@@ -1,18 +1,9 @@
include="~/.config/fuzzel/fuzzel.theme"
font=Gabarito
terminal=foot -e
prompt=">> "
layer=overlay
[colors]
background=1D1011ff
text=F7DCDEff
selection=574144ff
selection-text=DEBFC2ff
border=574144dd
match=FFB2BCff
selection-match=FFB2BCff
[border]
radius=17
width=1
+1 -1
View File
@@ -17,7 +17,7 @@ env = QT_QPA_PLATFORMTHEME, qt6ct
# ######## Screen tearing #########
# env = WLR_DRM_NO_ATOMIC, 1
# ######## Virtual envrionment #########
# ######## Virtual environment #########
env = ILLOGICAL_IMPULSE_VIRTUAL_ENV, ~/.local/state/ags/.venv
# ############ Others #############
+5 -4
View File
@@ -3,10 +3,11 @@
bindl = Alt ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_SOURCE@ toggle # [hidden]
bindl = Super ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_SOURCE@ toggle # [hidden]
bindl = ,XF86AudioMute, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 0% # [hidden]
bindl = Super+Shift,M, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 0% # [hidden]
bindle=, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+ # [hidden]
bindle=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- # [hidden]
bindl = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle # [hidden]
bindl = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle # [hidden]
bindl = Super+Shift,M, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle # [hidden]
bindle=, XF86AudioRaiseVolume, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ 0 && wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+ # [hidden]
bindle=, XF86AudioLowerVolume, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ 0 && wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- # [hidden]
# Uncomment these if you can't get AGS to work
#bindle=, XF86MonBrightnessUp, exec, brightnessctl set '12.75+'
+9 -1
View File
@@ -35,6 +35,12 @@
```bash
bash <(curl -s "https://end-4.github.io/dots-hyprland-wiki/setup.sh")
```
If you are using fish shell (non-posix-compliant shell) then:
```bash
bash -c "$(curl -s https://end-4.github.io/dots-hyprland-wiki/setup.sh)"
```
- **Manual** installation, other distros and more:
- See the [Wiki](https://end-4.github.io/dots-hyprland-wiki/en/i-i/01setup/)
- (_Available in: English, Vietnamese, and Simplified Chinese. Translations are welcome._)
@@ -66,7 +72,7 @@
<details>
<summary>Help improve these dotfiles</summary>
- Try the Quickshell-powered version at [`ii-qs` branch](https://github.com/end-4/dots-hyprland/tree/ii-qs) - It comes with major improvements, and you're free to make suggestions 👉 [#1276](https://github.com/end-4/dots-hyprland/pull/1276)
- You can give feedback/suggestions for the [`ii-qs` branch](https://github.com/end-4/dots-hyprland/tree/ii-qs) in [#1276](https://github.com/end-4/dots-hyprland/pull/1276)
</details>
@@ -77,6 +83,8 @@
## Main branch (*illogical-impulse*)
**Note**: Expect minimal maintenance for the main branch, as I'm already working on and using the new Quickshell version of illogical-impulse at the ii-qs branch. See [#1276](https://github.com/end-4/dots-hyprland/pull/1276).
### AI
![image](https://github.com/user-attachments/assets/9d7af13f-89ef-470d-ba78-d2288b79cf60)
_<sup>Sidebar offers online and offline chat. Text selection summary is offline only for privacy.</sup>_