forked from Shinonome/dots-hyprland
maxwidthchars -> 1
This commit is contained in:
@@ -153,7 +153,7 @@ export default ({
|
|||||||
useMarkup: true,
|
useMarkup: true,
|
||||||
xalign: 0,
|
xalign: 0,
|
||||||
justify: Gtk.Justification.LEFT,
|
justify: Gtk.Justification.LEFT,
|
||||||
maxWidthChars: 24,
|
maxWidthChars: 1,
|
||||||
truncate: 'end',
|
truncate: 'end',
|
||||||
label: notifObject.body.split("\n")[0],
|
label: notifObject.body.split("\n")[0],
|
||||||
}),
|
}),
|
||||||
@@ -172,7 +172,7 @@ export default ({
|
|||||||
useMarkup: true,
|
useMarkup: true,
|
||||||
xalign: 0,
|
xalign: 0,
|
||||||
justify: Gtk.Justification.LEFT,
|
justify: Gtk.Justification.LEFT,
|
||||||
maxWidthChars: 24,
|
maxWidthChars: 1,
|
||||||
wrap: true,
|
wrap: true,
|
||||||
label: notifObject.body,
|
label: notifObject.body,
|
||||||
}),
|
}),
|
||||||
@@ -231,7 +231,7 @@ export default ({
|
|||||||
className: 'txt-small txt-semibold titlefont',
|
className: 'txt-small txt-semibold titlefont',
|
||||||
justify: Gtk.Justification.LEFT,
|
justify: Gtk.Justification.LEFT,
|
||||||
hexpand: true,
|
hexpand: true,
|
||||||
maxWidthChars: 24,
|
maxWidthChars: 1,
|
||||||
truncate: 'end',
|
truncate: 'end',
|
||||||
ellipsize: 3,
|
ellipsize: 3,
|
||||||
useMarkup: notifObject.summary.startsWith('<'),
|
useMarkup: notifObject.summary.startsWith('<'),
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ export default () => {
|
|||||||
hexpand: true,
|
hexpand: true,
|
||||||
className: 'txt-smallie bar-music-txt',
|
className: 'txt-smallie bar-music-txt',
|
||||||
truncate: 'end',
|
truncate: 'end',
|
||||||
maxWidthChars: 10, // Doesn't matter, just needs to be non negative
|
maxWidthChars: 1, // Doesn't matter, just needs to be non negative
|
||||||
setup: (self) => self.hook(Mpris, label => {
|
setup: (self) => self.hook(Mpris, label => {
|
||||||
const mpris = Mpris.getPlayer('');
|
const mpris = Mpris.getPlayer('');
|
||||||
if (mpris)
|
if (mpris)
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ const WindowTitle = async () => {
|
|||||||
Widget.Label({
|
Widget.Label({
|
||||||
xalign: 0,
|
xalign: 0,
|
||||||
truncate: 'end',
|
truncate: 'end',
|
||||||
maxWidthChars: 10, // Doesn't matter, just needs to be non negative
|
maxWidthChars: 1, // Doesn't matter, just needs to be non negative
|
||||||
className: 'txt-smaller bar-wintitle-topdesc txt',
|
className: 'txt-smaller bar-wintitle-topdesc txt',
|
||||||
setup: (self) => self.hook(Hyprland.active.client, label => { // Hyprland.active.client
|
setup: (self) => self.hook(Hyprland.active.client, label => { // Hyprland.active.client
|
||||||
label.label = Hyprland.active.client.class.length === 0 ? 'Desktop' : Hyprland.active.client.class;
|
label.label = Hyprland.active.client.class.length === 0 ? 'Desktop' : Hyprland.active.client.class;
|
||||||
@@ -24,7 +24,7 @@ const WindowTitle = async () => {
|
|||||||
Widget.Label({
|
Widget.Label({
|
||||||
xalign: 0,
|
xalign: 0,
|
||||||
truncate: 'end',
|
truncate: 'end',
|
||||||
maxWidthChars: 10, // Doesn't matter, just needs to be non negative
|
maxWidthChars: 1, // Doesn't matter, just needs to be non negative
|
||||||
className: 'txt-smallie bar-wintitle-txt',
|
className: 'txt-smallie bar-wintitle-txt',
|
||||||
setup: (self) => self.hook(Hyprland.active.client, label => { // Hyprland.active.client
|
setup: (self) => self.hook(Hyprland.active.client, label => { // Hyprland.active.client
|
||||||
label.label = Hyprland.active.client.title.length === 0 ? `Workspace ${Hyprland.active.workspace.id}` : Hyprland.active.client.title;
|
label.label = Hyprland.active.client.title.length === 0 ? `Workspace ${Hyprland.active.workspace.id}` : Hyprland.active.client.title;
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ const AppVolume = (stream) => Box({
|
|||||||
children: [
|
children: [
|
||||||
Label({
|
Label({
|
||||||
xalign: 0,
|
xalign: 0,
|
||||||
maxWidthChars: 10,
|
maxWidthChars: 1,
|
||||||
truncate: 'end',
|
truncate: 'end',
|
||||||
label: stream.description,
|
label: stream.description,
|
||||||
className: 'txt-small',
|
className: 'txt-small',
|
||||||
@@ -76,7 +76,7 @@ const AudioDevices = (input = false) => {
|
|||||||
xalign: 0,
|
xalign: 0,
|
||||||
className: 'txt-small',
|
className: 'txt-small',
|
||||||
truncate: 'end',
|
truncate: 'end',
|
||||||
maxWidthChars: 10,
|
maxWidthChars: 1,
|
||||||
label: stream.description,
|
label: stream.description,
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
@@ -99,7 +99,7 @@ const AudioDevices = (input = false) => {
|
|||||||
xalign: 0,
|
xalign: 0,
|
||||||
className: 'txt-small',
|
className: 'txt-small',
|
||||||
truncate: 'end',
|
truncate: 'end',
|
||||||
maxWidthChars: 10,
|
maxWidthChars: 1,
|
||||||
label: `${input ? '[In]' : '[Out]'}`,
|
label: `${input ? '[In]' : '[Out]'}`,
|
||||||
setup: (self) => self.hook(Audio, (self) => {
|
setup: (self) => self.hook(Audio, (self) => {
|
||||||
self.label = `${input ? '[In]' : '[Out]'} ${input ? Audio.microphone.description : Audio.speaker.description}`;
|
self.label = `${input ? '[In]' : '[Out]'} ${input ? Audio.microphone.description : Audio.speaker.description}`;
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ const BluetoothDevice = (device) => {
|
|||||||
children: [
|
children: [
|
||||||
Label({
|
Label({
|
||||||
xalign: 0,
|
xalign: 0,
|
||||||
maxWidthChars: 10,
|
maxWidthChars: 1,
|
||||||
truncate: 'end',
|
truncate: 'end',
|
||||||
label: device.name,
|
label: device.name,
|
||||||
className: 'txt-small',
|
className: 'txt-small',
|
||||||
@@ -38,7 +38,7 @@ const BluetoothDevice = (device) => {
|
|||||||
}),
|
}),
|
||||||
Label({
|
Label({
|
||||||
xalign: 0,
|
xalign: 0,
|
||||||
maxWidthChars: 10,
|
maxWidthChars: 1,
|
||||||
truncate: 'end',
|
truncate: 'end',
|
||||||
label: device.connected ? 'Connected' : (device.paired ? 'Paired' : ''),
|
label: device.connected ? 'Connected' : (device.paired ? 'Paired' : ''),
|
||||||
className: 'txt-subtext',
|
className: 'txt-subtext',
|
||||||
|
|||||||
Reference in New Issue
Block a user