Skip to content

Commit

Permalink
chore: updates
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 28, 2024
1 parent 6abff6e commit f66baf9
Show file tree
Hide file tree
Showing 4 changed files with 149 additions and 210 deletions.
3 changes: 2 additions & 1 deletion config/ags/options.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
"bar.launcher.icon.colored": true,
"bar.launcher.label.label": " Applications",
"bar.taskbar.monochrome": false,
"bar.taskbar.exclusive": true
"bar.taskbar.exclusive": true,
"font.name": "Fira Code"
}
2 changes: 1 addition & 1 deletion config/ags/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const options = mkOptions(OPTIONS, {

font: {
size: opt(11),
name: opt("Fira Code"),
name: opt("Maple Mono"),
},

bar: {
Expand Down
269 changes: 61 additions & 208 deletions config/hypr/hyprland.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Environment variables
source = ~/.config/hypr/hyprvars.conf

### Environment variables ###
env = CLUTTER_BACKEND,wayland
env = GDK_BACKEND,wayland.x11,*
env = GDK_DPI_SCALE,1
Expand All @@ -14,217 +16,86 @@ env = SDL_VIDEODRIVER,wayland
env = XCURSOR_SIZE,24
env = XCURSOR_THEME,Adwaita

exec-once = hyprpaper
exec-once = hypridle

### Auto Start ###
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XAUTHORITY
exec-once = systemctl --user import-environment
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once = gnome-keyring-daemon --start
exec-once = xhost si:localuser:root
exec-once = ags
# exec = sleep 1; pgrep jamesdsp || nohup jamesdsp -t & disown
exec = sleep 1; pgrep easyeffects || nohup easyeffects --gapplication-service & disown
# exec = nm-applet --indicator
# exec = blueman-applet
# exec = pkill waybar; waybar
exec = hyprshade auto
exec = pgrep safeeyes || safeeyes -e
# exec-once = avizo-service
exec-once = easyeffects --gapplication-service
exec-once = hypridle
exec-once = hyprpaper
exec-once = hyprshade auto
exec-once = microsoft-edge-dev
exec-once = safeeyes -e
exec-once = wl-clip-persist --clipboard regular
exec-once = wl-paste --watch cliphist store
exec-once = microsoft-edge-dev

# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=,highres,auto,2.133333,vrr,1
# monitor=,2560x1600,auto,1.5,vrr,1
# monitor=,1920x1200@60,0x0,1


# See https://wiki.hyprland.org/Configuring/Keywords/ for more

# Execute your favorite apps at launch
# exec-once = waybar & hyprpaper & firefox

# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf

# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input {
kb_layout = us
kb_variant =
kb_model =
kb_options = compose:menu
kb_rules =

float_switch_override_focus = 0
follow_mouse = 2
repeat_rate = 25
repeat_delay = 200
sensitivity = 0.5 # -1.0 - 1.0, 0 means no modification.

touchpad {
natural_scroll = yes
scroll_factor = 0.2
drag_lock = no
tap-and-drag = no
clickfinger_behavior = yes
}
}

general {
# See https://wiki.hyprland.org/Configuring/Variables/ for more

gaps_in = 10
gaps_out = 10
border_size = 3
col.active_border = rgba(07b5efff)
col.inactive_border = rgba(ffffff00)
layout = dwindle
}

misc {
disable_hyprland_logo = true
disable_splash_rendering = true
mouse_move_enables_dpms = true
enable_swallow = false
swallow_regex = ^(org\.wezfurlong\.wezterm)$
vrr = 1
}

decoration {
# See https://wiki.hyprland.org/Configuring/Variables/ for more

rounding = 8
# multisample_edges = true
# blur = true
# blur_size = 3
# blur_passes = 2
# blur_new_optimizations = true
blur {
enabled = true
size = 3
passes = 2
}

drop_shadow = true
shadow_ignore_window = true
shadow_offset = 2 2
shadow_range = 8
shadow_render_power = 2
col.shadow = 0x66000000

blurls = bar
}

animations {
enabled = yes

# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more

bezier = overshot, 0.05, 0.9, 0.1, 1.05
bezier = smoothOut, 0.36, 0, 0.66, -0.56
bezier = smoothIn, 0.25, 1, 0.5, 1

animation = windows, 1, 5, overshot, slide
animation = windowsOut, 1, 4, smoothOut, slide
animation = windowsMove, 1, 4, default
animation = border, 1, 10, default
animation = fade, 1, 10, smoothIn
animation = fadeDim, 1, 10, smoothIn
animation = workspaces, 1, 6, default
animation = specialWorkspace, 1, 4, default, slidevert
}

dwindle {
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = yes # you probably want this
}

master {
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
new_is_master = true
}

gestures {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
workspace_swipe = off
}

# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
#device:epic mouse V1 {
# sensitivity = -0.5
#}

# Example windowrule v1
# windowrule = float, ^(kitty)$
# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more

$meh = CONTROL SHIFT ALT

# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = SUPER, Q, killactive,
# bind = SUPER ALT, X, exec, warpd --normal
# bind = SUPER, X, exec, warpd --hint
bind = SUPER, M, fullscreen, 1
bindr = SUPER, SUPER_L, fullscreen, 1
bind = SUPER, F, fullscreen,
bind = SUPER, T, togglefloating,
# bind = SUPER, space, exec, rofi -show drun
bind = SUPER, space, exec, ags -t launcher
bind = SUPER, P, pseudo, # dwindle
bind = SUPER, R, togglesplit, # dwindle
bind = SUPER, B, exec, microsoft-edge-dev
bind = SUPER, E, exec, element-desktop
bind = SUPER ALT, E, exec, rofimoji -a clipboard
bind = SUPER ALT, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy

bind = $meh, I, exec, microsoft-edge-dev
bind = $meh, E, exec, element-desktop
bind = $meh, D, exec, discord
bind = $meh, space, exec, rofi -show drun
bind = $meh, L, exec, swaylock -f
bind = $meh, N, exec, makoctl dismiss -a

bind = SUPER ALT, return, exec, wezterm
bindr = SUPER ,SUPER_R, exec, ~/.config/hypr/scripts/quake > /dev/null

windowrule = float, confirm
windowrule = float, file_progress
windowrule = float, dialog
windowrule = float, pavucontrol
windowrule = float, nm-connection-editor
windowrule = float, blueman-manager
windowrule = size 40% 40%, blueman-manager
windowrule = move 59% 30, blueman-manager
windowrule = float, blueman-manager
windowrule = float, cpupower-gui
windowrule = fullscreen, wlogout
windowrule = float, title:wlogout
windowrule = fullscreen, title:wlogout
exec-once = xhost si:localuser:root

### Window Rules ###
windowrule = float, confirm
windowrule = float, file_progress
windowrule = float, dialog
windowrule = float, pavucontrol
windowrule = float, nm-connection-editor
windowrule = float, blueman-manager
windowrule = size 40% 40%, blueman-manager
windowrule = move 59% 30, blueman-manager
windowrule = float, blueman-manager
windowrule = float, cpupower-gui
windowrule = fullscreen, wlogout
windowrule = float, title:wlogout
windowrule = fullscreen, title:wlogout
windowrulev2 = float,class:quake
windowrulev2 = center,class:quake
windowrulev2 = dimaround,class:quake
windowrulev2 = size 1600 1000,class:quake
# windowrulev2 = pin,class:quake
#windowrulev2 = stayfocused,class:quake
windowrulev2 = idleinhibit fullscreen,class:microsoft-edge
windowrulev2 = idleinhibit fullscreen,class:Brave-browser
# Fix Edge preview windows
windowrulev2 = float,class:^$,title:^$
windowrulev2 = noinitialfocus,class:^$,title:^$


### Keybindings ###
$meh = CONTROL SHIFT ALT
bind = $meh, D, exec, discord
bind = $meh, E, exec, element-desktop
bind = $meh, I, exec, microsoft-edge-dev
bind = $meh, L, exec, swaylock -f
bind = $meh, N, exec, makoctl dismiss -a
bind = $meh, space, exec, rofi -show drun
bind = ,Print, exec, ags -r 'recorder.screenshot()'
bind = SUPER,Print, exec, ags -r 'recorder.screenshot(true)'
bind = SUPER ALT,Print, exec, ags -r 'recorder.start()'
bind = ,XF86AudioLowerVolume, exec, volumectl -u down
bind = ,XF86AudioMute, exec, volumectl toggle-mute
bind = ,XF86AudioPlay, exec, playerctl play-pause
bind = ,XF86AudioRaiseVolume, exec, volumectl -u up
bind = ,XF86MonBrightnessDown, exec, lightctl down
bind = ,XF86MonBrightnessUp, exec, lightctl up
bind = ,XF86PowerOff, exec, ags -t powermenu
bind = SUPER ALT, A, exec, ags -q; ags
bind = SUPER ALT, E, exec, rofimoji -a clipboard
bind = SUPER ALT, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy
bind = SUPER ALT, return, exec, wezterm
bind = SUPER, B, exec, microsoft-edge-dev
bind = SUPER, E, exec, element-desktop
bind = SUPER, F, fullscreen,
bind = SUPER, M, fullscreen, 1
bind = SUPER, P, pseudo, # dwindle
bind = SUPER, Q, killactive,
bind = SUPER, R, togglesplit, # dwindle
bind = SUPER, T, togglefloating,
bind = SUPER, space, exec, ags -t launcher
bindr = SUPER ,SUPER_R, exec, ~/.config/hypr/scripts/quake > /dev/null
bindr = SUPER, SUPER_L, fullscreen, 1

# Move focus with mainMod + arrow keys
bind = SUPER, H, movefocus, l
bind = SUPER, J, movefocus, d
bind = SUPER, K, movefocus, u
bind = SUPER, L, movefocus, r

bind = SUPER ALT, H, movewindow, l
bind = SUPER ALT, J, movewindow, d
bind = SUPER ALT, K, movewindow, u
Expand Down Expand Up @@ -264,21 +135,3 @@ bind = SUPER, mouse_up, workspace, e-1
bindm = SUPER, mouse:272, movewindow
bindm = SUPER ALT, mouse:272, resizewindow

$notify = ~/.scripts/notify

bind = SUPER ALT, A, exec, ags -q; ags

bind = ,XF86AudioPlay, exec, playerctl play-pause && sleep .5 && $notify playmusic "$(playerctl status)"
bind = ,XF86AudioRaiseVolume, exec, volumectl -u up
bind = ,XF86AudioLowerVolume, exec, volumectl -u down
bind = ,XF86AudioMute, exec, volumectl toggle-mute
bind = ,XF86MonBrightnessUp, exec, lightctl up
bind = ,XF86MonBrightnessDown, exec, lightctl down
bind = ,XF86PowerOff, exec, ags -t powermenu

# Screenshots
bind = SUPER ,Print, exec, grim - | wl-copy && $notify screenshot "Full Screen Captured"
bind = , Print, exec, grim -g "$(slurp)" - | wl-copy && $notify screenshot "Screenshot Captured"
bind = , XF86LaunchA, exec, grim -g "$(slurp)" - | wl-copy && $notify screenshot "Screenshot Captured"

bind = SUPER ALT, Print, exec, ~/.scripts/cast >> /tmp/foo 2>&1
Loading

0 comments on commit f66baf9

Please sign in to comment.