From 0b381b2b0bdf0e122e9c76928984c6af9f7e2c15 Mon Sep 17 00:00:00 2001 From: fredrikr79 Date: Thu, 23 Jan 2025 17:52:45 +0100 Subject: [PATCH] os study c xv6 riscv64 --- configuration.nix | 3 +++ home.nix | 1 + home/config/alacritty/alacritty.toml | 2 +- home/config/gdb/gdbinit | 1 + home/config/xmonad/xmonad.hs | 8 ++++---- 5 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 home/config/gdb/gdbinit diff --git a/configuration.nix b/configuration.nix index 99ba250..1550538 100644 --- a/configuration.nix +++ b/configuration.nix @@ -237,6 +237,9 @@ in { libgcc gcc gdb + valgrind-light + gnumake + qemu_full powertop gamemode alsa-utils diff --git a/home.nix b/home.nix index 76d28de..77a3c51 100644 --- a/home.nix +++ b/home.nix @@ -66,6 +66,7 @@ in source = "${inputs.vi-xournalpp}"; recursive = true; }; + ".config/gdb/gdbinit".source = home/config/gdb/gdbinit; }; home.sessionVariables = { diff --git a/home/config/alacritty/alacritty.toml b/home/config/alacritty/alacritty.toml index bd07558..cb67a1c 100644 --- a/home/config/alacritty/alacritty.toml +++ b/home/config/alacritty/alacritty.toml @@ -1,5 +1,5 @@ [window] -opacity = 0.5 +opacity = 0.7 padding = { x = 2, y = 2 } [font] diff --git a/home/config/gdb/gdbinit b/home/config/gdb/gdbinit new file mode 100644 index 0000000..dd6e651 --- /dev/null +++ b/home/config/gdb/gdbinit @@ -0,0 +1 @@ +add-auto-load-safe-path /home/fredrikr/vms/xv6-riscv64/riscv-hello-asm/oving1/.gdbinit diff --git a/home/config/xmonad/xmonad.hs b/home/config/xmonad/xmonad.hs index 304d0cf..0065716 100644 --- a/home/config/xmonad/xmonad.hs +++ b/home/config/xmonad/xmonad.hs @@ -70,11 +70,11 @@ myConfig = let , ((modm, xK_o), sendMessage Expand) -- %! Expand the master area , ((modm, xK_r), withFocused $ windows . sink) -- %! Resize viewed windows to the correct size , ((modm, xK_a), sendMessage ToggleStruts) - , ((0, xF86XK_AudioLowerVolume ), spawn "amixer set Master 1%-") - , ((0, xF86XK_AudioRaiseVolume ), spawn "amixer set Master 1%+") + , ((0, xF86XK_AudioLowerVolume ), spawn "amixer set Master 2%-") + , ((0, xF86XK_AudioRaiseVolume ), spawn "amixer set Master 2%+") , ((0, xF86XK_AudioMute ), spawn "amixer set Master toggle") - , ((0, xF86XK_MonBrightnessUp ), spawn "brightnessctl set 1%+") - , ((0, xF86XK_MonBrightnessDown ), spawn "brightnessctl set 1%-") + , ((0, xF86XK_MonBrightnessUp ), spawn "brightnessctl set 5%+") + , ((0, xF86XK_MonBrightnessDown ), spawn "brightnessctl set 5%-") ] ++ [((m .|. modm, k), windows $ f i)