Compare commits
2 commits
0333542209
...
76d827e9eb
Author | SHA1 | Date | |
---|---|---|---|
76d827e9eb | |||
63c47f0c0d |
2 changed files with 12 additions and 2 deletions
|
@ -28,7 +28,6 @@ const Client = (client, active, clients) => {
|
|||
const wsId = client.workspace.id;
|
||||
const addr = `address:${client.address}`;
|
||||
|
||||
// FIXME: special workspaces not closing when in one and clicking on normal client
|
||||
return Revealer({
|
||||
transition: 'crossfade',
|
||||
setup: rev => rev.revealChild = true,
|
||||
|
@ -66,9 +65,10 @@ const Client = (client, active, clients) => {
|
|||
// close special workspace if one is opened
|
||||
const activeAddress = Hyprland.active.client.address;
|
||||
const currentActive = clients.find(c => c.address === activeAddress);
|
||||
const currentSpecial = String(currentActive.workspace.name).replace('special:', '');
|
||||
|
||||
if (currentActive && currentActive.workspace.id < 0) {
|
||||
execAsync(`hyprctl dispatch togglespecialworkspace ${wsName}`)
|
||||
execAsync(`hyprctl dispatch togglespecialworkspace ${currentSpecial}`)
|
||||
.catch(print);
|
||||
}
|
||||
execAsync(`hyprctl dispatch focuswindow ${addr}`).then(
|
||||
|
|
|
@ -105,6 +105,15 @@ in
|
|||
definedAliases = [ "@mn" ];
|
||||
};
|
||||
|
||||
"Noogle" = {
|
||||
urls = [{ template =
|
||||
"https://noogle.dev/?term={searchTerms}";
|
||||
}];
|
||||
iconUpdateURL = "https://noogle.dev/favicon.ico";
|
||||
updateInterval = 24 * 60 * 60 * 1000; # every day
|
||||
definedAliases = [ "@ng" ];
|
||||
};
|
||||
|
||||
"Firefox Add-ons" = {
|
||||
urls = [{ template =
|
||||
"https://addons.mozilla.org/en-US/firefox/search/?q={searchTerms}";
|
||||
|
@ -141,6 +150,7 @@ in
|
|||
"MyNixos"
|
||||
"NixOS Wiki"
|
||||
"Nix Packages"
|
||||
"Noogle"
|
||||
"Wikipedia (en)"
|
||||
"YouTube"
|
||||
"Firefox Add-ons"
|
||||
|
|
Loading…
Reference in a new issue