diff --git a/configuration.nix b/configuration.nix index b8d418c..488acb5 100644 --- a/configuration.nix +++ b/configuration.nix @@ -113,8 +113,8 @@ console.keyMap = "jp106"; services.xserver.xkb = { - layout = "jp"; - variant = ""; + layout = lib.mkDefault "jp"; + model = "jp106"; }; i18n.inputMethod = { diff --git a/home/plasma.nix b/home/plasma.nix index 67028ed..5506a14 100644 --- a/home/plasma.nix +++ b/home/plasma.nix @@ -1,8 +1,70 @@ { programs.plasma = { enable = true; - workspace = { - wallpaper = "/home/chase/nixos-config/home/wallpaper.jpg"; + fonts = { + fixedWidth = { + family = "BlexMono Nerd Font"; + pointSize = 11; + }; + general = { + family = "IBM Plex Sans"; + pointSize = 11; + }; + menu = { + family = "IBM Plex Sans"; + pointSize = 11; + }; + small = { + family = "IBM Plex Sans"; + pointSize = 8; + }; + toolbar = { + family = "IBM Plex Sans"; + pointSize = 11; + }; + windowTitle = { + family = "IBM Plex Sans"; + pointSize = 11; + }; + }; + krunner = { + historyBehavior = "disabled"; + position = "center"; + shortcuts.launch = "Meta+Space"; + }; + kscreenlocker = { + appearance.wallpaper = "/home/chase/nixos-config/home/wallpaper.jpg"; + }; + kwin = { + effects = { + desktopSwitching.animation = "slide"; + minimization.animation = "squash"; + shakeCursor.enable = true; + }; + nightLight = { + enable = true; + location = { + latitude = "39.70"; # not my house xD + longitude = "-86.15"; + }; + mode = "location"; + temperature = { + day = null; + night = 4000; + }; + transitionTime = 15; + }; + virtualDesktops = { + names = [ + "一" + "二" + "三" + "四" + "五" + ]; + number = 5; + rows = 1; + }; }; panels = [ { @@ -35,73 +97,17 @@ } ]; shortcuts = { - kmix = { - "decrease_volume" = "Volume Down"; - "decrease_volume_small" = "Shift+Volume Down"; - "increase_volume" = "Volume Up"; - "increase_volume_small" = "Shift+Volume Up"; - "mic_mute" = ["Microphone Mute" "" "Meta+Volume Mute\\, ,Microphone Mute" "Meta+Volume Mute,Mute Microphone"]; - "mute" = "Volume Mute"; - }; - kmserver = { - "Lock Session" = ["Meta+L" "" "Screensaver\\, ,Meta+L" "Screensaver,Lock Session"]; - "Log Out" = "Ctrl+Alt+Del"; - }; kwin = { - "Kill Window" = "Meta+Ctrl+Esc"; - "Overview" = "Meta+W"; - "Show Desktop" = "Meta+D"; "Switch to Desktop 1" = "Meta+1"; "Switch to Desktop 2" = "Meta+2"; "Switch to Desktop 3" = "Meta+3"; "Switch to Desktop 4" = "Meta+4"; "Switch to Desktop 5" = "Meta+5"; - "Walk Through Windows" = "Alt+Tab"; - "Walk Through Windows (Reverse)" = "Alt+Shift+Tab"; - "Window Close" = "Alt+F4"; - "Window Maximize" = "Meta+PgUp"; - "Window Minimize" = "Meta+PgDown"; - "Window One Desktop Down" = "Meta+Ctrl+Shift+Down"; - "Window One Desktop Up" = "Meta+Ctrl+Shift+Up"; - "Window One Desktop to the Left" = "Meta+Ctrl+Shift+Left"; - "Window One Desktop to the Right" = "Meta+Ctrl+Shift+Right"; - "Window Operations Menu" = "Alt+F3"; - "Window Quick Tile Bottom" = "Meta+Down"; - "Window Quick Tile Left" = "Meta+Left"; - "Window Quick Tile Right" = "Meta+Right"; - "Window Quick Tile Top" = "Meta+Up"; "Window to Desktop 1" = "Meta+!"; "Window to Desktop 2" = "Meta+\""; "Window to Desktop 3" = "Meta+#"; "Window to Desktop 4" = "Meta+$"; "Window to Desktop 5" = "Meta+%"; - "Window to Next Screen" = "Meta+Shift+Right"; - "Window to Previous Screen" = "Meta+Shift+Left"; - "disableInputCapture" = "Meta+Shift+Esc"; - "view_actual_size" = "Meta+0"; - "view_zoom_in" = ["Meta++" "" "Meta+=\\, Zoom In,Meta++" "Meta+=,Zoom In"]; - "view_zoom_out" = "Meta+-"; - }; - mediacontrol = { - "nextmedia" = "Media Next"; - "pausemedia" = "Media Pause"; - "playpausemedia" = "Media Play"; - "previousmedia" = "Media Previous"; - "stopmedia" = "Media Stop"; - }; - org_kde_powerdevil = { - "Decrease Keyboard Brightness" = "Keyboard Brightness Down"; - "Decrease Screen Brightness" = "Monitor Brightness Down"; - "Decrease Screen Brightness Small" = "Shift+Monitor Brightness Down"; - "Hibernate" = "Hibernate"; - "Increase Keyboard Brightness" = "Keyboard Brightness Up"; - "Increase Screen Brightness" = "Monitor Brightness Up"; - "Increase Screen Brightness Small" = "Shift+Monitor Brightness Up"; - "PowerDown" = "Power Down"; - "PowerOff" = "Power Off"; - "Sleep" = "Sleep"; - "Toggle Keyboard Backlight" = "Keyboard Light On/Off"; - "powerProfile" = ["Battery" "" "Meta+B\\, ,Battery" "Meta+B,Switch Power Profile"]; }; plasmashell = { "activate application launcher" = ["Meta" "" "Alt+F1\\, ,Meta" "Alt+F1,Activate Application Launcher"]; @@ -110,156 +116,13 @@ "activate task manager entry 3" = "none,Meta+3,Activate Task Manager Entry 3"; "activate task manager entry 4" = "none,Meta+4,Activate Task Manager Entry 4"; "activate task manager entry 5" = "none,Meta+5,Activate Task Manager Entry 5"; - "clipboard_action" = "Meta+Ctrl+X"; - "cycle-panels" = "Meta+Alt+P"; - "manage activities" = "Meta+Q"; "next activity" = ",none,Walk through activities"; "previous activity" = ",none,Walk through activities (Reverse)"; - "show dashboard" = "Ctrl+F12"; - "show-on-mouse-pos" = "Meta+V"; - "stop current activity" = "Meta+S"; }; "services/com.mitchellh.ghostty.desktop"."_launch" = "Meta+X"; - "services/org.kde.krunner.desktop"."_launch" = ["Alt+Space" "Search" "Alt+F2" "Meta+Space"]; }; - configFile = { - baloofilerc = { - "General"."dbVersion" = 2; - "General"."exclude filters" = "*~,*.part,*.o,*.la,*.lo,*.loT,*.moc,moc_*.cpp,qrc_*.cpp,ui_*.h,cmake_install.cmake,CMakeCache.txt,CTestTestfile.cmake,libtool,config.status,confdefs.h,autom4te,conftest,confstat,Makefile.am,*.gcode,.ninja_deps,.ninja_log,build.ninja,*.csproj,*.m4,*.rej,*.gmo,*.pc,*.omf,*.aux,*.tmp,*.po,*.vm*,*.nvram,*.rcore,*.swp,*.swap,lzo,litmain.sh,*.orig,.histfile.*,.xsession-errors*,*.map,*.so,*.a,*.db,*.qrc,*.ini,*.init,*.img,*.vdi,*.vbox*,vbox.log,*.qcow2,*.vmdk,*.vhd,*.vhdx,*.sql,*.sql.gz,*.ytdl,*.tfstate*,*.class,*.pyc,*.pyo,*.elc,*.qmlc,*.jsc,*.fastq,*.fq,*.gb,*.fasta,*.fna,*.gbff,*.faa,po,CVS,.svn,.git,_darcs,.bzr,.hg,CMakeFiles,CMakeTmp,CMakeTmpQmake,.moc,.obj,.pch,.uic,.npm,.yarn,.yarn-cache,__pycache__,node_modules,node_packages,nbproject,.terraform,.venv,venv,core-dumps,lost+found"; - "General"."exclude filters version" = 9; - }; - dolphinrc = { - "General"."ViewPropsTimestamp" = "2025,4,28,12,11,21.343"; - "KFileDialog Settings"."Places Icons Auto-resize" = false; - "KFileDialog Settings"."Places Icons Static Size" = 22; - }; - kactivitymanagerdrc = { - "activities"."0fb1d4a1-96e6-4dfd-909a-04b78f1e3845" = "Default"; - "main"."currentActivity" = "0fb1d4a1-96e6-4dfd-909a-04b78f1e3845"; - }; - kcminputrc = { - "Libinput/1739/52839/SYNA0001:00 06CB:CE67 Mouse"."PointerAccelerationProfile" = 1; - "Libinput/1739/52839/SYNA0001:00 06CB:CE67 Touchpad"."NaturalScroll" = true; - }; - kded5rc = { - "Module-browserintegrationreminder"."autoload" = false; - "Module-device_automounter"."autoload" = false; - }; - kdeglobals = { - "DirSelect Dialog"."DirSelectDialog Size" = "816,573"; - "DirSelect Dialog"."Splitter State" = "\x00\x00\x00\xff\x00\x00\x00\x01\x00\x00\x00\x02\x00\x00\x00\x88\x00\x00\x02\xa8\x00\xff\xff\xff\xff\x01\x00\x00\x00\x01\x00"; - "General"."TerminalApplication" = "ghostty"; - "General"."TerminalService" = "com.mitchellh.ghostty.desktop"; - "General"."XftHintStyle" = "hintslight"; - "General"."XftSubPixel" = "none"; - "General"."fixed" = "BlexMono Nerd Font,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"; - "General"."font" = "IBM Plex Sans,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"; - "General"."menuFont" = "IBM Plex Sans,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"; - "General"."smallestReadableFont" = "IBM Plex Sans,8,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"; - "General"."toolBarFont" = "IBM Plex Sans,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"; - "KFileDialog Settings"."Allow Expansion" = false; - "KFileDialog Settings"."Automatically select filename extension" = true; - "KFileDialog Settings"."Breadcrumb Navigation" = true; - "KFileDialog Settings"."Decoration position" = 2; - "KFileDialog Settings"."LocationCombo Completionmode" = 5; - "KFileDialog Settings"."PathCombo Completionmode" = 5; - "KFileDialog Settings"."Show Bookmarks" = false; - "KFileDialog Settings"."Show Full Path" = false; - "KFileDialog Settings"."Show Inline Previews" = true; - "KFileDialog Settings"."Show Preview" = false; - "KFileDialog Settings"."Show Speedbar" = true; - "KFileDialog Settings"."Show hidden files" = false; - "KFileDialog Settings"."Sort by" = "Name"; - "KFileDialog Settings"."Sort directories first" = true; - "KFileDialog Settings"."Sort hidden files last" = false; - "KFileDialog Settings"."Sort reversed" = false; - "KFileDialog Settings"."Speedbar Width" = 140; - "KFileDialog Settings"."View Style" = "DetailTree"; - "WM"."activeBackground" = "30,30,46"; - "WM"."activeBlend" = "205,214,244"; - "WM"."activeFont" = "IBM Plex Sans,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"; - "WM"."activeForeground" = "205,214,244"; - "WM"."inactiveBackground" = "17,17,27"; - "WM"."inactiveBlend" = "166,173,200"; - "WM"."inactiveForeground" = "166,173,200"; - }; - krunnerrc = { - "General"."FreeFloating" = true; - "Plugins"."browserhistoryEnabled" = false; - "Plugins"."browsertabsEnabled" = false; - "Plugins"."krunner_appstreamEnabled" = false; - "Plugins"."krunner_bookmarksrunnerEnabled" = false; - "Plugins"."krunner_dictionaryEnabled" = false; - "Plugins"."krunner_katesessionsEnabled" = false; - "Plugins"."krunner_konsoleprofilesEnabled" = false; - "Plugins"."krunner_sessionsEnabled" = false; - "Plugins"."krunner_spellcheckEnabled" = false; - "Plugins"."org.kde.activities2Enabled" = false; - "Plugins/Favorites"."plugins" = "krunner_services,krunner_systemsettings,unitconverter"; - }; - kscreenlockerrc = { - "Greeter/Wallpaper/org.kde.image/General"."Image" = "/home/chase/nixos-config/home/wallpaper.jpg"; - "Greeter/Wallpaper/org.kde.image/General"."PreviewImage" = "/home/chase/nixos-config/home/wallpaper.jpg"; - }; - kuriikwsfilterrc = { - "General"."DefaultWebShortcut" = "duckduckgo"; - "General"."EnableWebShortcuts" = true; - "General"."KeywordDelimiter" = ":"; - "General"."PreferredWebShortcuts" = "wikit,wikipedia,youtube"; - "General"."UsePreferredWebShortcutsOnly" = false; - }; - kwalletrc = { - "Wallet"."First Use" = false; - }; - kwinrc = { - "Activities/LastVirtualDesktop"."0fb1d4a1-96e6-4dfd-909a-04b78f1e3845" = "534ab25b-3c39-4cf8-888d-78309c6868bd"; - "Desktops"."Id_1" = "6d7bbeb1-6928-4f68-8c3b-7cbf20b2e2ce"; - "Desktops"."Id_2" = "a140557c-77d1-4905-9d1c-3f7308b7aebd"; - "Desktops"."Id_3" = "4e659bf3-b29d-4155-99fd-65c56d9fcf32"; - "Desktops"."Id_4" = "534ab25b-3c39-4cf8-888d-78309c6868bd"; - "Desktops"."Id_5" = "b9a709de-7e37-4778-ba03-5177c976b4c4"; - "Desktops"."Name_1" = "一"; - "Desktops"."Name_2" = "二"; - "Desktops"."Name_3" = "三"; - "Desktops"."Name_4" = "四"; - "Desktops"."Name_5" = "五"; - "Desktops"."Number" = 5; - "Desktops"."Rows" = 1; - "Tiling"."padding" = 4; - "Tiling/07e6a9d6-7fe8-5aca-aa4d-fed79e8d901d"."tiles" = "{\"layoutDirection\":\"horizontal\",\"tiles\":[{\"width\":0.25},{\"width\":0.5},{\"width\":0.25}]}"; - "Tiling/a4b67978-379f-5845-bb4c-dd8369bff4ca"."tiles" = "{\"layoutDirection\":\"horizontal\",\"tiles\":[{\"width\":0.25},{\"width\":0.5},{\"width\":0.25}]}"; - "Wayland"."InputMethod[$e]" = "/run/current-system/sw/share/applications/org.fcitx.Fcitx5.desktop"; - "Wayland"."InputMethod\x5b$e\x5d" = "/run/current-system/sw/share/applications/org.fcitx.Fcitx5.desktop"; - "Wayland"."VirtualKeyboardEnabled" = true; - "Xwayland"."Scale" = 1.5; - }; - kxkbrc = { - "Layout"."DisplayNames" = ""; - "Layout"."LayoutList" = "jp"; - "Layout"."Model" = "jp106"; - "Layout"."Options" = "ctrl:swapcaps"; - "Layout"."ResetOldOptions" = true; - "Layout"."Use" = true; - "Layout"."VariantList" = ""; - }; - plasma-localerc = { - "Formats"."LANG" = "en_US.UTF-8"; - "Formats"."LC_TIME" = "C"; - }; - plasmanotifyrc = { - "Applications/firefox"."Seen" = true; - "Applications/thunderbird"."Seen" = true; - }; - plasmarc = { - "Wallpapers"."usersWallpapers" = "/home/chase/nixos-config/home/wallpaper.jpg"; - }; - spectaclerc = { - "GuiConfig"."captureMode" = 0; - "ImageSave"."translatedScreenshotsFolder" = "Screenshots"; - "VideoSave"."translatedScreencastsFolder" = "Screencasts"; - }; - }; - dataFile = { + workspace = { + wallpaper = "/home/chase/nixos-config/home/wallpaper.jpg"; }; }; } diff --git a/hosts/anzu/hardware-configuration.nix b/hosts/anzu/hardware-configuration.nix index 3be7104..bea2def 100644 --- a/hosts/anzu/hardware-configuration.nix +++ b/hosts/anzu/hardware-configuration.nix @@ -59,4 +59,6 @@ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + + services.xserver.xkb.options = "ctrl:swapcaps"; }