updating how the configs config
This commit is contained in:
parent
7311597752
commit
f5f047a6f5
|
@ -6,16 +6,42 @@ const audio = await Service.import('audio')
|
||||||
|
|
||||||
import { NotificationPopups } from "./notifications.js"
|
import { NotificationPopups } from "./notifications.js"
|
||||||
|
|
||||||
|
function map_workspaces(id) {
|
||||||
|
switch (id) {
|
||||||
|
case 1:
|
||||||
|
return Widget.Label("");
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
return Widget.Label("");
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
return Widget.Label("");
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
return Widget.Label("");
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
return Widget.Label("");
|
||||||
|
break;
|
||||||
|
case 9:
|
||||||
|
return Widget.Label("");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return Widget.Label(`${id}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function workspaces() {
|
function workspaces() {
|
||||||
const active = hyprland.active.workspace.bind("id");
|
const active = hyprland.active.workspace.bind("id");
|
||||||
const workspaces = hyprland.bind("workspaces")
|
const workspaces = hyprland.bind("workspaces")
|
||||||
.as(ws => ws.map(({ id }) => id === -99 ? "" : Widget.Button({
|
.as(ws => ws.map(({ id }) => id === -99 ? "" : Widget.Button({
|
||||||
onClicked: () => hyprland.messageAsync(`dispatch workspace ${id}`),
|
onClicked: () => hyprland.messageAsync(`dispatch workspace ${id}`),
|
||||||
child: Widget.Label(`${id}`),
|
child: map_workspaces(id),
|
||||||
class_name: active.as(i => `${i === id ? "focused" : ""}`),
|
class_name: active.as(i => `${i === id ? "focused" : ""}`),
|
||||||
})))
|
})))
|
||||||
return Widget.Box({
|
return Widget.Box({
|
||||||
class_name: "workspaces",
|
class_name: "workspaces",
|
||||||
|
spacing: 6,
|
||||||
children: workspaces,
|
children: workspaces,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,8 @@ function NotificationIcon({ app_entry, app_icon, image }) {
|
||||||
let icon = "dialog-information-symbolic"
|
let icon = "dialog-information-symbolic"
|
||||||
if (Utils.lookUpIcon(app_icon))
|
if (Utils.lookUpIcon(app_icon))
|
||||||
icon = app_icon
|
icon = app_icon
|
||||||
|
else
|
||||||
|
icon = "auth-fingerprint-symbolic"
|
||||||
|
|
||||||
if (app_entry && Utils.lookUpIcon(app_entry))
|
if (app_entry && Utils.lookUpIcon(app_entry))
|
||||||
icon = app_entry
|
icon = app_entry
|
||||||
|
@ -75,6 +77,7 @@ function Notification(n) {
|
||||||
{
|
{
|
||||||
class_name: `notification ${n.urgency}`,
|
class_name: `notification ${n.urgency}`,
|
||||||
vertical: true,
|
vertical: true,
|
||||||
|
spacing: 0,
|
||||||
},
|
},
|
||||||
Widget.Box([
|
Widget.Box([
|
||||||
icon,
|
icon,
|
||||||
|
@ -92,6 +95,7 @@ function Notification(n) {
|
||||||
export function NotificationPopups(monitor = 0) {
|
export function NotificationPopups(monitor = 0) {
|
||||||
const list = Widget.Box({
|
const list = Widget.Box({
|
||||||
vertical: true,
|
vertical: true,
|
||||||
|
spacing: 4,
|
||||||
children: notifications.popups.map(Notification),
|
children: notifications.popups.map(Notification),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -114,7 +118,7 @@ export function NotificationPopups(monitor = 0) {
|
||||||
class_name: "notification-popups",
|
class_name: "notification-popups",
|
||||||
anchor: ["bottom", "right"],
|
anchor: ["bottom", "right"],
|
||||||
child: Widget.Box({
|
child: Widget.Box({
|
||||||
css: "min-width: 2px; min-height: 2px;",
|
// css: "min-width: 2px; min-height: 2px;",
|
||||||
class_name: "notifications",
|
class_name: "notifications",
|
||||||
vertical: true,
|
vertical: true,
|
||||||
child: list,
|
child: list,
|
||||||
|
|
|
@ -124,7 +124,7 @@ window.notification-popups box.notifications {
|
||||||
min-width: 100px;
|
min-width: 100px;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
margin: 1em;
|
/* margin: 1em; */
|
||||||
background-color: @backtransparent;
|
background-color: @backtransparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -135,16 +135,15 @@ window.notification-popups box.notifications {
|
||||||
}
|
}
|
||||||
|
|
||||||
.notif-icon image {
|
.notif-icon image {
|
||||||
font-size: 28px;
|
font-size: 22px;
|
||||||
/* to center the icon */
|
/* to center the icon */
|
||||||
margin: 5px;
|
/* margin: 5px; */
|
||||||
color: @base0C;
|
color: @base0C;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notif-icon box {
|
.notif-icon box {
|
||||||
min-width: 38px;
|
min-width: 38px;
|
||||||
min-height: 38px;
|
min-height: 38px;
|
||||||
border-radius: 7px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.notif-title {
|
.notif-title {
|
||||||
|
@ -158,8 +157,8 @@ window.notification-popups box.notifications {
|
||||||
}
|
}
|
||||||
|
|
||||||
.notif-actions .notif-action-button {
|
.notif-actions .notif-action-button {
|
||||||
margin: 0 .4em;
|
/* margin: 0 .4em; */
|
||||||
margin-top: .8em;
|
/* margin-top: .8em; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.notif-actions .notif-action-button:first-child {
|
.notif-actions .notif-action-button:first-child {
|
||||||
|
|
|
@ -237,7 +237,7 @@ in
|
||||||
"SUPER,v,exec,cliphist list | rofi -p ' ' -dmenu -theme ~/.config/rofi/launchers-git/laptop-rbw-wayland.rasi | cliphist decode | wl-copy"
|
"SUPER,v,exec,cliphist list | rofi -p ' ' -dmenu -theme ~/.config/rofi/launchers-git/laptop-rbw-wayland.rasi | cliphist decode | wl-copy"
|
||||||
"SUPER,B,exec,/home/chris/bin/fflof"
|
"SUPER,B,exec,/home/chris/bin/fflof"
|
||||||
"SUPER,A,exec,alacritty --class pulsemixer -e pulsemixer"
|
"SUPER,A,exec,alacritty --class pulsemixer -e pulsemixer"
|
||||||
"SUPERCTRL,i,exec,alacritty --class btop -e btm"
|
"SUPERCTRL,i,exec,alacritty --class btop -e btop"
|
||||||
",Print,exec,screenshot"
|
",Print,exec,screenshot"
|
||||||
"SUPERSHIFT,mouse_down,exec,zoomin in"
|
"SUPERSHIFT,mouse_down,exec,zoomin in"
|
||||||
"SUPERSHIFT,mouse_up,exec,zoomin out"
|
"SUPERSHIFT,mouse_up,exec,zoomin out"
|
||||||
|
@ -296,7 +296,7 @@ in
|
||||||
"SUPERALT,a,movetoworkspace,special:agenda"
|
"SUPERALT,a,movetoworkspace,special:agenda"
|
||||||
"SUPER,g,togglespecialworkspace,agenda"
|
"SUPER,g,togglespecialworkspace,agenda"
|
||||||
|
|
||||||
"SUPERSHIFT,g,exec,waybar.sh"
|
"SUPERSHIFT,g,exec,ags --toggle-window 'bar0'"
|
||||||
"SUPERALT,n,exec,eww update rightside=true"
|
"SUPERALT,n,exec,eww update rightside=true"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -333,7 +333,6 @@ in
|
||||||
# "dunst"
|
# "dunst"
|
||||||
"ags"
|
"ags"
|
||||||
"rbw-agent"
|
"rbw-agent"
|
||||||
"/home/chris/bin/startup.sh"
|
|
||||||
"hyprctl dispatch --batch 'splitratio 1; splitration -0.35'"
|
"hyprctl dispatch --batch 'splitratio 1; splitration -0.35'"
|
||||||
"dbus-update-activation-environment --systemd --all"
|
"dbus-update-activation-environment --systemd --all"
|
||||||
"batmon.lisp"
|
"batmon.lisp"
|
||||||
|
|
|
@ -158,6 +158,8 @@ with lib;
|
||||||
elpaPackages.ement
|
elpaPackages.ement
|
||||||
mastodon
|
mastodon
|
||||||
qrencode
|
qrencode
|
||||||
|
just-mode
|
||||||
|
justl
|
||||||
gcmh
|
gcmh
|
||||||
mu4e
|
mu4e
|
||||||
use-package
|
use-package
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
kwalletd5 &
|
|
||||||
systemctl --user stop jellyfin-mpv-shim.service &
|
|
||||||
systemctl --user stop nextcloud-client.service &
|
|
||||||
systemctl --user stop emacs.service &
|
|
||||||
killall .jellyfin-mpv-shim
|
|
||||||
/usr/lib/kdeconnectd &
|
|
||||||
nm-applet &
|
|
||||||
rbw-agent &
|
|
||||||
emacs --daemon &
|
|
||||||
nextcloud --background &
|
|
||||||
batmon.lisp &
|
|
Loading…
Reference in a new issue