diff options
| -rw-r--r-- | .config/hypr/binds.conf | 57 | ||||
| -rw-r--r-- | .config/hypr/hyprland.conf | 29 | ||||
| -rw-r--r-- | .config/hypr/hyprpaper.conf | 4 | ||||
| -rw-r--r-- | README.md | 5 | ||||
| -rw-r--r-- | files/wallpapers/tlou.png | bin | 0 -> 6197965 bytes | |||
| -rwxr-xr-x | scripts/get-brightness-percentage | 6 |
6 files changed, 48 insertions, 53 deletions
diff --git a/.config/hypr/binds.conf b/.config/hypr/binds.conf index ca3215d..13da882 100644 --- a/.config/hypr/binds.conf +++ b/.config/hypr/binds.conf @@ -1,30 +1,24 @@ -# See https://wiki.hyprland.org/Configuring/Keywords/ for more +# main mod $mainMod = SUPER -# Set programs that you use +# used programs $terminal = kitty $browser = firefox -$menu = tofi-run | xargs hyprctl dispatch exec -- +$menu = wmenu-run $appMenu = fuzzel | xargs hyprctl dispatch exec -- -# Main Binds -bind = $mainMod, R, exec, $menu -bind = $mainMod, RETURN, exec, $appMenu +# main binds bind = $mainMod, A, exec, $terminal bind = $mainMod, D, killactive, +bind = $mainMod, R, exec, $menu +bind = $mainMod, RETURN, exec, $appMenu +bind = $mainMod, F, fullscreen bind = $mainMod CTRL SHIFT, D, exec, hyprctl kill -# screenshot (region + full) -bind = $mainMod SHIFT, S, exec, screenshot -save -bind = $mainMod, S, exec, screenshot -full -save -# screenshot and copy -bind = $mainMod CTRL SHIFT, S, exec, screenshot -bind = $mainMod CTRL, S, exec, screenshot -full - +# more binds bind = $mainMod, V, togglefloating, bind = $mainMod CTRL, P, exec, hyprpicker -a bind = $mainMod, L, exec, hyprlock -bind = $mainMod, F, fullscreen bind = $mainMod, G, fullscreenstate, 0 3 bind = $mainMod, W, exec, $browser bind = $mainMod, K, exec, $terminal -e htop @@ -33,6 +27,22 @@ bind = $mainMod SHIFT, Q, exit, bind = $mainMod, SPACE, layoutmsg, swapwithmaster bind = $mainMod, E, exec, emacsclient -c +# screenshot (region + full) +bind = $mainMod SHIFT, S, exec, screenshot -save +bind = $mainMod, S, exec, screenshot -full -save +# screenshot and copy +bind = $mainMod CTRL SHIFT, S, exec, screenshot +bind = $mainMod CTRL, S, exec, screenshot -full + +# brightess and audio controls +bindle = , xf86monbrightnessup , exec, brightnessctl set 10%+ +bindle = , xf86monbrightnessdown, exec, brightnessctl set 10%- +bindle = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+ +bindle = , XF86AudioLowerVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%- +bindle = SHIFT, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 1%+ +bindle = SHIFT, XF86AudioLowerVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 1%- +bindle = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle + # Move focus with mainMod + arrow keys binde = $mainMod, left, movefocus, l binde = $mainMod, right, movefocus, r @@ -42,6 +52,7 @@ binde = $mainMod, up, movefocus, u binde = $mainMod, down, movefocus, d bind = $mainMod, o, cyclenext, prev +# Move windows binde = $mainMod SHIFT,left ,movewindow, l binde = $mainMod SHIFT,right ,movewindow, r binde = $mainMod SHIFT, n, swapnext, prev @@ -50,24 +61,6 @@ binde = $mainMod SHIFT,up ,movewindow, u binde = $mainMod SHIFT,down ,movewindow, d bind = $mainMod SHIFT, o, swapnext, prev -# controls -binde = , xf86monbrightnessup , exec, brightnessctl set 10%+ -binde = , xf86monbrightnessdown, exec, brightnessctl set 10%- - -binde = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+ -binde = , XF86AudioLowerVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%- -binde = SHIFT, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 1%+ -binde = SHIFT, XF86AudioLowerVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 1%- -binde = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle - -# Example special workspace (scratchpad) COMMENTED OUT FOR SCREENSHOT KEYBIND -# bind = $mainMod, S, togglespecialworkspace, magic -# bind = $mainMod SHIFT, S, movetoworkspace, special:magic - -# Scroll through existing workspaces with mainMod + scroll -bind = $mainMod, mouse_down, workspace, e+1 -bind = $mainMod, mouse_up, workspace, e-1 - # Move/resize windows with mainMod + LMB/RMB and dragging bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 440ae90..54feaf1 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -1,14 +1,14 @@ source=binds.conf +# Settings monitor = eDP-1, 1920x1200@60, 0x0, 1 - env = XCURSOR_SIZE,24 env = HYPRCURSOR_SIZE,24 +# Startup exec-once = startup exec-once = hyprctl dispatch workspace 1 -# For all categories, see https://wiki.hyprland.org/Configuring/Variables/ input { kb_layout = us kb_variant = @@ -31,7 +31,7 @@ input { general { layout = master - allow_tearing = false + allow_tearing = true resize_on_border = false gaps_in = 0 @@ -44,19 +44,16 @@ general { } decoration { - # See https://wiki.hyprland.org/Configuring/Variables/ for more - rounding = 0 blur { enabled = true - size = 2 - passes = 3 + size = 1 + passes = 1 } } master { - # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more new_status = master new_on_top = true orientation = left @@ -64,7 +61,6 @@ master { } misc { - # See https://wiki.hyprland.org/Configuring/Variables/ for more force_default_wallpaper = 1 # Set to 0 or 1 to disable the anime mascot wallpapers } @@ -81,24 +77,27 @@ animations { animation = global, 1, 10, default animation = border, 1, 5.39, easeOutQuint + animation = windows, 1, 4.79, easeOutQuint - animation = windowsIn, 1, 4.1, easeOutQuint, popin 87% - animation = windowsOut, 1, 1.49, linear, popin 87% + animation = windowsIn, 1, 4.1, easeOutQuint, slide + animation = windowsOut, 1, 2, linear, slide + animation = fadeIn, 1, 1.73, almostLinear - animation = fadeOut, 1, 1.46, almostLinear + animation = fadeOut, 1, 2, easeOutQuint animation = fade, 1, 3.03, quick + animation = layers, 1, 3.81, easeOutQuint animation = layersIn, 1, 4, easeOutQuint, fade animation = layersOut, 1, 1.5, linear, fade animation = fadeLayersIn, 1, 1.79, almostLinear animation = fadeLayersOut, 1, 1.39, almostLinear - animation = workspaces, 1, 1.94, almostLinear, fade - animation = workspacesIn, 1, 1.21, almostLinear, fade + + animation = workspaces, 0, 1.94, almostLinear, fade + animation = workspacesIn, 0, 1.21, almostLinear, fade animation = workspacesOut, 1, 1.94, almostLinear, fade } # Ignore maximize requests from apps. You'll probably like this. windowrule = suppressevent maximize, class:.* - # Fix some dragging issues with XWayland windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0 diff --git a/.config/hypr/hyprpaper.conf b/.config/hypr/hyprpaper.conf index c1c2760..98f7b7c 100644 --- a/.config/hypr/hyprpaper.conf +++ b/.config/hypr/hyprpaper.conf @@ -1,2 +1,2 @@ -preload = $HOME/dotfiles/files/wallpapers/grass.png -wallpaper = eDP-1,contain:$HOME/dotfiles/files/wallpapers/grass.png +preload = $HOME/dotfiles/files/wallpapers/tlou.png +wallpaper = eDP-1,contain:$HOME/dotfiles/files/wallpapers/tlou.png @@ -1,6 +1,9 @@ # Jack Jamison's Dotfiles ## Dependencies +System setup: +- Zsh is set as shell + Important - Hyprland + utils (hyprpaper, hypridle) - Zsh @@ -20,7 +23,7 @@ Fonts and style: Everything can be installed by running `stow .` Since there are probably conflicts with your existing files, you can use the `--adopt` flag and then `git restore .`. ## TODO -- [ ] Git branch in PS1 +- [x] Git branch in PS1 - [ ] Hyprpaper and idle - [ ] Cursor - [ ] Wmenu for commands diff --git a/files/wallpapers/tlou.png b/files/wallpapers/tlou.png Binary files differnew file mode 100644 index 0000000..b7796be --- /dev/null +++ b/files/wallpapers/tlou.png diff --git a/scripts/get-brightness-percentage b/scripts/get-brightness-percentage index 40073f0..1cb19ca 100755 --- a/scripts/get-brightness-percentage +++ b/scripts/get-brightness-percentage @@ -1,5 +1,5 @@ #!/bin/bash -brightness=$(cat /sys/class/backlight/amdgpu_bl1/brightness) -max_brightness=$(cat /sys/class/backlight/amdgpu_bl1/max_brightness) -brightness_percentage=$(( $brightness * 100 / $max_brightness )) +brightness=$(brightnessctl g) +max_brightness=$(brightnessctl m) +brightness_percentage=$(( ($brightness - 1) * 100 / ($max_brightness - 1) )) echo "$brightness_percentage%" |
