forked from Shinonome/dots-hyprland
Merge branch 'end-4:main' into main
This commit is contained in:
@@ -8,7 +8,7 @@ import Indicator from '../../services/indicator.js';
|
|||||||
import { MaterialIcon } from '../.commonwidgets/materialicon.js';
|
import { MaterialIcon } from '../.commonwidgets/materialicon.js';
|
||||||
|
|
||||||
const OsdValue = ({
|
const OsdValue = ({
|
||||||
name, icon, nameSetup = undefined, labelSetup, progressSetup,
|
name, icon, nameSetup = undefined, labelSetup, progressSetup, iconSetup,
|
||||||
extraClassName = '', extraProgressClassName = '',
|
extraClassName = '', extraProgressClassName = '',
|
||||||
...rest
|
...rest
|
||||||
}) => {
|
}) => {
|
||||||
@@ -31,7 +31,7 @@ const OsdValue = ({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
MaterialIcon(icon, 'hugeass', {vpack: 'center'}),
|
MaterialIcon(icon, 'hugeass', {vpack: 'center', setup: iconSetup}),
|
||||||
Box({
|
Box({
|
||||||
vertical: true,
|
vertical: true,
|
||||||
className: 'spacing-v-5',
|
className: 'spacing-v-5',
|
||||||
@@ -74,7 +74,6 @@ export default (monitor = 0) => {
|
|||||||
|
|
||||||
const volumeIndicator = OsdValue({
|
const volumeIndicator = OsdValue({
|
||||||
name: 'Volume',
|
name: 'Volume',
|
||||||
icon: 'volume_up',
|
|
||||||
extraClassName: 'osd-volume',
|
extraClassName: 'osd-volume',
|
||||||
extraProgressClassName: 'osd-volume-progress',
|
extraProgressClassName: 'osd-volume-progress',
|
||||||
attribute: { headphones: undefined , device: undefined},
|
attribute: { headphones: undefined , device: undefined},
|
||||||
@@ -93,7 +92,9 @@ export default (monitor = 0) => {
|
|||||||
}),
|
}),
|
||||||
labelSetup: (self) => self.hook(Audio, (label) => {
|
labelSetup: (self) => self.hook(Audio, (label) => {
|
||||||
const newDevice = (Audio.speaker?.name);
|
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 (!isNaN(updateValue)) {
|
||||||
if (newDevice === volumeIndicator.attribute.device && updateValue != label.label) {
|
if (newDevice === volumeIndicator.attribute.device && updateValue != label.label) {
|
||||||
Indicator.popup(1);
|
Indicator.popup(1);
|
||||||
@@ -103,12 +104,20 @@ export default (monitor = 0) => {
|
|||||||
label.label = `${updateValue}`;
|
label.label = `${updateValue}`;
|
||||||
}),
|
}),
|
||||||
progressSetup: (self) => self.hook(Audio, (progress) => {
|
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 (!isNaN(updateValue)) {
|
||||||
if (updateValue > 1) progress.value = 1;
|
if (updateValue > 1) progress.value = 1;
|
||||||
else progress.value = updateValue;
|
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({
|
return MarginRevealer({
|
||||||
transition: 'slide_down',
|
transition: 'slide_down',
|
||||||
|
|||||||
@@ -49,19 +49,16 @@ get_light_dark() {
|
|||||||
|
|
||||||
apply_fuzzel() {
|
apply_fuzzel() {
|
||||||
# Check if template exists
|
# 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."
|
echo "Template file not found for Fuzzel. Skipping that."
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
# Copy template
|
# Copy template
|
||||||
mkdir -p "$CACHE_DIR"/user/generated/fuzzel
|
cp "scripts/templates/fuzzel/fuzzel.theme" "$XDG_CONFIG_HOME"/fuzzel/fuzzel.theme
|
||||||
cp "scripts/templates/fuzzel/fuzzel.ini" "$CACHE_DIR"/user/generated/fuzzel/fuzzel.ini
|
|
||||||
# Apply colors
|
# Apply colors
|
||||||
for i in "${!colorlist[@]}"; do
|
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
|
done
|
||||||
|
|
||||||
cp "$CACHE_DIR"/user/generated/fuzzel/fuzzel.ini "$XDG_CONFIG_HOME"/fuzzel/fuzzel.ini
|
|
||||||
}
|
}
|
||||||
|
|
||||||
apply_term() {
|
apply_term() {
|
||||||
|
|||||||
-13
@@ -1,8 +1,3 @@
|
|||||||
font=Gabarito
|
|
||||||
terminal=foot -e
|
|
||||||
prompt=">> "
|
|
||||||
layer=overlay
|
|
||||||
|
|
||||||
[colors]
|
[colors]
|
||||||
background={{ $background }}ff
|
background={{ $background }}ff
|
||||||
text={{ $onBackground }}ff
|
text={{ $onBackground }}ff
|
||||||
@@ -11,11 +6,3 @@ selection-text={{ $onSurfaceVariant }}ff
|
|||||||
border={{ $surfaceVariant }}dd
|
border={{ $surfaceVariant }}dd
|
||||||
match={{ $primary }}ff
|
match={{ $primary }}ff
|
||||||
selection-match={{ $primary }}ff
|
selection-match={{ $primary }}ff
|
||||||
|
|
||||||
|
|
||||||
[border]
|
|
||||||
radius=17
|
|
||||||
width=1
|
|
||||||
|
|
||||||
[dmenu]
|
|
||||||
exit-immediately-if-empty=yes
|
|
||||||
@@ -1,18 +1,9 @@
|
|||||||
|
include="~/.config/fuzzel/fuzzel.theme"
|
||||||
font=Gabarito
|
font=Gabarito
|
||||||
terminal=foot -e
|
terminal=foot -e
|
||||||
prompt=">> "
|
prompt=">> "
|
||||||
layer=overlay
|
layer=overlay
|
||||||
|
|
||||||
[colors]
|
|
||||||
background=1D1011ff
|
|
||||||
text=F7DCDEff
|
|
||||||
selection=574144ff
|
|
||||||
selection-text=DEBFC2ff
|
|
||||||
border=574144dd
|
|
||||||
match=FFB2BCff
|
|
||||||
selection-match=FFB2BCff
|
|
||||||
|
|
||||||
|
|
||||||
[border]
|
[border]
|
||||||
radius=17
|
radius=17
|
||||||
width=1
|
width=1
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ env = QT_QPA_PLATFORMTHEME, qt6ct
|
|||||||
# ######## Screen tearing #########
|
# ######## Screen tearing #########
|
||||||
# env = WLR_DRM_NO_ATOMIC, 1
|
# env = WLR_DRM_NO_ATOMIC, 1
|
||||||
|
|
||||||
# ######## Virtual envrionment #########
|
# ######## Virtual environment #########
|
||||||
env = ILLOGICAL_IMPULSE_VIRTUAL_ENV, ~/.local/state/ags/.venv
|
env = ILLOGICAL_IMPULSE_VIRTUAL_ENV, ~/.local/state/ags/.venv
|
||||||
|
|
||||||
# ############ Others #############
|
# ############ Others #############
|
||||||
|
|||||||
@@ -3,10 +3,11 @@
|
|||||||
|
|
||||||
bindl = Alt ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_SOURCE@ toggle # [hidden]
|
bindl = Alt ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_SOURCE@ toggle # [hidden]
|
||||||
bindl = Super ,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 = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle # [hidden]
|
||||||
bindl = Super+Shift,M, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 0% # [hidden]
|
bindl = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle # [hidden]
|
||||||
bindle=, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+ # [hidden]
|
bindl = Super+Shift,M, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle # [hidden]
|
||||||
bindle=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- # [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
|
# Uncomment these if you can't get AGS to work
|
||||||
#bindle=, XF86MonBrightnessUp, exec, brightnessctl set '12.75+'
|
#bindle=, XF86MonBrightnessUp, exec, brightnessctl set '12.75+'
|
||||||
|
|||||||
@@ -35,6 +35,12 @@
|
|||||||
```bash
|
```bash
|
||||||
bash <(curl -s "https://end-4.github.io/dots-hyprland-wiki/setup.sh")
|
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:
|
- **Manual** installation, other distros and more:
|
||||||
- See the [Wiki](https://end-4.github.io/dots-hyprland-wiki/en/i-i/01setup/)
|
- 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._)
|
- (_Available in: English, Vietnamese, and Simplified Chinese. Translations are welcome._)
|
||||||
@@ -66,7 +72,7 @@
|
|||||||
<details>
|
<details>
|
||||||
<summary>Help improve these dotfiles</summary>
|
<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>
|
</details>
|
||||||
|
|
||||||
@@ -77,6 +83,8 @@
|
|||||||
|
|
||||||
## Main branch (*illogical-impulse*)
|
## 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
|
### AI
|
||||||

|

|
||||||
_<sup>Sidebar offers online and offline chat. Text selection summary is offline only for privacy.</sup>_
|
_<sup>Sidebar offers online and offline chat. Text selection summary is offline only for privacy.</sup>_
|
||||||
|
|||||||
Reference in New Issue
Block a user