mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-18 22:55:52 +05:30
Compare commits
4 commits
03111e3461
...
0691e38add
Author | SHA1 | Date | |
---|---|---|---|
0691e38add | |||
f0840a99ac | |||
5283a87013 | |||
c73893b5a5 |
|
@ -96,7 +96,24 @@
|
|||
mpv
|
||||
yt-dlp
|
||||
blender-hip
|
||||
cura
|
||||
# cura is moderately broken on wayland, so use xwayland
|
||||
(pkgs.cura.overrideAttrs (oldAttrs: {
|
||||
postInstall = oldAttrs.postInstall + ''cp -rf ${(pkgs.makeDesktopItem {
|
||||
name = "com.ultimaker.cura";
|
||||
icon = "cura-icon";
|
||||
desktopName = "Cura";
|
||||
exec = "env QT_QPA_PLATFORM=xcb ${pkgs.cura}/bin/cura %F";
|
||||
tryExec = "env QT_QPA_PLATFORM=xcb ${pkgs.cura}/bin/cura";
|
||||
terminal = false;
|
||||
type = "Application";
|
||||
categories = ["Graphics"];
|
||||
mimeTypes = ["model/stl" "application/vnd.ms-3mfdocument" "application/prs.wavefront-obj"
|
||||
"image/bmp" "image/gif" "image/jpeg" "image/png" "text/x-gcode" "application/x-amf"
|
||||
"application/x-ply" "application/x-ctm" "model/vnd.collada+xml" "model/gltf-binary"
|
||||
"model/gltf+json" "model/vnd.collada+xml+zip"];
|
||||
})}/share/applications $out/share'';
|
||||
}))
|
||||
(pkgs.writeShellScriptBin "curax" ''env QT_QPA_PLATFORM=xcb ${pkgs.cura}/bin/cura'')
|
||||
curaengine_stable
|
||||
openscad
|
||||
(stdenv.mkDerivation {
|
||||
|
|
|
@ -87,6 +87,8 @@ ext xopp~, has blender, X, flag f = xournalpp "$@" &>/dev/null
|
|||
ext helio, has helio, X, flag f = helio "$@" &>/dev/null
|
||||
ext kdenlive, has kdenlive-accel, X, flag f = kdenlive-accel "$@" &>/dev/null
|
||||
ext flp, has flstudio, X, flag f = flstudio "$@" &>/dev/null
|
||||
ext 3mf, has curax, X, flag f = curax "$@" &>/dev/null
|
||||
ext 3mf, has cura, X flag f = cura "$@" &>/dev/null
|
||||
|
||||
#--------------------------------------------
|
||||
# Scripts
|
||||
|
|
|
@ -6,6 +6,7 @@ in
|
|||
../../app/terminal/alacritty.nix
|
||||
../../app/terminal/kitty.nix
|
||||
(import ../../app/dmenu-scripts/networkmanager-dmenu.nix {
|
||||
#dmenu_command = "fuzzel -d -f ${userSettings.font} :size=16"; inherit config lib pkgs;
|
||||
dmenu_command = "fuzzel -d"; inherit config lib pkgs;
|
||||
})
|
||||
../input/nihongo.nix
|
||||
|
@ -34,14 +35,25 @@ in
|
|||
exec-once = dbus-update-activation-environment DISPLAY XAUTHORITY WAYLAND_DISPLAY
|
||||
exec-once = hyprctl setcursor '' + config.gtk.cursorTheme.name + " " + builtins.toString config.gtk.cursorTheme.size + ''
|
||||
|
||||
env = XDG_CURRENT_DESKTOP,Hyprland
|
||||
env = XDG_SESSION_TYPE,wayland
|
||||
env = XDG_SESSION_DESKTOP,Hyprland
|
||||
env = WLR_DRM_DEVICES,/dev/dri/card2:/dev/dri/card1
|
||||
env = GDK_BACKEND,wayland,x11,*
|
||||
env = QT_QPA_PLATFORM,wayland;xcb
|
||||
env = QT_QPA_PLATFORMTHEME,qt5ct
|
||||
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
|
||||
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
|
||||
env = CLUTTER_BACKEND,wayland
|
||||
|
||||
exec-once = hyprprofile Default
|
||||
|
||||
exec-once = pypr
|
||||
exec-once = ydotoold
|
||||
exec-once = element-desktop --hidden
|
||||
#exec-once = STEAM_FRAME_FORCE_CLOSE=1 steam -silent
|
||||
exec-once = nm-applet
|
||||
exec-once = blueman-applet
|
||||
exec-once = hypr-element-start
|
||||
exec-once = GOMAXPROCS=1 syncthing --no-browser
|
||||
exec-once = protonmail-bridge --noninteractive
|
||||
exec-once = waybar
|
||||
|
@ -283,9 +295,6 @@ in
|
|||
force_zero_scaling = true
|
||||
}
|
||||
|
||||
env = WLR_DRM_DEVICES,/dev/dri/card2:/dev/dri/card1
|
||||
env = QT_QPA_PLATFORMTHEME,qt5ct
|
||||
|
||||
binds {
|
||||
movefocus_cycles_fullscreen = false
|
||||
}
|
||||
|
@ -405,6 +414,10 @@ in
|
|||
nwg-dock-hyprland -f -x -i 64 -nolauncher -a start -ml 8 -mr 8 -mb 8
|
||||
fi
|
||||
'')
|
||||
(pkgs.writeScriptBin "hypr-element-start" ''
|
||||
#!/usr/bin/env sh
|
||||
sleep 6 && element-desktop --hidden
|
||||
'')
|
||||
(pkgs.writeScriptBin "hypr-element" ''
|
||||
#!/bin/sh
|
||||
if hyprctl clients | grep "class: Element" > /dev/null
|
||||
|
@ -978,7 +991,9 @@ in
|
|||
programs.fuzzel.enable = true;
|
||||
programs.fuzzel.settings = {
|
||||
main = {
|
||||
font = userSettings.font + ":size=13";
|
||||
font = userSettings.font + ":size=20";
|
||||
dpi-aware = "no";
|
||||
show-actions = "yes";
|
||||
terminal = "${pkgs.alacritty}/bin/alacritty";
|
||||
};
|
||||
colors = {
|
||||
|
|
Loading…
Reference in a new issue