fix vscode

This commit is contained in:
atagen 2023-09-29 22:04:32 +10:00
parent 0db4f9bef8
commit 79c9f90e53
13 changed files with 711 additions and 42 deletions

View file

@ -8,6 +8,7 @@ import sys
import os
from typing import List
from libqtile.log_utils import logger
from libqtile import bar, hook, layout, qtile, utils, widget
from libqtile.backend import base
from libqtile.lazy import lazy
@ -24,7 +25,7 @@ from libqtile.backend.wayland import InputConfig
wl_input_rules = {
"type:keyboard": InputConfig(kb_options="caps:escape"),
"*": InputConfig(accel_profile="flat", pointer_accel="0.0"),
"*": InputConfig(accel_profile="flat", pointer_accel=0.0),
}
mod = "mod4"
@ -182,6 +183,7 @@ bring_front_click = False
cursor_warp = True
focus_on_window_activation = "smart"
auto_fullscreen = True
floats_kept_above = True
floating_layout = layout.Floating(float_rules=[
*layout.Floating.default_float_rules,
@ -197,7 +199,8 @@ def autostart():
@hook.subscribe.client_new
def float_firefox(client):
if "firefox" in client.get_wm_class() and client.name == "Library":
wm_class = client.get_wm_class()
if wm_class and "firefox" in wm_class and client.name == "Library":
client.enable_floating()
@hook.subscribe.client_new
@ -205,3 +208,11 @@ def fullscreen_wlogout(client):
if client.name == "wlogout":
client.enable_fullscreen()
# @hook.subscribe.client_new
# def round_and_transparent(client):
# logger.warning(client)
# logger.warning(type(client))
# logger.warning(client.rounding)
# logger.warning(client.opacity)
# client.rounding = 8
# client.opacity = 0.85

View file

@ -85,9 +85,23 @@ in {
services.udiskie.enable = true;
# TODO fix launch
programs.vscode = {
enable = true;
extensions = with pkgs.vscode-extensions; [
rust-lang.rust-analyzer
serayuzgur.crates
jnoortheen.nix-ide
arrterian.nix-env-selector
mkhl.direnv
# silverquark.dancehelix
# gregoire.dance
];
mutableExtensionsDir = true;
userSettings = {
"window.titleBarStyle" = "custom";
"editor.fontFamily" = "'${pkgs.rice.fonts.monospace.name}'";
"editor.fontSize" = 12;
};
};
systemd.user.startServices = "sd-switch";