From f54083d7dfe5e8f32bc090b880da2394eb24de4a Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Thu, 7 Nov 2024 12:25:56 -0600 Subject: [PATCH] Minor edits --- .config/hypr/hyprland.conf | 44 ++++++++++++++++++++++++++----------- .config/qtile/README.org | 2 +- .config/waybar/config.jsonc | 1 - 3 files changed, 32 insertions(+), 15 deletions(-) diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 95269b3..fd49e47 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -28,9 +28,13 @@ # To list all available monitors (active and inactive): # hyprctl monitors all # monitor= name, resolution, pos, scale -monitor = DP-1, 1920x1080, 1920x0, 1 -monitor = DP-2, 1920x1080, 0x0, 1 -monitor = HDMI-A-1, 1920x1080, 3840x0, 1 + +### DT'S HOME COMPUTER +# monitor = DP-1, 1920x1080, 1920x0, 1 +# monitor = DP-2, 1920x1080, 0x0, 1 +# monitor = HDMI-A-1, 1920x1080, 3840x0, 1 + +source = ~/.config/hypr/monitors.conf ################### ### MY PROGRAMS ### @@ -42,7 +46,8 @@ monitor = HDMI-A-1, 1920x1080, 3840x0, 1 $terminal = alacritty $fileManager = pcmanfm $menu = wofi --show drun - +$emacs = emacsclient -c -a 'emacs' # The space at the end is IMPORTANT! +$reset = hyprctl dispatch submap reset && #use a variable to keep things more readable ################# ### AUTOSTART ### @@ -55,7 +60,6 @@ $menu = wofi --show drun # exec-once = nm-applet & exec-once = waybar & hyprpaper - ############################# ### ENVIRONMENT VARIABLES ### ############################# @@ -64,18 +68,16 @@ exec-once = waybar & hyprpaper env = XCURSOR_SIZE,24 env = HYPRCURSOR_SIZE,24 -env = LIBVA_DRIVER_NAME,nvidia -env = XDG_SESSION_TYPE,wayland -env = GBM_BACKEND,nvidia-drm -env = __GLX_VENDOR_LIBRARY_NAME,nvidia +# env = LIBVA_DRIVER_NAME,nvidia +# env = XDG_SESSION_TYPE,wayland +# env = GBM_BACKEND,nvidia-drm +# env = __GLX_VENDOR_LIBRARY_NAME,nvidia cursor { no_hardware_cursors = true } - - ##################### ### LOOK AND FEEL ### ##################### @@ -158,7 +160,6 @@ misc { disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :( } - ############# ### INPUT ### ############# @@ -192,7 +193,6 @@ device { sensitivity = -0.5 } - ################### ### KEYBINDINGS ### ################### @@ -257,6 +257,24 @@ bind = $mainMod, mouse_up, workspace, e-1 bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow +# Emacs programs launched using the key chord SUPER+e followed by 'key' +bind = $mainMod, E, submap, emacs # will switch to a submap called 'emacs' +submap = emacs # will start a submap called "resize" +# sets repeatable binds for resizing the active window +binde = , E, exec, $reset $emacs +binde = , A, exec, $reset $emacs --eval '(emms-play-directory-tree \"~/Music/\")' +binde = , B, exec, $reset $emacs --eval '(ibuffer)' +binde = , D, exec, $reset $emacs --eval '(dired nil)' +binde = , I, exec, $reset $emacs --eval '(erc)' +binde = , S, exec, $reset $emacs --eval '(eshell)' +binde = , V, exec, $reset $emacs --eval '(vterm)' +binde = , W, exec, $reset $emacs --eval '(eww \"distro.tube\")' +binde = , F4, exec, $reset killall emacs +# use reset to go back to the global submap +bind = , escape, submap, reset +# will reset the submap, which will return to the global submap +submap = reset + # Laptop multimedia keys for volume and LCD brightness bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- diff --git a/.config/qtile/README.org b/.config/qtile/README.org index 9e36414..63c8bfe 100644 --- a/.config/qtile/README.org +++ b/.config/qtile/README.org @@ -222,7 +222,7 @@ keys = [ Key([mod], "period", lazy.next_screen(), desc='Move focus to next monitor'), Key([mod], "comma", lazy.prev_screen(), desc='Move focus to prev monitor'), - # Emacs programs launched using the key chord CTRL+e followed by 'key' + # Emacs programs launched using the key chord SUPER+e followed by 'key' KeyChord([mod],"e", [ Key([], "e", lazy.spawn(myEmacs), desc='Emacs Dashboard'), Key([], "a", lazy.spawn(myEmacs + "--eval '(emms-play-directory-tree \"~/Music/\")'"), desc='Emacs EMMS'), diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc index b5ddf7b..d61e821 100644 --- a/.config/waybar/config.jsonc +++ b/.config/waybar/config.jsonc @@ -55,7 +55,6 @@ "max-length": 8, "tooltip": false }, - "keyboard-state": { "numlock": true, "capslock": true,